From e5df0269935be59df759fe0e1378acb2b0d9014a Mon Sep 17 00:00:00 2001 From: Hugo Richard Date: Tue, 29 Apr 2025 16:10:53 +0200 Subject: [PATCH 1/7] fix(theme): add missing `ring-offset-*` utilities (#3992) Co-authored-by: Benjamin Canac --- docs/content/1.getting-started/3.theme.md | 5 +++++ src/templates.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/content/1.getting-started/3.theme.md b/docs/content/1.getting-started/3.theme.md index b2e20d79..6f80a867 100644 --- a/docs/content/1.getting-started/3.theme.md +++ b/docs/content/1.getting-started/3.theme.md @@ -733,6 +733,11 @@ This is how the `@theme` is generated for each design token: --ring-color-accented: var(--ui-border-accented); --ring-color-inverted: var(--ui-border-inverted); --ring-color-bg: var(--ui-bg); + --ring-offset-color-default: var(--ui-border); + --ring-offset-color-muted: var(--ui-border-muted); + --ring-offset-color-accented: var(--ui-border-accented); + --ring-offset-color-inverted: var(--ui-border-inverted); + --ring-offset-color-bg: var(--ui-bg); --divide-color-default: var(--ui-border); --divide-color-muted: var(--ui-border-muted); --divide-color-accented: var(--ui-border-accented); diff --git a/src/templates.ts b/src/templates.ts index da2d4b11..47b9c505 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -120,6 +120,11 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record Date: Tue, 29 Apr 2025 17:07:24 +0200 Subject: [PATCH 2/7] chore(deps): update `vue-tsc` (#4023) --- package.json | 5 +-- playground-vue/package.json | 2 +- pnpm-lock.yaml | 87 +++++++++++++------------------------ 3 files changed, 33 insertions(+), 61 deletions(-) diff --git a/package.json b/package.json index 3cbb3411..1e13a456 100644 --- a/package.json +++ b/package.json @@ -167,7 +167,7 @@ "release-it": "^19.0.1", "vitest": "^3.1.2", "vitest-environment-nuxt": "^1.0.1", - "vue-tsc": "^2.2.0" + "vue-tsc": "^2.2.10" }, "peerDependencies": { "@inertiajs/vue3": "^2.0.7", @@ -207,8 +207,7 @@ "chokidar": "3.6.0", "debug": "4.3.7", "rollup": "4.34.9", - "unplugin": "^2.3.2", - "vue-tsc": "2.2.0" + "unplugin": "^2.3.2" }, "pnpm": { "onlyBuiltDependencies": [ diff --git a/playground-vue/package.json b/playground-vue/package.json index a20997b8..7ccd7c6d 100644 --- a/playground-vue/package.json +++ b/playground-vue/package.json @@ -19,6 +19,6 @@ "@vitejs/plugin-vue": "^5.2.3", "typescript": "^5.8.3", "vite": "^6.3.3", - "vue-tsc": "^2.2.0" + "vue-tsc": "^2.2.10" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 52eb1dfc..a23c05cc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,6 @@ overrides: debug: 4.3.7 rollup: 4.34.9 unplugin: ^2.3.2 - vue-tsc: 2.2.0 importers: @@ -169,7 +168,7 @@ importers: version: 1.3.0(@vue/compiler-sfc@3.5.13)(eslint@9.25.1(jiti@2.4.2))(typescript@5.8.3) '@nuxt/module-builder': specifier: ^1.0.1 - version: 1.0.1(@nuxt/cli@3.24.0(magicast@0.3.5))(esbuild@0.25.2)(typescript@5.8.3)(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + version: 1.0.1(@nuxt/cli@3.24.0(magicast@0.3.5))(esbuild@0.25.2)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) '@nuxt/test-utils': specifier: ^3.17.2 version: 3.17.2(@types/node@22.13.14)(@vue/test-utils@2.4.6)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.29.2)(magicast@0.3.5)(playwright-core@1.52.0)(terser@5.39.0)(typescript@5.8.3)(vitest@3.1.2(@types/debug@4.1.12)(@types/node@22.13.14)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(yaml@2.7.1) @@ -190,7 +189,7 @@ importers: version: 17.4.4 nuxt: specifier: ^3.16.2 - version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1) + version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) release-it: specifier: ^19.0.1 version: 19.0.1(@types/node@22.13.14)(magicast@0.3.5) @@ -201,8 +200,8 @@ importers: specifier: ^1.0.1 version: 1.0.1(@types/node@22.13.14)(@vue/test-utils@2.4.6)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.29.2)(magicast@0.3.5)(playwright-core@1.52.0)(terser@5.39.0)(typescript@5.8.3)(vitest@3.1.2(@types/debug@4.1.12)(@types/node@22.13.14)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(yaml@2.7.1) vue-tsc: - specifier: 2.2.0 - version: 2.2.0(typescript@5.8.3) + specifier: ^2.2.10 + version: 2.2.10(typescript@5.8.3) cli: dependencies: @@ -265,7 +264,7 @@ importers: version: 13.1.0(axios@1.8.4)(fuse.js@7.1.0)(sortablejs@1.15.6)(vue@3.5.13(typescript@5.8.3)) '@vueuse/nuxt': specifier: ^13.1.0 - version: 13.1.0(magicast@0.3.5)(nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) + version: 13.1.0(magicast@0.3.5)(nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) ai: specifier: ^4.3.10 version: 4.3.10(react@19.1.0)(zod@3.24.3) @@ -280,7 +279,7 @@ importers: version: 0.13.1(react@19.1.0)(vue@3.5.13(typescript@5.8.3)) nuxt: specifier: ^3.16.2 - version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1) + version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) nuxt-component-meta: specifier: ^0.11.0 version: 0.11.0(magicast@0.3.5) @@ -338,7 +337,7 @@ importers: version: 0.8.25(db0@0.3.2(better-sqlite3@11.9.1))(ioredis@5.6.0)(magicast@0.3.5)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1)) nuxt: specifier: ^3.16.2 - version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1) + version: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) zod: specifier: ^3.24.3 version: 3.24.3 @@ -368,8 +367,8 @@ importers: specifier: ^6.3.3 version: 6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1) vue-tsc: - specifier: 2.2.0 - version: 2.2.0(typescript@5.8.3) + specifier: ^2.2.10 + version: 2.2.10(typescript@5.8.3) packages: @@ -2433,14 +2432,6 @@ packages: '@vue/devtools-shared@7.7.2': resolution: {integrity: sha512-uBFxnp8gwW2vD6FrJB8JZLUzVb6PNRG0B0jBnHsOH8uKyva2qINY8PTF5Te4QlTbMDqU5K6qtJDr6cNsKWhbOA==} - '@vue/language-core@2.2.0': - resolution: {integrity: sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@vue/language-core@2.2.10': resolution: {integrity: sha512-+yNoYx6XIKuAO8Mqh1vGytu8jkFEOH5C8iOv3i8Z/65A7x9iAOXA97Q+PqZ3nlm2lxf5rOJuIGI/wDtx/riNYw==} peerDependencies: @@ -2607,9 +2598,6 @@ packages: ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - alien-signals@0.4.14: - resolution: {integrity: sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==} - alien-signals@1.0.10: resolution: {integrity: sha512-pBrgovDvA/c55/aA+ar5pxNCvjQB5IlODtpOQXmUyrpclWIsHmUMsfIuCWsSU/l1iLU2O3ZhICdPaYTsuvGu8Q==} @@ -4897,7 +4885,7 @@ packages: typescript: '>=5.7.3' vue: ^3.5.13 vue-sfc-transformer: ^0.1.1 - vue-tsc: 2.2.0 + vue-tsc: ^1.8.27 || ^2.0.21 peerDependenciesMeta: sass: optional: true @@ -6612,7 +6600,7 @@ packages: vite: '>=2.0.0' vls: '*' vti: '*' - vue-tsc: 2.2.0 + vue-tsc: ~2.2.2 peerDependenciesMeta: '@biomejs/biome': optional: true @@ -6769,8 +6757,8 @@ packages: esbuild: '*' vue: ^3.5.13 - vue-tsc@2.2.0: - resolution: {integrity: sha512-gtmM1sUuJ8aSb0KoAFmK9yMxb8TxjewmxqTJ1aKphD5Cbu0rULFY6+UQT51zW7SpUcenfPUuflKyVwyx9Qdnxg==} + vue-tsc@2.2.10: + resolution: {integrity: sha512-jWZ1xSaNbabEV3whpIDMbjVSVawjAyW+x1n3JeGQo7S0uv2n9F/JMgWW90tGWNFRKya4YwKMZgCtr0vRAM7DeQ==} hasBin: true peerDependencies: typescript: '>=5.0.0' @@ -8192,7 +8180,7 @@ snapshots: transitivePeerDependencies: - magicast - '@nuxt/module-builder@1.0.1(@nuxt/cli@3.24.0(magicast@0.3.5))(esbuild@0.25.2)(typescript@5.8.3)(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))': + '@nuxt/module-builder@1.0.1(@nuxt/cli@3.24.0(magicast@0.3.5))(esbuild@0.25.2)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))': dependencies: '@nuxt/cli': 3.24.0(magicast@0.3.5) citty: 0.1.6 @@ -8200,13 +8188,13 @@ snapshots: defu: 6.1.4 jiti: 2.4.2 magic-regexp: 0.8.0 - mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.1.0 tsconfck: 3.1.5(typescript@5.8.3) typescript: 5.8.3 - unbuild: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + unbuild: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) vue-sfc-transformer: 0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)) transitivePeerDependencies: - esbuild @@ -8320,7 +8308,7 @@ snapshots: - supports-color - vue - '@nuxt/vite-builder@3.16.2(@types/node@22.13.14)(eslint@9.25.1(jiti@2.4.2))(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1)': + '@nuxt/vite-builder@3.16.2(@types/node@22.13.14)(eslint@9.25.1(jiti@2.4.2))(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1)': dependencies: '@nuxt/kit': 3.16.2(magicast@0.3.5) '@rollup/plugin-replace': 6.0.2(rollup@4.34.9) @@ -8353,7 +8341,7 @@ snapshots: unplugin: 2.3.2 vite: 6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1) vite-node: 3.1.2(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1) - vite-plugin-checker: 0.9.1(eslint@9.25.1(jiti@2.4.2))(meow@13.2.0)(optionator@0.9.4)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3)) + vite-plugin-checker: 0.9.1(eslint@9.25.1(jiti@2.4.2))(meow@13.2.0)(optionator@0.9.4)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3)) vue: 3.5.13(typescript@5.8.3) vue-bundle-renderer: 2.1.1 transitivePeerDependencies: @@ -9482,19 +9470,6 @@ snapshots: dependencies: rfdc: 1.4.1 - '@vue/language-core@2.2.0(typescript@5.8.3)': - dependencies: - '@volar/language-core': 2.4.12 - '@vue/compiler-dom': 3.5.13 - '@vue/compiler-vue2': 2.7.16 - '@vue/shared': 3.5.13 - alien-signals: 0.4.14 - minimatch: 9.0.5 - muggle-string: 0.4.1 - path-browserify: 1.0.1 - optionalDependencies: - typescript: 5.8.3 - '@vue/language-core@2.2.10(typescript@5.8.3)': dependencies: '@volar/language-core': 2.4.12 @@ -9579,13 +9554,13 @@ snapshots: '@vueuse/metadata@13.1.0': {} - '@vueuse/nuxt@13.1.0(magicast@0.3.5)(nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3))': + '@vueuse/nuxt@13.1.0(magicast@0.3.5)(nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3))': dependencies: '@nuxt/kit': 3.17.0(magicast@0.3.5) '@vueuse/core': 13.1.0(vue@3.5.13(typescript@5.8.3)) '@vueuse/metadata': 13.1.0 local-pkg: 1.1.1 - nuxt: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1) + nuxt: 3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) vue: 3.5.13(typescript@5.8.3) transitivePeerDependencies: - magicast @@ -9654,8 +9629,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - alien-signals@0.4.14: {} - alien-signals@1.0.10: {} ansi-escapes@4.3.2: @@ -12254,7 +12227,7 @@ snapshots: mkdirp@3.0.1: {} - mkdist@2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): + mkdist@2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): dependencies: autoprefixer: 10.4.21(postcss@8.5.3) citty: 0.1.6 @@ -12273,7 +12246,7 @@ snapshots: typescript: 5.8.3 vue: 3.5.13(typescript@5.8.3) vue-sfc-transformer: 0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)) - vue-tsc: 2.2.0(typescript@5.8.3) + vue-tsc: 2.2.10(typescript@5.8.3) mlly@1.7.4: dependencies: @@ -12581,7 +12554,7 @@ snapshots: - magicast - vue - nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3))(yaml@2.7.1): + nuxt@3.16.2(@parcel/watcher@2.5.1)(@types/node@22.13.14)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(eslint@9.25.1(jiti@2.4.2))(ioredis@5.6.0)(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1): dependencies: '@nuxt/cli': 3.24.0(magicast@0.3.5) '@nuxt/devalue': 2.0.2 @@ -12589,7 +12562,7 @@ snapshots: '@nuxt/kit': 3.16.2(magicast@0.3.5) '@nuxt/schema': 3.16.2 '@nuxt/telemetry': 2.6.6(magicast@0.3.5) - '@nuxt/vite-builder': 3.16.2(@types/node@22.13.14)(eslint@9.25.1(jiti@2.4.2))(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1) + '@nuxt/vite-builder': 3.16.2(@types/node@22.13.14)(eslint@9.25.1(jiti@2.4.2))(lightningcss@1.29.2)(magicast@0.3.5)(meow@13.2.0)(optionator@0.9.4)(rollup@4.34.9)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1) '@oxc-parser/wasm': 0.60.0 '@unhead/vue': 2.0.8(vue@3.5.13(typescript@5.8.3)) '@vue/shared': 3.5.13 @@ -14161,7 +14134,7 @@ snapshots: ultrahtml@1.5.3: {} - unbuild@3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): + unbuild@3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): dependencies: '@rollup/plugin-alias': 5.1.1(rollup@4.34.9) '@rollup/plugin-commonjs': 28.0.3(rollup@4.34.9) @@ -14177,7 +14150,7 @@ snapshots: hookable: 5.5.3 jiti: 2.4.2 magic-string: 0.30.17 - mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.8(esbuild@0.25.2)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.1.0 @@ -14532,7 +14505,7 @@ snapshots: - tsx - yaml - vite-plugin-checker@0.9.1(eslint@9.25.1(jiti@2.4.2))(meow@13.2.0)(optionator@0.9.4)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.0(typescript@5.8.3)): + vite-plugin-checker@0.9.1(eslint@9.25.1(jiti@2.4.2))(meow@13.2.0)(optionator@0.9.4)(typescript@5.8.3)(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3)): dependencies: '@babel/code-frame': 7.26.2 chokidar: 3.6.0 @@ -14549,7 +14522,7 @@ snapshots: meow: 13.2.0 optionator: 0.9.4 typescript: 5.8.3 - vue-tsc: 2.2.0(typescript@5.8.3) + vue-tsc: 2.2.10(typescript@5.8.3) vite-plugin-inspect@11.0.0(@nuxt/kit@3.17.0(magicast@0.3.5))(vite@6.3.3(@types/node@22.13.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1)): dependencies: @@ -14710,10 +14683,10 @@ snapshots: esbuild: 0.25.2 vue: 3.5.13(typescript@5.8.3) - vue-tsc@2.2.0(typescript@5.8.3): + vue-tsc@2.2.10(typescript@5.8.3): dependencies: '@volar/typescript': 2.4.12 - '@vue/language-core': 2.2.0(typescript@5.8.3) + '@vue/language-core': 2.2.10(typescript@5.8.3) typescript: 5.8.3 vue@3.5.13(typescript@5.8.3): From 53f8b34bef3cb882566680c8e86038c1f65e77e2 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 29 Apr 2025 17:21:43 +0200 Subject: [PATCH 3/7] chore: use module workspace --- docs/nuxt.config.ts | 1 - playground-vue/vite.config.ts | 8 +------- playground/nuxt.config.ts | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index e75154cd..3c8010ae 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -10,7 +10,6 @@ export default defineNuxtConfig({ ], modules: [ - '../src/module', '@nuxt/ui-pro', '@nuxt/content', '@nuxt/image', diff --git a/playground-vue/vite.config.ts b/playground-vue/vite.config.ts index fcd3f0be..456d2d5c 100644 --- a/playground-vue/vite.config.ts +++ b/playground-vue/vite.config.ts @@ -1,15 +1,9 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' - -import ui from '../src/vite' +import ui from '@nuxt/ui/vite' // https://vitejs.dev/config/ export default defineConfig({ - server: { - fs: { - allow: ['..'] - } - }, plugins: [ vue(), ui({ diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 3ab241b5..94ffb6da 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -1,6 +1,6 @@ export default defineNuxtConfig({ modules: [ - '../src/module', + '@nuxt/ui', '@nuxthub/core' ], From d7710795dfeb46c80d86def08fefccfcc6285392 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 29 Apr 2025 17:48:09 +0200 Subject: [PATCH 4/7] chore(github): add `playground` job in module workflow (#4021) --- .github/workflows/module.yml | 47 ++++++++++++ package.json | 1 + playground/app/pages/components/carousel.vue | 23 +++--- playground/app/pages/components/shortcuts.vue | 72 ++++++++++--------- playground/package.json | 10 ++- pnpm-lock.yaml | 49 +++++-------- 6 files changed, 126 insertions(+), 76 deletions(-) diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index 7df5b68a..fb9e35a2 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -69,6 +69,53 @@ jobs: if: matrix.os == 'ubuntu-latest' run: pnpx pkg-pr-new publish --compact --no-template --pnpm + playground: + needs: build + + runs-on: ${{ matrix.os }} + + defaults: + run: + working-directory: ./playground + + permissions: + contents: read + pull-requests: read + + strategy: + matrix: + os: [ubuntu-latest] # macos-latest, windows-latest + node: [22] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Store commit SHA + run: | + echo "COMMIT_SHA=$(echo ${{ github.workflow_sha }} | cut -c1-7)" >> $GITHUB_ENV + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install latest nuxt/ui + run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only + + - name: Install dependencies + run: pnpm install --ignore-workspace + + - name: Prepare + run: pnpm nuxi prepare + + - name: Typecheck + run: pnpm run typecheck + starter-nuxt: needs: build diff --git a/package.json b/package.json index 1e13a456..61b53d9e 100644 --- a/package.json +++ b/package.json @@ -207,6 +207,7 @@ "chokidar": "3.6.0", "debug": "4.3.7", "rollup": "4.34.9", + "unimport": "4.1.1", "unplugin": "^2.3.2" }, "pnpm": { diff --git a/playground/app/pages/components/carousel.vue b/playground/app/pages/components/carousel.vue index a3d17576..ec78eefd 100644 --- a/playground/app/pages/components/carousel.vue +++ b/playground/app/pages/components/carousel.vue @@ -28,7 +28,12 @@ const bind = computed(() => ({ dots: dots.value })) -const items = Array.from({ length: 6 }).map((_, index) => index) +const items = Array.from({ length: 6 }).map((_, index) => ({ + id: index, + title: `Item ${index + 1}`, + description: `Description for item ${index + 1}`, + src: `https://picsum.photos/640/640?v=${index}` +}))