diff --git a/.changeset/silly-lamps-create.md b/.changeset/silly-lamps-create.md new file mode 100644 index 0000000000..22f4b2a96e --- /dev/null +++ b/.changeset/silly-lamps-create.md @@ -0,0 +1,5 @@ +--- +"@calcom/atoms": patch +--- + +test release diff --git a/packages/platform/atoms/CHANGELOG.md b/packages/platform/atoms/CHANGELOG.md index d9fc0cb11b..054188039c 100644 --- a/packages/platform/atoms/CHANGELOG.md +++ b/packages/platform/atoms/CHANGELOG.md @@ -1,28 +1,3 @@ -## 1.0.108 - -## 1.0.112 - -### Patch Changes - -- [#22134](https://github.com/calcom/cal.com/pull/22134) [`3437c43`](https://github.com/calcom/cal.com/commit/3437c4331da892bd77afaea84be2db196543a207) Thanks [@supalarry](https://github.com/supalarry)! - ignore this test log - -## 1.0.110 - -### Patch Changes - -- [#22107](https://github.com/calcom/cal.com/pull/22107) [`88a2bd3`](https://github.com/calcom/cal.com/commit/88a2bd3317a2cfaf6b367524e2736445544dbd63) Thanks [@supalarry](https://github.com/supalarry)! - test log can ignore - -### Patch Changes - -- [#22103](https://github.com/calcom/cal.com/pull/22103) [`61274bc`](https://github.com/calcom/cal.com/commit/61274bc7efc67b162d46b59cd75bd376ad515c51) Thanks [@supalarry](https://github.com/supalarry)! - testing changesets - can ignore this - -## 1.0.107 - -### Patch Changes - -- [#22095](https://github.com/calcom/cal.com/pull/22095) [`3c43ce4`](https://github.com/calcom/cal.com/commit/3c43ce4165bce1da29b203d5f2eb62090c5fddd2) Thanks [@supalarry](https://github.com/supalarry)! - test by updating changelog - -- [#21864](https://github.com/calcom/cal.com/pull/21864) [`540bf86`](https://github.com/calcom/cal.com/commit/540bf868b5b60a98d9d3aeb565e2089f15c3dfd3) Thanks [@supalarry](https://github.com/supalarry)! - fix saving event type settings ## 1.0.63 diff --git a/packages/platform/atoms/package.json b/packages/platform/atoms/package.json index 04a3fab515..ce4e82fe0b 100644 --- a/packages/platform/atoms/package.json +++ b/packages/platform/atoms/package.json @@ -4,7 +4,7 @@ "type": "module", "description": "Customizable UI components to integrate scheduling into your product.", "authors": "Cal.com, Inc.", - "version": "1.0.112", + "version": "1.0.113", "scripts": { "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch", "build": "NODE_OPTIONS='--max_old_space_size=12288' rm -rf dist && yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client", @@ -37,11 +37,9 @@ "dist", "globals.min.css" ], - "main": "./dist/cal-atoms.umd.cjs", "module": "./dist/cal-atoms.js", "exports": { ".": { - "require": "./dist/cal-atoms.umd.cjs", "import": "./dist/cal-atoms.js", "types": "./dist/index.d.ts" }, diff --git a/packages/platform/atoms/tsconfig.json b/packages/platform/atoms/tsconfig.json index d1ec2ea833..40d91f9f05 100644 --- a/packages/platform/atoms/tsconfig.json +++ b/packages/platform/atoms/tsconfig.json @@ -31,16 +31,32 @@ "../../types/@wojtekmaj__react-daterange-picker.d.ts", "../../types/business-days-plugin.d.ts", "../../types/window.d.ts", - "../../lib", - "../../features", "../types", "../constants", "../utils", "../libraries", - "../../prisma", "../../dayjs", - "../../trpc", - "../../app-store" + "../../prisma/zod-utils.ts", + "../../prisma/zod", + "../../trpc/react", + "../../trpc/server/routers/viewer/slots", + "../../trpc/server/types", + "../../features/eventtypes", + "../../features/schedules", + "../../features/bookings/Booker", + "../../features/bookings/Booker", + "../../features/instant-meeting", + "../../features/bookings/handleMarkNoShow.ts", + "../../features/bookings/types.ts", + "../../features/bookings/lib", + "../../features/ee/workflows", + "../../features/ee/payments", + "../../features/ee/round-robin", + "../../features/ee/billing", + "../../features/shell", + "../../features/components", + "../../features/form-builder", + "../../features/data-table" ], "exclude": [ "dist", diff --git a/packages/platform/atoms/vite.config.ts b/packages/platform/atoms/vite.config.ts index 6a8c08ecbf..599af58730 100644 --- a/packages/platform/atoms/vite.config.ts +++ b/packages/platform/atoms/vite.config.ts @@ -3,7 +3,6 @@ import path from "path"; import { resolve } from "path"; import { defineConfig, loadEnv } from "vite"; import dts from "vite-plugin-dts"; -import Inspect from "vite-plugin-inspect"; export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), ""); // .env inside of packages/platform/atoms @@ -20,7 +19,7 @@ export default defineConfig(({ mode }) => { "@calcom/platform-utils", ], }, - plugins: [Inspect(), react(), dts({ insertTypesEntry: true })], + plugins: [react(), dts({ insertTypesEntry: true })], define: { "process.env.NEXT_PUBLIC_WEBAPP_URL": `"${webAppUrl}"`, }, @@ -28,17 +27,16 @@ export default defineConfig(({ mode }) => { noExternal: ["turndown"], // Example if you want to disable SSR for your library }, build: { - commonjsOptions: { - include: [/@calcom\/lib/, /@calcom\/features/, /node_modules/], - }, lib: { entry: [resolve(__dirname, "index.ts")], name: "CalAtoms", fileName: "cal-atoms", + formats: ["es"], }, rollupOptions: { - external: ["react", "fs", "path", "os", "react-dom", "react-awesome-query-builder"], + external: ["react", "fs", "path", "os", "react/jsx-runtime", "react-dom", "react-dom/client"], output: { + format: "esm", // Force ESM output globals: { react: "React", "react-dom": "ReactDOM", @@ -58,6 +56,7 @@ export default defineConfig(({ mode }) => { "@radix-ui/react-dialog": path.resolve(__dirname, "./src/components/ui/dialog.tsx"), ".prisma/client": path.resolve(__dirname, "../../prisma-client"), "@prisma/client": path.resolve(__dirname, "../../prisma-client"), + "@calcom/prisma/client": path.resolve(__dirname, "../../prisma-client"), "@calcom/prisma": path.resolve(__dirname, "../../prisma"), "@calcom/dayjs": path.resolve(__dirname, "../../dayjs"), "@calcom/platform-constants": path.resolve(__dirname, "../constants/index.ts"),