diff --git a/docs/components/Logo.vue b/docs/components/Logo.vue index 724dca8..b6bf643 100644 --- a/docs/components/Logo.vue +++ b/docs/components/Logo.vue @@ -1,7 +1,7 @@ diff --git a/migrate/components-Logo.vue b/migrate/components-Logo.vue index 724dca8..b6bf643 100644 --- a/migrate/components-Logo.vue +++ b/migrate/components-Logo.vue @@ -1,7 +1,7 @@ diff --git a/package.json b/package.json index dd59cfb..9659fbb 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,12 @@ "scripts": { "build": "nuxt-module-build", "prepack": "pnpm build", + "play": "nuxi dev playground", "dev": "nuxi dev docs", "build:docs": "nuxi generate docs", "lint": "eslint .", "typecheck": "nuxi typecheck", - "prepare": "nuxi prepare docs", + "prepare": "nuxt-module-build --stub && nuxi prepare docs", "release": "npm run lint && npm run prepack && changelogen --release && npm publish --access=public && git push --follow-tags", "migrate": "jiti ./scripts/migrate.ts" }, @@ -38,9 +39,9 @@ "@nuxtjs/color-mode": "^3.2.0", "@popperjs/core": "^2.11.8", "@unocss/nuxt": "^0.53.1", - "@vueuse/core": "^10.1.2", - "@vueuse/integrations": "^10.1.2", - "@vueuse/math": "^10.1.2", + "@vueuse/core": "^10.2.0", + "@vueuse/integrations": "^10.2.0", + "@vueuse/math": "^10.2.0", "defu": "^6.1.2", "fuse.js": "^6.6.2", "lodash-es": "^4.17.21", @@ -48,17 +49,17 @@ }, "devDependencies": { "@iconify-json/mdi": "^1.1.52", - "@iconify-json/simple-icons": "^1.1.56", + "@iconify-json/simple-icons": "^1.1.57", "@nuxt/content": "^2.7.0", - "@nuxt/devtools": "^0.6.0", + "@nuxt/devtools": "^0.6.1", "@nuxt/eslint-config": "^0.1.1", "@nuxt/module-builder": "^0.4.0", "@nuxthq/studio": "^0.13.2", "@types/lodash-es": "^4.17.7", "@types/node": "^20.3.1", - "@vueuse/nuxt": "^10.1.2", + "@vueuse/nuxt": "^10.2.0", "changelogen": "^0.5.3", - "eslint": "^8.42.0", + "eslint": "^8.43.0", "nuxt": "^3.5.3", "nuxt-component-meta": "^0.5.3", "nuxt-lodash": "^2.4.1", @@ -67,4 +68,4 @@ "v-calendar": "^3.0.3", "vue-tsc": "1.6.3" } -} \ No newline at end of file +} diff --git a/playground/app.vue b/playground/app.vue new file mode 100644 index 0000000..15acd15 --- /dev/null +++ b/playground/app.vue @@ -0,0 +1,7 @@ + diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts new file mode 100644 index 0000000..0c23be1 --- /dev/null +++ b/playground/nuxt.config.ts @@ -0,0 +1,3 @@ +export default defineNuxtConfig({ + modules: ['../src/module'], +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 807a14e..c2caa9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -24,14 +24,14 @@ dependencies: specifier: ^0.53.1 version: 0.53.1(postcss@8.4.24)(rollup@3.25.1)(vite@4.3.9)(webpack@5.87.0) '@vueuse/core': - specifier: ^10.1.2 - version: 10.1.2(vue@3.3.4) + specifier: ^10.2.0 + version: 10.2.0(vue@3.3.4) '@vueuse/integrations': - specifier: ^10.1.2 - version: 10.1.2(fuse.js@6.6.2)(vue@3.3.4) + specifier: ^10.2.0 + version: 10.2.0(fuse.js@6.6.2)(vue@3.3.4) '@vueuse/math': - specifier: ^10.1.2 - version: 10.1.2(vue@3.3.4) + specifier: ^10.2.0 + version: 10.2.0(vue@3.3.4) defu: specifier: ^6.1.2 version: 6.1.2 @@ -50,13 +50,13 @@ devDependencies: specifier: ^1.1.52 version: 1.1.52 '@iconify-json/simple-icons': - specifier: ^1.1.56 - version: 1.1.56 + specifier: ^1.1.57 + version: 1.1.57 '@nuxt/content': specifier: ^2.7.0 version: 2.7.0(rollup@3.25.1) '@nuxt/devtools': - specifier: ^0.6.0 + specifier: ^0.6.1 version: 0.6.1(nuxt@3.5.3)(rollup@3.25.1)(vite@4.3.9) '@nuxt/eslint-config': specifier: ^0.1.1 @@ -74,13 +74,13 @@ devDependencies: specifier: ^20.3.1 version: 20.3.1 '@vueuse/nuxt': - specifier: ^10.1.2 + specifier: ^10.2.0 version: 10.2.0(nuxt@3.5.3)(rollup@3.25.1)(vue@3.3.4) changelogen: specifier: ^0.5.3 version: 0.5.3 eslint: - specifier: ^8.42.0 + specifier: ^8.43.0 version: 8.43.0 nuxt: specifier: ^3.5.3 @@ -715,8 +715,8 @@ packages: '@iconify/types': 2.0.0 dev: true - /@iconify-json/simple-icons@1.1.56: - resolution: {integrity: sha512-fsgArC3HmjQhAMXkjvIz0CrYsmjW3dSxAqUGAjsdQcikL03J4mqAgD8FpTEmMh22JrOB9GWVLINC07OTAeqskg==} + /@iconify-json/simple-icons@1.1.57: + resolution: {integrity: sha512-s6vCsqkxkrbsmNkpspTvpN+e852FQ5QWpD0n3N8CfB75AZQ42n8gmwSrst99qH9yFwN3yQQVLwwJwPwIhxefsQ==} dependencies: '@iconify/types': 2.0.0 dev: true @@ -975,7 +975,7 @@ packages: picocolors: 1.0.0 pkg-types: 1.0.3 prompts: 2.4.2 - rc9: 2.1.0 + rc9: 2.1.1 semver: 7.5.2 dev: true @@ -997,7 +997,7 @@ packages: fast-glob: 3.2.12 get-port-please: 3.0.1 global-dirs: 3.0.1 - h3: 1.6.6 + h3: 1.7.0 hookable: 5.5.3 image-meta: 0.1.1 is-installed-globally: 0.4.0 @@ -1011,7 +1011,7 @@ packages: perfect-debounce: 1.0.0 picocolors: 1.0.0 pkg-types: 1.0.3 - rc9: 2.1.0 + rc9: 2.1.1 semver: 7.5.2 sirv: 2.0.3 unimport: 3.0.8(rollup@3.25.1) @@ -1050,7 +1050,7 @@ packages: engines: {node: ^14.18.0 || >=16.10.0} dependencies: '@nuxt/schema': 3.5.3(rollup@3.25.1) - c12: 1.4.1 + c12: 1.4.2 consola: 3.1.0 defu: 6.1.2 globby: 13.2.0 @@ -1058,7 +1058,7 @@ packages: ignore: 5.2.4 jiti: 1.18.2 knitwork: 1.0.0 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 pkg-types: 1.0.3 scule: 1.0.0 @@ -1079,7 +1079,7 @@ packages: dependencies: '@nuxt/kit': 3.5.3(rollup@3.25.1) consola: 3.1.0 - mlly: 1.3.0 + mlly: 1.4.0 mri: 1.2.0 nuxi: 3.5.3 pathe: 1.1.1 @@ -1126,17 +1126,17 @@ packages: mri: 1.2.0 nanoid: 4.0.2 node-fetch: 3.3.1 - ofetch: 1.1.0 + ofetch: 1.1.1 parse-git-config: 3.0.0 - rc9: 2.1.0 + rc9: 2.1.1 std-env: 3.3.3 transitivePeerDependencies: - rollup - supports-color dev: true - /@nuxt/ui-templates@1.1.1: - resolution: {integrity: sha512-PjVETP7+iZXAs5Q8O4ivl4t6qjWZMZqwiTVogUXHoHGZZcw7GZW3u3tzfYfE1HbzyYJfr236IXqQ02MeR8Fz2w==} + /@nuxt/ui-templates@1.2.0: + resolution: {integrity: sha512-MSZza7dxccNb/p7nuzGF8/m4POaFpHzVhNdR7f4xahOpH7Ja02lFeYR+rHtoHIJC0yym4qriqv0mQ+Qf/R61bQ==} dev: true /@nuxt/vite-builder@3.5.3(@types/node@20.3.1)(eslint@8.43.0)(rollup@3.25.1)(typescript@5.1.3)(vue-tsc@1.6.3)(vue@3.3.4): @@ -1160,10 +1160,10 @@ packages: externality: 1.0.2 fs-extra: 11.1.1 get-port-please: 3.0.1 - h3: 1.6.6 + h3: 1.7.0 knitwork: 1.0.0 magic-string: 0.30.0 - mlly: 1.3.0 + mlly: 1.4.0 ohash: 1.1.2 pathe: 1.1.1 perfect-debounce: 1.0.0 @@ -1831,7 +1831,7 @@ packages: dependencies: '@iconify/utils': 2.1.6 '@unocss/core': 0.53.1 - ofetch: 1.1.0 + ofetch: 1.1.1 transitivePeerDependencies: - supports-color dev: false @@ -1868,7 +1868,7 @@ packages: resolution: {integrity: sha512-UwAYDkdIVwydw1UxXFVQ7HufzIPxY6Nf3ATb3cKgC134xLNGxbzIQx7DQRFSGe6hmqYC2S86U+URayboGlL1iA==} dependencies: '@unocss/core': 0.53.1 - ofetch: 1.1.0 + ofetch: 1.1.1 dev: false /@unocss/preset-wind@0.53.1: @@ -2010,10 +2010,10 @@ packages: '@volar/source-map': 1.4.1 dev: true - /@volar/language-core@1.7.6: - resolution: {integrity: sha512-r+82YGjae8ALzaX+TaESpeBOrp/H5MQnPYZLq4WKd8rsPrCAPbMwelwHLHhFpyjy66BK/cKreJAcvOc6YEwyFA==} + /@volar/language-core@1.7.8: + resolution: {integrity: sha512-TPklg4c2e/f1xB/MGZEiQc3AWG+dH64ZfBlYjFB8nNaWJt4Z4k+IHBhmaP52APG+5PHFerwiWI9oF002RrRTPA==} dependencies: - '@volar/source-map': 1.7.6 + '@volar/source-map': 1.7.8 dev: true /@volar/source-map@1.4.1: @@ -2022,8 +2022,8 @@ packages: muggle-string: 0.2.2 dev: true - /@volar/source-map@1.7.6: - resolution: {integrity: sha512-6oGrgz+hg5GCzP8D2+ay7vOdIOA9/aXwpa22Wx5b6d4ZGwwosBqv7kVs8AyMh5zOSQpKhrImE1pfagpu+V+rBQ==} + /@volar/source-map@1.7.8: + resolution: {integrity: sha512-g2dtC2kOghvfzMDWeODIo4HO1Ml4hxzPTZyAFDz+YhRF9HjZYJSCaWaVuPZ+z0kY+T2daOHYA10GdrWQ5q0teA==} dependencies: muggle-string: 0.3.1 dev: true @@ -2037,10 +2037,10 @@ packages: typescript: 5.1.3 dev: true - /@volar/typescript@1.7.6: - resolution: {integrity: sha512-JkBRQe2GYSEgamW84tDk4XQ/7abQJw09czLQCgL1jfjndhaV4DuAet2I3pvQv41OjodVc59W0+E3hylrlNsgWA==} + /@volar/typescript@1.7.8: + resolution: {integrity: sha512-NDcI5ZQcdr8kgxzMQrhSSWIM8Tl0MbMFrkvJPTjfm2rdAQZPFT8zv3LrEW9Fqh0e9z2YbCry7jr4a/GShBqeDA==} dependencies: - '@volar/language-core': 1.7.6 + '@volar/language-core': 1.7.8 dev: true /@volar/vue-language-core@1.6.3: @@ -2146,16 +2146,16 @@ packages: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} dev: true - /@vue/language-core@1.8.0(typescript@5.1.3): - resolution: {integrity: sha512-rOAtqIRyyZ6OQreAkFDbbDt7L5BwvzrdbWaBAoEZjr4ImPBV9cRDBHxlMBU0SBOAZxIUQdjOvQ0uAl9uZDer0w==} + /@vue/language-core@1.8.1(typescript@5.1.3): + resolution: {integrity: sha512-pumv3k4J7P58hVh4YGRM9Qz3HaAr4TlFWM9bnVOkZ/2K9o2CK1lAP2y9Jw+Z0+mNL4F2uWQqnAPzj3seLyfpDA==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@volar/language-core': 1.7.6 - '@volar/source-map': 1.7.6 + '@volar/language-core': 1.7.8 + '@volar/source-map': 1.7.8 '@vue/compiler-dom': 3.3.4 '@vue/reactivity': 3.3.4 '@vue/shared': 3.3.4 @@ -2204,18 +2204,6 @@ packages: /@vue/shared@3.3.4: resolution: {integrity: sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==} - /@vueuse/core@10.1.2(vue@3.3.4): - resolution: {integrity: sha512-roNn8WuerI56A5uiTyF/TEYX0Y+VKlhZAF94unUfdhbDUI+NfwQMn4FUnUscIRUhv3344qvAghopU4bzLPNFlA==} - dependencies: - '@types/web-bluetooth': 0.0.17 - '@vueuse/metadata': 10.1.2 - '@vueuse/shared': 10.1.2(vue@3.3.4) - vue-demi: 0.14.5(vue@3.3.4) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: false - /@vueuse/core@10.2.0(vue@3.3.4): resolution: {integrity: sha512-aHBnoCteIS3hFu7ZZkVB93SanVDY6t4TIb7XDLxJT/HQdAZz+2RdIEJ8rj5LUoEJr7Damb5+sJmtpCwGez5ozQ==} dependencies: @@ -2226,10 +2214,9 @@ packages: transitivePeerDependencies: - '@vue/composition-api' - vue - dev: true - /@vueuse/integrations@10.1.2(fuse.js@6.6.2)(vue@3.3.4): - resolution: {integrity: sha512-wUpG3Wv6LiWerOwCzOAM0iGhNQ4vfFUTkhj/xQy7TLXduh2M3D8N08aS0KqlxsejY6R8NLxydDIM+68QfHZZ8Q==} + /@vueuse/integrations@10.2.0(fuse.js@6.6.2)(vue@3.3.4): + resolution: {integrity: sha512-e+MIRMi2Zo8DZKXszut8iVoZGlf07XXoaDt27W0DRJVYPdods50MV8Bnla5Tnuil0gHY/W5mMcqiQre9Xb246Q==} peerDependencies: async-validator: '*' axios: '*' @@ -2269,8 +2256,8 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.1.2(vue@3.3.4) - '@vueuse/shared': 10.1.2(vue@3.3.4) + '@vueuse/core': 10.2.0(vue@3.3.4) + '@vueuse/shared': 10.2.0(vue@3.3.4) fuse.js: 6.6.2 vue-demi: 0.14.5(vue@3.3.4) transitivePeerDependencies: @@ -2278,23 +2265,18 @@ packages: - vue dev: false - /@vueuse/math@10.1.2(vue@3.3.4): - resolution: {integrity: sha512-cFrCEggVFoMPM6//vbE9yTBDzhzsmmUujUrXuJQoF6mntmYckBLOL1gPzWyX0tXmYUIo2bk2duDO6vuD0b9hPg==} + /@vueuse/math@10.2.0(vue@3.3.4): + resolution: {integrity: sha512-1aQZQAYBp96VLNviQkswLWlZGrnu26hHIkE8uF1RcvtAbLK9TbgCBtlXgo1hk3HyBxlPkLuNqI8Opaa/jJMcTA==} dependencies: - '@vueuse/shared': 10.1.2(vue@3.3.4) + '@vueuse/shared': 10.2.0(vue@3.3.4) vue-demi: 0.14.5(vue@3.3.4) transitivePeerDependencies: - '@vue/composition-api' - vue dev: false - /@vueuse/metadata@10.1.2: - resolution: {integrity: sha512-3mc5BqN9aU2SqBeBuWE7ne4OtXHoHKggNgxZR2K+zIW4YLsy6xoZ4/9vErQs6tvoKDX6QAqm3lvsrv0mczAwIQ==} - dev: false - /@vueuse/metadata@10.2.0: resolution: {integrity: sha512-IR7Mkq6QSgZ38q/2ZzOt+Zz1OpcEsnwE64WBumDQ+RGKrosFCtUA2zgRrOqDEzPBXrVB+4HhFkwDjQMu0fDBKw==} - dev: true /@vueuse/nuxt@10.2.0(nuxt@3.5.3)(rollup@3.25.1)(vue@3.3.4): resolution: {integrity: sha512-2rtZ5LmARJhUou8AJL1WwNNodinw/pwujVPsred+OuaU6H61t+hK3rQqdS/1Iu8Rw3mFj/dtVKVXOHai0dHMTg==} @@ -2314,15 +2296,6 @@ packages: - vue dev: true - /@vueuse/shared@10.1.2(vue@3.3.4): - resolution: {integrity: sha512-1uoUTPBlgyscK9v6ScGeVYDDzlPSFXBlxuK7SfrDGyUTBiznb3mNceqhwvZHjtDRELZEN79V5uWPTF1VDV8svA==} - dependencies: - vue-demi: 0.14.5(vue@3.3.4) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: false - /@vueuse/shared@10.2.0(vue@3.3.4): resolution: {integrity: sha512-dIeA8+g9Av3H5iF4NXR/sft4V6vys76CpZ6hxwj8eMXybXk2WRl3scSsOVi+kQ9SX38COR7AH7WwY83UcuxbSg==} dependencies: @@ -2330,7 +2303,6 @@ packages: transitivePeerDependencies: - '@vue/composition-api' - vue - dev: true /@webassemblyjs/ast@1.11.6: resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==} @@ -2705,7 +2677,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.21.9 - caniuse-lite: 1.0.30001504 + caniuse-lite: 1.0.30001505 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -2822,8 +2794,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001504 - electron-to-chromium: 1.4.434 + caniuse-lite: 1.0.30001505 + electron-to-chromium: 1.4.435 node-releases: 2.0.12 update-browserslist-db: 1.0.11(browserslist@4.21.9) @@ -2881,20 +2853,20 @@ packages: streamsearch: 1.1.0 dev: true - /c12@1.4.1: - resolution: {integrity: sha512-0x7pWfLZpZsgtyotXtuepJc0rZYE0Aw8PwNAXs0jSG9zq6Sl5xmbWnFqfmRY01ieZLHNbvneSFm9/x88CvzAuw==} + /c12@1.4.2: + resolution: {integrity: sha512-3IP/MuamSVRVw8W8+CHWAz9gKN4gd+voF2zm/Ln6D25C2RhytEZ1ABbC8MjKr4BR9rhoV1JQ7jJA158LDiTkLg==} dependencies: chokidar: 3.5.3 defu: 6.1.2 dotenv: 16.3.1 giget: 1.1.2 jiti: 1.18.2 - mlly: 1.3.0 + mlly: 1.4.0 ohash: 1.1.2 pathe: 1.1.1 - perfect-debounce: 0.1.3 + perfect-debounce: 1.0.0 pkg-types: 1.0.3 - rc9: 2.1.0 + rc9: 2.1.1 transitivePeerDependencies: - supports-color @@ -2960,13 +2932,13 @@ packages: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} dependencies: browserslist: 4.21.9 - caniuse-lite: 1.0.30001504 + caniuse-lite: 1.0.30001505 lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 dev: true - /caniuse-lite@1.0.30001504: - resolution: {integrity: sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==} + /caniuse-lite@1.0.30001505: + resolution: {integrity: sha512-jaAOR5zVtxHfL0NjZyflVTtXm3D3J9P15zSJ7HmQF8dSKGA6tqzQq+0ZI3xkjyQj46I4/M0K2GbMpcAFOcbr3A==} /ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -2997,14 +2969,14 @@ packages: resolution: {integrity: sha512-RjTrgJlTHhbGlMo/s73j7uSTspla3ykr0UA5zwRs/HIZvElY6qZHu3X70httgC2Du5poS2wFCS10WLfwZr7ZTQ==} hasBin: true dependencies: - c12: 1.4.1 + c12: 1.4.2 colorette: 2.0.20 consola: 3.1.0 convert-gitmoji: 0.1.3 execa: 7.1.1 mri: 1.2.0 node-fetch-native: 1.2.0 - ofetch: 1.1.0 + ofetch: 1.1.1 open: 9.1.0 pathe: 1.1.1 pkg-types: 1.0.3 @@ -3760,6 +3732,10 @@ packages: /destr@1.2.2: resolution: {integrity: sha512-lrbCJwD9saUQrqUfXvl6qoM+QN3W7tLV5pAOs+OqOmopCCz/JkE05MHedJR1xfk4IAnZuJXPVuN5+7jNA2ZCiA==} + dev: true + + /destr@2.0.0: + resolution: {integrity: sha512-FJ9RDpf3GicEBvzI3jxc2XhHzbqD8p4ANw/1kPsFBfTvP1b7Gn/Lg1vO7R9J4IVgoMbyUmFrFGZafJ1hPZpvlg==} /destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} @@ -3871,8 +3847,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: true - /electron-to-chromium@1.4.434: - resolution: {integrity: sha512-5Gvm09UZTQRaWrimRtWRO5rvaX6Kpk5WHAPKDa7A4Gj6NIPuJ8w8WNpnxCXdd+CJJt6RBU6tUw0KyULoW6XuHw==} + /electron-to-chromium@1.4.435: + resolution: {integrity: sha512-B0CBWVFhvoQCW/XtjRzgrmqcgVWg6RXOEM/dK59+wFV93BFGR6AeNKc4OyhM+T3IhJaOOG8o/V+33Y2mwJWtzw==} /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -4229,7 +4205,7 @@ packages: resolution: {integrity: sha512-LyExtJWKxtgVzmgtEHyQtLFpw1KFhQphF9nTG8TpAIVkiI/xQ3FJh75tRFLYl4hkn7BNIIdLJInuDAavX35pMw==} dependencies: enhanced-resolve: 5.15.0 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 ufo: 1.1.2 dev: true @@ -4750,12 +4726,12 @@ packages: duplexer: 0.1.2 dev: true - /h3@1.6.6: - resolution: {integrity: sha512-DWu2s11OuuO9suEkX99dXaJoxd1RgPXiM4iDmLdrhGV63GLoav13f3Kdd5/Rw7xNKzhzn2+F2dleQjG66SnMPQ==} + /h3@1.7.0: + resolution: {integrity: sha512-iJJz2Pn2rC0j8CB3rkFMs0K269W7hDVOC7eL3qne5Joy4JZX1W7id7PBFV593GboHDOx0PzgO6ocqsynrIvdxw==} dependencies: cookie-es: 1.0.0 defu: 6.1.2 - destr: 1.2.2 + destr: 2.0.0 iron-webcrypto: 0.7.0 radix3: 1.0.1 ufo: 1.1.2 @@ -6360,14 +6336,14 @@ packages: fs-extra: 11.1.1 globby: 13.2.0 jiti: 1.18.2 - mlly: 1.3.0 + mlly: 1.4.0 mri: 1.2.0 pathe: 1.1.1 typescript: 5.1.3 dev: true - /mlly@1.3.0: - resolution: {integrity: sha512-HT5mcgIQKkOrZecOjOX3DJorTikWXwsBfpcr/MGBkhfWcjiqvnaL/9ppxvIUXfjT6xt4DVIAsN9fMUz1ev4bIw==} + /mlly@1.4.0: + resolution: {integrity: sha512-ua8PAThnTwpprIaU47EPeZ/bPUVp2QYBbWMphUQpVdBI3Lgqzm5KZQ45Agm3YJedHXaIHl6pBGabaLSUPPSptg==} dependencies: acorn: 8.9.0 pathe: 1.1.1 @@ -6457,7 +6433,7 @@ packages: '@types/http-proxy': 1.17.11 '@vercel/nft': 0.22.6 archiver: 5.3.1 - c12: 1.4.1 + c12: 1.4.2 chalk: 5.2.0 chokidar: 3.5.3 citty: 0.1.1 @@ -6472,7 +6448,7 @@ packages: fs-extra: 11.1.1 globby: 13.2.0 gzip-size: 7.0.0 - h3: 1.6.6 + h3: 1.7.0 hookable: 5.5.3 http-proxy: 1.18.1 is-primitive: 3.0.1 @@ -6481,10 +6457,10 @@ packages: knitwork: 1.0.0 listhen: 1.0.4 mime: 3.0.0 - mlly: 1.3.0 + mlly: 1.4.0 mri: 1.2.0 node-fetch-native: 1.2.0 - ofetch: 1.1.0 + ofetch: 1.1.1 ohash: 1.1.2 openapi-typescript: 6.2.8 pathe: 1.1.1 @@ -6754,7 +6730,7 @@ packages: '@nuxt/kit': 3.5.3(rollup@3.25.1) scule: 1.0.0 typescript: 5.1.3 - vue-component-meta: 1.8.0(typescript@5.1.3) + vue-component-meta: 1.8.1(typescript@5.1.3) transitivePeerDependencies: - rollup - supports-color @@ -6799,13 +6775,13 @@ packages: '@nuxt/kit': 3.5.3(rollup@3.25.1) '@nuxt/schema': 3.5.3(rollup@3.25.1) '@nuxt/telemetry': 2.2.0(rollup@3.25.1) - '@nuxt/ui-templates': 1.1.1 + '@nuxt/ui-templates': 1.2.0 '@nuxt/vite-builder': 3.5.3(@types/node@20.3.1)(eslint@8.43.0)(rollup@3.25.1)(typescript@5.1.3)(vue-tsc@1.6.3)(vue@3.3.4) '@types/node': 20.3.1 '@unhead/ssr': 1.1.27 '@unhead/vue': 1.1.27(vue@3.3.4) '@vue/shared': 3.3.4 - c12: 1.4.1 + c12: 1.4.2 chokidar: 3.5.3 cookie-es: 1.0.0 defu: 6.1.2 @@ -6815,18 +6791,18 @@ packages: estree-walker: 3.0.3 fs-extra: 11.1.1 globby: 13.2.0 - h3: 1.6.6 + h3: 1.7.0 hookable: 5.5.3 jiti: 1.18.2 klona: 2.0.6 knitwork: 1.0.0 local-pkg: 0.4.3 magic-string: 0.30.0 - mlly: 1.3.0 + mlly: 1.4.0 nitropack: 2.4.1 nuxi: 3.5.3 nypm: 0.2.1 - ofetch: 1.1.0 + ofetch: 1.1.1 ohash: 1.1.2 pathe: 1.1.1 perfect-debounce: 1.0.0 @@ -6900,10 +6876,10 @@ packages: engines: {node: '>= 0.4'} dev: true - /ofetch@1.1.0: - resolution: {integrity: sha512-yjq2ZUUMto1ITpge2J5vNlUfteLzxfHn9aJC55WtVGD3okKwSfPoLaKpcHXmmKd2kZZUGo+jdkFuuj09Blyeig==} + /ofetch@1.1.1: + resolution: {integrity: sha512-SSMoktrp9SNLi20BWfB/BnnKcL0RDigXThD/mZBeQxkIRv1xrd9183MtLdsqRYLYSqW0eTr5t8w8MqjNhvoOQQ==} dependencies: - destr: 1.2.2 + destr: 2.0.0 node-fetch-native: 1.2.0 ufo: 1.1.2 @@ -7211,9 +7187,6 @@ packages: resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} dev: true - /perfect-debounce@0.1.3: - resolution: {integrity: sha512-NOT9AcKiDGpnV/HBhI22Str++XWcErO/bALvHCuhv33owZW/CjH8KAFLZDCmu3727sihe0wTxpDhyGc6M8qacQ==} - /perfect-debounce@1.0.0: resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} @@ -7250,7 +7223,7 @@ packages: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: jsonc-parser: 3.2.0 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 /postcss-calc@9.0.1(postcss@8.4.24): @@ -7670,11 +7643,11 @@ packages: engines: {node: '>= 0.6'} dev: true - /rc9@2.1.0: - resolution: {integrity: sha512-ROO9bv8PPqngWKoiUZU3JDQ4sugpdRs9DfwHnzDSxK25XtQn6BEHL6EOd/OtKuDT2qodrtNR+0WkPT6l0jxH5Q==} + /rc9@2.1.1: + resolution: {integrity: sha512-lNeOl38Ws0eNxpO3+wD1I9rkHGQyj1NU1jlzv4go2CtEnEQEUfqnIvZG7W+bC/aXdJ27n5x/yUjb6RoT9tko+Q==} dependencies: defu: 6.1.2 - destr: 1.2.2 + destr: 2.0.0 flat: 5.0.2 /read-cache@1.0.0: @@ -8811,7 +8784,7 @@ packages: jiti: 1.18.2 magic-string: 0.30.0 mkdist: 1.2.0(typescript@5.1.3) - mlly: 1.3.0 + mlly: 1.4.0 mri: 1.2.0 pathe: 1.1.1 pkg-types: 1.0.3 @@ -8899,7 +8872,7 @@ packages: fast-glob: 3.2.12 local-pkg: 0.4.3 magic-string: 0.30.0 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 pkg-types: 1.0.3 scule: 1.0.0 @@ -9023,7 +8996,7 @@ packages: fast-glob: 3.2.12 json5: 2.2.3 local-pkg: 0.4.3 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 scule: 1.0.0 unplugin: 1.3.1 @@ -9077,13 +9050,13 @@ packages: anymatch: 3.1.3 chokidar: 3.5.3 destr: 1.2.2 - h3: 1.6.6 + h3: 1.7.0 ioredis: 5.3.2 listhen: 1.0.4 lru-cache: 9.1.2 mri: 1.2.0 node-fetch-native: 1.2.0 - ofetch: 1.1.0 + ofetch: 1.1.1 ufo: 1.1.2 transitivePeerDependencies: - supports-color @@ -9207,7 +9180,7 @@ packages: dependencies: cac: 6.7.14 debug: 4.3.4 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 vite: 4.3.9(@types/node@20.3.1) @@ -9391,23 +9364,23 @@ packages: ufo: 1.1.2 dev: true - /vue-component-meta@1.8.0(typescript@5.1.3): - resolution: {integrity: sha512-IryyTqOTDGIlyhaSH7Xg+Z7B43xwNF3X4XLIo6A75VntLvsx8iVFZcPZEDK8lcUf7M5p6GyAyaD2tZSN5aN67g==} + /vue-component-meta@1.8.1(typescript@5.1.3): + resolution: {integrity: sha512-iRPYFI6cECRhrdt6FngSAbzOBvzmibBisFPFY2SN8M64b4HuRcNsPsJhakuKuEK0JSinp1e88N2qLZ451WgMEQ==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@volar/typescript': 1.7.6 - '@vue/language-core': 1.8.0(typescript@5.1.3) + '@volar/typescript': 1.7.8 + '@vue/language-core': 1.8.1(typescript@5.1.3) typesafe-path: 0.2.2 typescript: 5.1.3 - vue-component-type-helpers: 1.8.0 + vue-component-type-helpers: 1.8.1 dev: true - /vue-component-type-helpers@1.8.0: - resolution: {integrity: sha512-plWHfRKOPZzLaxGe6gf7AroG9uw6wfhvjZq0qZBGbRaZPrmT04lojAm3DOwvoL/Lgw7rPIqveHJ9p/yaVnRxhQ==} + /vue-component-type-helpers@1.8.1: + resolution: {integrity: sha512-+pNNtPARczRWVgoQCBXSgJdpnZic7rSmnvEV3IWQLwZcf1RSVjniQ+JnmYGm+9BFWX0MN0hqrIWVyC7HDhoXhA==} dev: true /vue-demi@0.14.5(vue@3.3.4): diff --git a/src/module.ts b/src/module.ts index e65f255..57324fb 100644 --- a/src/module.ts +++ b/src/module.ts @@ -129,10 +129,10 @@ export default defineNuxtModule({ content: { pipeline: { include: [ - /\.(vue|md)($|\?)/, - 'src/**/*.{md,mjs,js,ts}', - resolver.resolve(runtimeDir, 'components/**/*.{vue,mjs,md,ts}'), - resolver.resolve(runtimeDir, '*.{mjs,js,ts,md}'), + /\.(vue)($|\?)/, + 'src/**/*.{mjs,js,ts}', + resolver.resolve(runtimeDir, 'components/**/*.{vue,mjs,ts}'), + resolver.resolve(runtimeDir, '*.{mjs,js,ts}'), ] }, }, diff --git a/src/runtime/plugins/colors.ts b/src/runtime/plugins/colors.ts index 10001e0..75108ed 100644 --- a/src/runtime/plugins/colors.ts +++ b/src/runtime/plugins/colors.ts @@ -14,10 +14,10 @@ export default defineNuxtPlugin(() => { const gray = colors[appConfig.ui.gray] if (!primary) { - console.warn(`[@nuxthq/ui] Primary color '${appConfig.ui.primary}' not found in Tailwind config`) + console.warn(`[@nuxthq/ui] Primary color '${appConfig.ui.primary}' not found in UnoCSS config`) } if (!gray) { - console.warn(`[@nuxthq/ui] Gray color '${appConfig.ui.gray}' not found in Tailwind config`) + console.warn(`[@nuxthq/ui] Gray color '${appConfig.ui.gray}' not found in UnoCSS config`) } return `:root {