Skip to content

Commit ab5cdfd

Browse files
committed
chore: update deps and migrate to pnpm catalogs
1 parent a6cf913 commit ab5cdfd

File tree

12 files changed

+3017
-3112
lines changed

12 files changed

+3017
-3112
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"recommendations": [
33
"Vue.volar",
44
"dbaeumer.vscode-eslint",
5-
"bradlc.vscode-tailwindcss"
5+
"bradlc.vscode-tailwindcss",
6+
"antfu.pnpm-catalog-lens"
67
]
78
}

apps/registry/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"dev": "nitro dev --port 3001"
88
},
99
"dependencies": {
10-
"@modelcontextprotocol/sdk": "^1.22.0",
11-
"shadcn-vue": "^2.3.2",
12-
"zod": "~3.25.76"
10+
"@modelcontextprotocol/sdk": "catalog:server-runtime",
11+
"shadcn-vue": "catalog:ui-core",
12+
"zod": "catalog:validation"
1313
},
1414
"devDependencies": {
15-
"@vue/compiler-sfc": "^3.5.22",
16-
"h3": "^1.15.4",
17-
"nitropack": "^2.12.6",
18-
"ts-morph": "^27.0.0"
15+
"@vue/compiler-sfc": "catalog:tooling",
16+
"h3": "catalog:server-runtime",
17+
"nitropack": "catalog:server-runtime",
18+
"ts-morph": "catalog:tooling"
1919
}
2020
}

apps/www/components/ElementsDemo.vue

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,33 @@ const defaultTab = tabs[0].name
3030
</script>
3131

3232
<template>
33-
<Toaster />
33+
<ClientOnly>
34+
<Toaster />
3435

35-
<div class="my-4 w-full rounded-lg border">
36-
<Tabs :default-value="defaultTab">
37-
<TabsList class="w-full justify-start rounded-none border-b bg-muted/50 p-0">
38-
<TabsTrigger
36+
<div class="my-4 w-full rounded-lg border">
37+
<Tabs :default-value="defaultTab">
38+
<TabsList class="w-full justify-start rounded-none border-b bg-muted/50 p-0">
39+
<TabsTrigger
40+
v-for="tab in tabs"
41+
:key="tab.name"
42+
:value="tab.name"
43+
class="rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-background"
44+
>
45+
{{ tab.name }}
46+
</TabsTrigger>
47+
</TabsList>
48+
49+
<TabsContent
3950
v-for="tab in tabs"
4051
:key="tab.name"
4152
:value="tab.name"
42-
class="rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-background"
53+
class="m-0 p-0"
4354
>
44-
{{ tab.name }}
45-
</TabsTrigger>
46-
</TabsList>
47-
48-
<TabsContent
49-
v-for="tab in tabs"
50-
:key="tab.name"
51-
:value="tab.name"
52-
class="m-0 p-0"
53-
>
54-
<div class="">
55-
<ComponentViewer :component-name="tab.componentName" />
56-
</div>
57-
</TabsContent>
58-
</Tabs>
59-
</div>
55+
<div class="">
56+
<ComponentViewer :component-name="tab.componentName" />
57+
</div>
58+
</TabsContent>
59+
</Tabs>
60+
</div>
61+
</ClientOnly>
6062
</template>

apps/www/content/2.examples/chatbot.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Let's walk through how to build a chatbot using AI Elements Vue and AI SDK. Our
1818

1919
First, set up a new Nuxt.js repo by running the following command:
2020

21-
```sh
21+
```sh [Terminal]
2222
pnpm create nuxt@latest ai-chatbot
2323
```
2424

2525
Navigate to the newly created directory:
2626

27-
```sh
27+
```sh [Terminal]
2828
cd ai-chatbot
2929
```
3030

@@ -80,13 +80,13 @@ Let's walk through how to build a chatbot using AI Elements Vue and AI SDK. Our
8080
Create a `.env` file in your project root and add your [Vercel AI Gateway](https://vercel.com/ai-gateway) API Key.
8181
This key is used to authenticate your application with the Vercel AI Gateway service.
8282

83-
```sh
83+
```sh [Terminal]
8484
touch .env
8585
```
8686

8787
Edit the `.env` file:
8888

89-
```env [.env]
89+
```text [.env]
9090
NUXT_AI_GATEWAY_API_KEY=xxxxxxxxx
9191
```
9292

@@ -474,7 +474,7 @@ Let's walk through how to build a chatbot using AI Elements Vue and AI SDK. Our
474474

475475
With that, you have built everything you need for your chatbot! To start your application, use the command:
476476

477-
```sh
477+
```sh [Terminal]
478478
pnpm run dev
479479
```
480480
Head to your browser and open http://localhost:3000.

apps/www/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
"dependencies": {
1515
"@repo/elements": "workspace:*",
1616
"@repo/examples": "workspace:*",
17-
"@vueuse/shared": "^14.1.0",
18-
"highlight.js": "^11.11.1",
19-
"nuxt": "3.18.0",
20-
"shadcn-docs-nuxt": "^1.1.4",
21-
"tailwindcss": "^4.1.14",
22-
"vue": "^3.5.22",
23-
"vue-router": "^4.5.1"
17+
"@vueuse/shared": "catalog:ui-core",
18+
"highlight.js": "catalog:docs-app",
19+
"nuxt": "catalog:docs-app",
20+
"shadcn-docs-nuxt": "catalog:docs-app",
21+
"tailwindcss": "catalog:ui-core",
22+
"vue": "catalog:ui-core",
23+
"vue-router": "catalog:ui-core"
2424
},
2525
"devDependencies": {
26-
"@iconify-json/logos": "^1.2.9",
27-
"@iconify-json/lucide": "^1.2.73",
28-
"@iconify-json/simple-icons": "^1.2.54",
29-
"baseline-browser-mapping": "^2.9.2",
30-
"tailwindcss-animate": "^1.0.7",
31-
"wrangler": "^4.52.1"
26+
"@iconify-json/logos": "catalog:docs-app",
27+
"@iconify-json/lucide": "catalog:docs-app",
28+
"@iconify-json/simple-icons": "catalog:docs-app",
29+
"baseline-browser-mapping": "catalog:docs-app",
30+
"tailwindcss-animate": "catalog:ui-core",
31+
"wrangler": "catalog:server-runtime"
3232
}
3333
}

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import antfu from '@antfu/eslint-config'
33
export default antfu({
44
vue: true,
55
typescript: true,
6+
pnpm: true,
67
ignores: [
78
'**/.nitro/**',
9+
'apps/registry/server/assets/**',
810
],
911
})

package.json

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ai-elements-vue",
33
"version": "0.14.2",
44
"private": true,
5-
"packageManager": "pnpm@10.18.0",
5+
"packageManager": "pnpm@10.24.0",
66
"engines": {
77
"node": ">=20.19.0"
88
},
@@ -21,30 +21,15 @@
2121
"bumpp": "bumpp package.json packages/*/package.json apps/*/package.json"
2222
},
2323
"devDependencies": {
24-
"@antfu/eslint-config": "^5.4.1",
25-
"@commitlint/cli": "^20.1.0",
26-
"@commitlint/config-conventional": "^20.0.0",
27-
"bumpp": "^10.3.1",
28-
"eslint": "^9.37.0",
29-
"lint-staged": "^16.2.3",
30-
"simple-git-hooks": "^2.13.1",
31-
"turbo": "^2.5.8",
32-
"typescript": "^5.9.3"
33-
},
34-
"pnpm": {
35-
"allowedDeprecatedVersions": {
36-
"glob": "7.2.3",
37-
"inflight": "1.0.6",
38-
"source-map-resolve": "0.6.0",
39-
"@oxc-parser/wasm": "0.60.0",
40-
"@types/parse-path": "7.1.0",
41-
"node-domexception": "1.0.0"
42-
},
43-
"peerDependencyRules": {
44-
"allowedVersions": {
45-
"zod": "4"
46-
}
47-
}
24+
"@antfu/eslint-config": "catalog:tooling",
25+
"@commitlint/cli": "catalog:tooling",
26+
"@commitlint/config-conventional": "catalog:tooling",
27+
"bumpp": "catalog:tooling",
28+
"eslint": "catalog:tooling",
29+
"lint-staged": "catalog:tooling",
30+
"simple-git-hooks": "catalog:tooling",
31+
"turbo": "catalog:tooling",
32+
"typescript": "catalog:tooling"
4833
},
4934
"simple-git-hooks": {
5035
"pre-commit": "pnpm lint-staged",

packages/elements/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
},
1212
"dependencies": {
1313
"@repo/shadcn-vue": "workspace:*",
14-
"@vue-flow/background": "^1.3.2",
15-
"@vue-flow/controls": "^1.1.3",
16-
"@vue-flow/core": "^1.47.0",
17-
"@vue-flow/node-toolbar": "^1.1.1",
18-
"@vueuse/core": "^13.9.0",
19-
"ai": "^5.0.60",
20-
"lucide-vue-next": "^0.544.0",
21-
"motion-v": "^1.7.3",
22-
"shiki": "^3.14.0",
23-
"streamdown-vue": "^1.0.29",
24-
"tokenlens": "^1.3.1",
25-
"vue": "^3.5.22",
26-
"vue-stick-to-bottom": "^0.1.0"
14+
"@vue-flow/background": "catalog:ai-kit",
15+
"@vue-flow/controls": "catalog:ai-kit",
16+
"@vue-flow/core": "catalog:ai-kit",
17+
"@vue-flow/node-toolbar": "catalog:ai-kit",
18+
"@vueuse/core": "catalog:ui-core",
19+
"ai": "catalog:ai-kit",
20+
"lucide-vue-next": "catalog:ui-core",
21+
"motion-v": "catalog:ui-core",
22+
"shiki": "catalog:ai-kit",
23+
"streamdown-vue": "catalog:ui-core",
24+
"tokenlens": "catalog:ai-kit",
25+
"vue": "catalog:ui-core",
26+
"vue-stick-to-bottom": "catalog:ui-core"
2727
},
2828
"devDependencies": {
29-
"@types/hast": "^3.0.4",
30-
"@vitejs/plugin-vue": "^6.0.1",
31-
"@vitejs/plugin-vue-jsx": "^5.1.1",
32-
"@vitest/browser-playwright": "^4.0.8",
33-
"@vitest/ui": "4.0.8",
34-
"@vue/test-utils": "^2.4.6",
35-
"playwright": "^1.56.1",
36-
"typescript": "^5.9.3",
37-
"vitest": "^4.0.8",
38-
"vitest-browser-vue": "^2.0.1"
29+
"@types/hast": "catalog:tooling",
30+
"@vitejs/plugin-vue": "catalog:tooling",
31+
"@vitejs/plugin-vue-jsx": "catalog:tooling",
32+
"@vitest/browser-playwright": "catalog:testing",
33+
"@vitest/ui": "catalog:testing",
34+
"@vue/test-utils": "catalog:testing",
35+
"playwright": "catalog:testing",
36+
"typescript": "catalog:tooling",
37+
"vitest": "catalog:testing",
38+
"vitest-browser-vue": "catalog:testing"
3939
}
4040
}

packages/examples/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
},
99
"dependencies": {
1010
"@repo/elements": "workspace:*",
11-
"@vue-flow/core": "^1.47.0",
12-
"ai": "^5.0.60",
13-
"lucide-vue-next": "^0.544.0",
14-
"nanoid": "^5.1.6",
15-
"vue": "^3.5.22",
16-
"vue-sonner": "^2.0.9"
11+
"@vue-flow/core": "catalog:ai-kit",
12+
"ai": "catalog:ai-kit",
13+
"lucide-vue-next": "catalog:ui-core",
14+
"nanoid": "catalog:shared",
15+
"vue": "catalog:ui-core",
16+
"vue-sonner": "catalog:ui-core"
1717
},
1818
"devDependencies": {
19-
"typescript": "^5.9.3"
19+
"typescript": "catalog:tooling"
2020
}
2121
}

packages/shadcn-vue/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
"version": "0.14.2",
44
"private": true,
55
"dependencies": {
6-
"@tailwindcss/vite": "^4.1.14",
7-
"@tanstack/vue-table": "^8.21.3",
8-
"@unovis/ts": "^1.6.1",
9-
"@unovis/vue": "^1.6.1",
10-
"@vee-validate/zod": "^4.15.1",
11-
"@vueuse/core": "^13.9.0",
12-
"class-variance-authority": "^0.7.1",
13-
"clsx": "^2.1.1",
14-
"embla-carousel-vue": "^8.6.0",
15-
"lucide-vue-next": "^0.544.0",
16-
"reka-ui": "^2.5.1",
17-
"shadcn-nuxt": "2.3.1",
18-
"tailwind-merge": "^3.3.1",
19-
"tailwindcss": "^4.1.14",
20-
"tw-animate-css": "^1.4.0",
21-
"vaul-vue": "^0.4.1",
22-
"vee-validate": "^4.15.1",
23-
"vue": "^3.5.22",
24-
"vue-sonner": "^2.0.9",
25-
"zod": "^4.1.11"
6+
"@tailwindcss/vite": "catalog:tooling",
7+
"@tanstack/vue-table": "catalog:ui-core",
8+
"@unovis/ts": "catalog:ui-core",
9+
"@unovis/vue": "catalog:ui-core",
10+
"@vee-validate/zod": "catalog:validation",
11+
"@vueuse/core": "catalog:ui-core",
12+
"class-variance-authority": "catalog:ui-core",
13+
"clsx": "catalog:ui-core",
14+
"embla-carousel-vue": "catalog:ui-core",
15+
"lucide-vue-next": "catalog:ui-core",
16+
"reka-ui": "catalog:ui-core",
17+
"shadcn-nuxt": "catalog:ui-core",
18+
"tailwind-merge": "catalog:ui-core",
19+
"tailwindcss": "catalog:ui-core",
20+
"tw-animate-css": "catalog:ui-core",
21+
"vaul-vue": "catalog:ui-core",
22+
"vee-validate": "catalog:validation",
23+
"vue": "catalog:ui-core",
24+
"vue-sonner": "catalog:ui-core",
25+
"zod": "catalog:validation"
2626
},
2727
"devDependencies": {
28-
"typescript": "^5.9.3"
28+
"typescript": "catalog:tooling"
2929
}
3030
}

0 commit comments

Comments
 (0)