UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
[Feature] Magic UI Cli (#188)
Dillion Verma205a26ce4adf
diff --git a/.eslintrc.json b/.eslintrc.jsonindex 03a8007e..0a76b3ac 100644--- a/.eslintrc.json+++ b/.eslintrc.json@@ -1,7 +1,6 @@{"extends": ["next/core-web-vitals",- "turbo","prettier","plugin:tailwindcss/recommended"],diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex deebe4e0..5375053c 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -22,32 +22,37 @@ Once done, open a pull request from your forked repo to the main repo [here](htt1. **Fork this repository**Click [here](https://github.com/magicuidesign/magicui/fork) to fork the repository.-2. **Clone your forked repository to your local machine**+2. **Clone your forked repository to your local machine**+```bashgit clone https://github.com/<YOUR_USERNAME>/magicui.git```-3. **Navigate to the project directory**+3. **Navigate to the project directory**+```bashcd magicui```-4. **Create a new branch for your changes**+4. **Create a new branch for your changes**+```bashgit checkout -b my-new-branch```-5. **Install dependencies**+5. **Install dependencies**+```bashpnpm i```-6. **Create a `.env.local` file**+6. **Create a `.env.local` file**+```bashtouch .env.local && echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" > .env.local```-7. **Run the project**+7. **Run the project**```bashpnpm dev```@@ -118,7 +123,7 @@ export default ExampleComponentDemo;Create an MDX file for documenting your component.-~~~md+````md---title: Example Componentdate: 2024-06-01@@ -145,15 +150,14 @@ components/magicui/example-component.tsx## Props-| Prop | Type | Description | Default |-| ------------------------- | ------------------------- | ------------------------------------------------------------ | -------- |-| color | String | The color of the component | "blue" |+| Prop | Type | Description | Default |+| ----- | ------ | -------------------------- | ------- |+| color | String | The color of the component | "blue" |## Credits- Credit to [Bankk](https://www.x.com/bankkroll_eth)-~~~-+````### 5. Add Registry Export@@ -164,12 +168,12 @@ Export your component and example in the registry.```typescriptconst ui: Registry = {// other components- "example-component": {+ "example-component": {name: "example-component",type: "components:ui",files: ["registry/components/magicui/example-component.tsx"],},-}+};const example: Registry = {// other examples@@ -181,10 +185,51 @@ const example: Registry = {() => import("@/registry/components/example/example-component-demo"),),},-}+};+```++## How to use CLI++1. Run CLI script from project `root` folder++```bash+pnpm run install:cli+```++```bash+pnpm run dev:cli+```++```bash+pnpm run build:cli+```++```bash+pnpm run release:cli+```++2. Run CLI script from `/packages/cli` folder++```bash+pnpm run install+```++```bash+pnpm run dev```+```bash+pnpm run build+```++```bash+pnpm run release+```++Lots more useful scripts are available in package.json++The CLI in development uses index.json from default `3000` port on localhost. Otherwise [https://magicui.design](https://magicui.design/registry/index.json)+## Ask for HelpFor any help or questions, please open a new GitHub issue and we will get back to you :)-diff --git a/package.json b/package.jsonindex bdeda6c3..d2f7b6c6 100644--- a/package.json+++ b/package.json@@ -3,10 +3,16 @@"version": "0.1.1","private": true,"scripts": {+ "prefix:cli": "pnpm --prefix ./packages/cli/ -- ",+ "install:cli": "pnpm prefix:cli install",+ "dev:cli": "pnpm prefix:cli dev",+ "build:cli": "pnpm prefix:cli build",+ "release:cli": "pnpm prefix:cli release","preinstall": "npx only-allow pnpm","dev": "next dev",- "prebuild": "npx prisma generate",+ "prebuild": "pnpm build:registry","build": "next build",+ "build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.ts","start": "next start","lint": "next lint","dx": "run-s db:up db:migrate db:logs",@@ -22,13 +28,11 @@"prod:seed": "dotenv -e .env -- npx tsx prisma/seed.ts"},"dependencies": {- "@auth/prisma-adapter": "^1.0.0",+ "@fontsource/inter": "^5.0.15","@headlessui/react": "^1.7.17","@heroicons/react": "^2.1.3","@hookform/resolvers": "^3.1.1","@motionone/utils": "^10.17.0",- "@next-auth/prisma-adapter": "^1.0.7",- "@prisma/client": "^5.11.0","@radix-ui/react-accordion": "^1.1.2","@radix-ui/react-alert-dialog": "^1.0.5","@radix-ui/react-avatar": "^1.0.3",@@ -62,7 +66,6 @@"@react-email/tailwind": "0.0.8","@react-email/text": "0.0.5","@t3-oss/env-nextjs": "^0.7.1",- "@vercel/og": "^0.5.20","autoprefixer": "10.4.14","canvas-confetti": "^1.9.3","class-variance-authority": "^0.6.0",@@ -118,15 +121,16 @@"npm-run-all": "^4.1.5","prettier": "^3.0.0","prettier-plugin-tailwindcss": "^0.4.1",- "prisma": "^5.11.0","rehype-autolink-headings": "^6.1.1","rehype-pretty-code": "^0.9.11","rehype-slug": "^5.1.0","remark": "^14.0.3","remark-gfm": "^3.0.1",+ "rimraf": "^5.0.7","shiki": "^0.14.2","tailwindcss": "3.4.1","tailwindcss-animate": "^1.0.7",+ "tsx": "^4.11.0","typescript": "^5.3.3","unist-builder": "^3.0.0","unist-util-visit": "^4.1.2"diff --git a/packages/cli/.gitignore b/packages/cli/.gitignorenew file mode 100644index 00000000..6807fed5--- /dev/null+++ b/packages/cli/.gitignore@@ -0,0 +1,5 @@+components+dist+components.json+test+node_modulesdiff --git a/packages/cli/.prettierignore b/packages/cli/.prettierignorenew file mode 100644index 00000000..30d74d25--- /dev/null+++ b/packages/cli/.prettierignore@@ -0,0 +1 @@+test\ No newline at end of filediff --git a/packages/cli/README.md b/packages/cli/README.mdnew file mode 100644index 00000000..7ffbdb06--- /dev/null+++ b/packages/cli/README.md@@ -0,0 +1,108 @@+# magicui+A CLI for adding magic ui components to your project. Superset of shadcn-ui.++```bash+ ## ## ## ## ## ####+ ### ### ## ## ##+ ####### #### ### ## ### #### ## ## ##+ ####### ## ## ## ## ## ## ## ## ##+ ## # ## ##### ## ## ## ## ## ## ##+ ## ## ## ## ##### ## ## ## ## ## ##+ ## ## ##### ## #### #### ##### ####+ #####+```+++## Usage++Use the `init` command to initialize dependencies for a new project.++The `init` command installs dependencies (`framer-motion`), adds the `cn` util, configures `tailwind.config.js`, and CSS variables for the project.++```bash+npx magicui-cli init+```+++### shadcn-ui project+If your project is already using the `shadcn-ui`, don't worry! You can still use magicui.+++```bash+npx shadcn-ui init+```++Just add these two lines to your `components,json` file:+```diff+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "default",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "tailwind.config.js",+ "css": "app/globals.css",+ "baseColor": "slate",+ "cssVariables": true+ },+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",++ "ui": "@/components/ui",++ "magicui": "@/components/magicui"+ }+}+```++## add++Use the `add` command to add components to your project.++The `add` command adds a component to your project and installs all required dependencies.++```bash+npx magicui-cli add [component]+```++### Example++```bash+npx magicui-cli add bento-grid+```++You can also use the optional `--all` flag to install all components:+```bash+npx magicui-cli add --all+```++You can also use the `--exmaple` flag to select and install example & demo you saw on webside:+```bash+npx magicui-cli add --example+```++++You can also run the command without any arguments to view a list of all available components:++```bash+npx magicui-cli add+```++## shadcn-ui++You can also use the same CLI for selecting & installing shadcn-ui components:++```bash+npx magicui-cli add --shadcn button+```+```bash+npx magicui-cli add --shadcn --all+```++## Documentation++Visit [https://magicui.design/docs/installation](https://magicui.design/docs/installation) to view the documentation.++## License++Licensed under the [MIT license](https://github.com/magicuidesign/magicui/blob/main/LICENSE.md).diff --git a/packages/cli/package.json b/packages/cli/package.jsonnew file mode 100644index 00000000..52d4c78b--- /dev/null+++ b/packages/cli/package.json@@ -0,0 +1,81 @@+{+ "name": "magicui-cli",+ "version": "0.1.2",+ "description": "Add magic ui components to your apps. Shadcn-ui based config",+ "publishConfig": {+ "access": "public"+ },+ "license": "MIT",+ "author": {+ "name": "rajatsandeepsen",+ "url": "https://twitter.com/rajatsandeepsen"+ },+ "repository": {+ "type": "git",+ "url": "https://github.com/magicuidesign/magicui",+ "directory": "packages/cli"+ },+ "files": [+ "dist"+ ],+ "keywords": [+ "components",+ "ui",+ "tailwind",+ "radix-ui",+ "shadcn",+ "magic-ui",+ "magicui",+ "framer-motion"+ ],+ "type": "module",+ "exports": "./dist/index.js",+ "bin": "./dist/index.js",+ "scripts": {+ "dev": "tsup --watch --env.COMPONENTS_REGISTRY_URL http://localhost:3000 --env.PRO_REGISTRY_URL http://localhost:3001",+ "build": "tsup --env.COMPONENTS_REGISTRY_URL https://magicui.design --env.PRO_REGISTRY_URL https://pro.magicui.design",+ "typecheck": "tsc --noEmit",+ "format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",+ "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",+ "pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",+ "pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",+ "release": "pnpm build && pnpm publish --access public",+ "test": "vitest run"+ },+ "dependencies": {+ "@antfu/ni": "^0.21.4",+ "@babel/core": "^7.22.1",+ "@babel/parser": "^7.22.6",+ "@babel/plugin-transform-typescript": "^7.22.5",+ "chalk": "5.2.0",+ "commander": "^10.0.0",+ "configstore": "^6.0.0",+ "cosmiconfig": "^8.1.3",+ "diff": "^5.1.0",+ "dotenv": "^16.4.5",+ "execa": "^7.0.0",+ "fast-glob": "^3.3.2",+ "fs-extra": "^11.1.0",+ "gradient-string": "^2.0.2",+ "https-proxy-agent": "^6.2.0",+ "lodash.template": "^4.5.0",+ "node-fetch": "^3.3.0",+ "ora": "^6.1.2",+ "prompts": "^2.4.2",+ "recast": "^0.23.2",+ "ts-morph": "^18.0.0",+ "tsconfig-paths": "^4.2.0",+ "zod": "^3.20.2"+ },+ "devDependencies": {+ "@types/babel__core": "^7.20.1",+ "@types/configstore": "^6.0.2",+ "@types/diff": "^5.0.3",+ "@types/fs-extra": "^11.0.1",+ "@types/lodash.template": "^4.5.1",+ "@types/prompts": "^2.4.2",+ "tsup": "^6.6.3",+ "type-fest": "^3.8.0",+ "typescript": "^4.9.3"+ }+}diff --git a/packages/cli/pnpm-lock.yaml b/packages/cli/pnpm-lock.yamlnew file mode 100644index 00000000..fb5a242e--- /dev/null+++ b/packages/cli/pnpm-lock.yaml@@ -0,0 +1,2476 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:++ .:+ dependencies:+ '@antfu/ni':+ specifier: ^0.21.4+ version: 0.21.12+ '@babel/core':+ specifier: ^7.22.1+ version: 7.24.6+ '@babel/parser':+ specifier: ^7.22.6+ version: 7.24.6+ '@babel/plugin-transform-typescript':+ specifier: ^7.22.5+ version: 7.24.6(@babel/[email protected])+ chalk:+ specifier: 5.2.0+ version: 5.2.0+ commander:+ specifier: ^10.0.0+ version: 10.0.1+ configstore:+ specifier: ^6.0.0+ version: 6.0.0+ cosmiconfig:+ specifier: ^8.1.3+ version: 8.3.6([email protected])+ diff:+ specifier: ^5.1.0+ version: 5.2.0+ dotenv:+ specifier: ^16.4.5+ version: 16.4.5+ execa:+ specifier: ^7.0.0+ version: 7.2.0+ fast-glob:+ specifier: ^3.3.2+ version: 3.3.2+ fs-extra:+ specifier: ^11.1.0+ version: 11.2.0+ gradient-string:+ specifier: ^2.0.2+ version: 2.0.2+ https-proxy-agent:+ specifier: ^6.2.0+ version: 6.2.1+ lodash.template:+ specifier: ^4.5.0+ version: 4.5.0+ node-fetch:+ specifier: ^3.3.0+ version: 3.3.2+ ora:+ specifier: ^6.1.2+ version: 6.3.1+ prompts:+ specifier: ^2.4.2+ version: 2.4.2+ recast:+ specifier: ^0.23.2+ version: 0.23.7+ ts-morph:+ specifier: ^18.0.0+ version: 18.0.0+ tsconfig-paths:+ specifier: ^4.2.0+ version: 4.2.0+ zod:+ specifier: ^3.20.2+ version: 3.23.8+ devDependencies:+ '@types/babel__core':+ specifier: ^7.20.1+ version: 7.20.5+ '@types/configstore':+ specifier: ^6.0.2+ version: 6.0.2+ '@types/diff':+ specifier: ^5.0.3+ version: 5.2.1+ '@types/fs-extra':+ specifier: ^11.0.1+ version: 11.0.4+ '@types/lodash.template':+ specifier: ^4.5.1+ version: 4.5.3+ '@types/prompts':+ specifier: ^2.4.2+ version: 2.4.9+ tsup:+ specifier: ^6.6.3+ version: 6.7.0([email protected])+ type-fest:+ specifier: ^3.8.0+ version: 3.13.1+ typescript:+ specifier: ^4.9.3+ version: 4.9.5++packages:++ '@ampproject/[email protected]':+ resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}+ engines: {node: '>=6.0.0'}++ '@antfu/[email protected]':+ resolution: {integrity: sha512-2aDL3WUv8hMJb2L3r/PIQWsTLyq7RQr3v9xD16fiz6O8ys1xEyLhhTOv8gxtZvJiTzjTF5pHoArvRdesGL1DMQ==}+ hasBin: true++ '@babel/[email protected]':+ resolution: {integrity: sha512-ZJhac6FkEd1yhG2AHOmfcXG4ceoLltoCVJjN5XsWN9BifBQr+cHJbWi0h68HZuSORq+3WtJ2z0hwF2NG1b5kcA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-aC2DGhBq5eEdyXWqrDInSqQjO0k8xtPRf5YylULqx8MCd6jBtzqfta/3ETMRpuKIc5hyswfO80ObyA1MvkCcUQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qAHSfAdVyFmIvl0VHELib8xar7ONuSHrE2hLnsaWkYNTI68dmi1x8GYDhJjMI/e7XWal9QBlZkwbOnkcw7Z8gQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-S7m4eNa6YAPJRHmKsLHIDJhNAGNKoWNiWefz1MBbpnt8g9lvMDl1hir4P9bo/57bQEmuwEhnRU/AMWsD0G/Fbg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-DitEzDfOMnd13kZnDqns1ccmftwJTS9DMkyn9pYTxulS7bZxUxpMly3Nf23QQ6NwA4UB8lAqjbqWtyvElEMAkg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-VZQ57UsDGlX/5fFA7GkVPplZhHsVc+vuErWgdOiysI9Ksnw0Pbbd6pnPiR/mmJyKHgyIW0c7KT32gmhiF+cirg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-djsosdPJVZE6Vsw3kk7IPRWethP94WHGOhQTc67SNXE0ZzMhHgALw8iGmYS0TD1bbMM0VDROy43od7/hN6WYcA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-Y50Cg3k0LKLMjxdPjIl40SdJgMB85iXn27Vk/qbHZCFx/o5XO3PSnpi675h1KEmmDb6OFArfd5SCQEQ5Q4H88g==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-xpeLqeeRkbxhnYimfr2PC+iA0Q7ljX/d1eZ9/inYbmfG2jpl8Lu3DyXvpOAnrS5kxkfOWJjioIMQsaMBXFI05w==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-SF/EMrC3OD7dSta1bLJIlrsVxwtd0UpjRJqLno6125epQMJ/kyFmpTT4pbvPbdQHzCHg+biQ7Syo8lnDtbR+uA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-OTsCufZTxDUsv2/eDXanw/mUZHWOxSbEmC3pP8cgjcy5rgeVPWWMStnv274DV60JtHxTk0adT0QrCzC4M9NWGg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-Y/YMPm83mV2HJTbX1Qh2sjgjqcacvOlhbzdCCsSlblOKjSYmQqEbO6rUniWQyRo9ncyfjT8hnUjlG06RXDEmcA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-3SFDJRbx7KuPRl8XDUr8O7GAEB8iGyWPjLKJh/ywP/Iy9WOmEfMrsWbaZpvBu2HSYn4KQygIsz0O7m8y10ncMA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-MZG/JcWfxybKwsA9N9PmtF2lOSFSEMVCpIRrbxccZFLJPrJciJdG/UhSh5W96GEteJI2ARqm5UAHxISwRDLSNg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-mRhfPwDqDpba8o1F8ESxsEkJMQkUF8ZIWrAc0FtWhxnjfextxMWxr22RtFizxxSYLjVHDeMgVsRq8BBZR2ikJQ==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-nZzcMMD4ZhmB35MOOzQuiGO5RzL6tJbsT37Zx8M5L/i9KSrukGXWTjLe1knIbb/RmxoJE9GON9soq0c0VEMM5g==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-jhbbkK3IUKc4T43WadP96a27oYti9gEf1LdyGSP2rHGH77kwLwfhO7TgwnWvxxQVmke0ImmCSS47vcuxEMGD3Q==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-V2PI+NqnyFu1i0GyTd/O/cTpxzQCYioSkUIRmgo7gFEHKKCg5w46+r/A6WeUR1+P3TeQ49dspGPNd/E3n9AnnA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ '@babel/[email protected]':+ resolution: {integrity: sha512-TzCtxGgVTEJWWwcYwQhCIQ6WaKlo80/B+Onsk4RRCcYqpYGFcG9etPW94VToGte5AAcxRrhjPUFvUS3Y2qKi4A==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-H0i+hDLmaYYSt6KU9cZE0gb3Cbssa/oxWis7PX4ofQzbvsfix9Lbh8SRk7LCPDlLWJHUiFeHU0qRRpF/4Zv7mQ==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-OsNjaJwT9Zn8ozxcfoBc+RaHdj3gFmCmYoQLUII1o6ZrUwku0BMg80FoOTPx+Gi6XhcQxAYE4xyjPTo4SxEQqw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ==}+ engines: {node: '>=6.9.0'}++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==}+ engines: {node: '>=12'}+ cpu: [loong64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]++ '@isaacs/[email protected]':+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}+ engines: {node: '>=12'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}+ engines: {node: '>= 8'}++ '@pkgjs/[email protected]':+ resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}+ engines: {node: '>=14'}++ '@ts-morph/[email protected]':+ resolution: {integrity: sha512-Unz/WHmd4pGax91rdIKWi51wnVUW11QttMEPpBiBgIewnc9UQIX7UDLxr5vRlqeByXCwhkF6VabSsI0raWcyAQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}++ '@types/[email protected]':+ resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-OS//b51j9uyR3zvwD04Kfs5kHpve2qalQ18JhY/ho3voGYUTPLEG90/ocfKPI48hyHH8T04f7KEEbK6Ue60oZQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-uxpcuwWJGhe2AR1g8hD9F5OYGCqjqWnBUQFD8gMZsDbv8oPHzxJF6iMO6n8Tk0AdzlxoaaoQhOYlIg/PukVU8g==}++ '@types/[email protected]':+ resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-Mo0UYKLu1oXgkV9TVoXZLlXXjyIXlW7ZQRxi/4gQJmzJr63dmicE8gG0OkPjYTKBrBic852q0JzqrtNUWLBIyA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-wYCP26ZLxaT3R39kiN2+HcJ4kTd3U1waI/cY7ivWYqFP6pW3ZNpvi6Wd6PHZx7T/t8z0vlkXMg3QYLa7DZ/IJQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==}++ resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}++ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}++ resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}++ resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}++ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==}++ resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}++ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true++ resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}++ resolution: {integrity: sha512-FeArRFM+ziGkRViKRnSTbHZc35dgmR9yNog05Kn0+ItI59pOAISGvnnIwW1WgFZQW59IxD9QpJnUPkdIPfZuXg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ peerDependencies:+ esbuild: '>=0.17'++ resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==}++ resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==}+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}++ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}+ engines: {node: '>= 8.10.0'}++ resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==}+ engines: {node: '>=0.8'}++ resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==}++ resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}++ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}+ engines: {node: '>=7.0.0'}++ resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}++ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}++ resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}++ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}+ engines: {node: '>=14'}+ peerDependencies:+ typescript: '>=4.9.5'+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}+ engines: {node: '>= 12'}++ resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true++ resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}++ resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==}+ engines: {node: '>=0.3.1'}++ resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}++ resolution: {integrity: sha512-bT0jEz/Xz1fahQpbZ1D7LgmPYZ3iHVY39NcWWro1+hA2IvjiPeaXtfSqrQ+nXjApMvQRE2ASt1itSLRrebHMRQ==}++ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}++ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}++ resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}++ resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==}+ engines: {node: '>=12'}+ hasBin: true++ resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}+ engines: {node: '>=0.8.0'}++ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==}+ engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}++ resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}+ engines: {node: '>=8.6.0'}++ resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==}++ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}+ engines: {node: ^12.20 || >= 14.13}++ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}+ engines: {node: '>=12.20.0'}++ resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==}+ engines: {node: '>=14.14'}++ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]++ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}+ engines: {node: '>=6.9.0'}++ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==}+ engines: {node: '>=16 || 14 >=14.18'}+ hasBin: true++ resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}++ resolution: {integrity: sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ONsE3+yfZF2caH5+bJlcddtWqNI3Gvs5A38+ngvljxaBiRXRswym2c7yf8UAeFpRFKjFNHIFEHqR/OLAWJzyiA==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}+ engines: {node: '>=10.17.0'}++ resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}+ engines: {node: '>=14.18.0'}++ resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}++ resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}+ engines: {node: '>=0.8.19'}++ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}++ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}++ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}+ engines: {node: '>=0.12.0'}++ resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}++ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}++ resolution: {integrity: sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}++ resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}+ hasBin: true++ resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}++ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}+ engines: {node: '>=6'}+ hasBin: true++ resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}++ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}++ resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==}++ resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}++ resolution: {integrity: sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==}++ resolution: {integrity: sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==}++ resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==}+ engines: {node: 14 || >=16.14}++ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}++ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}++ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}+ engines: {node: '>=16 || 14 >=14.17'}++ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}++ resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}+ engines: {node: '>=16 || 14 >=14.17'}++ resolution: {integrity: sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}++ resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}++ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}+ engines: {node: '>=10.5.0'}++ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}++ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}++ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}+ engines: {node: '>=16 || 14 >=14.18'}++ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}++ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}+ engines: {node: '>= 10'}+ peerDependencies:+ postcss: '>=8.0.9'+ ts-node: '>=9.0.0'+ peerDependenciesMeta:+ postcss:+ optional: true+ ts-node:+ optional: true++ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}++ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}+ engines: {node: '>=8.10.0'}++ resolution: {integrity: sha512-MpQlLZVpqbbxYcqEjwpRWo88sGvjOYoXptySz710RuddNMHx+wPkoNX6YyLZJlXAh5VZr1qmPrTwcTuFMh0Lag==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}++ resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==}+ engines: {node: '>=14.18.0', npm: '>=8.0.0'}+ hasBin: true++ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}++ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}++ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}+ hasBin: true++ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}++ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}++ resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}++ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}+ engines: {node: '>=16 || 14 >=14.17'}+ hasBin: true++ resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}+ engines: {node: '>=0.8'}++ resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}++ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}++ resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==}++ resolution: {integrity: sha512-8nIfc2vgQ4TeLnk2lFj4tRLvvJwEfQuabdsmvDdQPT0xlk9TaNtpGd6nNRxXoK6vQhN6RSzj+Cnp5tTQmpxmbw==}++ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}+ engines: {node: '>=8.0'}++ resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}++ resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}+ hasBin: true++ resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}++ resolution: {integrity: sha512-Kg5u0mk19PIIe4islUI/HWRvm9bC1lHejK4S0oh1zaZ77TMZAEmQC0sHQYiu2RgCQFZKXz1fMVi/7nOOeirznA==}++ resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}++ resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==}+ engines: {node: '>=14.18'}+ hasBin: true+ peerDependencies:+ '@swc/core': ^1+ postcss: ^8.4.12+ typescript: '>=4.1.0'+ peerDependenciesMeta:+ '@swc/core':+ optional: true+ postcss:+ optional: true+ typescript:+ optional: true++ resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}++ resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}+ engines: {node: '>=4.2.0'}+ hasBin: true++ resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}++ resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}+ engines: {node: '>= 10.0.0'}++ resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==}+ hasBin: true+ peerDependencies:+ browserslist: '>= 4.21.0'++ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}++ resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}++ resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}++ resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}++ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}+ engines: {node: '>= 8'}+ hasBin: true++ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==}++ resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}++ resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}++snapshots:++ '@ampproject/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.5+ '@jridgewell/trace-mapping': 0.3.25++ '@antfu/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/highlight': 7.24.6+ picocolors: 1.0.1++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@ampproject/remapping': 2.3.0+ '@babel/code-frame': 7.24.6+ '@babel/generator': 7.24.6+ '@babel/helper-compilation-targets': 7.24.6+ '@babel/helper-module-transforms': 7.24.6(@babel/[email protected])+ '@babel/helpers': 7.24.6+ '@babel/parser': 7.24.6+ '@babel/template': 7.24.6+ '@babel/traverse': 7.24.6+ '@babel/types': 7.24.6+ convert-source-map: 2.0.0+ debug: 4.3.4+ gensync: 1.0.0-beta.2+ json5: 2.2.3+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6+ '@jridgewell/gen-mapping': 0.3.5+ '@jridgewell/trace-mapping': 0.3.25+ jsesc: 2.5.2++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/compat-data': 7.24.6+ '@babel/helper-validator-option': 7.24.6+ browserslist: 4.23.0+ lru-cache: 5.1.1+ semver: 6.3.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.24.6+ '@babel/helper-annotate-as-pure': 7.24.6+ '@babel/helper-environment-visitor': 7.24.6+ '@babel/helper-function-name': 7.24.6+ '@babel/helper-member-expression-to-functions': 7.24.6+ '@babel/helper-optimise-call-expression': 7.24.6+ '@babel/helper-replace-supers': 7.24.6(@babel/[email protected])+ '@babel/helper-skip-transparent-expression-wrappers': 7.24.6+ '@babel/helper-split-export-declaration': 7.24.6+ semver: 6.3.1++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/template': 7.24.6+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.24.6+ '@babel/helper-environment-visitor': 7.24.6+ '@babel/helper-module-imports': 7.24.6+ '@babel/helper-simple-access': 7.24.6+ '@babel/helper-split-export-declaration': 7.24.6+ '@babel/helper-validator-identifier': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]': {}++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.24.6+ '@babel/helper-environment-visitor': 7.24.6+ '@babel/helper-member-expression-to-functions': 7.24.6+ '@babel/helper-optimise-call-expression': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/template': 7.24.6+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.24.6+ chalk: 2.4.2+ js-tokens: 4.0.0+ picocolors: 1.0.1++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.24.6+ '@babel/helper-plugin-utils': 7.24.6++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.24.6+ '@babel/helper-annotate-as-pure': 7.24.6+ '@babel/helper-create-class-features-plugin': 7.24.6(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.24.6+ '@babel/plugin-syntax-typescript': 7.24.6(@babel/[email protected])++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.24.6+ '@babel/parser': 7.24.6+ '@babel/types': 7.24.6++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.24.6+ '@babel/generator': 7.24.6+ '@babel/helper-environment-visitor': 7.24.6+ '@babel/helper-function-name': 7.24.6+ '@babel/helper-hoist-variables': 7.24.6+ '@babel/helper-split-export-declaration': 7.24.6+ '@babel/parser': 7.24.6+ '@babel/types': 7.24.6+ debug: 4.3.4+ globals: 11.12.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.24.6+ '@babel/helper-validator-identifier': 7.24.6+ to-fast-properties: 2.0.0++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@isaacs/[email protected]':+ dependencies:+ string-width: 5.1.2+ string-width-cjs: [email protected]+ strip-ansi: 7.1.0+ strip-ansi-cjs: [email protected]+ wrap-ansi: 8.1.0+ wrap-ansi-cjs: [email protected]++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/set-array': 1.2.1+ '@jridgewell/sourcemap-codec': 1.4.15+ '@jridgewell/trace-mapping': 0.3.25++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.4.15++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.stat': 2.0.5+ run-parallel: 1.2.0++ '@nodelib/[email protected]': {}++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.scandir': 2.1.5+ fastq: 1.17.1++ '@pkgjs/[email protected]':+ optional: true++ '@ts-morph/[email protected]':+ dependencies:+ fast-glob: 3.3.2+ minimatch: 7.4.6+ mkdirp: 2.1.6+ path-browserify: 1.0.1++ '@types/[email protected]':+ dependencies:+ '@babel/parser': 7.24.6+ '@babel/types': 7.24.6+ '@types/babel__generator': 7.6.8+ '@types/babel__template': 7.4.4+ '@types/babel__traverse': 7.20.6++ '@types/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@types/[email protected]':+ dependencies:+ '@babel/parser': 7.24.6+ '@babel/types': 7.24.6++ '@types/[email protected]':+ dependencies:+ '@babel/types': 7.24.6++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/jsonfile': 6.1.4+ '@types/node': 20.12.12++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.12.12++ '@types/[email protected]':+ dependencies:+ '@types/lodash': 4.17.4++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ undici-types: 5.26.5++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.12.12+ kleur: 3.0.3++ '@types/[email protected]': {}++ dependencies:+ debug: 4.3.4+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-convert: 1.9.3++ dependencies:+ color-convert: 2.0.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ normalize-path: 3.0.0+ picomatch: 2.3.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ tslib: 2.6.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ buffer: 6.0.3+ inherits: 2.0.4+ readable-stream: 3.6.2++ dependencies:+ balanced-match: 1.0.2++ dependencies:+ fill-range: 7.1.1++ dependencies:+ caniuse-lite: 1.0.30001621+ electron-to-chromium: 1.4.783+ node-releases: 2.0.14+ update-browserslist-db: 1.0.16([email protected])++ dependencies:+ base64-js: 1.5.1+ ieee754: 1.2.1++ dependencies:+ esbuild: 0.17.19+ load-tsconfig: 0.2.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ ansi-styles: 3.2.1+ escape-string-regexp: 1.0.5+ supports-color: 5.5.0++ dependencies:+ ansi-styles: 4.3.0+ supports-color: 7.2.0++ [email protected]: {}++ dependencies:+ anymatch: 3.1.3+ braces: 3.0.3+ glob-parent: 5.1.2+ is-binary-path: 2.1.0+ is-glob: 4.0.3+ normalize-path: 3.0.0+ readdirp: 3.6.0+ optionalDependencies:+ fsevents: 2.3.3++ dependencies:+ restore-cursor: 4.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-name: 1.1.3++ dependencies:+ color-name: 1.1.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ dot-prop: 6.0.1+ graceful-fs: 4.2.11+ unique-string: 3.0.0+ write-file-atomic: 3.0.3+ xdg-basedir: 5.1.0++ [email protected]: {}++ dependencies:+ import-fresh: 3.3.0+ js-yaml: 4.1.0+ parse-json: 5.2.0+ path-type: 4.0.0+ optionalDependencies:+ typescript: 4.9.5++ dependencies:+ path-key: 3.1.1+ shebang-command: 2.0.0+ which: 2.0.2++ dependencies:+ type-fest: 1.4.0++ [email protected]: {}++ dependencies:+ ms: 2.1.2++ dependencies:+ clone: 1.0.4++ [email protected]: {}++ dependencies:+ path-type: 4.0.0++ dependencies:+ is-obj: 2.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-arrayish: 0.2.1++ optionalDependencies:+ '@esbuild/android-arm': 0.17.19+ '@esbuild/android-arm64': 0.17.19+ '@esbuild/android-x64': 0.17.19+ '@esbuild/darwin-arm64': 0.17.19+ '@esbuild/darwin-x64': 0.17.19+ '@esbuild/freebsd-arm64': 0.17.19+ '@esbuild/freebsd-x64': 0.17.19+ '@esbuild/linux-arm': 0.17.19+ '@esbuild/linux-arm64': 0.17.19+ '@esbuild/linux-ia32': 0.17.19+ '@esbuild/linux-loong64': 0.17.19+ '@esbuild/linux-mips64el': 0.17.19+ '@esbuild/linux-ppc64': 0.17.19+ '@esbuild/linux-riscv64': 0.17.19+ '@esbuild/linux-s390x': 0.17.19+ '@esbuild/linux-x64': 0.17.19+ '@esbuild/netbsd-x64': 0.17.19+ '@esbuild/openbsd-x64': 0.17.19+ '@esbuild/sunos-x64': 0.17.19+ '@esbuild/win32-arm64': 0.17.19+ '@esbuild/win32-ia32': 0.17.19+ '@esbuild/win32-x64': 0.17.19++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ cross-spawn: 7.0.3+ get-stream: 6.0.1+ human-signals: 2.1.0+ is-stream: 2.0.1+ merge-stream: 2.0.0+ npm-run-path: 4.0.1+ onetime: 5.1.2+ signal-exit: 3.0.7+ strip-final-newline: 2.0.0++ dependencies:+ cross-spawn: 7.0.3+ get-stream: 6.0.1+ human-signals: 4.3.1+ is-stream: 3.0.0+ merge-stream: 2.0.0+ npm-run-path: 5.3.0+ onetime: 6.0.0+ signal-exit: 3.0.7+ strip-final-newline: 3.0.0++ dependencies:+ '@nodelib/fs.stat': 2.0.5+ '@nodelib/fs.walk': 1.2.8+ glob-parent: 5.1.2+ merge2: 1.4.1+ micromatch: 4.0.7++ dependencies:+ reusify: 1.0.4++ dependencies:+ node-domexception: 1.0.0+ web-streams-polyfill: 3.3.3++ dependencies:+ to-regex-range: 5.0.1++ dependencies:+ cross-spawn: 7.0.3+ signal-exit: 4.1.0++ dependencies:+ fetch-blob: 3.2.0++ dependencies:+ graceful-fs: 4.2.11+ jsonfile: 6.1.0+ universalify: 2.0.1++ optional: true++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-glob: 4.0.3++ dependencies:+ foreground-child: 3.1.1+ jackspeak: 3.1.2+ minimatch: 9.0.4+ minipass: 7.1.2+ path-scurry: 1.11.1++ [email protected]: {}++ dependencies:+ array-union: 2.1.0+ dir-glob: 3.0.1+ fast-glob: 3.3.2+ ignore: 5.3.1+ merge2: 1.4.1+ slash: 3.0.0++ [email protected]: {}++ dependencies:+ chalk: 4.1.2+ tinygradient: 1.1.5++ [email protected]: {}++ [email protected]: {}++ dependencies:+ agent-base: 7.1.1+ debug: 4.3.4+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ parent-module: 1.0.1+ resolve-from: 4.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ binary-extensions: 2.3.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-extglob: 2.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@isaacs/cliui': 8.0.2+ optionalDependencies:+ '@pkgjs/parseargs': 0.11.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ argparse: 2.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ universalify: 2.0.1+ optionalDependencies:+ graceful-fs: 4.2.11++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lodash._reinterpolate: 3.0.0+ lodash.templatesettings: 4.2.0++ dependencies:+ lodash._reinterpolate: 3.0.0++ dependencies:+ chalk: 5.2.0+ is-unicode-supported: 1.3.0++ [email protected]: {}++ dependencies:+ yallist: 3.1.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ braces: 3.0.3+ picomatch: 2.3.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ brace-expansion: 2.0.1++ dependencies:+ brace-expansion: 2.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ any-promise: 1.3.0+ object-assign: 4.1.1+ thenify-all: 1.6.0++ [email protected]: {}++ dependencies:+ data-uri-to-buffer: 4.0.1+ fetch-blob: 3.2.0+ formdata-polyfill: 4.0.10++ [email protected]: {}++ [email protected]: {}++ dependencies:+ path-key: 3.1.1++ dependencies:+ path-key: 4.0.0++ [email protected]: {}++ dependencies:+ mimic-fn: 2.1.0++ dependencies:+ mimic-fn: 4.0.0++ dependencies:+ chalk: 5.2.0+ cli-cursor: 4.0.0+ cli-spinners: 2.9.2+ is-interactive: 2.0.0+ is-unicode-supported: 1.3.0+ log-symbols: 5.1.0+ stdin-discarder: 0.1.0+ strip-ansi: 7.1.0+ wcwidth: 1.0.1++ dependencies:+ callsites: 3.1.0++ dependencies:+ '@babel/code-frame': 7.24.6+ error-ex: 1.3.2+ json-parse-even-better-errors: 2.3.1+ lines-and-columns: 1.2.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lru-cache: 10.2.2+ minipass: 7.1.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lilconfig: 2.1.0+ yaml: 1.10.2++ dependencies:+ kleur: 3.0.3+ sisteransi: 1.0.5++ [email protected]: {}++ [email protected]: {}++ dependencies:+ inherits: 2.0.4+ string_decoder: 1.3.0+ util-deprecate: 1.0.2++ dependencies:+ picomatch: 2.3.1++ dependencies:+ ast-types: 0.16.1+ esprima: 4.0.1+ source-map: 0.6.1+ tiny-invariant: 1.3.3+ tslib: 2.6.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ onetime: 5.1.2+ signal-exit: 3.0.7++ [email protected]: {}++ optionalDependencies:+ fsevents: 2.3.3++ dependencies:+ queue-microtask: 1.2.3++ [email protected]: {}++ [email protected]: {}++ dependencies:+ shebang-regex: 3.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ whatwg-url: 7.1.0++ dependencies:+ bl: 5.1.0++ dependencies:+ emoji-regex: 8.0.0+ is-fullwidth-code-point: 3.0.0+ strip-ansi: 6.0.1++ dependencies:+ eastasianwidth: 0.2.0+ emoji-regex: 9.2.2+ strip-ansi: 7.1.0++ dependencies:+ safe-buffer: 5.2.1++ dependencies:+ ansi-regex: 5.0.1++ dependencies:+ ansi-regex: 6.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@jridgewell/gen-mapping': 0.3.5+ commander: 4.1.1+ glob: 10.4.1+ lines-and-columns: 1.2.4+ mz: 2.7.0+ pirates: 4.0.6+ ts-interface-checker: 0.1.13++ dependencies:+ has-flag: 3.0.0++ dependencies:+ has-flag: 4.0.0++ dependencies:+ thenify: 3.3.1++ dependencies:+ any-promise: 1.3.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/tinycolor2': 1.4.6+ tinycolor2: 1.6.0++ [email protected]: {}++ dependencies:+ is-number: 7.0.0++ dependencies:+ punycode: 2.3.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@ts-morph/common': 0.19.0+ code-block-writer: 12.0.0++ dependencies:+ json5: 2.2.3+ minimist: 1.2.8+ strip-bom: 3.0.0++ [email protected]: {}++ dependencies:+ bundle-require: 4.1.0([email protected])+ cac: 6.7.14+ chokidar: 3.6.0+ debug: 4.3.4+ esbuild: 0.17.19+ execa: 5.1.1+ globby: 11.1.0+ joycon: 3.1.1+ postcss-load-config: 3.1.4+ resolve-from: 5.0.0+ rollup: 3.29.4+ source-map: 0.8.0-beta.0+ sucrase: 3.35.0+ tree-kill: 1.2.2+ optionalDependencies:+ typescript: 4.9.5+ transitivePeerDependencies:+ - supports-color+ - ts-node++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-typedarray: 1.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ crypto-random-string: 4.0.0++ [email protected]: {}++ dependencies:+ browserslist: 4.23.0+ escalade: 3.1.2+ picocolors: 1.0.1++ [email protected]: {}++ dependencies:+ defaults: 1.0.4++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lodash.sortby: 4.7.0+ tr46: 1.0.1+ webidl-conversions: 4.0.2++ dependencies:+ isexe: 2.0.0++ dependencies:+ ansi-styles: 4.3.0+ string-width: 4.2.3+ strip-ansi: 6.0.1++ dependencies:+ ansi-styles: 6.2.1+ string-width: 5.1.2+ strip-ansi: 7.1.0++ dependencies:+ imurmurhash: 0.1.4+ is-typedarray: 1.0.0+ signal-exit: 3.0.7+ typedarray-to-buffer: 3.1.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.tsnew file mode 100644index 00000000..a4c19e31--- /dev/null+++ b/packages/cli/src/commands/add.ts@@ -0,0 +1,306 @@+import { existsSync, promises as fs } from "fs";+import path from "path";+import { getConfig } from "@/src/utils/get-config";+import { getPackageManager } from "@/src/utils/get-package-manager";+import { handleError } from "@/src/utils/handle-error";+import {+ logger,+ tryPro,+ hasPro,+ ASCII_TEXT,+ ASCII_PRO,+ ColorFullText,+} from "@/src/utils/logger";+import {+ fetchTree,+ fetchTreeFromShadcn,+ getItemTargetPath,+ getRegistryBaseColor,+ getRegistryIndexShadcn,+ getRegistryIndexMagicUI,+ resolveTree,+ resolveTreeWithShadcn,+} from "@/src/utils/registry";+import { transform } from "@/src/utils/transformers";+import chalk from "chalk";+import { Command } from "commander";+import { execa } from "execa";+import ora from "ora";+import prompts from "prompts";+import { z } from "zod";+import { getEnv, parseEnvFile } from "../utils/get-env";++const addOptionsSchema = z.object({+ components: z.array(z.string()).optional(),+ yes: z.boolean(),+ overwrite: z.boolean(),+ cwd: z.string(),+ all: z.boolean(),+ pro: z.boolean(),+ example: z.boolean(),+ shadcn: z.boolean(),+ path: z.string().optional(),+});++const MAGICUI_PRO_ENV = getEnv();++export const add = new Command()+ .name("add")+ .description("Add ui components to your project")+ .argument("[components...]", "the components to add")+ .option("-y, --yes", "skip confirmation prompt.", true)+ .option("-o, --overwrite", "overwrite existing files.", false)+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd(),+ )+ .option("-a, --all", "add all available components", false)+ .option(+ "-m, --pro",+ "include pro magic-ui blocks & components (make sure to add your secret .env)",+ false,+ )+ .addHelpText("after", ColorFullText(MAGICUI_PRO_ENV ? hasPro : tryPro))+ .option("-e, --example", "include available examples & demos", false)+ .option("-s, --shadcn", "include available components from shadcn-ui", false)+ .option("-p, --path <path>", "the path to add the component to.")+ .action(async (components, opts) => {+ console.log(+ MAGICUI_PRO_ENV ? ASCII_PRO : ASCII_TEXT,+ ColorFullText(+ !MAGICUI_PRO_ENV+ ? tryPro+ : hasPro,+ ),+ );+ try {+ const options = addOptionsSchema.parse({+ components,+ ...opts,+ });++ const cwd = path.resolve(options.cwd);++ if (!existsSync(cwd)) {+ logger.error(`The path ${cwd} does not exist. Please try again.`);+ process.exit(1);+ }++ const config = await getConfig(cwd);+ if (!config) {+ logger.warn(+ `Configuration is missing. Please run ${chalk.green(+ `init`,+ )} to create a components.json file.`,+ );+ process.exit(1);+ }++ if (options.pro && !MAGICUI_PRO_ENV) {+ logger.warn("You're not authenticated to add Magic UI Pro components")+ return+ }++ const registryIndex = !options.shadcn+ ? (await getRegistryIndexMagicUI(options.pro))+ : [];+ const shadcnRegistryIndex = await getRegistryIndexShadcn();++ let selectedComponents = options.all+ ? (options.shadcn ? shadcnRegistryIndex : registryIndex).map(+ (entry) => entry.name,+ )+ : options.components;++ if (!options.components?.length && !options.all) {+ const filterIndex = (): typeof registryIndex => registryIndex.filter((e) => {+ const type = e.type.split(":")[1] as string+ if (options.pro)+ return type === "blocks"++ if (options.example)+ return type === "example"++ return type === "magicui"+ })++ const multiselectChoice = options.shadcn ? shadcnRegistryIndex : filterIndex();+ const { components } = await prompts({+ type: "multiselect",+ name: "components",+ message: "Which components would you like to add?",+ hint: "Space to select. A to toggle all. Enter to submit.",+ instructions: false,+ choices: multiselectChoice.map(+ (entry) => ({+ title: entry.name,+ value: entry.name,+ selected: options.all+ ? true+ : options.components?.includes(entry.name),+ }),+ ),+ });+ selectedComponents = components;+ }++ if (!selectedComponents?.length) {+ logger.warn("No components selected. Exiting.");+ process.exit(0);+ }++ // const tree = await resolveTree(registryIndex, selectedComponents)+ const { magicuiTree, shadcnTree } = await resolveTreeWithShadcn(+ shadcnRegistryIndex,+ registryIndex,+ selectedComponents,+ options.shadcn,+ );++ const magicuiPayload = await fetchTree(magicuiTree, MAGICUI_PRO_ENV);+ const shadcnPayload = await fetchTreeFromShadcn(config.style, shadcnTree);+ const baseColor = await getRegistryBaseColor(config.tailwind.baseColor);++ if (!magicuiPayload.length && !shadcnPayload.length) {+ logger.warn("Selected components not found. Exiting.");+ process.exit(0);+ } else {+ magicuiPayload.length !== 0 &&+ logger.info(`Found ${magicuiPayload.length}x Magic UI components.`);+ shadcnPayload.length !== 0 &&+ logger.info(`Found ${shadcnPayload.length}x Shadcn UI components.`);+ }++ const totalPayload = [...magicuiPayload, ...shadcnPayload];++ if (!options.yes) {+ const { proceed } = await prompts({+ type: "confirm",+ name: "proceed",+ message: `Ready to install components and dependencies. Proceed?`,+ initial: true,+ });++ if (!proceed) {+ process.exit(0);+ }+ }++ const spinner = ora(`Installing components...`).start();+ for (const item of totalPayload) {+ spinner.text = `Installing ${item.name}...`;+ const targetDir = await getItemTargetPath(+ config,+ item,+ options.path ? path.resolve(cwd, options.path) : undefined,+ );++ if (!targetDir) {+ continue;+ }++ if (!existsSync(targetDir)) {+ await fs.mkdir(targetDir, { recursive: true });+ }++ const existingComponent = item.files.filter((file) =>+ existsSync(path.resolve(targetDir, file.name)),+ );++ if (existingComponent.length && !options.overwrite) {+ if (selectedComponents.includes(item.name)) {+ spinner.stop();+ const { overwrite } = await prompts({+ type: "confirm",+ name: "overwrite",+ message: `Component ${item.name} already exists. Would you like to overwrite?`,+ initial: false,+ });++ if (!overwrite) {+ logger.info(+ `Skipped ${item.name}. To overwrite, run with the ${chalk.green(+ "--overwrite",+ )} flag.`,+ );+ continue;+ }++ spinner.start(`Installing ${item.name}...`);+ } else {+ continue;+ }+ }++ for (const file of item.files) {+ let filePath = path.resolve(targetDir, file.name);++ // Run transformers.+ const content = await transform({+ filename: file.name,+ raw: file.content,+ config,+ baseColor,+ });++ if (!config.tsx) {+ filePath = filePath.replace(/\.tsx$/, ".jsx");+ filePath = filePath.replace(/\.ts$/, ".js");+ }++ await fs.writeFile(filePath, content);+ }++ const packageManager = await getPackageManager(cwd);++ // Install dependencies.+ if (item.dependencies?.length) {+ try {+ await execa(+ packageManager,+ [+ packageManager === "npm" ? "install" : "add",+ ...item.dependencies,+ ],+ {+ cwd,+ },+ );+ } catch (error) {+ logger.warn(+ `\nFailed to install dependencies for ${item.name+ }.\n\t-${item.dependencies.join("\n\t- ")}\n\nReason: ${error}`,+ );+ }+ }++ // Install devDependencies.+ if (item.devDependencies?.length) {+ try {+ await execa(+ packageManager,+ [+ packageManager === "npm" ? "install" : "add",+ "-D",+ ...item.devDependencies,+ ],+ {+ cwd,+ },+ );+ } catch (error) {+ logger.warn(+ `\nFailed to install devDependencies for ${item.name+ }.\n\t-${item.devDependencies.join(+ "\n\t- ",+ )}\n\nReason: ${error}`,+ );+ }+ }+ }+ spinner.succeed(`Done.`);+ } catch (error) {+ handleError(error);+ }+ });diff --git a/packages/cli/src/commands/auth.ts b/packages/cli/src/commands/auth.tsnew file mode 100644index 00000000..7bcccd91--- /dev/null+++ b/packages/cli/src/commands/auth.ts@@ -0,0 +1,68 @@+import { Command } from "commander";+import { clearAll, getEnv, login } from "../utils/get-env";+import {+ ASCII_TEXT,+ ASCII_PRO,+ ColorFullText,+ tryPro,+ hasPro,+ authMessage,+} from "../utils/logger";+import { z } from "zod";+import prompts from "prompts";++const optionSchema = z.object({+ clear: z.boolean(),+ login: z.string().optional(),+});++const MAGICUI_PRO_ENV = getEnv();++export const auth = new Command()+ .addHelpText("before", MAGICUI_PRO_ENV ? ASCII_PRO : ASCII_TEXT)+ .name("auth")+ .description("For the Magic UI Pro Users. Authenticate your account.")+ .option("-l, --login <env>", "the secret env to authenticate.")+ .option("-d, --clear", "clear the auth secrets.", false)+ .action(async (opts) => {+ const options = optionSchema.parse(opts);++ switch (true) {+ case options.clear: {++ const isClear = await prompts({+ type: "confirm",+ name: "value",+ message: "Are you sure you want to log out and clear the auth secrets?",+ choices: [+ { title: "Yes", value: true },+ { title: "No", value: false },+ ]+ })++ if (isClear.value) {+ clearAll()+ console.log("Logged out ✅")+ }++ break;+ }+ case options.login !== undefined: {+ const isLogined = await login(options.login)+ if (isLogined) {+ console.log(ColorFullText(hasPro))+ }+ break;+ }+ default: {+ console.log(+ MAGICUI_PRO_ENV ? ASCII_PRO : ASCII_TEXT,+ ColorFullText(+ !MAGICUI_PRO_ENV+ ? authMessage+ : hasPro,+ ),+ );+ }+ }+ });diff --git a/packages/cli/src/commands/diff.ts b/packages/cli/src/commands/diff.tsnew file mode 100644index 00000000..29beb4be--- /dev/null+++ b/packages/cli/src/commands/diff.ts@@ -0,0 +1,261 @@+import { existsSync, promises as fs } from "fs";+import path from "path";+import { Config, getConfig } from "@/src/utils/get-config";+import { handleError } from "@/src/utils/handle-error";+import { logger } from "@/src/utils/logger";+import {+ fetchTree,+ fetchTreeFromShadcn,+ getItemTargetPath,+ getRegistryBaseColor,+ getRegistryIndexShadcn,+ getRegistryIndexMagicUI,+} from "@/src/utils/registry";+import { registryIndexSchema } from "@/src/utils/registry/schema";+import { transform } from "@/src/utils/transformers";+import chalk from "chalk";+import { Command } from "commander";+import { diffLines, type Change } from "diff";+import { z } from "zod";++const updateOptionsSchema = z.object({+ component: z.string().optional(),+ yes: z.boolean(),+ cwd: z.string(),+ path: z.string().optional(),+});++export const diff = new Command()+ .name("diff")+ .description("Check for updates against the registry")+ .argument("[component]", "the component name")+ .option("-y, --yes", "skip confirmation prompt.", false)+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd(),+ )+ .action(async (name, opts) => {+ try {+ const options = updateOptionsSchema.parse({+ component: name,+ ...opts,+ });++ const cwd = path.resolve(options.cwd);++ if (!existsSync(cwd)) {+ logger.error(`The path ${cwd} does not exist. Please try again.`);+ process.exit(1);+ }++ const config = await getConfig(cwd);+ if (!config) {+ logger.warn(+ `Configuration is missing. Please run ${chalk.green(+ `init`,+ )} to create a components.json file.`,+ );+ process.exit(1);+ }++ const registryIndex = await getRegistryIndexMagicUI();+ const shadcnRegistryIndex = await getRegistryIndexShadcn();++ if (!options.component) {+ const targetDir = config.resolvedPaths.components;++ // Find all components that exist in the project.+ const projectComponents = registryIndex.filter((item) => {+ for (const file of item.files) {+ const filePath = path.resolve(targetDir, file);+ if (existsSync(filePath)) {+ return true;+ }+ }++ return false;+ });++ const projectShadcnComponents = shadcnRegistryIndex.filter((item) => {+ for (const file of item.files) {+ const filePath = path.resolve(targetDir, file);+ if (existsSync(filePath)) {+ return true;+ }+ }++ return false;+ });++ // Check for updates.+ const componentsWithUpdates = [];+ for (const component of projectComponents) {+ const changes = await diffComponent(component, config);+ if (changes.length) {+ componentsWithUpdates.push({+ name: component.name,+ changes,+ });+ }+ }++ // Check for updates in shadcn primitives.+ const componentsShadcnWithUpdates = [];+ for (const component of projectShadcnComponents) {+ const changes = await diffComponent(component, config, true);+ if (changes.length) {+ componentsShadcnWithUpdates.push({+ name: component.name,+ changes,+ });+ }+ }++ if (!componentsWithUpdates.length && !componentsWithUpdates.length) {+ logger.info("No updates found.");+ process.exit(0);+ }++ if (!componentsWithUpdates.length) {+ logger.info("No updates found on Magic UI.");+ }++ if (!componentsShadcnWithUpdates.length) {+ logger.info("No updates found on Shadcn UI.");+ }++ logger.info("The following components have updates available:");+ for (const component of componentsWithUpdates) {+ logger.info(`- ${component.name}`);+ for (const change of component.changes) {+ logger.info(` - ${change.filePath}`);+ }+ }++ for (const component of componentsShadcnWithUpdates) {+ logger.info(`- ${component.name}`);+ for (const change of component.changes) {+ logger.info(` - ${change.filePath}`);+ }+ }++ logger.break();+ logger.info(+ `Run ${chalk.green(`diff <component>`)} to see the changes.`,+ );+ process.exit(0);+ }++ // Show diff for a single component.+ const component = registryIndex.find(+ (item) => item.name === options.component,+ );++ const shadcnComponent = shadcnRegistryIndex.find(+ (item) => item.name === options.component,+ );++ if (!component && !shadcnComponent) {+ logger.error(+ `The component ${chalk.green(options.component)} does not exist.`,+ );+ process.exit(1);+ }++ if (component) {+ const changes = await diffComponent(component, config);++ if (!changes.length) {+ logger.info(`No updates found for ${options.component}.`);+ } else {+ for (const change of changes) {+ logger.info(`- ${change.filePath}`);+ await printDiff(change.patch);+ logger.info("");+ }+ }+ }++ if (shadcnComponent) {+ const changes = await diffComponent(shadcnComponent, config, true);++ if (!changes.length) {+ logger.info(`No updates found for ${options.component}.`);+ } else {+ for (const change of changes) {+ logger.info(`- ${change.filePath}`);+ await printDiff(change.patch);+ logger.info("");+ }+ }+ }+ } catch (error) {+ console.log(error);+ handleError(error);+ }+ });++async function diffComponent(+ component: z.infer<typeof registryIndexSchema>[number],+ config: Config,+ shadcn = false,+) {+ const payload = await (shadcn+ ? fetchTreeFromShadcn(config.style, [component])+ : fetchTree([component]));+ const baseColor = await getRegistryBaseColor(config.tailwind.baseColor);++ const changes = [];++ for (const item of payload) {+ const targetDir = await getItemTargetPath(config, item);++ if (!targetDir) {+ continue;+ }++ for (const file of item.files) {+ const filePath = path.resolve(targetDir, file.name);++ if (!existsSync(filePath)) {+ continue;+ }++ const fileContent = await fs.readFile(filePath, "utf8");++ const registryContent = await transform({+ filename: file.name,+ raw: file.content,+ config,+ baseColor,+ });++ const patch = diffLines(registryContent as string, fileContent);+ if (patch.length > 1) {+ changes.push({+ file: file.name,+ filePath,+ patch,+ });+ }+ }+ }++ return changes;+}++async function printDiff(diff: Change[]) {+ diff.forEach((part) => {+ if (part) {+ if (part.added) {+ return process.stdout.write(chalk.green(part.value));+ }+ if (part.removed) {+ return process.stdout.write(chalk.red(part.value));+ }++ return process.stdout.write(part.value);+ }+ });+}diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.tsnew file mode 100644index 00000000..1fb05360--- /dev/null+++ b/packages/cli/src/commands/init.ts@@ -0,0 +1,404 @@+import { existsSync, promises as fs } from "fs"+import path from "path"+import {+ DEFAULT_COMPONENTS,+ DEFAULT_TAILWIND_CONFIG,+ DEFAULT_TAILWIND_CSS,+ DEFAULT_UTILS,+ getConfig,+ rawConfigSchema,+ resolveConfigPaths,+ type Config,+} from "@/src/utils/get-config"+import { getPackageManager } from "@/src/utils/get-package-manager"+import { getProjectConfig, preFlight } from "@/src/utils/get-project-info"+import { handleError } from "@/src/utils/handle-error"+import { logger } from "@/src/utils/logger"+import {+ getRegistryBaseColor,+ getRegistryBaseColors,+ getRegistryStyles,+} from "@/src/utils/registry"+import * as templates from "@/src/utils/templates"+import chalk from "chalk"+import { Command } from "commander"+import { execa } from "execa"+import template from "lodash.template"+import ora from "ora"+import prompts from "prompts"+import { z } from "zod"++import { applyPrefixesCss } from "../utils/transformers/transform-tw-prefix"++const PROJECT_DEPENDENCIES = [+ "tailwindcss-animate",+ "class-variance-authority",+ "clsx",+ "tailwind-merge",+ "framer-motion",+]++const initOptionsSchema = z.object({+ cwd: z.string(),+ yes: z.boolean(),+ defaults: z.boolean(),+})++export const init = new Command()+ .name("init")+ .description("Initialize your project with shadcn-ui config & magic-ui")+ .option("-y, --yes", "skip confirmation prompt.", false)+ .option("-d, --defaults,", "use default configuration.", false)+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd()+ )+ .action(async (opts) => {+ try {+ const options = initOptionsSchema.parse(opts)+ const cwd = path.resolve(options.cwd)++ // Ensure target directory exists.+ if (!existsSync(cwd)) {+ logger.error(`The path ${cwd} does not exist. Please try again.`)+ process.exit(1)+ }++ preFlight(cwd)++ const projectConfig = await getProjectConfig(cwd)+ if (projectConfig) {+ const config = await promptForMinimalConfig(+ cwd,+ projectConfig,+ opts.defaults+ )+ await runInit(cwd, config)+ } else {+ // Read config.+ const existingConfig = await getConfig(cwd)+ const config = await promptForConfig(cwd, existingConfig, options.yes)+ await runInit(cwd, config)+ }++ logger.info("")+ logger.info(+ `${chalk.green(+ "Success!"+ )} Project initialization completed. You may now add both shadcn-ui and magic-ui components.`+ )+ logger.info("")+ } catch (error) {+ handleError(error)+ }+ })++export async function promptForConfig(+ cwd: string,+ defaultConfig: Config | null = null,+ skip = false+) {+ const highlight = (text: string) => chalk.cyan(text)++ const styles = await getRegistryStyles()+ const baseColors = await getRegistryBaseColors()++ const options = await prompts([+ {+ type: "toggle",+ name: "typescript",+ message: `Would you like to use ${highlight(+ "TypeScript"+ )} (recommended)?`,+ initial: defaultConfig?.tsx ?? true,+ active: "yes",+ inactive: "no",+ },+ {+ type: "select",+ name: "style",+ message: `Which ${highlight("style")} would you like to use?`,+ choices: styles.map((style) => ({+ title: style.label,+ value: style.name,+ })),+ },+ {+ type: "select",+ name: "tailwindBaseColor",+ message: `Which color would you like to use as ${highlight(+ "base color"+ )}?`,+ choices: baseColors.map((color) => ({+ title: color.label,+ value: color.name,+ })),+ },+ {+ type: "text",+ name: "tailwindCss",+ message: `Where is your ${highlight("global CSS")} file?`,+ initial: defaultConfig?.tailwind.css ?? DEFAULT_TAILWIND_CSS,+ },+ {+ type: "toggle",+ name: "tailwindCssVariables",+ message: `Would you like to use ${highlight(+ "CSS variables"+ )} for colors?`,+ initial: defaultConfig?.tailwind.cssVariables ?? true,+ active: "yes",+ inactive: "no",+ },+ {+ type: "text",+ name: "tailwindPrefix",+ message: `Are you using a custom ${highlight(+ "tailwind prefix eg. tw-"+ )}? (Leave blank if not)`,+ initial: "",+ },+ {+ type: "text",+ name: "tailwindConfig",+ message: `Where is your ${highlight("tailwind.config.js")} located?`,+ initial: defaultConfig?.tailwind.config ?? DEFAULT_TAILWIND_CONFIG,+ },+ {+ type: "text",+ name: "components",+ message: `Configure the import alias for ${highlight("components")}:`,+ initial: defaultConfig?.aliases["components"] ?? DEFAULT_COMPONENTS,+ },+ {+ type: "text",+ name: "utils",+ message: `Configure the import alias for ${highlight("utils")}:`,+ initial: defaultConfig?.aliases["utils"] ?? DEFAULT_UTILS,+ },+ {+ type: "toggle",+ name: "rsc",+ message: `Are you using ${highlight("React Server Components")}?`,+ initial: defaultConfig?.rsc ?? true,+ active: "yes",+ inactive: "no",+ },+ ])++ const config = rawConfigSchema.parse({+ $schema: "https://ui.shadcn.com/schema.json",+ style: options.style,+ tailwind: {+ config: options.tailwindConfig,+ css: options.tailwindCss,+ baseColor: options.tailwindBaseColor,+ cssVariables: options.tailwindCssVariables,+ prefix: options.tailwindPrefix,+ },+ rsc: options.rsc,+ tsx: options.typescript,+ aliases: {+ utils: options.utils,+ components: options.components,+ ui: `${options.components}/ui`,+ magicui: `${options.components}/magicui`,+ },+ })++ if (!skip) {+ const { proceed } = await prompts({+ type: "confirm",+ name: "proceed",+ message: `Write configuration to ${highlight(+ "components.json"+ )}. Proceed?`,+ initial: true,+ })++ if (!proceed) {+ process.exit(0)+ }+ }++ // Write to file.+ logger.info("")+ const spinner = ora(`Writing components.json...`).start()+ const targetPath = path.resolve(cwd, "components.json")+ await fs.writeFile(targetPath, JSON.stringify(config, null, 2), "utf8")+ spinner.succeed()++ return await resolveConfigPaths(cwd, config)+}++export async function promptForMinimalConfig(+ cwd: string,+ defaultConfig: Config,+ defaults = false+) {+ const highlight = (text: string) => chalk.cyan(text)+ let style = defaultConfig.style+ let baseColor = defaultConfig.tailwind.baseColor+ let cssVariables = defaultConfig.tailwind.cssVariables++ if (!defaults) {+ const styles = await getRegistryStyles()+ const baseColors = await getRegistryBaseColors()++ const options = await prompts([+ {+ type: "select",+ name: "style",+ message: `Which ${highlight("style")} would you like to use?`,+ choices: styles.map((style) => ({+ title: style.label,+ value: style.name,+ })),+ },+ {+ type: "select",+ name: "tailwindBaseColor",+ message: `Which color would you like to use as ${highlight(+ "base color"+ )}?`,+ choices: baseColors.map((color) => ({+ title: color.label,+ value: color.name,+ })),+ },+ {+ type: "toggle",+ name: "tailwindCssVariables",+ message: `Would you like to use ${highlight(+ "CSS variables"+ )} for colors?`,+ initial: defaultConfig?.tailwind.cssVariables,+ active: "yes",+ inactive: "no",+ },+ ])++ style = options.style+ baseColor = options.tailwindBaseColor+ cssVariables = options.tailwindCssVariables+ }++ const content = {+ $schema: defaultConfig?.$schema,+ style,+ tailwind: {+ ...defaultConfig?.tailwind,+ baseColor,+ cssVariables,+ },+ rsc: defaultConfig?.rsc,+ tsx: defaultConfig?.tsx,+ aliases: defaultConfig?.aliases,+ }++ const config = rawConfigSchema.parse(content)++ // Write to file.+ logger.info("")+ const spinner = ora(`Writing components.json...`).start()+ const targetPath = path.resolve(cwd, "components.json")+ await fs.writeFile(targetPath, JSON.stringify(config, null, 2), "utf8")+ spinner.succeed()++ return await resolveConfigPaths(cwd, config)+}++export async function runInit(cwd: string, config: Config) {+ const spinner = ora(`Initializing project...`)?.start()++ // Ensure all resolved paths directories exist.+ for (const [key, resolvedPath] of Object.entries(config.resolvedPaths)) {+ // Determine if the path is a file or directory.+ // TODO: is there a better way to do this?+ let dirname = path.extname(resolvedPath)+ ? path.dirname(resolvedPath)+ : resolvedPath++ // If the utils alias is set to something like "@/lib/utils",+ // assume this is a file and remove the "utils" file name.+ // TODO: In future releases we should add support for individual utils.+ if (key === "utils" && resolvedPath.endsWith("/utils")) {+ // Remove /utils at the end.+ dirname = dirname.replace(/\/utils$/, "")+ }++ if (!existsSync(dirname)) {+ await fs.mkdir(dirname, { recursive: true })+ }+ }++ const extension = config.tsx ? "ts" : "js"++ const tailwindConfigExtension = path.extname(+ config.resolvedPaths.tailwindConfig+ )++ let tailwindConfigTemplate: string+ if (tailwindConfigExtension === ".ts") {+ tailwindConfigTemplate = config.tailwind.cssVariables+ ? templates.TAILWIND_CONFIG_TS_WITH_VARIABLES+ : templates.TAILWIND_CONFIG_TS+ } else {+ tailwindConfigTemplate = config.tailwind.cssVariables+ ? templates.TAILWIND_CONFIG_WITH_VARIABLES+ : templates.TAILWIND_CONFIG+ }++ // Write tailwind config.+ await fs.writeFile(+ config.resolvedPaths.tailwindConfig,+ template(tailwindConfigTemplate)({+ extension,+ prefix: config.tailwind.prefix,+ }),+ "utf8"+ )++ // Write css file.+ const baseColor = await getRegistryBaseColor(config.tailwind.baseColor)+ if (baseColor) {+ await fs.writeFile(+ config.resolvedPaths.tailwindCss,+ config.tailwind.cssVariables+ ? config.tailwind.prefix+ ? applyPrefixesCss(baseColor.cssVarsTemplate, config.tailwind.prefix)+ : baseColor.cssVarsTemplate+ : baseColor.inlineColorsTemplate,+ "utf8"+ )+ }++ // Write cn file.+ await fs.writeFile(+ `${config.resolvedPaths.utils}.${extension}`,+ extension === "ts" ? templates.UTILS : templates.UTILS_JS,+ "utf8"+ )++ spinner?.succeed()++ // Install dependencies.+ const dependenciesSpinner = ora(`Installing dependencies...`)?.start()+ const packageManager = await getPackageManager(cwd)++ // TODO: add support for other icon libraries.+ const deps = [+ ...PROJECT_DEPENDENCIES,+ config.style === "new-york" ? "@radix-ui/react-icons" : "lucide-react",+ ]++ await execa(+ packageManager,+ [packageManager === "npm" ? "install" : "add", ...deps],+ {+ cwd,+ }+ )+ dependenciesSpinner?.succeed()+}diff --git a/packages/cli/src/commands/template.ts b/packages/cli/src/commands/template.tsnew file mode 100644index 00000000..99a65a97--- /dev/null+++ b/packages/cli/src/commands/template.ts@@ -0,0 +1,95 @@+import { Command } from "commander";+import { clearAll, getEnv, login } from "../utils/get-env";+import { getAllProjectTemplates, getProjectLink, getDataAndWrite } from "../utils/install-project";+import {+ ASCII_TEXT,+ ASCII_PRO,+ ColorFullText,+ tryPro,+ hasPro,+ authMessage,+} from "../utils/logger";+import { z } from "zod";+import prompts from "prompts";+import { logger } from "../utils/logger";++const optionSchema = z.object({+ template: z.string().optional(),+});++const MAGICUI_PRO_ENV = getEnv();++export const project = new Command()+ .name("project")+ .description("Download premium template & start new project.")+ .option("-t, --template <env>", "the secret env to authenticate.")+ .action(async (opts) => {+ console.log(+ MAGICUI_PRO_ENV ? ASCII_PRO : ASCII_TEXT,+ ColorFullText(+ !MAGICUI_PRO_ENV+ ? authMessage+ : hasPro,+ ),+ );++ const options = optionSchema.parse(opts);+ const allTemplates = await getAllProjectTemplates()++ const getSelectedTemplates = async () => {+ if (!options.template) {++ const { templates } = await prompts({+ type: "select",+ name: "templates",+ message: "Which project templates would you like to download?",+ hint: "Enter/Space to select",+ instructions: false,+ choices: allTemplates.map(+ (entry) => ({+ title: entry.repo,+ value: entry.repo,+ description: `${entry.description}\n preview → ${entry.preview}`+ }),+ ),+ }) as { templates?: string }++ return templates+ }+ return options.template+ }++ const name = await getSelectedTemplates()++ if (!name) {+ logger.warn("Invalid template selection")+ return;+ }++ const data = allTemplates.find(e => e.repo === name)++ if (!data) {+ logger.warn("Selected Template is not exist")+ return;+ }++ if (!MAGICUI_PRO_ENV) {+ logger.warn("You are not authenticated to download premium templates.")+ return;+ }++ const file = await getProjectLink(data.repo, data.owner, MAGICUI_PRO_ENV)++ if (!file.success) {+ logger.error("Failed to fetch project downloading link")+ return;+ }+ const fileName = `${data.repo}.zip`+ const success = await getDataAndWrite(file.downloadUrl, fileName)++ if (!success) {+ logger.error("Failed to fetch/write project zip file")+ return;+ }+ logger.success(`Downloaded ${fileName} on current directory`)+ });diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsnew file mode 100644index 00000000..384c7adc--- /dev/null+++ b/packages/cli/src/index.ts@@ -0,0 +1,42 @@+#!/usr/bin/env node+import { add } from "@/src/commands/add";+import { diff } from "@/src/commands/diff";+import { init } from "@/src/commands/init";+import { Command } from "commander";++import { getPackageInfo } from "./utils/get-package-info";+import { getEnv } from "./utils/get-env";+import {+ ASCII_TEXT,+ ASCII_PRO,+ ColorFullText,+ tryPro,+ hasPro,+} from "./utils/logger";+import { auth } from "./commands/auth";+import { project } from "./commands/template";++process.on("SIGINT", () => process.exit(0));+process.on("SIGTERM", () => process.exit(0));++async function main() {+ const packageInfo = await getPackageInfo();+ const MAGICUI_PRO_ENV = getEnv();++ const program = new Command()+ .addHelpText("before", MAGICUI_PRO_ENV ? ASCII_PRO : ASCII_TEXT)+ .addHelpText("after", ColorFullText(MAGICUI_PRO_ENV ? hasPro : tryPro))+ .name("magicui-cli")+ .description("Add Magic UI components to your apps.")+ .version(+ packageInfo.version || "1.0.0",+ "-v, --version",+ "display the version number",+ );++ program.addCommand(init).addCommand(add).addCommand(auth).addCommand(project)++ program.parse();+}++main();diff --git a/packages/cli/src/utils/get-config.ts b/packages/cli/src/utils/get-config.tsnew file mode 100644index 00000000..22eebd85--- /dev/null+++ b/packages/cli/src/utils/get-config.ts@@ -0,0 +1,123 @@+import path from "path"+import { resolveImport } from "@/src/utils/resolve-import"+import { cosmiconfig } from "cosmiconfig"+import { loadConfig } from "tsconfig-paths"+import { z } from "zod"++export const DEFAULT_STYLE = "default"+export const DEFAULT_COMPONENTS = "@/components"+export const DEFAULT_COMPONENTS_UI = "@/components/ui"+export const DEFAULT_COMPONENTS_MAGICUI = "@/components/magicui"+export const DEFAULT_UTILS = "@/lib/utils"+export const DEFAULT_TAILWIND_CSS = "app/globals.css"+export const DEFAULT_TAILWIND_CONFIG = "tailwind.config.js"+export const DEFAULT_TAILWIND_BASE_COLOR = "slate"++// TODO: Figure out if we want to support all cosmiconfig formats.+// A simple components.json file would be nice.+const explorer = cosmiconfig("components", {+ searchPlaces: ["components.json"],+})++export const rawConfigSchema = z+ .object({+ $schema: z.string().optional(),+ style: z.string(),+ rsc: z.coerce.boolean().default(false),+ tsx: z.coerce.boolean().default(true),+ tailwind: z.object({+ config: z.string(),+ css: z.string(),+ baseColor: z.string(),+ cssVariables: z.boolean().default(true),+ prefix: z.string().default("").optional(),+ }),+ aliases: z.object({+ components: z.string(),+ utils: z.string(),+ ui: z.string().optional(),+ magicui: z.string().optional(),+ }),+ })+ .strict()++export type RawConfig = z.infer<typeof rawConfigSchema>++export const configSchema = rawConfigSchema.extend({+ resolvedPaths: z.object({+ tailwindConfig: z.string(),+ tailwindCss: z.string(),+ utils: z.string(),+ components: z.string(),+ ui: z.string(),+ magicui: z.string(),+ }),+})++export type Config = z.infer<typeof configSchema>++export async function getConfig(cwd: string) {+ const config = await getRawConfig(cwd)++ if (!config) {+ return null+ }++ return await resolveConfigPaths(cwd, config)+}++export async function resolveConfigPaths(cwd: string, config: RawConfig) {+ // Read tsconfig.json.+ const tsConfig = await loadConfig(cwd)++ if (tsConfig.resultType === "failed") {+ throw new Error(+ `Failed to load ${config.tsx ? "tsconfig" : "jsconfig"}.json. ${tsConfig.message ?? ""+ }`.trim()+ )+ }+ const components = await resolveImport(config.aliases["components"], tsConfig)+ const ui = `${components}/ui`+ const magicui = `${components}/magicui`++ const newAliases = {+ ui: `${config.aliases.components}/ui`,+ magicui: `${config.aliases.components}/magicui`+ }++ const newConfig = {+ ...config,+ aliases: {+ ...config.aliases,+ ...newAliases+ },+ resolvedPaths: {+ tailwindConfig: path.resolve(cwd, config.tailwind.config),+ tailwindCss: path.resolve(cwd, config.tailwind.css),+ utils: await resolveImport(config.aliases["utils"], tsConfig),+ components,+ ui,+ // ? await resolveImport(config.aliases["ui"], tsConfig)+ // : await resolveImport(config.aliases["components"], tsConfig),+ magicui,+ // ? await resolveImport(config.aliases["magicui"], tsConfig)+ // : config.aliases["ui"] ? await resolveImport(config.aliases["ui"], tsConfig)+ // : await resolveImport(config.aliases["components"], tsConfig)+ },+ }+ return configSchema.parse(newConfig)+}++export async function getRawConfig(cwd: string): Promise<RawConfig | null> {+ try {+ const configResult = await explorer.search(cwd)++ if (!configResult) {+ return null+ }++ return rawConfigSchema.parse(configResult.config)+ } catch (error) {+ throw new Error(`Invalid configuration found in ${cwd}/components.json.`)+ }+}diff --git a/packages/cli/src/utils/get-env.ts b/packages/cli/src/utils/get-env.tsnew file mode 100644index 00000000..7f13e97d--- /dev/null+++ b/packages/cli/src/utils/get-env.ts@@ -0,0 +1,20 @@+import fs from "fs";+import path from "path";+import dotenv from "dotenv";+import Configstore from 'configstore';++const envName = "MAGICUI_PRO_ENV";+const config = new Configstore("magicui");++export const getEnv = () => config.get(envName) as string | undefined+export const setEnv = (env: string) => config.set(envName, env);+export const clearAll = () => config.clear()++export const login = async (env: string) => {+ try {+ setEnv(env);+ return "Logged in ✅"+ } catch (error) {+ return;+ }+}\ No newline at end of filediff --git a/packages/cli/src/utils/get-package-info.ts b/packages/cli/src/utils/get-package-info.tsnew file mode 100644index 00000000..c7f49619--- /dev/null+++ b/packages/cli/src/utils/get-package-info.ts@@ -0,0 +1,9 @@+import path from "path"+import fs from "fs-extra"+import { type PackageJson } from "type-fest"++export function getPackageInfo() {+ const packageJsonPath = path.join("package.json")++ return fs.readJSONSync(packageJsonPath) as PackageJson+}diff --git a/packages/cli/src/utils/get-package-manager.ts b/packages/cli/src/utils/get-package-manager.tsnew file mode 100644index 00000000..91efb416--- /dev/null+++ b/packages/cli/src/utils/get-package-manager.ts@@ -0,0 +1,13 @@+import { detect } from "@antfu/ni"++export async function getPackageManager(+ targetDir: string+): Promise<"yarn" | "pnpm" | "bun" | "npm"> {+ const packageManager = await detect({ programmatic: true, cwd: targetDir })++ if (packageManager === "yarn@berry") return "yarn"+ if (packageManager === "pnpm@6") return "pnpm"+ if (packageManager === "bun") return "bun"++ return packageManager ?? "npm"+}diff --git a/packages/cli/src/utils/get-project-info.ts b/packages/cli/src/utils/get-project-info.tsnew file mode 100644index 00000000..63f3ee83--- /dev/null+++ b/packages/cli/src/utils/get-project-info.ts@@ -0,0 +1,196 @@+import { existsSync } from "fs"+import path from "path"+import {+ Config,+ RawConfig,+ getConfig,+ resolveConfigPaths,+} from "@/src/utils/get-config"+import fg from "fast-glob"+import fs, { pathExists } from "fs-extra"+import { loadConfig } from "tsconfig-paths"++// TODO: Add support for more frameworks.+// We'll start with Next.js for now.+const PROJECT_TYPES = [+ "next-app",+ "next-app-src",+ "next-pages",+ "next-pages-src",+] as const++type ProjectType = (typeof PROJECT_TYPES)[number]++const PROJECT_SHARED_IGNORE = [+ "**/node_modules/**",+ ".next",+ "public",+ "dist",+ "build",+]++export async function getProjectInfo() {+ const info = {+ tsconfig: null,+ srcDir: false,+ appDir: false,+ srcComponentsUiDir: false,+ componentsUiDir: false,+ }++ try {+ const tsconfig = await getTsConfig()++ return {+ tsconfig,+ srcDir: existsSync(path.resolve("./src")),+ appDir:+ existsSync(path.resolve("./app")) ||+ existsSync(path.resolve("./src/app")),+ srcComponentsUiDir: existsSync(path.resolve("./src/components/ui")),+ componentsUiDir: existsSync(path.resolve("./components/ui")),+ }+ } catch (error) {+ return info+ }+}++export async function getTsConfig() {+ try {+ const tsconfigPath = path.join("tsconfig.json")+ const tsconfig = await fs.readJSON(tsconfigPath)++ if (!tsconfig) {+ throw new Error("tsconfig.json is missing")+ }++ return tsconfig+ } catch (error) {+ return null+ }+}++export async function getProjectConfig(cwd: string): Promise<Config | null> {+ // Check for existing component config.+ const existingConfig = await getConfig(cwd)+ if (existingConfig) {+ return existingConfig+ }++ const projectType = await getProjectType(cwd)+ const tailwindCssFile = await getTailwindCssFile(cwd)+ const tsConfigAliasPrefix = await getTsConfigAliasPrefix(cwd)++ if (!projectType || !tailwindCssFile || !tsConfigAliasPrefix) {+ return null+ }++ const isTsx = await isTypeScriptProject(cwd)++ const config: RawConfig = {+ $schema: "https://ui.shadcn.com/schema.json",+ rsc: ["next-app", "next-app-src"].includes(projectType),+ tsx: isTsx,+ style: "new-york",+ tailwind: {+ config: isTsx ? "tailwind.config.ts" : "tailwind.config.js",+ baseColor: "zinc",+ css: tailwindCssFile,+ cssVariables: true,+ prefix: "",+ },+ aliases: {+ utils: `${tsConfigAliasPrefix}/lib/utils`,+ components: `${tsConfigAliasPrefix}/components`,+ magicui: `${tsConfigAliasPrefix}/components/magicui`,+ ui: `${tsConfigAliasPrefix}/components/ui`,+ },+ }++ return await resolveConfigPaths(cwd, config)+}++export async function getProjectType(cwd: string): Promise<ProjectType | null> {+ const files = await fg.glob("**/*", {+ cwd,+ deep: 3,+ ignore: PROJECT_SHARED_IGNORE,+ })++ const isNextProject = files.find((file) => file.startsWith("next.config."))+ if (!isNextProject) {+ return null+ }++ const isUsingSrcDir = await fs.pathExists(path.resolve(cwd, "src"))+ const isUsingAppDir = await fs.pathExists(+ path.resolve(cwd, `${isUsingSrcDir ? "src/" : ""}app`)+ )++ if (isUsingAppDir) {+ return isUsingSrcDir ? "next-app-src" : "next-app"+ }++ return isUsingSrcDir ? "next-pages-src" : "next-pages"+}++export async function getTailwindCssFile(cwd: string) {+ const files = await fg.glob("**/*.css", {+ cwd,+ deep: 3,+ ignore: PROJECT_SHARED_IGNORE,+ })++ if (!files.length) {+ return null+ }++ for (const file of files) {+ const contents = await fs.readFile(path.resolve(cwd, file), "utf8")+ // Assume that if the file contains `@tailwind base` it's the main css file.+ if (contents.includes("@tailwind base")) {+ return file+ }+ }++ return null+}++export async function getTsConfigAliasPrefix(cwd: string) {+ const tsConfig = await loadConfig(cwd)++ if (tsConfig?.resultType === "failed" || !tsConfig?.paths) {+ return null+ }++ // This assume that the first alias is the prefix.+ for (const [alias, paths] of Object.entries(tsConfig.paths)) {+ if (paths.includes("./*") || paths.includes("./src/*")) {+ return alias.at(0)+ }+ }++ return null+}++export async function isTypeScriptProject(cwd: string) {+ // Check if cwd has a tsconfig.json file.+ return pathExists(path.resolve(cwd, "tsconfig.json"))+}++export async function preFlight(cwd: string) {+ // We need Tailwind CSS to be configured.+ const tailwindConfig = await fg.glob("tailwind.config.*", {+ cwd,+ deep: 3,+ ignore: PROJECT_SHARED_IGNORE,+ })++ if (!tailwindConfig.length) {+ throw new Error(+ "Tailwind CSS is not installed. Visit https://tailwindcss.com/docs/installation to get started."+ )+ }++ return true+}diff --git a/packages/cli/src/utils/handle-error.ts b/packages/cli/src/utils/handle-error.tsnew file mode 100644index 00000000..3e366636--- /dev/null+++ b/packages/cli/src/utils/handle-error.ts@@ -0,0 +1,16 @@+import { logger } from "@/src/utils/logger"++export function handleError(error: unknown) {+ if (typeof error === "string") {+ logger.error(error)+ process.exit(1)+ }++ if (error instanceof Error) {+ logger.error(error.message)+ process.exit(1)+ }++ logger.error("Something went wrong. Please try again.")+ process.exit(1)+}diff --git a/packages/cli/src/utils/install-project.ts b/packages/cli/src/utils/install-project.tsnew file mode 100644index 00000000..74802b8a--- /dev/null+++ b/packages/cli/src/utils/install-project.ts@@ -0,0 +1,45 @@+import { z } from 'zod'+import { logger } from './logger'+import { Readable } from 'node:stream'+import { createWriteStream } from 'node:fs'++const baseUrl = process.env.PRO_REGISTRY_URL ?? "https://pro.magicui.design"++const projectTemplatesSchema = z.object({+ repo: z.string(),+ owner: z.string(),+ description: z.string(),+ preview: z.string()+})++export const getAllProjectTemplates = async () => {+ return z.array(projectTemplatesSchema).parse(await fetch(`${baseUrl}/registry/templates.json`).then(e => e.json()))+}++export const getProjectLink = async (repo: string, owner: string, env:string) => {+ const project = await fetch(`${baseUrl}/api/repo/download`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ repo, owner, env }),+ }).then(e => e.json())++ const linkZod = z.object({+ success: z.boolean(),+ status: z.number(),+ downloadUrl: z.string()+ })++ return linkZod.parse(project)+}++export const getDataAndWrite = async (link:string, pathWithExtension:string) => {+ const response = await fetch(link);+ if (response.ok && response.body) {+ const writer = createWriteStream(pathWithExtension);+ Readable.fromWeb(response.body as any).pipe(writer)+ return true+ }+ return false+}\ No newline at end of filediff --git a/packages/cli/src/utils/logger.ts b/packages/cli/src/utils/logger.tsnew file mode 100644index 00000000..0e61b185--- /dev/null+++ b/packages/cli/src/utils/logger.ts@@ -0,0 +1,116 @@+import chalk from "chalk"+import gradient from "gradient-string";++export const logger = {+ error(...args: unknown[]) {+ console.log(chalk.red(...args))+ },+ warn(...args: unknown[]) {+ console.log(chalk.yellow(...args))+ },+ info(...args: unknown[]) {+ console.log(chalk.cyan(...args))+ },+ success(...args: unknown[]) {+ console.log(chalk.green(...args))+ },+ break() {+ console.log("")+ },+}++const TEXT = `+ ## ## ## ## ## ####+ ### ### ## ## ##+ ####### #### ### ## ### #### ## ## ##+ ####### ## ## ## ## ## ## ## ## ##+ ## # ## ##### ## ## ## ## ## ## ##+ ## ## ## ## ##### ## ## ## ## ## ##+ ## ## ##### ## #### #### ##### ####+ #####+`++const PRO = `+ ## ## ## ## ## #### ######+ ### ### ## ## ## ## ##+ ####### #### ### ## ### #### ## ## ## ## ## ###### ####+ ####### ## ## ## ## ## ## ## ## ## ##### ## ## ## ##+ ## # ## ##### ## ## ## ## ## ## ## ## ## ## ##+ ## ## ## ## ##### ## ## ## ## ## ## ## ## ## ##+ ## ## ##### ## #### #### ##### #### #### #### ####+ #####+`++const LOGO = `+ ...:::::::::::::::::::::::::::::::::::::::..+ .:::::-----------------------------------------:::.+ .:::-------------------------------------------------:+ :::-----------------------------------------------------.+ :::-------------------------------------------------------.+.::--------------------------------------. .------------:+:::------------------------------------. .: .-----------+::-----------------------------------. :----: ----------+::---------------------------------. :------: ----------+::-------------------------------. :------: .-----------+::-----------------------------. :-----: .-------------+::---------------------------. .. :-: .---------------+::-------------------------. .---:. .-----------------+::-----------------------. .------: .-------------------+::---------------------. .------: .---------------------+::-------------------. :------: .-----------------------+::-----------------. :------: .---------------------:--:+::---------------. :------: .--------------------:::::::+::-------------. :------: .------------------:::::::::::+::-----------. :------: .-----------------::::::::::::::+:::--------. :------: .----------------:::::::::::::::::+:::------- .------: .---------------::::::::::::::::::::+:::------- :----: .--------------:::::::::::::::::::::::+:::--------. :: .------------:::::::::::::::::::::::::::+.::----------. .-----------::::::::::::::::::::::::...::.+ ::------------------------::::::::::::::::::::::::.......:+ .::--------------------::::::::::::::::::::::::.........:.+ ::---------------:::::::::::::::::::::::::............+ .::-----------:::::::::::::::::::::::::............+ ..:::-----::::::::::::::::::::::::::::.......+`++const theme = {+ // blue: "#add7ff",+ // cyan: "#89ddff",+ // green: "#5de4c7",+ magenta: "#fae4fc",+ red: "#d0679d",+ yellow: "#fffac2",+};++const printer = gradient(Object.values(theme));++export const ASCII_TEXT = printer.multiline(TEXT)+export const ASCII_LOGO = printer.multiline(LOGO)+export const ASCII_PRO = printer.multiline(PRO)++export const tryPro = `+Try Magic UI Pro for more premium components & blocks.+ → https://pro.magicui.design+`;++export const hasPro = `++Authenticated ✅++You are using Magic UI Pro. Welcome ❤︎+ → use '--pro' option with add command to view the premium components & blocks.+ → https://pro.magicui.design++`;++export const authMessage = `++Go to Magic UI Pro website for auth secrets.+ → https://pro.magicui.design+ → npx magicui-cli auth --login <secret-env>++`;+++export const ColorFullText = (string: string) => printer.multiline(string)\ No newline at end of filediff --git a/packages/cli/src/utils/registry/index.ts b/packages/cli/src/utils/registry/index.tsnew file mode 100644index 00000000..73cbc95a--- /dev/null+++ b/packages/cli/src/utils/registry/index.ts@@ -0,0 +1,272 @@+import path from "path"+import { Config } from "@/src/utils/get-config"+import {+ registryBaseColorSchema,+ registryIndexSchema,+ registryItemWithContentSchema,+ registryWithContentSchema,+ stylesSchema,+} from "@/src/utils/registry/schema"+import { HttpsProxyAgent } from "https-proxy-agent"+import fetch from "node-fetch"+import { z } from "zod"++const baseUrl = process.env.COMPONENTS_REGISTRY_URL ?? "https://magicui.design"+const proBaseUrl = process.env.PRO_REGISTRY_URL ?? "https://pro.magicui.design"+const shadcnBaseUrl = "https://ui.shadcn.com"++type theTree = z.infer<typeof registryIndexSchema>++const agent = process.env.https_proxy+ ? new HttpsProxyAgent(process.env.https_proxy)+ : undefined+++export async function getRegistryIndexMagicUI(env?:boolean) {+ try {++ const [result] = await fetchRegistry(["index.json"], baseUrl)+ const [resultPro] = env ? await fetchRegistry(["index.json"], proBaseUrl) : [[]]++ // @ts-ignore+ return registryIndexSchema.parse([...result, ...resultPro])+ } catch (error) {+ console.error(error)+ throw new Error("Failed to fetch components from Magic UI registry.")+ }+}++export async function getRegistryIndexShadcn() {+ try {+ const [result] = await fetchRegistry(["index.json"], shadcnBaseUrl)++ return registryIndexSchema.parse(result)+ } catch (error) {+ console.error(error)+ throw new Error("Failed to fetch components from Shadcn UI registry.")+ }+}++export async function getRegistryStyles() {+ try {+ const [result] = await fetchRegistry(["styles/index.json"], shadcnBaseUrl)++ return stylesSchema.parse(result)+ } catch (error) {+ throw new Error("Failed to fetch styles from registry.")+ }+}++export async function getRegistryBaseColors() {+ return [+ {+ name: "slate",+ label: "Slate",+ },+ {+ name: "gray",+ label: "Gray",+ },+ {+ name: "zinc",+ label: "Zinc",+ },+ {+ name: "neutral",+ label: "Neutral",+ },+ {+ name: "stone",+ label: "Stone",+ },+ ]+}++export async function getRegistryBaseColor(baseColor: string) {+ try {+ const [result] = await fetchRegistry([`colors/${baseColor}.json`], shadcnBaseUrl)++ return registryBaseColorSchema.parse(result)+ } catch (error) {+ throw new Error("Failed to fetch base color from registry.")+ }+}++export async function resolveTreeWithShadcn(+ shadcnIndex: theTree,+ index: theTree,+ names: string[],+ calledByShadcn = false+): Promise<{ shadcnTree: theTree, magicuiTree: theTree }> {++ const shadcnTree: theTree = []+ const magicuiTree: theTree = []++ for (const name of names) {+ if (!calledByShadcn) {+ const entry = index.find((e) => e.name === name)++ if (!entry) {+ const newName = name.split(":")[1]+ const shadcnEntry = shadcnIndex.find((e) => e.name === newName)++ if (!shadcnEntry) {+ continue+ }+ shadcnTree.push(shadcnEntry)++ if (shadcnEntry.registryDependencies) {+ const { shadcnTree: shadcnTreeDependencies } = await resolveTreeWithShadcn(shadcnIndex,+ index,+ shadcnEntry.registryDependencies,+ true+ )+ shadcnTree.push(...shadcnTreeDependencies)+ }+ }++ entry && magicuiTree.push(entry)++ if (entry && entry.registryDependencies) {++ const { magicuiTree: magicuiTreeDependencies, shadcnTree: shadcnTreeDependencies } = await resolveTreeWithShadcn(shadcnIndex,+ index,+ entry.registryDependencies,+ false+ )+ shadcnTree.push(...shadcnTreeDependencies)+ magicuiTree.push(...magicuiTreeDependencies)+ }++ }+ else {+ const entry = shadcnIndex.find((e) => e.name === name)++ if (!entry) {+ continue+ }++ shadcnTree.push(entry)++ if (entry.registryDependencies) {+ const { shadcnTree: shadcnTreeDependencies } = await resolveTreeWithShadcn(shadcnIndex,+ index,+ entry.registryDependencies,+ true+ )+ shadcnTree.push(...shadcnTreeDependencies)+ }+ }+ }++ return {+ shadcnTree: shadcnTree.filter((component, index, self) => self.findIndex((c) => c.name === component.name) === index),+ magicuiTree: magicuiTree.filter((component, index, self) => self.findIndex((c) => c.name === component.name) === index),+ }+}++export async function resolveTree(+ index: theTree,+ names: string[]+) {+ const tree: theTree = []++ for (const name of names) {+ const entry = index.find((entry) => entry.name === name)++ if (!entry) {+ continue+ }++ tree.push(entry)++ if (entry.registryDependencies) {+ const dependencies = await resolveTree(index, entry.registryDependencies)+ tree.push(...dependencies)+ }+ }++ return tree.filter(+ (component, index, self) =>+ self.findIndex((c) => c.name === component.name) === index+ )+}++export async function fetchTree(+ tree: theTree, env?: string+) {+ try {+ const treeNormal = tree.filter((item) => !item.type.includes("blocks"))+ const treePro = tree.filter((item) => item.type.includes("blocks"))+ // {baseUrl}/registry/components/magicui/[name].json.+ const paths = treeNormal.map((item) => {+ const [parent, subfolder] = item.type.split(":")+ return `${parent}/${subfolder}/${item.name}.json`+ })+ const result = await fetchRegistry(paths, baseUrl)++ const pathsPro = treePro.map((item) => {+ const [parent, subfolder] = item.type.split(":")+ return `${parent}/${subfolder}/${item.name}.json`+ })+ const resultPro = await fetchRegistry(pathsPro, proBaseUrl, env)++ return registryWithContentSchema.parse([...result, ...resultPro])+ } catch (error) {+ throw new Error(`Failed to fetch tree from Magic UI registry.`)+ }+}++export async function fetchTreeFromShadcn(+ style: string,+ tree: theTree+) {+ try {+ const paths = tree.map((item) => `styles/${style}/${item.name}.json`)+ const result = await fetchRegistry(paths, shadcnBaseUrl)++ return registryWithContentSchema.parse(result)+ } catch (error) {+ throw new Error(`Failed to fetch tree from Shadcn UI registry.`)+ }+}++export async function getItemTargetPath(+ config: Config,+ item: Pick<z.infer<typeof registryItemWithContentSchema>, "type">,+ override?: string+) {+ if (override) {+ return override+ }++ const [parent, type] = item.type.split(":")+ if (!(parent in config.resolvedPaths)) {+ return null+ }++ return path.join(+ config.resolvedPaths[parent as keyof typeof config.resolvedPaths],+ type+ )+}++async function fetchRegistry(paths: string[], fetchBaseUrl = baseUrl, env?: string) {+ try {+ const results = await Promise.all(+ paths.map(async (path) => {+ const response = await fetch(`${fetchBaseUrl}/registry/${path}`, {+ agent,+ headers: env ? {+ // the Pro registry route will valid this env cookie+ cookie: `x-magicui-env=${env}`+ } : {}+ })+ return await response.json()+ })+ )+ return results+ } catch (error) {+ throw new Error(`Failed to fetch registry from ${fetchBaseUrl}.`)+ }+}diff --git a/packages/cli/src/utils/registry/schema.ts b/packages/cli/src/utils/registry/schema.tsnew file mode 100644index 00000000..e4d17636--- /dev/null+++ b/packages/cli/src/utils/registry/schema.ts@@ -0,0 +1,44 @@+import { z } from "zod"++// TODO: Extract this to a shared package.+export const registryItemSchema = z.object({+ name: z.string(),+ dependencies: z.array(z.string()).optional(),+ devDependencies: z.array(z.string()).optional(),+ registryDependencies: z.array(z.string()).optional(),+ files: z.array(z.string()),+ type: z.enum(["components:ui", "components:component", "components:example", "components:magicui", "components:blocks",]),+})++export const registryIndexSchema = z.array(registryItemSchema)++export const registryItemWithContentSchema = registryItemSchema.extend({+ files: z.array(+ z.object({+ name: z.string(),+ content: z.string(),+ })+ ),+})++export const registryWithContentSchema = z.array(registryItemWithContentSchema)++export const stylesSchema = z.array(+ z.object({+ name: z.string(),+ label: z.string(),+ })+)++export const registryBaseColorSchema = z.object({+ inlineColors: z.object({+ light: z.record(z.string(), z.string()),+ dark: z.record(z.string(), z.string()),+ }),+ cssVars: z.object({+ light: z.record(z.string(), z.string()),+ dark: z.record(z.string(), z.string()),+ }),+ inlineColorsTemplate: z.string(),+ cssVarsTemplate: z.string(),+})diff --git a/packages/cli/src/utils/resolve-import.ts b/packages/cli/src/utils/resolve-import.tsnew file mode 100644index 00000000..0f029844--- /dev/null+++ b/packages/cli/src/utils/resolve-import.ts@@ -0,0 +1,13 @@+import { createMatchPath, type ConfigLoaderSuccessResult } from "tsconfig-paths"++export async function resolveImport(+ importPath: string,+ config: Pick<ConfigLoaderSuccessResult, "absoluteBaseUrl" | "paths">+) {+ return createMatchPath(config.absoluteBaseUrl, config.paths)(+ importPath,+ undefined,+ () => true,+ [".ts", ".tsx"]+ )+}diff --git a/packages/cli/src/utils/templates.ts b/packages/cli/src/utils/templates.tsnew file mode 100644index 00000000..f602416b--- /dev/null+++ b/packages/cli/src/utils/templates.ts@@ -0,0 +1,253 @@+export const UTILS = `import { type ClassValue, clsx } from "clsx"+import { twMerge } from "tailwind-merge"++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs))+}+`++export const UTILS_JS = `import { clsx } from "clsx"+import { twMerge } from "tailwind-merge"++export function cn(...inputs) {+ return twMerge(clsx(inputs))+}+`++export const TAILWIND_CONFIG = `/** @type {import('tailwindcss').Config} */+module.exports = {+ darkMode: ["class"],+ content: [+ './pages/**/*.{<%- extension %>,<%- extension %>x}',+ './components/**/*.{<%- extension %>,<%- extension %>x}',+ './app/**/*.{<%- extension %>,<%- extension %>x}',+ './src/**/*.{<%- extension %>,<%- extension %>x}',+ ],+ prefix: "<%- prefix %>",+ theme: {+ container: {+ center: true,+ padding: "2rem",+ screens: {+ "2xl": "1400px",+ },+ },+ extend: {+ keyframes: {+ "accordion-down": {+ from: { height: "0" },+ to: { height: "var(--radix-accordion-content-height)" },+ },+ "accordion-up": {+ from: { height: "var(--radix-accordion-content-height)" },+ to: { height: "0" },+ },+ },+ animation: {+ "accordion-down": "accordion-down 0.2s ease-out",+ "accordion-up": "accordion-up 0.2s ease-out",+ },+ },+ },+ plugins: [require("tailwindcss-animate")],+}`++export const TAILWIND_CONFIG_WITH_VARIABLES = `/** @type {import('tailwindcss').Config} */+module.exports = {+ darkMode: ["class"],+ content: [+ './pages/**/*.{<%- extension %>,<%- extension %>x}',+ './components/**/*.{<%- extension %>,<%- extension %>x}',+ './app/**/*.{<%- extension %>,<%- extension %>x}',+ './src/**/*.{<%- extension %>,<%- extension %>x}',+ ],+ prefix: "<%- prefix %>",+ theme: {+ container: {+ center: true,+ padding: "2rem",+ screens: {+ "2xl": "1400px",+ },+ },+ extend: {+ colors: {+ border: "hsl(var(--border))",+ input: "hsl(var(--input))",+ ring: "hsl(var(--ring))",+ background: "hsl(var(--background))",+ foreground: "hsl(var(--foreground))",+ primary: {+ DEFAULT: "hsl(var(--primary))",+ foreground: "hsl(var(--primary-foreground))",+ },+ secondary: {+ DEFAULT: "hsl(var(--secondary))",+ foreground: "hsl(var(--secondary-foreground))",+ },+ destructive: {+ DEFAULT: "hsl(var(--destructive))",+ foreground: "hsl(var(--destructive-foreground))",+ },+ muted: {+ DEFAULT: "hsl(var(--muted))",+ foreground: "hsl(var(--muted-foreground))",+ },+ accent: {+ DEFAULT: "hsl(var(--accent))",+ foreground: "hsl(var(--accent-foreground))",+ },+ popover: {+ DEFAULT: "hsl(var(--popover))",+ foreground: "hsl(var(--popover-foreground))",+ },+ card: {+ DEFAULT: "hsl(var(--card))",+ foreground: "hsl(var(--card-foreground))",+ },+ },+ borderRadius: {+ lg: "var(--radius)",+ md: "calc(var(--radius) - 2px)",+ sm: "calc(var(--radius) - 4px)",+ },+ keyframes: {+ "accordion-down": {+ from: { height: "0" },+ to: { height: "var(--radix-accordion-content-height)" },+ },+ "accordion-up": {+ from: { height: "var(--radix-accordion-content-height)" },+ to: { height: "0" },+ },+ },+ animation: {+ "accordion-down": "accordion-down 0.2s ease-out",+ "accordion-up": "accordion-up 0.2s ease-out",+ },+ },+ },+ plugins: [require("tailwindcss-animate")],+}`++export const TAILWIND_CONFIG_TS = `import type { Config } from "tailwindcss"++const config = {+ darkMode: ["class"],+ content: [+ './pages/**/*.{<%- extension %>,<%- extension %>x}',+ './components/**/*.{<%- extension %>,<%- extension %>x}',+ './app/**/*.{<%- extension %>,<%- extension %>x}',+ './src/**/*.{<%- extension %>,<%- extension %>x}',+ ],+ prefix: "<%- prefix %>",+ theme: {+ container: {+ center: true,+ padding: "2rem",+ screens: {+ "2xl": "1400px",+ },+ },+ extend: {+ keyframes: {+ "accordion-down": {+ from: { height: "0" },+ to: { height: "var(--radix-accordion-content-height)" },+ },+ "accordion-up": {+ from: { height: "var(--radix-accordion-content-height)" },+ to: { height: "0" },+ },+ },+ animation: {+ "accordion-down": "accordion-down 0.2s ease-out",+ "accordion-up": "accordion-up 0.2s ease-out",+ },+ },+ },+ plugins: [require("tailwindcss-animate")],+} satisfies Config++export default config`++export const TAILWIND_CONFIG_TS_WITH_VARIABLES = `import type { Config } from "tailwindcss"++const config = {+ darkMode: ["class"],+ content: [+ './pages/**/*.{<%- extension %>,<%- extension %>x}',+ './components/**/*.{<%- extension %>,<%- extension %>x}',+ './app/**/*.{<%- extension %>,<%- extension %>x}',+ './src/**/*.{<%- extension %>,<%- extension %>x}',+ ],+ prefix: "<%- prefix %>",+ theme: {+ container: {+ center: true,+ padding: "2rem",+ screens: {+ "2xl": "1400px",+ },+ },+ extend: {+ colors: {+ border: "hsl(var(--border))",+ input: "hsl(var(--input))",+ ring: "hsl(var(--ring))",+ background: "hsl(var(--background))",+ foreground: "hsl(var(--foreground))",+ primary: {+ DEFAULT: "hsl(var(--primary))",+ foreground: "hsl(var(--primary-foreground))",+ },+ secondary: {+ DEFAULT: "hsl(var(--secondary))",+ foreground: "hsl(var(--secondary-foreground))",+ },+ destructive: {+ DEFAULT: "hsl(var(--destructive))",+ foreground: "hsl(var(--destructive-foreground))",+ },+ muted: {+ DEFAULT: "hsl(var(--muted))",+ foreground: "hsl(var(--muted-foreground))",+ },+ accent: {+ DEFAULT: "hsl(var(--accent))",+ foreground: "hsl(var(--accent-foreground))",+ },+ popover: {+ DEFAULT: "hsl(var(--popover))",+ foreground: "hsl(var(--popover-foreground))",+ },+ card: {+ DEFAULT: "hsl(var(--card))",+ foreground: "hsl(var(--card-foreground))",+ },+ },+ borderRadius: {+ lg: "var(--radius)",+ md: "calc(var(--radius) - 2px)",+ sm: "calc(var(--radius) - 4px)",+ },+ keyframes: {+ "accordion-down": {+ from: { height: "0" },+ to: { height: "var(--radix-accordion-content-height)" },+ },+ "accordion-up": {+ from: { height: "var(--radix-accordion-content-height)" },+ to: { height: "0" },+ },+ },+ animation: {+ "accordion-down": "accordion-down 0.2s ease-out",+ "accordion-up": "accordion-up 0.2s ease-out",+ },+ },+ },+ plugins: [require("tailwindcss-animate")],+} satisfies Config++export default config`diff --git a/packages/cli/src/utils/transformers/index.ts b/packages/cli/src/utils/transformers/index.tsnew file mode 100644index 00000000..88cdb3f3--- /dev/null+++ b/packages/cli/src/utils/transformers/index.ts@@ -0,0 +1,58 @@+import { promises as fs } from "fs"+import { tmpdir } from "os"+import path from "path"+import { Config } from "@/src/utils/get-config"+import { registryBaseColorSchema } from "@/src/utils/registry/schema"+import { transformCssVars } from "@/src/utils/transformers/transform-css-vars"+import { transformImport } from "@/src/utils/transformers/transform-import"+import { transformJsx } from "@/src/utils/transformers/transform-jsx"+import { transformRsc } from "@/src/utils/transformers/transform-rsc"+import { Project, ScriptKind, type SourceFile } from "ts-morph"+import { z } from "zod"++import { transformTwPrefixes } from "./transform-tw-prefix"++export type TransformOpts = {+ filename: string+ raw: string+ config: Config+ baseColor?: z.infer<typeof registryBaseColorSchema>+}++export type Transformer<Output = SourceFile> = (+ opts: TransformOpts & {+ sourceFile: SourceFile+ }+) => Promise<Output>++const transformers: Transformer[] = [+ transformImport,+ transformRsc,+ transformCssVars,+ transformTwPrefixes,+]++const project = new Project({+ compilerOptions: {},+})++async function createTempSourceFile(filename: string) {+ const dir = await fs.mkdtemp(path.join(tmpdir(), "shadcn-"))+ return path.join(dir, filename)+}++export async function transform(opts: TransformOpts) {+ const tempFile = await createTempSourceFile(opts.filename)+ const sourceFile = project.createSourceFile(tempFile, opts.raw, {+ scriptKind: ScriptKind.TSX,+ })++ for (const transformer of transformers) {+ transformer({ sourceFile, ...opts })+ }++ return await transformJsx({+ sourceFile,+ ...opts,+ })+}diff --git a/packages/cli/src/utils/transformers/transform-css-vars.ts b/packages/cli/src/utils/transformers/transform-css-vars.tsnew file mode 100644index 00000000..95cf973d--- /dev/null+++ b/packages/cli/src/utils/transformers/transform-css-vars.ts@@ -0,0 +1,183 @@+import { registryBaseColorSchema } from "@/src/utils/registry/schema"+import { Transformer } from "@/src/utils/transformers"+import { ScriptKind, SyntaxKind } from "ts-morph"+import { z } from "zod"++export const transformCssVars: Transformer = async ({+ sourceFile,+ config,+ baseColor,+}) => {+ // No transform if using css variables.+ if (config.tailwind?.cssVariables || !baseColor?.inlineColors) {+ return sourceFile+ }++ // Find jsx attributes with the name className.+ // const openingElements = sourceFile.getDescendantsOfKind(SyntaxKind.JsxElement)+ // console.log(openingElements)+ // const jsxAttributes = sourceFile+ // .getDescendantsOfKind(SyntaxKind.JsxAttribute)+ // .filter((node) => node.getName() === "className")++ // for (const jsxAttribute of jsxAttributes) {+ // const value = jsxAttribute.getInitializer()?.getText()+ // if (value) {+ // const valueWithColorMapping = applyColorMapping(+ // value.replace(/"/g, ""),+ // baseColor.inlineColors+ // )+ // jsxAttribute.setInitializer(`"${valueWithColorMapping}"`)+ // }+ // }+ sourceFile.getDescendantsOfKind(SyntaxKind.StringLiteral).forEach((node) => {+ const value = node.getText()+ if (value) {+ const valueWithColorMapping = applyColorMapping(+ value.replace(/"/g, ""),+ baseColor.inlineColors+ )+ node.replaceWithText(`"${valueWithColorMapping.trim()}"`)+ }+ })++ return sourceFile+}++// export default function transformer(file: FileInfo, api: API) {+// const j = api.jscodeshift.withParser("tsx")++// // Replace bg-background with "bg-white dark:bg-slate-950"+// const $j = j(file.source)+// return $j+// .find(j.JSXAttribute, {+// name: {+// name: "className",+// },+// })+// .forEach((path) => {+// const { node } = path+// if (node?.value?.type) {+// if (node.value.type === "StringLiteral") {+// node.value.value = applyColorMapping(node.value.value)+// console.log(node.value.value)+// }++// if (+// node.value.type === "JSXExpressionContainer" &&+// node.value.expression.type === "CallExpression"+// ) {+// const callee = node.value.expression.callee+// if (callee.type === "Identifier" && callee.name === "cn") {+// node.value.expression.arguments.forEach((arg) => {+// if (arg.type === "StringLiteral") {+// arg.value = applyColorMapping(arg.value)+// }++// if (+// arg.type === "LogicalExpression" &&+// arg.right.type === "StringLiteral"+// ) {+// arg.right.value = applyColorMapping(arg.right.value)+// }+// })+// }+// }+// }+// })+// .toSource()+// }++// // export function splitClassName(input: string): (string | null)[] {+// // const parts = input.split(":")+// // const classNames = parts.map((part) => {+// // const match = part.match(/^\[?(.+)\]$/)+// // if (match) {+// // return match[1]+// // } else {+// // return null+// // }+// // })++// // return classNames+// // }++// Splits a className into variant-name-alpha.+// eg. hover:bg-primary-100 -> [hover, bg-primary, 100]+export function splitClassName(className: string): (string | null)[] {+ if (!className.includes("/") && !className.includes(":")) {+ return [null, className, null]+ }++ const parts: (string | null)[] = []+ // First we split to find the alpha.+ let [rest, alpha] = className.split("/")++ // Check if rest has a colon.+ if (!rest.includes(":")) {+ return [null, rest, alpha]+ }++ // Next we split the rest by the colon.+ const split = rest.split(":")++ // We take the last item from the split as the name.+ const name = split.pop()++ // We glue back the rest of the split.+ const variant = split.join(":")++ // Finally we push the variant, name and alpha.+ parts.push(variant ?? null, name ?? null, alpha ?? null)++ return parts+}++const PREFIXES = ["bg-", "text-", "border-", "ring-offset-", "ring-"]++export function applyColorMapping(+ input: string,+ mapping: z.infer<typeof registryBaseColorSchema>["inlineColors"]+) {+ // Handle border classes.+ if (input.includes(" border ")) {+ input = input.replace(" border ", " border border-border ")+ }++ // Build color mappings.+ const classNames = input.split(" ")+ const lightMode = new Set<string>()+ const darkMode = new Set<string>()+ for (let className of classNames) {+ const [variant, value, modifier] = splitClassName(className)+ const prefix = PREFIXES.find((prefix) => value?.startsWith(prefix))+ if (!prefix) {+ if (!lightMode.has(className)) {+ lightMode.add(className)+ }+ continue+ }++ const needle = value?.replace(prefix, "")+ if (needle && needle in mapping.light) {+ lightMode.add(+ [variant, `${prefix}${mapping.light[needle]}`]+ .filter(Boolean)+ .join(":") + (modifier ? `/${modifier}` : "")+ )++ darkMode.add(+ ["dark", variant, `${prefix}${mapping.dark[needle]}`]+ .filter(Boolean)+ .join(":") + (modifier ? `/${modifier}` : "")+ )+ continue+ }++ if (!lightMode.has(className)) {+ lightMode.add(className)+ }+ }++ return [...Array.from(lightMode), ...Array.from(darkMode)].join(" ").trim()+}diff --git a/packages/cli/src/utils/transformers/transform-import.ts b/packages/cli/src/utils/transformers/transform-import.tsnew file mode 100644index 00000000..0b912001--- /dev/null+++ b/packages/cli/src/utils/transformers/transform-import.ts@@ -0,0 +1,38 @@+import { Transformer } from "@/src/utils/transformers"++export const transformImport: Transformer = async ({ sourceFile, config }) => {+ const importDeclarations = sourceFile.getImportDeclarations()++ for (const importDeclaration of importDeclarations) {+ const moduleSpecifier = importDeclaration.getModuleSpecifierValue()++ // Replace @/registry/[style] with the components alias.+ if (moduleSpecifier.startsWith("@/registry/")) {+ if (config.aliases.ui) {+ importDeclaration.setModuleSpecifier(+ moduleSpecifier.replace(/^@\/registry\/[^/]+\/ui/, config.aliases.ui)+ )+ } else {+ importDeclaration.setModuleSpecifier(+ moduleSpecifier.replace(+ /^@\/registry\/[^/]+/,+ config.aliases.components+ )+ )+ }+ }++ // Replace `import { cn } from "@/lib/utils"`+ if (moduleSpecifier == "@/lib/utils") {+ const namedImports = importDeclaration.getNamedImports()+ const cnImport = namedImports.find((i) => i.getName() === "cn")+ if (cnImport) {+ importDeclaration.setModuleSpecifier(+ moduleSpecifier.replace(/^@\/lib\/utils/, config.aliases.utils)+ )+ }+ }+ }++ return sourceFile+}diff --git a/packages/cli/src/utils/transformers/transform-jsx.ts b/packages/cli/src/utils/transformers/transform-jsx.tsnew file mode 100644index 00000000..81f6bb59--- /dev/null+++ b/packages/cli/src/utils/transformers/transform-jsx.ts@@ -0,0 +1,95 @@+import { type Transformer } from "@/src/utils/transformers"+import { transformFromAstSync } from "@babel/core"+import { ParserOptions, parse } from "@babel/parser"+// @ts-ignore+import transformTypescript from "@babel/plugin-transform-typescript"+import * as recast from "recast"++// TODO.+// I'm using recast for the AST here.+// Figure out if ts-morph AST is compatible with Babel.++// This is a copy of the babel options from recast/parser.+// The goal here is to tolerate as much syntax as possible.+// We want to be able to parse any valid tsx code.+// See https://github.com/benjamn/recast/blob/master/parsers/_babel_options.ts.+const PARSE_OPTIONS: ParserOptions = {+ sourceType: "module",+ allowImportExportEverywhere: true,+ allowReturnOutsideFunction: true,+ startLine: 1,+ tokens: true,+ plugins: [+ "asyncGenerators",+ "bigInt",+ "classPrivateMethods",+ "classPrivateProperties",+ "classProperties",+ "classStaticBlock",+ "decimal",+ "decorators-legacy",+ "doExpressions",+ "dynamicImport",+ "exportDefaultFrom",+ "exportNamespaceFrom",+ "functionBind",+ "functionSent",+ "importAssertions",+ "importMeta",+ "nullishCoalescingOperator",+ "numericSeparator",+ "objectRestSpread",+ "optionalCatchBinding",+ "optionalChaining",+ [+ "pipelineOperator",+ {+ proposal: "minimal",+ },+ ],+ [+ "recordAndTuple",+ {+ syntaxType: "hash",+ },+ ],+ "throwExpressions",+ "topLevelAwait",+ "v8intrinsic",+ "typescript",+ "jsx",+ ],+}++export const transformJsx: Transformer<String> = async ({+ sourceFile,+ config,+}) => {+ const output = sourceFile.getFullText()++ if (config.tsx) {+ return output+ }++ const ast = recast.parse(output, {+ parser: {+ parse: (code: string) => {+ return parse(code, PARSE_OPTIONS)+ },+ },+ })++ const result = transformFromAstSync(ast, output, {+ cloneInputAst: false,+ code: false,+ ast: true,+ plugins: [transformTypescript],+ configFile: false,+ })++ if (!result || !result.ast) {+ throw new Error("Failed to transform JSX")+ }++ return recast.print(result.ast).code+}diff --git a/packages/cli/src/utils/transformers/transform-rsc.ts b/packages/cli/src/utils/transformers/transform-rsc.tsnew file mode 100644index 00000000..b7d24a07--- /dev/null+++ b/packages/cli/src/utils/transformers/transform-rsc.ts@@ -0,0 +1,16 @@+import { Transformer } from "@/src/utils/transformers"+import { SyntaxKind } from "ts-morph"++export const transformRsc: Transformer = async ({ sourceFile, config }) => {+ if (config.rsc) {+ return sourceFile+ }++ // Remove "use client" from the top of the file.+ const first = sourceFile.getFirstChildByKind(SyntaxKind.ExpressionStatement)+ if (first?.getText() === `"use client"`) {+ first.remove()+ }++ return sourceFile+}diff --git a/packages/cli/src/utils/transformers/transform-tw-prefix.ts b/packages/cli/src/utils/transformers/transform-tw-prefix.tsnew file mode 100644index 00000000..1fed9a88--- /dev/null+++ b/packages/cli/src/utils/transformers/transform-tw-prefix.ts@@ -0,0 +1,201 @@+import { Transformer } from "@/src/utils/transformers"+import { SyntaxKind } from "ts-morph"++import { splitClassName } from "./transform-css-vars"++export const transformTwPrefixes: Transformer = async ({+ sourceFile,+ config,+}) => {+ if (!config.tailwind?.prefix) {+ return sourceFile+ }++ // Find the cva function calls.+ sourceFile+ .getDescendantsOfKind(SyntaxKind.CallExpression)+ .filter((node) => node.getExpression().getText() === "cva")+ .forEach((node) => {+ // cva(base, ...)+ if (node.getArguments()[0]?.isKind(SyntaxKind.StringLiteral)) {+ const defaultClassNames = node.getArguments()[0]+ if (defaultClassNames) {+ defaultClassNames.replaceWithText(+ `"${applyPrefix(+ defaultClassNames.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ }++ // cva(..., { variants: { ... } })+ if (node.getArguments()[1]?.isKind(SyntaxKind.ObjectLiteralExpression)) {+ node+ .getArguments()[1]+ ?.getDescendantsOfKind(SyntaxKind.PropertyAssignment)+ .find((node) => node.getName() === "variants")+ ?.getDescendantsOfKind(SyntaxKind.PropertyAssignment)+ .forEach((node) => {+ node+ .getDescendantsOfKind(SyntaxKind.PropertyAssignment)+ .forEach((node) => {+ const classNames = node.getInitializerIfKind(+ SyntaxKind.StringLiteral+ )+ if (classNames) {+ classNames?.replaceWithText(+ `"${applyPrefix(+ classNames.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ })+ })+ }+ })++ // Find all jsx attributes with the name className.+ sourceFile.getDescendantsOfKind(SyntaxKind.JsxAttribute).forEach((node) => {+ if (node.getName() === "className") {+ // className="..."+ if (node.getInitializer()?.isKind(SyntaxKind.StringLiteral)) {+ const value = node.getInitializer()+ if (value) {+ value.replaceWithText(+ `"${applyPrefix(+ value.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ }++ // className={...}+ if (node.getInitializer()?.isKind(SyntaxKind.JsxExpression)) {+ // Check if it's a call to cn().+ const callExpression = node+ .getInitializer()+ ?.getDescendantsOfKind(SyntaxKind.CallExpression)+ .find((node) => node.getExpression().getText() === "cn")+ if (callExpression) {+ // Loop through the arguments.+ callExpression.getArguments().forEach((node) => {+ if (+ node.isKind(SyntaxKind.ConditionalExpression) ||+ node.isKind(SyntaxKind.BinaryExpression)+ ) {+ node+ .getChildrenOfKind(SyntaxKind.StringLiteral)+ .forEach((node) => {+ node.replaceWithText(+ `"${applyPrefix(+ node.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ })+ }++ if (node.isKind(SyntaxKind.StringLiteral)) {+ node.replaceWithText(+ `"${applyPrefix(+ node.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ })+ }+ }+ }++ // classNames={...}+ if (node.getName() === "classNames") {+ if (node.getInitializer()?.isKind(SyntaxKind.JsxExpression)) {+ node+ .getDescendantsOfKind(SyntaxKind.PropertyAssignment)+ .forEach((node) => {+ if (node.getInitializer()?.isKind(SyntaxKind.CallExpression)) {+ const callExpression = node.getInitializerIfKind(+ SyntaxKind.CallExpression+ )+ if (callExpression) {+ // Loop through the arguments.+ callExpression.getArguments().forEach((arg) => {+ if (arg.isKind(SyntaxKind.ConditionalExpression)) {+ arg+ .getChildrenOfKind(SyntaxKind.StringLiteral)+ .forEach((node) => {+ node.replaceWithText(+ `"${applyPrefix(+ node.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ })+ }++ if (arg.isKind(SyntaxKind.StringLiteral)) {+ arg.replaceWithText(+ `"${applyPrefix(+ arg.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ })+ }+ }++ if (node.getInitializer()?.isKind(SyntaxKind.StringLiteral)) {+ if (node.getName() !== "variant") {+ const classNames = node.getInitializer()+ if (classNames) {+ classNames.replaceWithText(+ `"${applyPrefix(+ classNames.getText()?.replace(/"/g, ""),+ config.tailwind.prefix+ )}"`+ )+ }+ }+ }+ })+ }+ }+ })++ return sourceFile+}++export function applyPrefix(input: string, prefix: string = "") {+ const classNames = input.split(" ")+ const prefixed: string[] = []+ for (let className of classNames) {+ const [variant, value, modifier] = splitClassName(className)+ if (variant) {+ modifier+ ? prefixed.push(`${variant}:${prefix}${value}/${modifier}`)+ : prefixed.push(`${variant}:${prefix}${value}`)+ } else {+ modifier+ ? prefixed.push(`${prefix}${value}/${modifier}`)+ : prefixed.push(`${prefix}${value}`)+ }+ }+ return prefixed.join(" ")+}++export function applyPrefixesCss(css: string, prefix: string) {+ const lines = css.split("\n")+ for (let line of lines) {+ if (line.includes("@apply")) {+ const originalTWCls = line.replace("@apply", "").trim()+ const prefixedTwCls = applyPrefix(originalTWCls, prefix)+ css = css.replace(originalTWCls, prefixedTwCls)+ }+ }+ return css+}diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.jsonnew file mode 100644index 00000000..c1afb195--- /dev/null+++ b/packages/cli/tsconfig.json@@ -0,0 +1,13 @@+{+ "$schema": "https://json.schemastore.org/tsconfig",+ "extends": "../../tsconfig.json",+ "compilerOptions": {+ "isolatedModules": false,+ "baseUrl": ".",+ "paths": {+ "@/*": ["./*"]+ }+ },+ "include": ["src/**/*.ts"],+ "exclude": ["node_modules"]+}diff --git a/packages/cli/tsup.config.ts b/packages/cli/tsup.config.tsnew file mode 100644index 00000000..bfcc1790--- /dev/null+++ b/packages/cli/tsup.config.ts@@ -0,0 +1,12 @@+import { defineConfig } from "tsup"++export default defineConfig({+ clean: true,+ dts: false,+ entry: ["src/index.ts"],+ format: ["esm"],+ sourcemap: true,+ minify: true,+ target: "esnext",+ outDir: "dist",+})diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex c859d7f2..776bc76f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -8,9 +8,9 @@ importers:.:dependencies:- '@auth/prisma-adapter':- specifier: ^1.0.0+ '@fontsource/inter':+ specifier: ^5.0.15+ version: 5.0.18'@headlessui/react':specifier: ^1.7.17@@ -23,12 +23,6 @@ importers:'@motionone/utils':specifier: ^10.17.0version: 10.17.0- '@next-auth/prisma-adapter':- specifier: ^1.0.7- version: 1.0.7(@prisma/[email protected]([email protected]))([email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))- '@prisma/client':- specifier: ^5.11.0- version: 5.11.0([email protected])'@radix-ui/react-accordion':specifier: ^1.1.2version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])@@ -121,16 +115,13 @@ importers:version: 0.0.9'@react-email/tailwind':specifier: 0.0.8- version: 0.0.8'@react-email/text':specifier: 0.0.5version: 0.0.5'@t3-oss/env-nextjs':specifier: ^0.7.1version: 0.7.3([email protected])([email protected])- '@vercel/og':- specifier: ^0.5.20- version: 0.5.20autoprefixer:specifier: 10.4.14version: 10.4.14([email protected])@@ -151,7 +142,7 @@ importers:version: 0.6.3contentlayer:specifier: ^0.3.4- version: 0.3.4([email protected])+ version: 0.3.4([email protected])crisp-sdk-web:specifier: ^1.0.25version: 1.0.25@@ -190,7 +181,7 @@ importers:version: 4.24.7([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])next-contentlayer:specifier: ^0.3.4- version: 0.3.4([email protected]([email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.3.4([email protected]([email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])next-themes:specifier: ^0.3.0@@ -263,7 +254,7 @@ importers:devDependencies:'@tailwindcss/typography':specifier: ^0.5.9- version: 0.5.10([email protected])+ version: 0.5.10([email protected]([email protected](@types/[email protected])([email protected])))'@types/canvas-confetti':specifier: ^1.6.4version: 1.6.4@@ -291,9 +282,6 @@ importers:prettier-plugin-tailwindcss:specifier: ^0.4.1version: 0.4.1([email protected])- prisma:- specifier: ^5.11.0- version: 5.11.0rehype-autolink-headings:specifier: ^6.1.1version: 6.1.1@@ -309,15 +297,21 @@ importers:remark-gfm:specifier: ^3.0.1version: 3.0.1+ rimraf:+ specifier: ^5.0.7+ version: 5.0.7shiki:specifier: ^0.14.2version: 0.14.7tailwindcss:specifier: 3.4.1- version: 3.4.1tailwindcss-animate:specifier: ^1.0.7- version: 1.0.7([email protected])+ tsx:+ specifier: ^4.11.0+ version: 4.11.0typescript:specifier: ^5.3.3version: 5.3.3@@ -342,25 +336,6 @@ packages:resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}engines: {node: '>=6.0.0'}- '@auth/[email protected]':- resolution: {integrity: sha512-3bydnRJIM/Al6mkYmb53MsC+6G8ojw3lLPzwgVnX4dCo6N2lrib6Wq6r0vxZIhuHGjLObqqtUfpeaEj5aeTHFg==}- peerDependencies:- '@simplewebauthn/browser': ^9.0.1- '@simplewebauthn/server': ^9.0.2- nodemailer: ^6.8.0- peerDependenciesMeta:- '@simplewebauthn/browser':- optional: true- '@simplewebauthn/server':- optional: true- nodemailer:- optional: true-- '@auth/[email protected]':- resolution: {integrity: sha512-k5D6ajX8MZv9107WWaIpzcNmsB8+sumyc7y46lnAMbLdgBoUcwAYtxGLbwEFSvzgjDcxjWqzlB5AIAED4vioDA==}- peerDependencies:- '@prisma/client': '>=2.26.0 || >=3 || >=4 || >=5'-'@babel/[email protected]':resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==}engines: {node: '>=6.9.0'}@@ -1110,6 +1085,10 @@ packages:'@effect-ts/otel-node':optional: true+ '@cspotcode/[email protected]':+ resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}+ engines: {node: '>=12'}+'@csstools/[email protected]':resolution: {integrity: sha512-P7BVvddsP2Wl5v3drJ3ArzpdfXMqoZ/oHOV/yFiGFb3JQr9Z9UXZ9tnHAKJsO89lfprR1F9ExW3Yij21EjEBIA==}engines: {node: '>=6.0.0'}@@ -1157,8 +1136,8 @@ packages:peerDependencies:esbuild: '*'- '@esbuild/[email protected]':- resolution: {integrity: sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}engines: {node: '>=12'}cpu: [ppc64]os: [aix]@@ -1169,8 +1148,8 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==}engines: {node: '>=12'}cpu: [arm64]os: [android]@@ -1181,8 +1160,8 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==}engines: {node: '>=12'}cpu: [arm]os: [android]@@ -1193,8 +1172,8 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==}engines: {node: '>=12'}cpu: [x64]os: [android]@@ -1205,8 +1184,8 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==}engines: {node: '>=12'}cpu: [arm64]os: [darwin]@@ -1217,8 +1196,8 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==}engines: {node: '>=12'}cpu: [x64]os: [darwin]@@ -1229,8 +1208,8 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==}engines: {node: '>=12'}cpu: [arm64]os: [freebsd]@@ -1241,8 +1220,8 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==}engines: {node: '>=12'}cpu: [x64]os: [freebsd]@@ -1253,8 +1232,8 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==}engines: {node: '>=12'}cpu: [arm64]os: [linux]@@ -1265,8 +1244,8 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==}engines: {node: '>=12'}cpu: [arm]os: [linux]@@ -1277,8 +1256,8 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==}engines: {node: '>=12'}cpu: [ia32]os: [linux]@@ -1289,8 +1268,8 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==}engines: {node: '>=12'}cpu: [loong64]os: [linux]@@ -1301,8 +1280,8 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==}engines: {node: '>=12'}cpu: [mips64el]os: [linux]@@ -1313,8 +1292,8 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==}engines: {node: '>=12'}cpu: [ppc64]os: [linux]@@ -1325,8 +1304,8 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==}engines: {node: '>=12'}cpu: [riscv64]os: [linux]@@ -1337,8 +1316,8 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==}engines: {node: '>=12'}cpu: [s390x]os: [linux]@@ -1349,8 +1328,8 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==}engines: {node: '>=12'}cpu: [x64]os: [linux]@@ -1361,8 +1340,8 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==}engines: {node: '>=12'}cpu: [x64]os: [netbsd]@@ -1373,8 +1352,8 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==}engines: {node: '>=12'}cpu: [x64]os: [openbsd]@@ -1385,8 +1364,8 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==}engines: {node: '>=12'}cpu: [x64]os: [sunos]@@ -1397,8 +1376,8 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==}engines: {node: '>=12'}cpu: [arm64]os: [win32]@@ -1409,8 +1388,8 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==}engines: {node: '>=12'}cpu: [ia32]os: [win32]@@ -1421,8 +1400,8 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==}engines: {node: '>=12'}cpu: [x64]os: [win32]@@ -1463,6 +1442,9 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==}+ '@fontsource/[email protected]':+ resolution: {integrity: sha512-YCsoYPTcs713sI7tLtxaPrIhXAXvEetGg5Ry02ivA8qUOb3fQHojbK/X9HLD5OOKvFUNR2Ynkwb1kR1hVKQHpw==}+'@grpc/[email protected]':resolution: {integrity: sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==}engines: {node: ^8.13.0 || >=10.10.0}@@ -1559,6 +1541,9 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}+'@js-temporal/[email protected]':resolution: {integrity: sha512-2X6bvghJ/JAoZO52lbgyAPFj8uCflhTo2g7nkFzEQdXd/D8rEeD4HtmTEpmtGCva260fcd66YNXBOYdnmHqSOg==}engines: {node: '>=12'}@@ -1585,12 +1570,6 @@ packages:'@motionone/[email protected]':resolution: {integrity: sha512-bGwrki4896apMWIj9yp5rAS2m0xyhxblg6gTB/leWDPt+pb410W8lYWsxyurX+DH+gO1zsQsfx2su/c1/LtTpg==}- '@next-auth/[email protected]':- resolution: {integrity: sha512-Cdko4KfcmKjsyHFrWwZ//lfLUbcLqlyFqjd/nYE2m3aZ7tjMNUjpks47iw7NTCnXf+5UWz5Ypyt1dSs1EP5QJw==}- peerDependencies:- '@prisma/client': '>=2.26.0 || >=3'- next-auth: ^4-'@next/[email protected]':resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==}@@ -1956,30 +1935,6 @@ packages:resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}- '@prisma/[email protected]':- resolution: {integrity: sha512-SWshvS5FDXvgJKM/a0y9nDC1rqd7KG0Q6ZVzd+U7ZXK5soe73DJxJJgbNBt2GNXOa+ysWB4suTpdK5zfFPhwiw==}- engines: {node: '>=16.13'}- peerDependencies:- prisma: '*'- peerDependenciesMeta:- prisma:- optional: true-- '@prisma/[email protected]':- resolution: {integrity: sha512-N6yYr3AbQqaiUg+OgjkdPp3KPW1vMTAgtKX6+BiB/qB2i1TjLYCrweKcUjzOoRM5BriA4idrkTej9A9QqTfl3A==}-- '@prisma/engines-version@5.11.0-15.efd2449663b3d73d637ea1fd226bafbcf45b3102':- resolution: {integrity: sha512-WXCuyoymvrS4zLz4wQagSsc3/nE6CHy8znyiMv8RKazKymOMd5o9FP5RGwGHAtgoxd+aB/BWqxuP/Ckfu7/3MA==}-- '@prisma/[email protected]':- resolution: {integrity: sha512-gbrpQoBTYWXDRqD+iTYMirDlF9MMlQdxskQXbhARhG6A/uFQjB7DZMYocMQLoiZXO/IskfDOZpPoZE8TBQKtEw==}-- '@prisma/[email protected]':- resolution: {integrity: sha512-994viazmHTJ1ymzvWugXod7dZ42T2ROeFuH6zHPcUfp/69+6cl5r9u3NFb6bW8lLdNjwLYEVPeu3hWzxpZeC0w==}-- '@prisma/[email protected]':- resolution: {integrity: sha512-rxtHpMLxNTHxqWuGOLzR2QOyQi79rK1u1XYAVLZxDGTLz/A+uoDnjz9veBFlicrpWjwuieM4N6jcnjj/DDoidw==}-'@protobufjs/[email protected]':resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}@@ -2786,21 +2741,12 @@ packages:react-native:optional: true- '@resvg/[email protected]':- resolution: {integrity: sha512-iDkBM6Ivex8nULtBu8cX670/lfsGxq8U1cuqE+qS9xFpPQP1enPdVm/33Kq3+B+bAldA+AHNZnCgpmlHo/fZrQ==}- engines: {node: '>= 10'}-'@rushstack/[email protected]':resolution: {integrity: sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==}'@selderee/[email protected]':resolution: {integrity: sha512-gW69MEamZ4wk1OsOq1nG1jcyhXIQcnrsX5JwixVw/9xaiav8TCyjESAruu1Rz9yyInhgBXxkNwMeygKnN2uxNA==}- '@shuding/[email protected]':- resolution: {integrity: sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA==}- engines: {node: '>= 8.0.0'}- hasBin: true-'@sideway/[email protected]':resolution: {integrity: sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==}@@ -2861,6 +2807,18 @@ packages:resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}engines: {node: '>=10.13.0'}+ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}+'@types/[email protected]':resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==}@@ -2873,9 +2831,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==}- '@types/[email protected]':- resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}-'@types/[email protected]':resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}@@ -3000,10 +2955,6 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}- '@vercel/[email protected]':- resolution: {integrity: sha512-zi+ZXSx/peXA+1lq7s/5Vzmm/TTfTSf/5P1qNYnh42+7X+pZmahWoXt0i7SWiq3WagfsNUNA4hUDapDiHRoXqA==}- engines: {node: '>=16'}-resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -3028,6 +2979,10 @@ packages:resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==}engines: {node: '>=0.4.0'}+ resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==}+ engines: {node: '>=0.4.0'}+resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==}engines: {node: '>=0.4.0'}@@ -3095,6 +3050,9 @@ packages:resolution: {integrity: sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==}+ resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==}+resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}@@ -3226,10 +3184,6 @@ packages:resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}- resolution: {integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}@@ -3343,9 +3297,6 @@ packages:resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}engines: {node: '>=10'}- resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==}-resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}@@ -3556,10 +3507,6 @@ packages:resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==}- engines: {node: '>= 0.6'}-resolution: {integrity: sha512-iV9Pd/PsgjNWBXeq8XRtWVSgz2tKAfhfvBs7qxYty+RlRd+OCksaWmOnc4JKrTc1cToXL1N0s3l/vwlxPtdElw==}@@ -3570,6 +3517,9 @@ packages:resolution: {integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==}engines: {node: '>=4'}+ resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}+resolution: {integrity: sha512-CWTHFFeHRV0oqiXoPh/aIAKhFs6xcIM4NenGPnClAMCZUDQgQsF1OWmZWmnVNjJriXUmWRgDfeUxcxygS0dCRA==}@@ -3584,16 +3534,6 @@ packages:resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}engines: {node: '>= 8'}- resolution: {integrity: sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA==}-- resolution: {integrity: sha512-9jaqR6e7Ohds+aWwmhe6wILJ99xYQbfmK9QQB9CcMjDbTxPZjwEmUQpU91OG05Xgm8BahT5fW+svbsQGjS/zPg==}-- resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==}- engines: {node: '>=4'}-resolution: {integrity: sha512-dZ3bVTEEc1vxr3Bek9vGwfB5Z6ESPULhcRvO472mfjVnj8jRcTnKO8/JTczlvxM10Myb+wBM++1MtdO76eWcaQ==}engines: {node: ^14 || ^16 || >=18}@@ -3603,9 +3543,6 @@ packages:resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==}- resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==}-resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==}engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}@@ -3759,6 +3696,10 @@ packages:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}+ resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==}+ engines: {node: '>=0.3.1'}+resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==}engines: {node: '>=0.3.1'}@@ -3815,9 +3756,6 @@ packages:resolution: {integrity: sha512-3avY1B+vUzNxEgkBDpKOP8WarvUAEwpRaiCL0He5OKWEFxzaOFiq4WoZEZe7qh0ReS7DiWoHMnYoQCKxNZNzSg==}- resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==}-resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -3886,8 +3824,8 @@ packages:engines: {node: '>=12'}hasBin: true- resolution: {integrity: sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA==}+ resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==}engines: {node: '>=12'}hasBin: true@@ -4101,9 +4039,6 @@ packages:resolution: {integrity: sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==}- resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==}-resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}engines: {node: ^10.12.0 || >=12.0.0}@@ -4257,6 +4192,9 @@ packages:resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==}+ resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==}+resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}@@ -4402,10 +4340,6 @@ packages:resolution: {integrity: sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==}- engines: {node: '>=6'}-resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==}@@ -4752,9 +4686,6 @@ packages:resolution: {integrity: sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg==}- resolution: {integrity: sha512-/WByRr4jDcsKlvMd1dRJnPfS1GVO3WuKyaurJ/vvXcOaUQO8rnNObCQMlv/5uCceVQIq5Q4WLF44ohsdiTohdg==}-resolution: {integrity: sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==}engines: {node: '>=14'}@@ -4897,9 +4828,6 @@ packages:resolution: {integrity: sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==}engines: {node: '>=14'}- resolution: {integrity: sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ==}-resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}@@ -5005,6 +4933,9 @@ packages:resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}+resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}@@ -5478,9 +5409,6 @@ packages:resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==}- resolution: {integrity: sha512-9FkXEXfzVKzH63GUOZz1zMr3wBaICSzk6DLXx+CGdrQ10ItNk2ePWzYYc1fdmKq1ayGFb2aX97sRCoZ2s0mkDw==}-resolution: {integrity: sha512-a5ERWK1kh38ExDEfoO6qUHJb32rd7aYmPHuyCu3Fta/cnICvYmgd2uhuKXvPD+PXB+gCEYYEaQdIRAjCOwAKNA==}@@ -5603,16 +5531,10 @@ packages:resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==}-resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}engines: {node: '>=6'}- resolution: {integrity: sha512-bwS/GGIFV3b6KS4uwpzCFj4w297Yl3uqnSgIPsoQkx7GMLROXfMnWvxfNkL0oh8HVhZA4hvJoEoEIqonfJ3BWg==}-resolution: {integrity: sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==}@@ -5967,19 +5889,11 @@ packages:resolution: {integrity: sha512-A5d0vYKLjmVtwF2uPxoFidDkVC6bTQUebm4s1LgKDIE+hHVfSmhbZ4pHqvwWmeJXdQHoQdvzG5Ve4STiiizBGQ==}- resolution: {integrity: sha512-aPDxUn5o3GhWdtJtW0svRC2SS/l8D9MAgo2+AWml+BhDImb27ALf04Q2d+AHqUUOc6RdSXFIBVa2gxzgMKgtZA==}- peerDependencies:- preact: '>=10'-resolution: {integrity: sha512-JyhErpYOvBV1hEPwIxc/fHWXPfnEGdRKxc8gFdAZ7XV4tlzyzG847XAyEZqoDnynP88akM4eaHcSOzNcLWFguw==}peerDependencies:preact: '>=10'- resolution: {integrity: sha512-eY93IVpod/zG3uMF22Unl8h9KkrcKIRs2EGar8hwLZZDU1lkjph303V9HZBwufh2s736U6VXuhD109LYqPoffg==}-resolution: {integrity: sha512-gympg+T2Z1fG1unB8NH29yHJwnEaCH37Z32diPDku316OTnRPeMbiRV9kTrfZpocXjdfnWuFUl/Mj4BHaf6gnw==}@@ -6063,11 +5977,6 @@ packages:resolution: {integrity: sha512-G9xUchgTEiNpormdYBl+Pha50gOUovT18IvAe7EYMZ1/f9W/WWMPRn+xI68yXNMUk3QXHDwo/1wV/4NejVNe1w==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-KCLiug2cs0Je7kGkQBN9jDWoZ90ogE/kvZTUTgz2h94FEo8pczCkPH7fPNXkD1sGU7Yh65risGGD1HQ5DF3r3g==}- engines: {node: '>=16.13'}- hasBin: true-resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}@@ -6436,6 +6345,11 @@ packages:resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}hasBin: true+ resolution: {integrity: sha512-nV6YcJo5wbLW77m+8KjH8aB/7/rxQy9SZ0HY5shnwULfS+9nmTtVXAJET5NdZmCzA4fPI/Hm1wo/Po/4mopOdg==}+ engines: {node: '>=14.18'}+ hasBin: true+resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}@@ -6457,10 +6371,6 @@ packages:resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-XU9EELUEZuioT4acLIpCXxHcFzrsC8muvg0MY28d+TlqwxbkTzBmWbw+3+hnCzXT7YZ0Qm8k3eXktDaEu+qmEw==}- engines: {node: '>=16'}-resolution: {integrity: sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==}@@ -6655,9 +6565,6 @@ packages:resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}engines: {node: '>=12'}- resolution: {integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==}-resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==}@@ -6842,9 +6749,6 @@ packages:resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==}- resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}-resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}@@ -6888,6 +6792,20 @@ packages:resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}+ resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}+ hasBin: true+ peerDependencies:+ '@swc/core': '>=1.2.50'+ '@swc/wasm': '>=1.2.50'+ '@types/node': '*'+ typescript: '>=2.7'+ peerDependenciesMeta:+ '@swc/core':+ optional: true+ '@swc/wasm':+ optional: true+resolution: {integrity: sha512-pefrkcd4lmIVR0LA49Imjf9DYLK8vtWhqBPA3Ya1ir8xCW0O2yjL9dsCVvI7pCodLC5q7smNpEtDR2yVulQxOg==}@@ -6897,6 +6815,11 @@ packages:resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}+ resolution: {integrity: sha512-vzGGELOgAupsNVssAmZjbUDfdm/pWP4R+Kg8TVdsonxbXk0bEpE1qh0yV6/QxUVXaVlNemgcPajGdJJ82n3stg==}+ engines: {node: '>=18.0.0'}+ hasBin: true+resolution: {integrity: sha512-dBwFxhp9isTa9RS/fz2gDVk5wWhKQsPQMozYhjM7TT4jTrnYn0ZJMzr7V3B/M/T8QF65TbniW7w1gtgxQgX5Zg==}cpu: [x64]@@ -7009,9 +6932,6 @@ packages:resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==}engines: {node: '>=4'}- resolution: {integrity: sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==}-resolution: {integrity: sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==}@@ -7113,6 +7033,9 @@ packages:engines: {node: '>=8'}hasBin: true+ resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}+resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}@@ -7269,13 +7192,14 @@ packages:resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}engines: {node: '>=12'}+ resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}engines: {node: '>=10'}- resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==}-resolution: {integrity: sha512-raRj6r0gPzopFm5XWBJZr/NuV4EEnT4iE+U3dp5FV5pCb588Gmm3zLIp/j9yqqcMiHH8VNQlerLTgOqL7krh6w==}@@ -7305,27 +7229,6 @@ snapshots:'@jridgewell/gen-mapping': 0.3.4'@jridgewell/trace-mapping': 0.3.23- '@auth/[email protected]([email protected])':- dependencies:- '@panva/hkdf': 1.1.1- '@types/cookie': 0.6.0- cookie: 0.6.0- jose: 5.2.2- oauth4webapi: 2.10.3- preact: 10.11.3- preact-render-to-string: 5.2.3([email protected])- optionalDependencies:- nodemailer: 6.9.10-- dependencies:- '@auth/core': 0.27.0([email protected])- '@prisma/client': 5.11.0([email protected])- transitivePeerDependencies:- - '@simplewebauthn/browser'- - '@simplewebauthn/server'- - nodemailer-'@babel/[email protected]':dependencies:'@babel/highlight': 7.23.4@@ -8183,9 +8086,9 @@ snapshots:dependencies:commander: 9.4.1- '@contentlayer/[email protected]([email protected])':+ '@contentlayer/[email protected]([email protected])':dependencies:- '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])'@contentlayer/utils': 0.3.4clipanion: 3.2.1([email protected])typanion: 3.14.0@@ -8195,22 +8098,22 @@ snapshots:- markdown-wasm- supports-color- '@contentlayer/[email protected]([email protected])':+ '@contentlayer/[email protected]([email protected])':dependencies:- '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])transitivePeerDependencies:- '@effect-ts/otel-node'- esbuild- markdown-wasm- supports-color- '@contentlayer/[email protected]([email protected])':+ '@contentlayer/[email protected]([email protected])':dependencies:'@contentlayer/utils': 0.3.4camel-case: 4.1.2comment-json: 4.2.3gray-matter: 4.0.3- mdx-bundler: 9.2.1([email protected])+ mdx-bundler: 9.2.1([email protected])rehype-stringify: 9.0.4remark-frontmatter: 4.0.1remark-parse: 10.0.2@@ -8219,14 +8122,14 @@ snapshots:type-fest: 3.13.1unified: 10.1.2optionalDependencies:- esbuild: 0.20.1+ esbuild: 0.20.2transitivePeerDependencies:- '@effect-ts/otel-node'- supports-color- '@contentlayer/[email protected]([email protected])':+ '@contentlayer/[email protected]([email protected])':dependencies:- '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])'@contentlayer/utils': 0.3.4chokidar: 3.6.0fast-glob: 3.3.2@@ -8243,10 +8146,10 @@ snapshots:- markdown-wasm- supports-color- '@contentlayer/[email protected]([email protected])':+ '@contentlayer/[email protected]([email protected])':dependencies:- '@contentlayer/core': 0.3.4([email protected])- '@contentlayer/source-files': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/source-files': 0.3.4([email protected])'@contentlayer/utils': 0.3.4transitivePeerDependencies:- '@effect-ts/otel-node'@@ -8276,6 +8179,11 @@ snapshots:ts-pattern: 4.3.0type-fest: 3.13.1+ '@cspotcode/[email protected]':+ dependencies:+ '@jridgewell/trace-mapping': 0.3.9+ optional: true+'@csstools/[email protected]': {}'@effect-ts/[email protected]':@@ -8317,149 +8225,149 @@ snapshots:'@emotion/[email protected]':optional: true- '@esbuild-plugins/[email protected]([email protected])':+ '@esbuild-plugins/[email protected]([email protected])':dependencies:'@types/resolve': 1.20.6debug: 4.3.4- esbuild: 0.20.1+ esbuild: 0.20.2escape-string-regexp: 4.0.0resolve: 1.22.8transitivePeerDependencies:- supports-color- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@eslint-community/[email protected]([email protected])':@@ -8504,6 +8412,8 @@ snapshots:'@floating-ui/[email protected]': {}+ '@fontsource/[email protected]': {}+'@grpc/[email protected]':dependencies:'@grpc/proto-loader': 0.7.10@@ -8623,6 +8533,12 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.4.15+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.4.15+ optional: true+'@js-temporal/[email protected]':dependencies:jsbi: 4.3.0@@ -8642,10 +8558,10 @@ snapshots:jju: 1.4.0read-yaml-file: 1.1.0- '@mdx-js/[email protected]([email protected])':+ '@mdx-js/[email protected]([email protected])':dependencies:'@mdx-js/mdx': 2.3.0- esbuild: 0.20.1+ esbuild: 0.20.2node-fetch: 3.3.2vfile: 5.3.7transitivePeerDependencies:@@ -8681,11 +8597,6 @@ snapshots:hey-listen: 1.0.8tslib: 2.6.2- '@next-auth/[email protected](@prisma/[email protected]([email protected]))([email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))':- dependencies:- '@prisma/client': 5.11.0([email protected])- next-auth: 4.24.7([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])-'@next/[email protected]': {}'@next/[email protected]':@@ -9096,31 +9007,6 @@ snapshots:'@pkgjs/[email protected]':optional: true- '@prisma/[email protected]([email protected])':- optionalDependencies:- prisma: 5.11.0-- '@prisma/[email protected]': {}-- '@prisma/engines-version@5.11.0-15.efd2449663b3d73d637ea1fd226bafbcf45b3102': {}-- '@prisma/[email protected]':- dependencies:- '@prisma/debug': 5.11.0- '@prisma/engines-version': 5.11.0-15.efd2449663b3d73d637ea1fd226bafbcf45b3102- '@prisma/fetch-engine': 5.11.0- '@prisma/get-platform': 5.11.0-- '@prisma/[email protected]':- dependencies:- '@prisma/debug': 5.11.0- '@prisma/engines-version': 5.11.0-15.efd2449663b3d73d637ea1fd226bafbcf45b3102- '@prisma/get-platform': 5.11.0-- '@prisma/[email protected]':- dependencies:- '@prisma/debug': 5.11.0-'@protobufjs/[email protected]': {}'@protobufjs/[email protected]': {}@@ -9826,12 +9712,12 @@ snapshots:dependencies:react: 18.2.0- '@react-email/[email protected]':dependencies:html-react-parser: 3.0.9([email protected])react: 18.2.0react-dom: 18.2.0([email protected])- tw-to-css: 0.0.11transitivePeerDependencies:- ts-node@@ -10202,8 +10088,6 @@ snapshots:react-dom: 18.2.0([email protected])react-native: 0.73.5(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])- '@resvg/[email protected]': {}-'@rushstack/[email protected]': {}'@selderee/[email protected]':@@ -10211,11 +10095,6 @@ snapshots:domhandler: 5.0.3selderee: 0.10.0- '@shuding/[email protected]':- dependencies:- fflate: 0.7.4- string.prototype.codepointat: 0.2.1-'@sideway/[email protected]':dependencies:'@hapi/hoek': 9.3.0@@ -10255,13 +10134,13 @@ snapshots:optionalDependencies:typescript: 5.3.3- '@tailwindcss/[email protected]([email protected])':+ '@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:lodash.castarray: 4.4.0lodash.isplainobject: 4.0.6lodash.merge: 4.6.2postcss-selector-parser: 6.0.10- tailwindcss: 3.4.1dependencies:@@ -10273,6 +10152,18 @@ snapshots:'@trysound/[email protected]': {}+ '@tsconfig/[email protected]':+ optional: true++ '@tsconfig/[email protected]':+ optional: true++ '@tsconfig/[email protected]':+ optional: true++ '@tsconfig/[email protected]':+ optional: true+'@types/[email protected]':dependencies:'@types/estree': 1.0.5@@ -10283,8 +10174,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]':dependencies:'@types/ms': 0.7.34@@ -10417,12 +10306,6 @@ snapshots:'@ungap/[email protected]': {}- '@vercel/[email protected]':- dependencies:- '@resvg/resvg-wasm': 2.6.0- satori: 0.10.9- yoga-wasm-web: 0.3.3-@@ -10446,6 +10329,9 @@ snapshots:+ optional: true+@@ -10501,6 +10387,9 @@ snapshots:+ optional: true+@@ -10669,8 +10558,6 @@ snapshots:- [email protected]: {}-@@ -10777,8 +10664,6 @@ snapshots:- [email protected]: {}-dependencies:browserslist: 4.23.0@@ -11003,13 +10888,13 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@contentlayer/cli': 0.3.4([email protected])- '@contentlayer/client': 0.3.4([email protected])- '@contentlayer/core': 0.3.4([email protected])- '@contentlayer/source-files': 0.3.4([email protected])- '@contentlayer/source-remote-files': 0.3.4([email protected])+ '@contentlayer/cli': 0.3.4([email protected])+ '@contentlayer/client': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/source-files': 0.3.4([email protected])+ '@contentlayer/source-remote-files': 0.3.4([email protected])'@contentlayer/utils': 0.3.4transitivePeerDependencies:- '@effect-ts/otel-node'@@ -11021,8 +10906,6 @@ snapshots:- [email protected]: {}-dependencies:browserslist: 4.23.0@@ -11036,6 +10919,9 @@ snapshots:js-yaml: 3.14.1parse-json: 4.0.0+ optional: true+@@ -11062,12 +10948,6 @@ snapshots:shebang-command: 2.0.0which: 2.0.2- [email protected]: {}-- [email protected]: {}-- [email protected]: {}-dependencies:postcss: 8.4.32@@ -11080,12 +10960,6 @@ snapshots:domutils: 3.1.0nth-check: 2.1.1- dependencies:- camelize: 1.0.1- css-color-keywords: 1.0.0- postcss-value-parser: 4.2.0-dependencies:mdn-data: 2.0.28@@ -11233,6 +11107,9 @@ snapshots:+ optional: true+@@ -11290,8 +11167,6 @@ snapshots:- [email protected]: {}-@@ -11431,31 +11306,31 @@ snapshots:'@esbuild/win32-ia32': 0.16.4'@esbuild/win32-x64': 0.16.4optionalDependencies:- '@esbuild/aix-ppc64': 0.20.1- '@esbuild/android-arm': 0.20.1- '@esbuild/android-arm64': 0.20.1- '@esbuild/android-x64': 0.20.1- '@esbuild/darwin-arm64': 0.20.1- '@esbuild/darwin-x64': 0.20.1- '@esbuild/freebsd-arm64': 0.20.1- '@esbuild/freebsd-x64': 0.20.1- '@esbuild/linux-arm': 0.20.1- '@esbuild/linux-arm64': 0.20.1- '@esbuild/linux-ia32': 0.20.1- '@esbuild/linux-loong64': 0.20.1- '@esbuild/linux-mips64el': 0.20.1- '@esbuild/linux-ppc64': 0.20.1- '@esbuild/linux-riscv64': 0.20.1- '@esbuild/linux-s390x': 0.20.1- '@esbuild/linux-x64': 0.20.1- '@esbuild/netbsd-x64': 0.20.1- '@esbuild/openbsd-x64': 0.20.1- '@esbuild/sunos-x64': 0.20.1- '@esbuild/win32-arm64': 0.20.1- '@esbuild/win32-ia32': 0.20.1- '@esbuild/win32-x64': 0.20.1+ '@esbuild/aix-ppc64': 0.20.2+ '@esbuild/android-arm': 0.20.2+ '@esbuild/android-arm64': 0.20.2+ '@esbuild/android-x64': 0.20.2+ '@esbuild/darwin-arm64': 0.20.2+ '@esbuild/darwin-x64': 0.20.2+ '@esbuild/freebsd-arm64': 0.20.2+ '@esbuild/freebsd-x64': 0.20.2+ '@esbuild/linux-arm': 0.20.2+ '@esbuild/linux-arm64': 0.20.2+ '@esbuild/linux-ia32': 0.20.2+ '@esbuild/linux-loong64': 0.20.2+ '@esbuild/linux-mips64el': 0.20.2+ '@esbuild/linux-ppc64': 0.20.2+ '@esbuild/linux-riscv64': 0.20.2+ '@esbuild/linux-s390x': 0.20.2+ '@esbuild/linux-x64': 0.20.2+ '@esbuild/netbsd-x64': 0.20.2+ '@esbuild/openbsd-x64': 0.20.2+ '@esbuild/sunos-x64': 0.20.2+ '@esbuild/win32-arm64': 0.20.2+ '@esbuild/win32-ia32': 0.20.2+ '@esbuild/win32-x64': 0.20.2@@ -11760,8 +11635,6 @@ snapshots:- [email protected]: {}-dependencies:flat-cache: 3.2.0@@ -11916,6 +11789,10 @@ snapshots:dependencies:resolve-pkg-maps: 1.0.0+ dependencies:+ resolve-pkg-maps: 1.0.0+@@ -12129,8 +12006,6 @@ snapshots:dependencies:source-map: 0.7.4- [email protected]: {}-@@ -12475,8 +12350,6 @@ snapshots:- [email protected]: {}-dependencies:config-chain: 1.1.13@@ -12634,11 +12507,6 @@ snapshots:- dependencies:- base64-js: 0.0.8- unicode-trie: 2.0.0-@@ -12733,6 +12601,9 @@ snapshots:pify: 4.0.1semver: 5.7.2+ optional: true+dependencies:tmpl: 1.0.5@@ -12915,13 +12786,13 @@ snapshots:dependencies:'@babel/runtime': 7.24.0- '@esbuild-plugins/node-resolve': 0.1.4([email protected])+ '@esbuild-plugins/node-resolve': 0.1.4([email protected])'@fal-works/esbuild-plugin-global-externals': 2.1.2- '@mdx-js/esbuild': 2.3.0([email protected])- esbuild: 0.20.1+ '@mdx-js/esbuild': 2.3.0([email protected])+ esbuild: 0.20.2gray-matter: 4.0.3remark-frontmatter: 4.0.1remark-mdx-frontmatter: 1.1.1@@ -13462,11 +13333,11 @@ snapshots:optionalDependencies:nodemailer: 6.9.10- [email protected]([email protected]([email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected]([email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- '@contentlayer/core': 0.3.4([email protected])+ '@contentlayer/core': 0.3.4([email protected])'@contentlayer/utils': 0.3.4- contentlayer: 0.3.4([email protected])+ contentlayer: 0.3.4([email protected])next: 14.1.0(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0react-dom: 18.2.0([email protected])@@ -13579,8 +13450,6 @@ snapshots:- [email protected]: {}-@@ -13727,17 +13596,10 @@ snapshots:- [email protected]: {}-dependencies:callsites: 3.1.0- dependencies:- color-name: 1.1.4- hex-rgb: 4.3.0-dependencies:'@types/unist': 2.0.10@@ -13897,19 +13759,21 @@ snapshots:camelcase-css: 2.0.1postcss: 8.4.32+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:lilconfig: 2.1.0yaml: 1.10.2optionalDependencies:postcss: 8.4.21+ ts-node: 10.9.2(@types/[email protected])([email protected])+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:lilconfig: 3.1.1yaml: 2.4.0optionalDependencies:postcss: 8.4.32+ ts-node: 10.9.2(@types/[email protected])([email protected])dependencies:@@ -14067,18 +13931,11 @@ snapshots:fflate: 0.4.8preact: 10.19.6- dependencies:- preact: 10.11.3- pretty-format: 3.8.0-dependencies:preact: 10.19.6pretty-format: 3.8.0- [email protected]: {}-@@ -14112,10 +13969,6 @@ snapshots:extend-shallow: 2.0.1js-beautify: 1.15.1- dependencies:- '@prisma/engines': 5.11.0-@@ -14645,6 +14498,10 @@ snapshots:dependencies:glob: 7.2.3+ dependencies:+ glob: 10.3.10+dependencies:queue-microtask: 1.2.3@@ -14670,19 +14527,6 @@ snapshots:es-errors: 1.3.0is-regex: 1.1.4- dependencies:- '@shuding/opentype.js': 1.4.0-beta.0- css-background-parser: 0.1.0- css-box-shadow: 1.0.0-3- css-to-react-native: 3.2.0- emoji-regex: 10.3.0- escape-html: 1.0.3- linebreak: 1.1.0- parse-css-color: 0.2.1- postcss-value-parser: 4.2.0- yoga-wasm-web: 0.3.3-dependencies:loose-envify: 1.4.0@@ -14887,8 +14731,6 @@ snapshots:emoji-regex: 9.2.2strip-ansi: 7.1.0- [email protected]: {}-dependencies:call-bind: 1.0.7@@ -15040,11 +14882,11 @@ snapshots:dependencies:'@babel/runtime': 7.24.0+ [email protected]([email protected]([email protected](@types/[email protected])([email protected]))):dependencies:- tailwindcss: 3.4.1+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:arg: 5.0.2chokidar: 3.6.0@@ -15063,7 +14905,7 @@ snapshots:postcss: 8.4.21postcss-import: 14.1.0([email protected])postcss-js: 4.0.1([email protected])- postcss-load-config: 3.1.4([email protected])+ postcss-load-config: 3.1.4([email protected])([email protected](@types/[email protected])([email protected]))postcss-nested: 6.0.0([email protected])postcss-selector-parser: 6.0.15postcss-value-parser: 4.2.0@@ -15072,7 +14914,7 @@ snapshots:transitivePeerDependencies:- ts-nodedependencies:'@alloc/quick-lru': 5.2.0arg: 5.0.2@@ -15091,7 +14933,7 @@ snapshots:postcss: 8.4.32postcss-import: 15.1.0([email protected])postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])+ postcss-load-config: 4.0.2([email protected])([email protected](@types/[email protected])([email protected]))postcss-nested: 6.0.1([email protected])postcss-selector-parser: 6.0.15resolve: 1.22.8@@ -15133,8 +14975,6 @@ snapshots:readable-stream: 2.3.8xtend: 4.0.2- [email protected]: {}-@@ -15167,6 +15007,25 @@ snapshots:+ dependencies:+ '@cspotcode/source-map-support': 0.8.1+ '@tsconfig/node10': 1.0.11+ '@tsconfig/node12': 1.0.11+ '@tsconfig/node14': 1.0.3+ '@tsconfig/node16': 1.0.4+ '@types/node': 20.11.22+ acorn: 8.11.3+ acorn-walk: 8.3.2+ arg: 4.1.3+ create-require: 1.1.1+ diff: 4.0.2+ make-error: 1.3.6+ typescript: 5.3.3+ v8-compile-cache-lib: 3.0.1+ yn: 3.1.1+ optional: true+@@ -15178,6 +15037,13 @@ snapshots:+ dependencies:+ esbuild: 0.20.2+ get-tsconfig: 4.7.5+ optionalDependencies:+ fsevents: 2.3.3+optional: true@@ -15205,11 +15071,11 @@ snapshots:turbo-windows-64: 1.12.4turbo-windows-arm64: 1.12.4dependencies:postcss: 8.4.21postcss-css-variables: 0.18.0([email protected])- tailwindcss: 3.2.7([email protected])+ tailwindcss: 3.2.7([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- ts-node@@ -15285,11 +15151,6 @@ snapshots:- dependencies:- pako: 0.2.9- tiny-inflate: 1.0.3-dependencies:'@types/unist': 2.0.10@@ -15406,6 +15267,9 @@ snapshots:kleur: 4.1.5sade: 1.8.1+ optional: true+dependencies:spdx-correct: 3.2.0@@ -15582,9 +15446,10 @@ snapshots:y18n: 5.0.8yargs-parser: 21.1.1- [email protected]: {}+ optional: true- [email protected]: {}+ [email protected]: {}diff --git a/public/registry/.gitignore b/public/registry/.gitignorenew file mode 100644index 00000000..c343e5eb--- /dev/null+++ b/public/registry/.gitignore@@ -0,0 +1,4 @@+# Components data will be generated in build time+# pnpm run build:registry++*.json\ No newline at end of filediff --git a/registry/components/example/animated-beam-bidirectional.tsx b/registry/components/example/animated-beam-bidirectional.tsxindex 97e212b8..9ecd6181 100644--- a/registry/components/example/animated-beam-bidirectional.tsx+++ b/registry/components/example/animated-beam-bidirectional.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/components/magicui/animated-beam";+import { AnimatedBeam } from "@/components/magicui/animated-beam";import React, { forwardRef, useRef } from "react";const Circle = forwardRef<diff --git a/registry/components/example/animated-beam-demo.tsx b/registry/components/example/animated-beam-demo.tsxindex 9bf40ef8..98d839ba 100644--- a/registry/components/example/animated-beam-demo.tsx+++ b/registry/components/example/animated-beam-demo.tsx@@ -1,7 +1,7 @@"use client";+import { AnimatedBeam } from "@/components/magicui/animated-beam";import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/components/magicui/animated-beam";import React, { forwardRef, useRef } from "react";const Circle = forwardRef<diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/components/example/animated-beam-multiple-inputs.tsxindex 0d4af8a3..c8f7b4b0 100644--- a/registry/components/example/animated-beam-multiple-inputs.tsx+++ b/registry/components/example/animated-beam-multiple-inputs.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/components/magicui/animated-beam";+import { AnimatedBeam } from "@/components/magicui/animated-beam";import React, { forwardRef, useRef } from "react";const Circle = forwardRef<diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsxindex 1c796574..81303908 100644--- a/registry/components/example/animated-beam-multiple-outputs.tsx+++ b/registry/components/example/animated-beam-multiple-outputs.tsx@@ -1,7 +1,7 @@"use client";+import { AnimatedBeam } from "@/components/magicui/animated-beam";import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/components/magicui/animated-beam";import React, { forwardRef, useRef } from "react";const Circle = forwardRef<diff --git a/registry/components/example/animated-beam-unidirectional.tsx b/registry/components/example/animated-beam-unidirectional.tsxindex db481b16..f2c468fb 100644--- a/registry/components/example/animated-beam-unidirectional.tsx+++ b/registry/components/example/animated-beam-unidirectional.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/components/magicui/animated-beam";+import { AnimatedBeam } from "@/components/magicui/animated-beam";import React, { forwardRef, useRef } from "react";const Circle = forwardRef<diff --git a/registry/components/example/animated-feature-card-7.tsx b/registry/components/example/animated-feature-card-7.tsxindex 707123a8..45ce373e 100644--- a/registry/components/example/animated-feature-card-7.tsx+++ b/registry/components/example/animated-feature-card-7.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import Marquee from "@/registry/components/magicui/marquee";+import Marquee from "@/components/magicui/marquee";import { motion, useAnimation, useInView } from "framer-motion";import {BarChart,diff --git a/registry/components/example/animated-gradient-text-demo.tsx b/registry/components/example/animated-gradient-text-demo.tsxindex a6c56009..a3e17284 100644--- a/registry/components/example/animated-gradient-text-demo.tsx+++ b/registry/components/example/animated-gradient-text-demo.tsx@@ -1,5 +1,5 @@import { cn } from "@/lib/utils";-import AnimatedGradientText from "@/registry/components/magicui/animated-gradient-text";+import AnimatedGradientText from "@/components/magicui/animated-gradient-text";import { ChevronRight } from "lucide-react";export default async function AnimatedGradientTextDemo() {diff --git a/registry/components/example/animated-grid-pattern-demo.tsx b/registry/components/example/animated-grid-pattern-demo.tsxindex aa473379..0b03d553 100644--- a/registry/components/example/animated-grid-pattern-demo.tsx+++ b/registry/components/example/animated-grid-pattern-demo.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import AnimatedGridPattern from "@/registry/components/magicui/animated-grid-pattern";+import AnimatedGridPattern from "@/components/magicui/animated-grid-pattern";const AnimatedGridPatternDemo = () => {return (diff --git a/registry/components/example/animated-lines-demo.tsx b/registry/components/example/animated-lines-demo.tsxindex e0b0061c..e3a283c4 100644--- a/registry/components/example/animated-lines-demo.tsx+++ b/registry/components/example/animated-lines-demo.tsx@@ -1,4 +1,4 @@-import AnimatedLines from "@/registry/components/magicui/animated-lines";+import AnimatedLines from "@/components/magicui/animated-lines";export default function AnimatedListDemo() {return (diff --git a/registry/components/example/animated-list-demo.tsx b/registry/components/example/animated-list-demo.tsxindex 36d31ed7..a4235460 100644--- a/registry/components/example/animated-list-demo.tsx+++ b/registry/components/example/animated-list-demo.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import { AnimatedList } from "@/registry/components/magicui/animated-list";+import { AnimatedList } from "@/components/magicui/animated-list";interface Item {name: string;diff --git a/registry/components/example/animated-shiny-text-demo.tsx b/registry/components/example/animated-shiny-text-demo.tsxindex 63f0c0e3..d3a71247 100644--- a/registry/components/example/animated-shiny-text-demo.tsx+++ b/registry/components/example/animated-shiny-text-demo.tsx@@ -1,5 +1,5 @@+import AnimatedShinyText from "@/components/magicui/animated-shiny-text";import { cn } from "@/lib/utils";-import AnimatedShinyText from "@/registry/components/magicui/animated-shiny-text";import { ArrowRightIcon } from "@radix-ui/react-icons";export default async function AnimatedShinyTextDemo() {diff --git a/registry/components/example/animated-subscribe-button-demo.tsx b/registry/components/example/animated-subscribe-button-demo.tsxindex d0947126..5f730b14 100644--- a/registry/components/example/animated-subscribe-button-demo.tsx+++ b/registry/components/example/animated-subscribe-button-demo.tsx@@ -1,4 +1,4 @@-import { AnimatedSubscribeButton } from "@/registry/components/magicui/animated-subscribe-button";+import { AnimatedSubscribeButton } from "@/components/magicui/animated-subscribe-button";import { CheckIcon, ChevronRightIcon } from "lucide-react";export default function AnimatedSubscribeButtonDemo() {diff --git a/registry/components/example/avatar-circles-demo.tsx b/registry/components/example/avatar-circles-demo.tsxindex 55aa2afd..d314e81b 100644--- a/registry/components/example/avatar-circles-demo.tsx+++ b/registry/components/example/avatar-circles-demo.tsx@@ -1,4 +1,4 @@-import AvatarCircles from "@/registry/components/magicui/avatar-circles";+import AvatarCircles from "@/components/magicui/avatar-circles";const avatarUrls = ["https://avatars.githubusercontent.com/u/16860528",diff --git a/registry/components/example/bento-demo-vertical.tsx b/registry/components/example/bento-demo-vertical.tsxindex 6d46c7b3..9e7f0407 100644--- a/registry/components/example/bento-demo-vertical.tsx+++ b/registry/components/example/bento-demo-vertical.tsx@@ -1,4 +1,4 @@-import { BentoCard, BentoGrid } from "@/registry/components/magicui/bento-grid";+import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid";import {BellIcon,CalendarIcon,diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsxindex fbdf5c9b..5046d13f 100644--- a/registry/components/example/bento-demo.tsx+++ b/registry/components/example/bento-demo.tsx@@ -1,3 +1,6 @@+import AnimatedBeamMultipleOutputDemo from "@/components/example/animated-beam-multiple-outputs";+import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid";+import Marquee from "@/components/magicui/marquee";import { Calendar } from "@/components/ui/calendar";import {Command,@@ -8,9 +11,6 @@ import {CommandList,} from "@/components/ui/command";import { cn } from "@/lib/utils";-import AnimatedBeamMultipleOutputDemo from "@/registry/components/example/animated-beam-multiple-outputs";-import { BentoCard, BentoGrid } from "@/registry/components/magicui/bento-grid";-import Marquee from "@/registry/components/magicui/marquee";import { CalendarIcon, FileTextIcon, InputIcon } from "@radix-ui/react-icons";import { Share2Icon } from "lucide-react";diff --git a/registry/components/example/blur-in-demo.tsx b/registry/components/example/blur-in-demo.tsxindex da2f7528..c36b7484 100644--- a/registry/components/example/blur-in-demo.tsx+++ b/registry/components/example/blur-in-demo.tsx@@ -1,4 +1,4 @@-import BlurIn from "../magicui/blur-in";+import BlurIn from "@/components/magicui/blur-in";const BlurInDemo = () => {return (<BlurIndiff --git a/registry/components/example/border-beam-demo.tsx b/registry/components/example/border-beam-demo.tsxindex 74f79b1d..e6632528 100644--- a/registry/components/example/border-beam-demo.tsx+++ b/registry/components/example/border-beam-demo.tsx@@ -1,4 +1,4 @@-import { BorderBeam } from "@/registry/components/magicui/border-beam";+import { BorderBeam } from "@/components/magicui/border-beam";export default function BorderBeamDemo() {return (diff --git a/registry/components/example/box-reveal-demo.tsx b/registry/components/example/box-reveal-demo.tsxindex aa69bc09..0f62b45a 100644--- a/registry/components/example/box-reveal-demo.tsx+++ b/registry/components/example/box-reveal-demo.tsx@@ -1,5 +1,4 @@-import BoxReveal from "@/registry/components/magicui/box-reveal";-+import BoxReveal from "@/components/magicui/box-reveal";import { Button } from "@/components/ui/button";export default async function BoxRevealDemo() {diff --git a/registry/components/example/confetti-basic-cannon.tsx b/registry/components/example/confetti-basic-cannon.tsxindex aeb0f87c..71a3e8e0 100644--- a/registry/components/example/confetti-basic-cannon.tsx+++ b/registry/components/example/confetti-basic-cannon.tsx@@ -1,4 +1,4 @@-import { ConfettiButton } from "@/registry/components/magicui/confetti";+import { ConfettiButton } from "@/components/magicui/confetti";export default function ConfettiButtonDemo() {return (diff --git a/registry/components/example/confetti-hover.tsx b/registry/components/example/confetti-hover.tsxindex 3250abca..9fb7ab61 100644--- a/registry/components/example/confetti-hover.tsx+++ b/registry/components/example/confetti-hover.tsx@@ -1,7 +1,7 @@"use client";-import type { ConfettiRef } from "@/registry/components/magicui/confetti";-import Confetti from "@/registry/components/magicui/confetti";+import type { ConfettiRef } from "@/components/magicui/confetti";+import Confetti from "@/components/magicui/confetti";import { useRef } from "react";export default function ConfettiBasicCannon() {diff --git a/registry/components/example/confetti-random-direction.tsx b/registry/components/example/confetti-random-direction.tsxindex c473e233..9b28808b 100644--- a/registry/components/example/confetti-random-direction.tsx+++ b/registry/components/example/confetti-random-direction.tsx@@ -1,4 +1,4 @@-import { ConfettiButton } from "@/registry/components/magicui/confetti";+import { ConfettiButton } from "@/components/magicui/confetti";export default function ConfettiButtonDemo() {return (diff --git a/registry/components/example/cool-mode-custom.tsx b/registry/components/example/cool-mode-custom.tsxindex 7ccc0933..64f386fb 100644--- a/registry/components/example/cool-mode-custom.tsx+++ b/registry/components/example/cool-mode-custom.tsx@@ -1,6 +1,5 @@+import { CoolMode } from "@/components/magicui/cool-mode";import { Button } from "@/components/ui/button";-import { CoolMode } from "@/registry/components/magicui/cool-mode";-import React from "react";export default function CoolModeCustom() {return (diff --git a/registry/components/example/cool-mode-demo.tsx b/registry/components/example/cool-mode-demo.tsxindex bb0334dd..32457a51 100644--- a/registry/components/example/cool-mode-demo.tsx+++ b/registry/components/example/cool-mode-demo.tsx@@ -1,6 +1,5 @@+import { CoolMode } from "@/components/magicui/cool-mode";import { Button } from "@/components/ui/button";-import { CoolMode } from "@/registry/components/magicui/cool-mode";-import React from "react";export default function CoolModeDemo() {return (diff --git a/registry/components/example/dock-demo.tsx b/registry/components/example/dock-demo.tsxindex 09bf0b9c..83fcde72 100644--- a/registry/components/example/dock-demo.tsx+++ b/registry/components/example/dock-demo.tsx@@ -1,4 +1,4 @@-import { Dock, DockIcon } from "@/registry/components/magicui/dock";+import { Dock, DockIcon } from "@/components/magicui/dock";import React from "react";export type IconProps = React.HTMLAttributes<SVGElement>;diff --git a/registry/components/example/dot-pattern-demo.tsx b/registry/components/example/dot-pattern-demo.tsxindex 99a4b6a3..6287e7b0 100644--- a/registry/components/example/dot-pattern-demo.tsx+++ b/registry/components/example/dot-pattern-demo.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import DotPattern from "@/registry/components/magicui/dot-pattern";+import DotPattern from "@/components/magicui/dot-pattern";const DotPatternDemo = () => {return (diff --git a/registry/components/example/dot-pattern-linear-gradient.tsx b/registry/components/example/dot-pattern-linear-gradient.tsxindex 525763bf..331546c3 100644--- a/registry/components/example/dot-pattern-linear-gradient.tsx+++ b/registry/components/example/dot-pattern-linear-gradient.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import DotPattern from "@/registry/components/magicui/dot-pattern";+import DotPattern from "@/components/magicui/dot-pattern";const DotPatternDemo2 = () => {return (diff --git a/registry/components/example/fade-text-demo.tsx b/registry/components/example/fade-text-demo.tsxindex 8e548007..26ae8424 100644--- a/registry/components/example/fade-text-demo.tsx+++ b/registry/components/example/fade-text-demo.tsx@@ -1,4 +1,4 @@-import { FadeText } from "@/registry/components/magicui/fade-text";+import { FadeText } from "@/components/magicui/fade-text";export default async function FadeTextDemo() {return (diff --git a/registry/components/example/flip-text-demo.tsx b/registry/components/example/flip-text-demo.tsxindex 3b1f2101..5551ec89 100644--- a/registry/components/example/flip-text-demo.tsx+++ b/registry/components/example/flip-text-demo.tsx@@ -1,4 +1,4 @@-import FlipText from "@/registry/components/magicui/flip-text";+import FlipText from "@/components/magicui/flip-text";export default async function FlipTextDemo() {return (diff --git a/registry/components/example/gauge-circle-demo.tsx b/registry/components/example/gauge-circle-demo.tsxindex b7283da0..5afc03ed 100644--- a/registry/components/example/gauge-circle-demo.tsx+++ b/registry/components/example/gauge-circle-demo.tsx@@ -1,6 +1,6 @@"use client";-import GaugeCircle from "@/registry/components/magicui/gauge-circle";+import GaugeCircle from "@/components/magicui/gauge-circle";import { useEffect, useState } from "react";export default function GaugeCircleDemo() {diff --git a/registry/components/example/globe-demo.tsx b/registry/components/example/globe-demo.tsxindex 2bf6a7ba..4e799ca7 100644--- a/registry/components/example/globe-demo.tsx+++ b/registry/components/example/globe-demo.tsx@@ -1,4 +1,4 @@-import Globe from "@/registry/components/magicui/globe";+import Globe from "@/components/magicui/globe";export default function GlobeDemo() {return (diff --git a/registry/components/example/gradual-spacing-demo.tsx b/registry/components/example/gradual-spacing-demo.tsxindex 4bea614c..9e694d79 100644--- a/registry/components/example/gradual-spacing-demo.tsx+++ b/registry/components/example/gradual-spacing-demo.tsx@@ -1,4 +1,4 @@-import GradualSpacing from "@/registry/components/magicui/gradual-spacing";+import GradualSpacing from "@/components/magicui/gradual-spacing";export default async function GradualSpacingDemo() {return (diff --git a/registry/components/example/grid-pattern-dashed.tsx b/registry/components/example/grid-pattern-dashed.tsxindex 80438d40..4cdd86c6 100644--- a/registry/components/example/grid-pattern-dashed.tsx+++ b/registry/components/example/grid-pattern-dashed.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import GridPattern from "@/registry/components/magicui/grid-pattern";+import GridPattern from "@/components/magicui/grid-pattern";const GridPatternDashed = () => {return (diff --git a/registry/components/example/grid-pattern-demo.tsx b/registry/components/example/grid-pattern-demo.tsxindex 82d8e1bf..4de0564e 100644--- a/registry/components/example/grid-pattern-demo.tsx+++ b/registry/components/example/grid-pattern-demo.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import GridPattern from "@/registry/components/magicui/grid-pattern";+import GridPattern from "@/components/magicui/grid-pattern";const GridPatternDemo = () => {return (diff --git a/registry/components/example/grid-pattern-linear-gradient.tsx b/registry/components/example/grid-pattern-linear-gradient.tsxindex be06314e..ddcc513c 100644--- a/registry/components/example/grid-pattern-linear-gradient.tsx+++ b/registry/components/example/grid-pattern-linear-gradient.tsx@@ -1,7 +1,7 @@"use client";import { cn } from "@/lib/utils";-import GridPattern from "@/registry/components/magicui/grid-pattern";+import GridPattern from "@/components/magicui/grid-pattern";const GridPatternLinearGradient = () => {return (diff --git a/registry/components/example/hero-video-demo.tsx b/registry/components/example/hero-video-demo.tsxindex 7758d338..35d45638 100644--- a/registry/components/example/hero-video-demo.tsx+++ b/registry/components/example/hero-video-demo.tsx@@ -1,11 +1,11 @@import { Button } from "@/components/ui/button";import HeroVideo, {HeroVideoAction,-} from "@/registry/components/magicui/hero-video";+} from "@/components/magicui/hero-video";import {MagicCard,MagicContainer,-} from "@/registry/components/magicui/magic-card";+} from "@/components/magicui/magic-card";const PlayButton = () => (<svgdiff --git a/registry/components/example/hero-video-youtube.tsx b/registry/components/example/hero-video-youtube.tsxindex 3f06a70d..91e64ae9 100644--- a/registry/components/example/hero-video-youtube.tsx+++ b/registry/components/example/hero-video-youtube.tsx@@ -1,11 +1,11 @@import { Button } from "@/components/ui/button";import HeroVideo, {HeroVideoAction,-} from "@/registry/components/magicui/hero-video";+} from "@/components/magicui/hero-video";import {MagicCard,MagicContainer,-} from "@/registry/components/magicui/magic-card";+} from "@/components/magicui/magic-card";const PlayButton = () => (<svgdiff --git a/registry/components/example/icon-cloud-demo.tsx b/registry/components/example/icon-cloud-demo.tsxindex f8cc2001..bf2b43b6 100644--- a/registry/components/example/icon-cloud-demo.tsx+++ b/registry/components/example/icon-cloud-demo.tsx@@ -1,4 +1,4 @@-import IconCloud from "@/registry/components/magicui/icon-cloud";+import IconCloud from "@/components/magicui/icon-cloud";const slugs = ["typescript",diff --git a/registry/components/example/letter-pullup-demo.tsx b/registry/components/example/letter-pullup-demo.tsxindex e55e00f9..f971678f 100644--- a/registry/components/example/letter-pullup-demo.tsx+++ b/registry/components/example/letter-pullup-demo.tsx@@ -1,4 +1,4 @@-import LetterPullup from "@/registry/components/magicui/letter-pullup";+import LetterPullup from "@/components/magicui/letter-pullup";export default async function LetterPullupDemo() {return <LetterPullup words={"Staggered Letter Pull Up"} delay={0.05} />;diff --git a/registry/components/example/linear-gradient-demo.tsx b/registry/components/example/linear-gradient-demo.tsxindex 745068f5..f40bce53 100644--- a/registry/components/example/linear-gradient-demo.tsx+++ b/registry/components/example/linear-gradient-demo.tsx@@ -1,4 +1,4 @@-import LinearGradient from "@/registry/components/magicui/linear-gradient";+import LinearGradient from "@/components/magicui/linear-gradient";export default function LinearGradientDemo() {return (diff --git a/registry/components/example/magic-card-demo.tsx b/registry/components/example/magic-card-demo.tsxindex 14bbca18..445adbf9 100644--- a/registry/components/example/magic-card-demo.tsx+++ b/registry/components/example/magic-card-demo.tsx@@ -1,7 +1,7 @@import {MagicCard,MagicContainer,-} from "@/registry/components/magicui/magic-card";+} from "@/components/magicui/magic-card";export default function MagicCardDemo() {return (diff --git a/registry/components/example/magic-card-gradient.tsx b/registry/components/example/magic-card-gradient.tsxindex 7557c4bc..5aa56419 100644--- a/registry/components/example/magic-card-gradient.tsx+++ b/registry/components/example/magic-card-gradient.tsx@@ -1,7 +1,7 @@import {MagicCard,MagicContainer,-} from "@/registry/components/magicui/magic-card";+} from "@/components/magicui/magic-card";export default function MagicCardGradient() {return (diff --git a/registry/components/example/marquee-3d.tsx b/registry/components/example/marquee-3d.tsxindex d7263608..a54b44c2 100644--- a/registry/components/example/marquee-3d.tsx+++ b/registry/components/example/marquee-3d.tsx@@ -1,4 +1,4 @@-import Marquee from "@/registry/components/magicui/marquee";+import Marquee from "@/components/magicui/marquee";const logos = [{diff --git a/registry/components/example/marquee-demo-vertical.tsx b/registry/components/example/marquee-demo-vertical.tsxindex 65030b79..7517db53 100644--- a/registry/components/example/marquee-demo-vertical.tsx+++ b/registry/components/example/marquee-demo-vertical.tsx@@ -1,5 +1,5 @@import { cn } from "@/lib/utils";-import Marquee from "@/registry/components/magicui/marquee";+import Marquee from "@/components/magicui/marquee";const reviews = [{diff --git a/registry/components/example/marquee-demo.tsx b/registry/components/example/marquee-demo.tsxindex d5d1cf9c..d0bea9bd 100644--- a/registry/components/example/marquee-demo.tsx+++ b/registry/components/example/marquee-demo.tsx@@ -1,5 +1,5 @@import { cn } from "@/lib/utils";-import Marquee from "@/registry/components/magicui/marquee";+import Marquee from "@/components/magicui/marquee";const reviews = [{diff --git a/registry/components/example/marquee-logos.tsx b/registry/components/example/marquee-logos.tsxindex 0a3ccfae..146d8afe 100644--- a/registry/components/example/marquee-logos.tsx+++ b/registry/components/example/marquee-logos.tsx@@ -1,5 +1,5 @@import { cn } from "@/lib/utils";-import Marquee from "@/registry/components/magicui/marquee";+import Marquee from "@/components/magicui/marquee";const logos = [{diff --git a/registry/components/example/meteors-demo.tsx b/registry/components/example/meteors-demo.tsxindex a543c022..0993f208 100644--- a/registry/components/example/meteors-demo.tsx+++ b/registry/components/example/meteors-demo.tsx@@ -1,4 +1,4 @@-import Meteors from "@/registry/components/magicui/meteors";+import Meteors from "@/components/magicui/meteors";export default function MeteorDemo() {return (diff --git a/registry/components/example/neon-gradient-card-demo.tsx b/registry/components/example/neon-gradient-card-demo.tsxindex d6f1b488..bdd9d498 100644--- a/registry/components/example/neon-gradient-card-demo.tsx+++ b/registry/components/example/neon-gradient-card-demo.tsx@@ -1,4 +1,4 @@-import { NeonGradientCard } from "@/registry/components/magicui/neon-gradient-card";+import { NeonGradientCard } from "@/components/magicui/neon-gradient-card";export default async function NeonGradientCardDemo() {return (diff --git a/registry/components/example/number-ticker-demo.tsx b/registry/components/example/number-ticker-demo.tsxindex c6101e3d..4c0a10c8 100644--- a/registry/components/example/number-ticker-demo.tsx+++ b/registry/components/example/number-ticker-demo.tsx@@ -1,4 +1,4 @@-import NumberTicker from "@/registry/components/magicui/number-ticker";+import NumberTicker from "@/components/magicui/number-ticker";const NumberTickerDemo = () => {return (diff --git a/registry/components/example/orbiting-circles-demo.tsx b/registry/components/example/orbiting-circles-demo.tsxindex 2bf46859..85f3e2b2 100644--- a/registry/components/example/orbiting-circles-demo.tsx+++ b/registry/components/example/orbiting-circles-demo.tsx@@ -1,4 +1,4 @@-import OrbitingCircles from "@/registry/components/magicui/orbiting-circles";+import OrbitingCircles from "@/components/magicui/orbiting-circles";export default function OrbitingCirclesDemo() {return (diff --git a/registry/components/example/particles-demo.tsx b/registry/components/example/particles-demo.tsxindex 0ad28c48..68dfef9b 100644--- a/registry/components/example/particles-demo.tsx+++ b/registry/components/example/particles-demo.tsx@@ -1,6 +1,6 @@"use client";-import Particles from "@/registry/components/magicui/particles";+import Particles from "@/components/magicui/particles";import { useTheme } from "next-themes";import { useEffect, useState } from "react";diff --git a/registry/components/example/radial-gradient-demo.tsx b/registry/components/example/radial-gradient-demo.tsxindex 951a06ad..1d6b1146 100644--- a/registry/components/example/radial-gradient-demo.tsx+++ b/registry/components/example/radial-gradient-demo.tsx@@ -1,4 +1,4 @@-import RadialGradient from "@/registry/components/magicui/radial-gradient";+import RadialGradient from "@/components/magicui/radial-gradient";export default function RadialGradientDemo() {return (diff --git a/registry/components/example/retro-grid-demo.tsx b/registry/components/example/retro-grid-demo.tsxindex 86e6dace..29387000 100644--- a/registry/components/example/retro-grid-demo.tsx+++ b/registry/components/example/retro-grid-demo.tsx@@ -1,6 +1,6 @@"use client";-import RetroGrid from "@/registry/components/magicui/retro-grid";+import RetroGrid from "@/components/magicui/retro-grid";const RetroGridDemo = () => {return (diff --git a/registry/components/example/ripple-demo.tsx b/registry/components/example/ripple-demo.tsxindex e5bd5130..c578dbdd 100644--- a/registry/components/example/ripple-demo.tsx+++ b/registry/components/example/ripple-demo.tsx@@ -1,4 +1,4 @@-import Ripple from "@/registry/components/magicui/ripple";+import Ripple from "@/components/magicui/ripple";const RippleDemo = () => {return (diff --git a/registry/components/example/scroll-based-velocity-demo.tsx b/registry/components/example/scroll-based-velocity-demo.tsxindex 73e0cf48..022a0d48 100644--- a/registry/components/example/scroll-based-velocity-demo.tsx+++ b/registry/components/example/scroll-based-velocity-demo.tsx@@ -1,4 +1,4 @@-import { VelocityScroll } from "@/registry/components/magicui/scroll-based-velocity";+import { VelocityScroll } from "@/components/magicui/scroll-based-velocity";export default function ScrollBasedVelocityDemo() {return (diff --git a/registry/components/example/shimmer-button-demo.tsx b/registry/components/example/shimmer-button-demo.tsxindex d74211c4..2a509bdf 100644--- a/registry/components/example/shimmer-button-demo.tsx+++ b/registry/components/example/shimmer-button-demo.tsx@@ -1,4 +1,4 @@-import ShimmerButton from "@/registry/components/magicui/shimmer-button";+import ShimmerButton from "@/components/magicui/shimmer-button";export default function ShimmerButtonDemo() {return (diff --git a/registry/components/example/shine-border-demo-2.tsx b/registry/components/example/shine-border-demo-2.tsxindex 7b1c276f..bc7645f9 100644--- a/registry/components/example/shine-border-demo-2.tsx+++ b/registry/components/example/shine-border-demo-2.tsx@@ -1,4 +1,4 @@-import ShineBorder from "@/registry/components/magicui/shine-border";+import ShineBorder from "@/components/magicui/shine-border";export default function ShineBorderDemo() {return (diff --git a/registry/components/example/shine-border-demo.tsx b/registry/components/example/shine-border-demo.tsxindex 77d0e5fc..f65e725d 100644--- a/registry/components/example/shine-border-demo.tsx+++ b/registry/components/example/shine-border-demo.tsx@@ -1,4 +1,4 @@-import ShineBorder from "@/registry/components/magicui/shine-border";+import ShineBorder from "@/components/magicui/shine-border";export default function ShineBorderDemo() {return (diff --git a/registry/components/example/shiny-button-demo.tsx b/registry/components/example/shiny-button-demo.tsxindex b4377e16..3ff06894 100644--- a/registry/components/example/shiny-button-demo.tsx+++ b/registry/components/example/shiny-button-demo.tsx@@ -1,4 +1,4 @@-import ShinyButton from "@/registry/components/magicui/shiny-button";+import ShinyButton from "@/components/magicui/shiny-button";export default function ShinyButtonDemo() {return <ShinyButton text="Shiny Button" />;diff --git a/registry/components/example/sparkles-text-demo.tsx b/registry/components/example/sparkles-text-demo.tsxindex d09b9bf9..f8244015 100644--- a/registry/components/example/sparkles-text-demo.tsx+++ b/registry/components/example/sparkles-text-demo.tsx@@ -1,4 +1,4 @@-import SparklesText from "@/registry/components/magicui/sparkles-text";+import SparklesText from "@/components/magicui/sparkles-text";export default async function SparklesTextDemo() {return <SparklesText text="Magic UI" />;diff --git a/registry/components/example/text-reveal-demo.tsx b/registry/components/example/text-reveal-demo.tsxindex a522b48e..f22a82bd 100644--- a/registry/components/example/text-reveal-demo.tsx+++ b/registry/components/example/text-reveal-demo.tsx@@ -1,4 +1,4 @@-import TextReveal from "@/registry/components/magicui/text-reveal";+import TextReveal from "@/components/magicui/text-reveal";export default async function TextRevealDemo() {return (diff --git a/registry/components/example/tweet-card-demo.tsx b/registry/components/example/tweet-card-demo.tsxindex 225e3901..09f5aa3f 100644--- a/registry/components/example/tweet-card-demo.tsx+++ b/registry/components/example/tweet-card-demo.tsx@@ -1,4 +1,4 @@-import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";+import ClientTweetCard from "@/components/magicui/client-tweet-card";/*** <TweetCard /> (Server Side Only)diff --git a/registry/components/example/tweet-card-images.tsx b/registry/components/example/tweet-card-images.tsxindex dcfce88f..111d0af2 100644--- a/registry/components/example/tweet-card-images.tsx+++ b/registry/components/example/tweet-card-images.tsx@@ -1,4 +1,4 @@-import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";+import ClientTweetCard from "@/components/magicui/client-tweet-card";export default async function TweetImages() {return <ClientTweetCard id="1678577280489234432" className="shadow-2xl" />;diff --git a/registry/components/example/tweet-card-meta-preview.tsx b/registry/components/example/tweet-card-meta-preview.tsxindex d24de0f2..8a7b0c25 100644--- a/registry/components/example/tweet-card-meta-preview.tsx+++ b/registry/components/example/tweet-card-meta-preview.tsx@@ -1,4 +1,4 @@-import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";+import ClientTweetCard from "@/components/magicui/client-tweet-card";export default async function TweetMetaPreview() {return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />;diff --git a/registry/components/example/typing-animation-demo.tsx b/registry/components/example/typing-animation-demo.tsxindex 86b03ede..c5d8bc54 100644--- a/registry/components/example/typing-animation-demo.tsx+++ b/registry/components/example/typing-animation-demo.tsx@@ -1,4 +1,4 @@-import TypingAnimation from "@/registry/components/magicui/typing-animation";+import TypingAnimation from "@/components/magicui/typing-animation";export default async function TextRevealDemo() {return (diff --git a/registry/components/example/wavy-dot-pattern-demo.tsx b/registry/components/example/wavy-dot-pattern-demo.tsxindex 5cd64afd..e6970a38 100644--- a/registry/components/example/wavy-dot-pattern-demo.tsx+++ b/registry/components/example/wavy-dot-pattern-demo.tsx@@ -1,4 +1,4 @@-import WavyDotPattern from "@/registry/components/magicui/wavy-dot-pattern";+import WavyDotPattern from "@/components/magicui/wavy-dot-pattern";export default function WavyDotPatternDemo() {return (diff --git a/registry/components/example/wavy-text-demo.tsx b/registry/components/example/wavy-text-demo.tsxindex a6e7aeda..6b3b0f5b 100644--- a/registry/components/example/wavy-text-demo.tsx+++ b/registry/components/example/wavy-text-demo.tsx@@ -1,4 +1,4 @@-import WavyText from "@/registry/components/magicui/wavy-text";+import WavyText from "@/components/magicui/wavy-text";export default function WavyTextDemo() {return (diff --git a/registry/components/example/word-fade-in-demo.tsx b/registry/components/example/word-fade-in-demo.tsxindex b2f28439..b03c455e 100644--- a/registry/components/example/word-fade-in-demo.tsx+++ b/registry/components/example/word-fade-in-demo.tsx@@ -1,4 +1,4 @@-import WordFadeIn from "@/registry/components/magicui/word-fade-in";+import WordFadeIn from "@/components/magicui/word-fade-in";export default async function WordFadeInDemo() {return <WordFadeIn words="Word Fade In" />;diff --git a/registry/components/example/word-pull-up-demo.tsx b/registry/components/example/word-pull-up-demo.tsxindex 9843dc9a..fa7dab3d 100644--- a/registry/components/example/word-pull-up-demo.tsx+++ b/registry/components/example/word-pull-up-demo.tsx@@ -1,4 +1,4 @@-import WordPullUp from "@/registry/components/magicui/word-pull-up";+import WordPullUp from "@/components/magicui/word-pull-up";export default async function WordPullUpDemo() {return (diff --git a/registry/components/example/word-rotate-demo.tsx b/registry/components/example/word-rotate-demo.tsxindex f30effdd..3bad3329 100644--- a/registry/components/example/word-rotate-demo.tsx+++ b/registry/components/example/word-rotate-demo.tsx@@ -1,4 +1,4 @@-import WordRotate from "@/registry/components/magicui/word-rotate";+import WordRotate from "@/components/magicui/word-rotate";export default async function WordRotateDemo() {return (diff --git a/registry/components/magicui/client-tweet-card.tsx b/registry/components/magicui/client-tweet-card.tsxindex 51d852ed..babeefce 100644--- a/registry/components/magicui/client-tweet-card.tsx+++ b/registry/components/magicui/client-tweet-card.tsx@@ -4,7 +4,7 @@ import {MagicTweet,TweetNotFound,TweetSkeleton,-} from "@/registry/components/magicui/tweet-card";+} from "@/components/magicui/tweet-card";import { TweetProps, useTweet } from "react-tweet";const ClientTweetCard = ({diff --git a/registry/index.tsx b/registry/index.tsxindex 4e99bd9f..e3fe5b2c 100644--- a/registry/index.tsx+++ b/registry/index.tsx@@ -4,7 +4,7 @@ import * as React from "react";const ui: Registry = {"magic-card": {name: "magic-card",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/magic-card.tsx"],},"neon-gradient-card": {@@ -14,172 +14,179 @@ const ui: Registry = {},"linear-gradient": {name: "linear-gradient",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/linear-gradient.tsx"],},"radial-gradient": {name: "radial-gradient",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/radial-gradient.tsx"],},meteors: {name: "meteors",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/meteors.tsx"],},"grid-pattern": {name: "grid-pattern",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/grid-pattern.tsx"],},"dot-pattern": {name: "dot-pattern",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/dot-pattern.tsx"],},marquee: {name: "marquee",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/marquee.tsx"],},globe: {name: "globe",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["cobe", "react-spring"],files: ["registry/components/magicui/globe.tsx"],},"shimmer-button": {name: "shimmer-button",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/shimmer-button.tsx"],},"hero-video": {name: "hero-video",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["@headlessui/react" ],+ // registryDependencies: [],files: ["registry/components/magicui/hero-video.tsx"],},"tweet-card": {name: "tweet-card",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["react-tweet"],files: ["registry/components/magicui/tweet-card.tsx"],},"client-tweet-card": {name: "client-tweet-card",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["react-tweet"],files: ["registry/components/magicui/client-tweet-card.tsx"],},"bento-grid": {name: "bento-grid",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["@radix-ui/react-icons"],+ registryDependencies: ["shadcn:button"],files: ["registry/components/magicui/bento-grid.tsx"],},particles: {name: "particles",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/particles.tsx"],},"number-ticker": {name: "number-ticker",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/number-ticker.tsx"],},ripple: {name: "ripple",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/ripple.tsx"],},"retro-grid": {name: "retro-grid",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/retro-grid.tsx"],},"animated-list": {name: "animated-list",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-list.tsx"],},"animated-lines": {name: "animated-lines",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-lines.tsx"],},"animated-shiny-text": {name: "animated-shiny-text",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-shiny-text.tsx"],},"animated-grid-pattern": {name: "animated-grid-pattern",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-grid-pattern.tsx"],},"border-beam": {name: "border-beam",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/border-beam.tsx"],},"animated-beam": {name: "animated-beam",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-beam.tsx"],},"text-reveal": {name: "text-reveal",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/text-reveal.tsx"],},"animated-gradient-text": {name: "animated-gradient-text",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/animated-gradient-text.tsx"],},"orbiting-circles": {name: "orbiting-circles",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/orbiting-circles.tsx"],},dock: {name: "dock",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/dock.tsx"],},"word-rotate": {name: "word-rotate",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/word-rotate.tsx"],},"avatar-circles": {name: "avatar-circles",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/avatar-circles.tsx"],},"word-pull-up": {name: "word-pull-up",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/word-pull-up.tsx"],},"typing-animation": {name: "typing-animation",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/typing-animation.tsx"],},"wavy-text": {name: "wavy-text",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/wavy-text.tsx"],},"blur-in": {name: "blur-in",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/blur-in.tsx"],},"separate-away": {name: "separate-away",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/separate-away.tsx"],},"letter-pullup": {name: "letter-pullup",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/letter-pullup.tsx"],},"sparkles-text": {@@ -189,12 +196,13 @@ const ui: Registry = {},"flip-text": {name: "flip-text",- type: "components:ui",+ type: "components:magicui",files: ["registry/components/magicui/flip-text.tsx"],},"icon-cloud": {name: "icon-cloud",- type: "components:ui",+ type: "components:magicui",+ dependencies: ["next-themes", "react-icon-cloud"],files: ["registry/components/magicui/icon-cloud.tsx"],},"wavy-dot-pattern": {@@ -263,6 +271,7 @@ const example: Registry = {"magic-card-demo": {name: "magic-card-demo",type: "components:example",+ registryDependencies: ["magic-card"],files: ["registry/components/example/magic-card-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/magic-card-demo"),@@ -279,6 +288,7 @@ const example: Registry = {"magic-card-gradient": {name: "magic-card-gradient",type: "components:example",+ registryDependencies: ["magic-card"],files: ["registry/components/example/magic-card-gradient.tsx"],component: React.lazy(() => import("@/registry/components/example/magic-card-gradient"),@@ -287,6 +297,7 @@ const example: Registry = {"linear-gradient-demo": {name: "linear-gradient-demo",type: "components:example",+ registryDependencies: ["linear-gradient"],files: ["registry/components/example/linear-gradient-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/linear-gradient-demo"),@@ -295,6 +306,7 @@ const example: Registry = {"radial-gradient-demo": {name: "radial-gradient-demo",type: "components:example",+ registryDependencies: ["radial-gradient"],files: ["registry/components/example/radial-gradient-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/radial-gradient-demo"),@@ -303,6 +315,7 @@ const example: Registry = {"meteors-demo": {name: "meteors-demo",type: "components:example",+ registryDependencies: ["meteors"],files: ["registry/components/example/meteors-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/meteors-demo"),@@ -311,6 +324,7 @@ const example: Registry = {"grid-pattern-demo": {name: "grid-pattern-demo",type: "components:example",+ registryDependencies: ["grid-pattern"],files: ["registry/components/example/grid-pattern-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/grid-pattern-demo"),@@ -319,6 +333,7 @@ const example: Registry = {"grid-pattern-linear-gradient": {name: "grid-pattern-linear-gradient",type: "components:example",+ registryDependencies: ["grid-pattern"],files: ["registry/components/example/grid-pattern-linear-gradient.tsx"],component: React.lazy(() =>@@ -328,6 +343,7 @@ const example: Registry = {"grid-pattern-dashed": {name: "grid-pattern-dashed",type: "components:example",+ registryDependencies: ["grid-pattern"],files: ["registry/components/example/grid-pattern-dashed.tsx"],component: React.lazy(() => import("@/registry/components/example/grid-pattern-dashed"),@@ -336,6 +352,7 @@ const example: Registry = {"dot-pattern-demo": {name: "dot-pattern-demo",type: "components:example",+ registryDependencies: ["dot-pattern"],files: ["registry/components/example/dot-pattern-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/dot-pattern-demo"),@@ -344,6 +361,7 @@ const example: Registry = {"dot-pattern-linear-gradient": {name: "dot-pattern-linear-gradient",type: "components:example",+ registryDependencies: ["dot-pattern"],files: ["registry/components/example/dot-pattern-linear-gradient.tsx"],component: React.lazy(() => import("@/registry/components/example/dot-pattern-linear-gradient"),@@ -352,6 +370,7 @@ const example: Registry = {"marquee-demo": {name: "marquee-demo",type: "components:example",+ registryDependencies: ["marquee"],files: ["registry/components/example/marquee-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/marquee-demo"),@@ -360,6 +379,7 @@ const example: Registry = {"marquee-demo-vertical": {name: "marquee-demo-vertical",type: "components:example",+ registryDependencies: ["marquee"],files: ["registry/components/example/marquee-demo-vertical.tsx"],component: React.lazy(() => import("@/registry/components/example/marquee-demo-vertical"),@@ -368,6 +388,7 @@ const example: Registry = {"marquee-logos": {name: "marquee-logos",type: "components:example",+ registryDependencies: ["marquee"],files: ["registry/components/example/marquee-logos.tsx"],component: React.lazy(() => import("@/registry/components/example/marquee-logos"),@@ -376,6 +397,7 @@ const example: Registry = {"marquee-3d": {name: "marquee-3d",type: "components:example",+ registryDependencies: ["marquee"],files: ["registry/components/example/marquee-3d.tsx"],component: React.lazy(() => import("@/registry/components/example/marquee-3d"),@@ -384,6 +406,7 @@ const example: Registry = {"globe-demo": {name: "globe-demo",type: "components:example",+ registryDependencies: ["globe"],files: ["registry/components/example/globe-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/globe-demo"),@@ -392,6 +415,7 @@ const example: Registry = {"tweet-card-demo": {name: "tweet-card-demo",type: "components:example",+ registryDependencies: ["tweet-card"],files: ["registry/components/example/tweet-card-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/tweet-card-demo"),@@ -400,6 +424,7 @@ const example: Registry = {"tweet-card-images": {name: "tweet-card-images",type: "components:example",+ registryDependencies: ["tweet-card"],files: ["registry/components/example/tweet-card-images.tsx"],component: React.lazy(() => import("@/registry/components/example/tweet-card-images"),@@ -408,6 +433,7 @@ const example: Registry = {"tweet-card-meta-preview": {name: "tweet-card-meta-preview",type: "components:example",+ registryDependencies: ["tweet-card"],files: ["registry/components/example/tweet-card-meta-preview.tsx"],component: React.lazy(() => import("@/registry/components/example/tweet-card-meta-preview"),@@ -416,6 +442,7 @@ const example: Registry = {"shimmer-button-demo": {name: "shimmer-button-demo",type: "components:example",+ registryDependencies: ["shimmer-button"],files: ["registry/components/example/shimmer-button-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/shimmer-button-demo"),@@ -424,6 +451,7 @@ const example: Registry = {"hero-video-demo": {name: "hero-video-demo",type: "components:example",+ registryDependencies: ["hero-video"],files: ["registry/components/example/hero-video-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/hero-video-demo"),@@ -432,6 +460,7 @@ const example: Registry = {"hero-video-youtube": {name: "hero-video-youtube",type: "components:example",+ registryDependencies: ["hero-video"],files: ["registry/components/example/hero-video-youtube.tsx"],component: React.lazy(() => import("@/registry/components/example/hero-video-youtube"),@@ -440,6 +469,8 @@ const example: Registry = {"bento-demo": {name: "bento-demo",type: "components:example",+ registryDependencies: ["bento-grid", "marquee", "globe", "shadcn:command", "shadcn:calendar" ],+ dependencies: ["@radix-ui/react-icons"],files: ["registry/components/example/bento-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/bento-demo"),@@ -448,6 +479,8 @@ const example: Registry = {"bento-demo-vertical": {name: "bento-demo-vertical",type: "components:example",+ registryDependencies: ["bento-grid"],+ dependencies: ["@radix-ui/react-icons"],files: ["registry/components/example/bento-demo-vertical.tsx"],component: React.lazy(() => import("@/registry/components/example/bento-demo-vertical"),@@ -456,6 +489,7 @@ const example: Registry = {"number-ticker-demo": {name: "number-ticker-demo",type: "components:example",+ registryDependencies: ["number-ticker"],files: ["registry/components/example/number-ticker-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/number-ticker-demo"),@@ -464,6 +498,7 @@ const example: Registry = {"ripple-demo": {name: "ripple-demo",type: "components:example",+ registryDependencies: ["ripple"],files: ["registry/components/example/ripple-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/ripple-demo"),@@ -480,6 +515,7 @@ const example: Registry = {"animated-list-demo": {name: "animated-list-demo",type: "components:example",+ registryDependencies: ["animated-list"],files: ["registry/components/example/animated-list-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-list-demo"),@@ -488,6 +524,7 @@ const example: Registry = {"animated-lines-demo": {name: "animated-lines-demo",type: "components:example",+ registryDependencies: ["animated-lines"],files: ["registry/components/example/animated-lines-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-lines-demo"),@@ -496,6 +533,8 @@ const example: Registry = {"animated-shiny-text-demo": {name: "animated-shiny-text-demo",type: "components:example",+ registryDependencies: ["animated-shiny-text"],+ dependencies: ["@radix-ui/react-icons"],files: ["registry/components/example/animated-shiny-text-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-shiny-text-demo"),@@ -504,6 +543,8 @@ const example: Registry = {"particles-demo": {name: "particles-demo",type: "components:example",+ registryDependencies: ["particles"],+ dependencies: ["next-themes"],files: ["registry/components/example/particles-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/particles-demo"),@@ -512,6 +553,7 @@ const example: Registry = {"animated-grid-pattern-demo": {name: "animated-grid-pattern-demo",type: "components:example",+ registryDependencies: ["animated-grid-pattern"],files: ["registry/components/example/animated-grid-pattern-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-grid-pattern-demo"),@@ -520,6 +562,7 @@ const example: Registry = {"border-beam-demo": {name: "border-beam-demo",type: "components:example",+ registryDependencies: ["border-beam"],files: ["registry/components/example/border-beam-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/border-beam-demo"),@@ -528,6 +571,8 @@ const example: Registry = {"animated-beam-demo": {name: "animated-beam-demo",type: "components:example",+ registryDependencies: ["animated-beam"],+ dependencies: ["@radix-ui/react-icons"],files: ["registry/components/example/animated-beam-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-beam-demo"),@@ -536,6 +581,7 @@ const example: Registry = {"animated-beam-unidirectional": {name: "animated-beam-unidirectional",type: "components:example",+ registryDependencies: ["animated-beam"],files: ["registry/components/example/animated-beam-unidirectional.tsx"],component: React.lazy(() =>@@ -545,6 +591,7 @@ const example: Registry = {"animated-beam-bidirectional": {name: "animated-beam-bidirectional",type: "components:example",+ registryDependencies: ["animated-beam"],files: ["registry/components/example/animated-beam-bidirectional.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-beam-bidirectional"),@@ -553,6 +600,7 @@ const example: Registry = {"animated-beam-multiple-inputs": {name: "animated-beam-multiple-inputs",type: "components:example",+ registryDependencies: ["animated-beam"],files: ["registry/components/example/animated-beam-multiple-inputs.tsx"],component: React.lazy(() =>@@ -562,6 +610,7 @@ const example: Registry = {"animated-beam-multiple-outputs": {name: "animated-beam-multiple-outputs",type: "components:example",+ registryDependencies: ["animated-beam"],files: ["registry/components/example/animated-beam-multiple-outputs.tsx"],component: React.lazy(() =>@@ -579,6 +628,7 @@ const example: Registry = {"animated-feature-card-2": {name: "animated-feature-card-2",type: "components:example",+ dependencies: ["lucide-react"],files: ["registry/components/example/animated-feature-card-2.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-feature-card-2"),@@ -619,6 +669,7 @@ const example: Registry = {"animated-feature-card-7": {name: "animated-feature-card-7",type: "components:example",+ registryDependencies: ["marquee"],files: ["registry/components/example/animated-feature-card-7.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-feature-card-7"),@@ -651,6 +702,7 @@ const example: Registry = {"text-reveal-demo": {name: "text-reveal-demo",type: "components:example",+ registryDependencies: ["text-reveal"],files: ["registry/components/example/text-reveal-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/text-reveal-demo"),@@ -659,6 +711,8 @@ const example: Registry = {"animated-gradient-text-demo": {name: "animated-gradient-text-demo",type: "components:example",+ registryDependencies: ["animated-gradient-text"],+ dependencies: ["lucide-react"],files: ["registry/components/example/animated-gradient-text-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/animated-gradient-text-demo"),@@ -667,6 +721,8 @@ const example: Registry = {"orbiting-circles-demo": {name: "orbiting-circles-demo",type: "components:example",+ registryDependencies: ["orbiting-circles"],+ dependencies: ["@radix-ui/react-icons"],files: ["registry/components/example/orbiting-circles-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/orbiting-circles-demo"),@@ -675,6 +731,7 @@ const example: Registry = {"dock-demo": {name: "dock-demo",type: "components:example",+ registryDependencies: ["dock"],files: ["registry/components/example/dock-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/dock-demo"),@@ -683,6 +740,7 @@ const example: Registry = {"word-rotate-demo": {name: "word-rotate-demo",type: "components:example",+ registryDependencies: ["word-rotate"],files: ["registry/components/example/word-rotate-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/word-rotate-demo"),@@ -691,6 +749,7 @@ const example: Registry = {"avatar-circles-demo": {name: "avatar-circles-demo",type: "components:example",+ registryDependencies: ["avatar-circles"],files: ["registry/components/example/avatar-circles-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/avatar-circles-demo"),@@ -699,6 +758,7 @@ const example: Registry = {"word-pull-up-demo": {name: "word-pull-up-demo",type: "components:example",+ registryDependencies: ["word-pull-up"],files: ["registry/components/example/word-pull-up-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/word-pull-up-demo"),@@ -707,6 +767,7 @@ const example: Registry = {"typing-animation-demo": {name: "typing-animation-demo",type: "components:example",+ registryDependencies: ["typing-animation"],files: ["registry/components/example/typing-animation-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/typing-animation-demo"),@@ -715,6 +776,7 @@ const example: Registry = {"wavy-text-demo": {name: "wavy-text-demo",type: "components:example",+ registryDependencies: ["wavy-text"],files: ["registry/components/example/wavy-text-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/wavy-text-demo"),@@ -723,6 +785,7 @@ const example: Registry = {"blur-in-demo": {name: "blur-in-demo",type: "components:example",+ registryDependencies: ["blur-in"],files: ["registry/components/example/blur-in-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/blur-in-demo"),@@ -731,6 +794,7 @@ const example: Registry = {"separate-away-demo": {name: "separate-away-demo",type: "components:example",+ registryDependencies: ["separate-away"],files: ["registry/components/example/separate-away-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/separate-away-demo"),@@ -739,6 +803,7 @@ const example: Registry = {"scroll-based-velocity-demo": {name: "scroll-based-velocity-demo",type: "components:example",+ registryDependencies: ["scroll-based-velocity"],files: ["registry/components/example/scroll-based-velocity-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/scroll-based-velocity-demo"),@@ -747,6 +812,7 @@ const example: Registry = {"letter-pullup-demo": {name: "letter-pullup-demo",type: "components:example",+ registryDependencies: ["letter-pullup"],files: ["registry/components/example/letter-pullup-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/letter-pullup-demo"),@@ -755,6 +821,7 @@ const example: Registry = {"flip-text-demo": {name: "flip-text-demo",type: "components:example",+ registryDependencies: ["flip-text"],files: ["registry/components/example/flip-text-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/flip-text-demo"),@@ -771,6 +838,7 @@ const example: Registry = {"icon-cloud-demo": {name: "icon-cloud-demo",type: "components:example",+ registryDependencies: ["icon-cloud"],files: ["registry/components/example/icon-cloud-demo.tsx"],component: React.lazy(() => import("@/registry/components/example/icon-cloud-demo"),@@ -942,3 +1010,7 @@ export const registry: Registry = {...ui,...example,};++const resolvedExamples = Object.entries(example).map(([key, value]) => ({...value, component: () => void 0}));+const updatedExample:Registry = resolvedExamples.reduce((acc, curr) => ({...acc, [curr.name]: curr}), {});+export const downloadRegistry: Registry = {...ui, ...updatedExample};\ No newline at end of filediff --git a/registry/schema.ts b/registry/schema.tsindex 39abe976..9dd40dc7 100644--- a/registry/schema.ts+++ b/registry/schema.ts@@ -9,8 +9,10 @@ export const registrySchema = z.record(files: z.array(z.string()),type: z.enum(["components:ui",+ "components:magicui","components:component","components:example",+ "components:blocks",]),component: z.function().args(z.any()).returns(z.any()).optional(),}),diff --git a/scripts/build-registry.ts b/scripts/build-registry.tsnew file mode 100644index 00000000..5fa71af8--- /dev/null+++ b/scripts/build-registry.ts@@ -0,0 +1,74 @@+// @ts-nocheck+import fs from "fs"+import path, { basename } from "path"+import { rimraf } from "rimraf"+import { downloadRegistry } from "../registry/index.tsx"+import { registrySchema } from "../registry/schema.ts"++const REGISTRY_PATH = path.join(process.cwd(), "public/registry")++const result = registrySchema.safeParse(downloadRegistry)++console.log("Building Registry...")++if (!result.success) {+ console.error(result.error)+ process.exit(1)+}+// ----------------------------------------------------------------------------+// Build registry/index.json.+// ----------------------------------------------------------------------------+const data = Object.values(result.data).sort((a, b) => a.name.localeCompare(b.name));+const names = data //.filter((item) => item.type === "components:ui")+const registryJson = JSON.stringify(names, null, 2)++// Create directory if it doesn't exist.+if (!fs.existsSync(REGISTRY_PATH)) {+ fs.mkdirSync(REGISTRY_PATH, { recursive: true })+}++rimraf.sync(path.join(REGISTRY_PATH, "index.json"))+fs.writeFileSync(path.join(REGISTRY_PATH, "index.json"), registryJson, "utf8")++// ----------------------------------------------------------------------------+// Build registry/components/["magicui" | "ui" | "example"]/[name].json.+// ----------------------------------------------------------------------------++for (const item of data) {+ const [parent, subfolder] = item.type.split(":")+ if (!parent || !subfolder) {+ console.warn(`Invalid type: ${item.type} for ${item.name}`)+ continue+ }+ const targetPath = path.join(REGISTRY_PATH, parent, subfolder)+ // Create directory if it doesn't exist.+ if (!fs.existsSync(targetPath)) {+ fs.mkdirSync(targetPath, { recursive: true })+ }+++ const files = item.files?.map((file) => {+ const content = fs.readFileSync(+ path.join(process.cwd(), file),+ "utf8"+ )++ return {+ name: basename(file),+ content,+ }+ })++ const payload = {+ ...item,+ files,+ }++ fs.writeFileSync(+ path.join(targetPath, `${item.name}.json`),+ JSON.stringify(payload, null, 2),+ "utf8"+ )+}++console.log("Build Registry Done ✅")\ No newline at end of filediff --git a/tsconfig.json b/tsconfig.jsonindex 688c840c..81c3a219 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -2,7 +2,11 @@"compilerOptions": {"baseUrl": ".","target": "esnext",- "lib": ["dom", "dom.iterable", "esnext"],+ "lib": [+ "dom",+ "dom.iterable",+ "esnext"+ ],"allowJs": true,"skipLibCheck": true,"strict": true,@@ -21,8 +25,18 @@}],"paths": {- "@/*": ["./*"],- "contentlayer/generated": ["./.contentlayer/generated"]+ "@/*": [+ "./*"+ ],+ "@/components/magicui/*": [+ "./registry/components/magicui/*"+ ],+ "@/components/example/*": [+ "./registry/components/example/*"+ ],+ "contentlayer/generated": [+ "./.contentlayer/generated"+ ]}},"include": [@@ -30,7 +44,11 @@"**/*.ts","**/*.tsx",".next/types/**/*.ts",- ".contentlayer/generated"+ ".contentlayer/generated",],- "exclude": ["node_modules"]-}+ "exclude": [+ "node_modules",+ "packages/**/*",+ "scripts/**/*",+ ]+}\ No newline at end of filediff --git a/tsconfig.scripts.json b/tsconfig.scripts.jsonnew file mode 100644index 00000000..cb763e01--- /dev/null+++ b/tsconfig.scripts.json@@ -0,0 +1,12 @@+{+ "$schema": "https://json.schemastore.org/tsconfig",+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "target": "es6",+ "module": "commonjs",+ "esModuleInterop": true,+ "isolatedModules": false,+ },+ "include": ["scripts/**/*.ts"],+ "exclude": ["node_modules"]+ }\ No newline at end of file