From 1e7b2a3a9c42d8fea806a422a321ab708ce72f87 Mon Sep 17 00:00:00 2001 From: Tamago Date: Mon, 4 Nov 2024 10:30:06 +0800 Subject: [PATCH] feat: use vueuse extra --- package.json | 1 + packages/core/src/composables/use-hero.ts | 4 +- packages/core/src/composables/use-style.ts | 49 ----- pnpm-lock.yaml | 213 ++++++++++++--------- 4 files changed, 121 insertions(+), 146 deletions(-) delete mode 100644 packages/core/src/composables/use-style.ts diff --git a/package.json b/package.json index 6005f59..2372a33 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "vue": ">=3.0.0" }, "dependencies": { + "@tmg0/vueuse-extra": "0.0.2-alpha.2", "@vueuse/core": "^11.2.0", "defu": "^6.1.4", "scule": "^1.3.0" diff --git a/packages/core/src/composables/use-hero.ts b/packages/core/src/composables/use-hero.ts index b576fa3..d3b453f 100644 --- a/packages/core/src/composables/use-hero.ts +++ b/packages/core/src/composables/use-hero.ts @@ -1,10 +1,10 @@ import type { HeroProps } from '../components/hero' +import { useStyle } from '@tmg0/vueuse-extra' import { tryOnBeforeUnmount, tryOnMounted, useElementBounding } from '@vueuse/core' import { useElementTransform, useMotion } from '@vueuse/motion' import { defu } from 'defu' import { computed, type MaybeRef, unref, watch } from 'vue' import { type HeroContext, useHeroContext } from '../composables/use-hero-context' -import { useStyle } from './use-style' export interface UseHeroProps extends Omit { ignore?: string[] @@ -66,7 +66,7 @@ export function useHero(target: MaybeRef, for (let i = 0; i < elt.children.length; i++) { const child = elt.children[i] as HTMLElement - child.style.transform = `scaleX(${1 / x}) scaleY(${1 / y})` + child.style.transform = `scaleX(${1 / (x as number)}) scaleY(${1 / (y as number)})` } }) diff --git a/packages/core/src/composables/use-style.ts b/packages/core/src/composables/use-style.ts deleted file mode 100644 index 1d84c09..0000000 --- a/packages/core/src/composables/use-style.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { tryOnMounted, tryOnUnmounted } from '@vueuse/core' -import { type MaybeRef, ref, unref } from 'vue' - -function parseTransform(value: string) { - const translate3dMatch = /translate3d\(([^)]+)\)/.exec(value) - const scaleXMatch = /scaleX\(([\d.]+)\)/.exec(value) - const scaleYMatch = /scaleY\(([\d.]+)\)/.exec(value) - - const [x, y, z] = translate3dMatch - ? translate3dMatch[1].split(',').map(val => Number.parseFloat(val)) - : [0, 0, 0] - - return { - translateX: x, - translateY: y, - translateZ: z, - scaleX: scaleXMatch ? Number.parseFloat(scaleXMatch[1]) : 1, - scaleY: scaleYMatch ? Number.parseFloat(scaleYMatch[1]) : 1, - } -} - -export function useStyle(target: MaybeRef) { - let observer: MutationObserver - - const transform = ref>({}) - - tryOnMounted(() => { - observer = new MutationObserver((mutations) => { - mutations.forEach(({ target }) => { - transform.value = parseTransform((target as any).style.transform ?? '') - }) - }) - - const elt = unref(target) - - if (!elt) - return - - observer.observe(elt, { attributes: true, attributeFilter: ['style'] }) - }) - - tryOnUnmounted(() => { - observer?.disconnect() - }) - - return { - transform, - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d4d5219..66cd8d5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@tmg0/vueuse-extra': + specifier: 0.0.2-alpha.2 + version: 0.0.2-alpha.2(vue@3.5.12(typescript@5.6.3)) '@vueuse/core': specifier: ^11.2.0 version: 11.2.0(vue@3.5.12(typescript@5.6.3)) @@ -63,13 +66,13 @@ importers: version: link:../core '@nuxt/kit': specifier: ^3.13.2 - version: 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) + version: 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) '@nuxt/module-builder': specifier: ^0.8.4 - version: 0.8.4(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3))(nuxi@3.13.2)(typescript@5.6.3)(webpack-sources@3.2.3) + version: 0.8.4(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(nuxi@3.13.2)(typescript@5.6.3)(webpack-sources@3.2.3) nuxt: specifier: ^3.13.2 - version: 3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) + version: 3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) playgrounds/nuxt: dependencies: @@ -78,7 +81,7 @@ importers: version: link:../.. nuxt: specifier: ^3.13.2 - version: 3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) + version: 3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.0)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) vue: specifier: latest version: 3.5.12(typescript@5.6.3) @@ -1594,6 +1597,11 @@ packages: peerDependencies: eslint: '>=8.40.0' + '@tmg0/vueuse-extra@0.0.2-alpha.2': + resolution: {integrity: sha512-eDEyELiIkprtqKv6Y8b5ZDRrB/e9MacE+vbnv90kcaOcW1R+OawEeBOBQvW+A/7pvlApY9nEQqGcMxlMR8dZ8A==} + peerDependencies: + vue: '>=3.0.0' + '@trysound/sax@0.2.0': resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} engines: {node: '>=10.13.0'} @@ -6003,10 +6011,10 @@ snapshots: '@nuxt/devalue@2.0.2': {} - '@nuxt/devtools-kit@1.4.2(magicast@0.3.5)(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3)': + '@nuxt/devtools-kit@1.4.2(magicast@0.3.5)(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) - '@nuxt/schema': 3.13.2(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) execa: 7.2.0 vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) transitivePeerDependencies: @@ -6015,10 +6023,10 @@ snapshots: - supports-color - webpack-sources - '@nuxt/devtools-kit@1.4.2(magicast@0.3.5)(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3)': + '@nuxt/devtools-kit@1.4.2(magicast@0.3.5)(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) - '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.24.0)(webpack-sources@3.2.3) execa: 7.2.0 vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) transitivePeerDependencies: @@ -6040,12 +6048,12 @@ snapshots: rc9: 2.1.2 semver: 7.6.3 - '@nuxt/devtools@1.4.2(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': + '@nuxt/devtools@1.4.2(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': dependencies: '@antfu/utils': 0.7.10 - '@nuxt/devtools-kit': 1.4.2(magicast@0.3.5)(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) + '@nuxt/devtools-kit': 1.4.2(magicast@0.3.5)(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) '@nuxt/devtools-wizard': 1.4.2 - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) '@vue/devtools-core': 7.4.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@vue/devtools-kit': 7.4.4 birpc: 0.2.17 @@ -6074,9 +6082,9 @@ snapshots: simple-git: 3.26.0 sirv: 2.0.4 tinyglobby: 0.2.6 - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) - vite-plugin-inspect: 0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3))(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) + vite-plugin-inspect: 0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) vite-plugin-vue-inspector: 5.2.0(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) which: 3.0.1 ws: 8.18.0 @@ -6088,12 +6096,12 @@ snapshots: - vue - webpack-sources - '@nuxt/devtools@1.4.2(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': + '@nuxt/devtools@1.4.2(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': dependencies: '@antfu/utils': 0.7.10 - '@nuxt/devtools-kit': 1.4.2(magicast@0.3.5)(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) + '@nuxt/devtools-kit': 1.4.2(magicast@0.3.5)(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3) '@nuxt/devtools-wizard': 1.4.2 - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) '@vue/devtools-core': 7.4.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@vue/devtools-kit': 7.4.4 birpc: 0.2.17 @@ -6122,9 +6130,9 @@ snapshots: simple-git: 3.26.0 sirv: 2.0.4 tinyglobby: 0.2.6 - unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) - vite-plugin-inspect: 0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) + vite-plugin-inspect: 0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3))(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) vite-plugin-vue-inspector: 5.2.0(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)) which: 3.0.1 ws: 8.18.0 @@ -6156,7 +6164,7 @@ snapshots: semver: 7.6.3 ufo: 1.5.4 unctx: 2.3.1(webpack-sources@3.2.3) - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0 untyped: 1.4.2 transitivePeerDependencies: - magicast @@ -6165,9 +6173,9 @@ snapshots: - webpack-sources optional: true - '@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3)': + '@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3)': dependencies: - '@nuxt/schema': 3.13.2(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) c12: 1.11.2(magicast@0.3.5) consola: 3.2.3 defu: 6.1.4 @@ -6185,7 +6193,7 @@ snapshots: semver: 7.6.3 ufo: 1.5.4 unctx: 2.3.1(webpack-sources@3.2.3) - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - magicast @@ -6193,9 +6201,9 @@ snapshots: - supports-color - webpack-sources - '@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3)': + '@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3)': dependencies: - '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.24.0)(webpack-sources@3.2.3) c12: 1.11.2(magicast@0.3.5) consola: 3.2.3 defu: 6.1.4 @@ -6213,7 +6221,7 @@ snapshots: semver: 7.6.3 ufo: 1.5.4 unctx: 2.3.1(webpack-sources@3.2.3) - unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - magicast @@ -6241,7 +6249,7 @@ snapshots: semver: 7.6.3 ufo: 1.5.4 unctx: 2.3.1(webpack-sources@3.2.3) - unimport: 3.12.0(rollup@4.24.0) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - magicast @@ -6250,9 +6258,9 @@ snapshots: - webpack-sources optional: true - '@nuxt/module-builder@0.8.4(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3))(nuxi@3.13.2)(typescript@5.6.3)(webpack-sources@3.2.3)': + '@nuxt/module-builder@0.8.4(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(nuxi@3.13.2)(typescript@5.6.3)(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) citty: 0.1.6 consola: 3.2.3 defu: 6.1.4 @@ -6282,7 +6290,7 @@ snapshots: std-env: 3.7.0 ufo: 1.5.4 uncrypto: 0.1.3 - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0 untyped: 1.4.2 transitivePeerDependencies: - rollup @@ -6290,7 +6298,7 @@ snapshots: - webpack-sources optional: true - '@nuxt/schema@3.13.2(rollup@3.29.4)(webpack-sources@3.2.3)': + '@nuxt/schema@3.13.2(rollup@4.21.2)(webpack-sources@3.2.3)': dependencies: compatx: 0.1.8 consola: 3.2.3 @@ -6302,14 +6310,14 @@ snapshots: std-env: 3.7.0 ufo: 1.5.4 uncrypto: 0.1.3 - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - rollup - supports-color - webpack-sources - '@nuxt/schema@3.13.2(rollup@4.21.2)(webpack-sources@3.2.3)': + '@nuxt/schema@3.13.2(rollup@4.24.0)': dependencies: compatx: 0.1.8 consola: 3.2.3 @@ -6321,14 +6329,15 @@ snapshots: std-env: 3.7.0 ufo: 1.5.4 uncrypto: 0.1.3 - unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - rollup - supports-color - webpack-sources + optional: true - '@nuxt/schema@3.13.2(rollup@4.24.0)': + '@nuxt/schema@3.13.2(rollup@4.24.0)(webpack-sources@3.2.3)': dependencies: compatx: 0.1.8 consola: 3.2.3 @@ -6340,17 +6349,16 @@ snapshots: std-env: 3.7.0 ufo: 1.5.4 uncrypto: 0.1.3 - unimport: 3.12.0(rollup@4.24.0) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) untyped: 1.4.2 transitivePeerDependencies: - rollup - supports-color - webpack-sources - optional: true - '@nuxt/telemetry@2.6.0(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3)': + '@nuxt/telemetry@2.6.0(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) ci-info: 4.0.0 consola: 3.2.3 create-require: 1.1.1 @@ -6374,9 +6382,9 @@ snapshots: - supports-color - webpack-sources - '@nuxt/telemetry@2.6.0(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3)': + '@nuxt/telemetry@2.6.0(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) ci-info: 4.0.0 consola: 3.2.3 create-require: 1.1.1 @@ -6400,10 +6408,10 @@ snapshots: - supports-color - webpack-sources - '@nuxt/vite-builder@3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.4)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': + '@nuxt/vite-builder@3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) - '@rollup/plugin-replace': 5.0.7(rollup@3.29.4) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@rollup/plugin-replace': 5.0.7(rollup@4.21.2) '@vitejs/plugin-vue': 5.1.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@vitejs/plugin-vue-jsx': 4.0.1(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) autoprefixer: 10.4.20(postcss@8.4.47) @@ -6425,7 +6433,7 @@ snapshots: perfect-debounce: 1.0.0 pkg-types: 1.2.0 postcss: 8.4.47 - rollup-plugin-visualizer: 5.12.0(rollup@3.29.4) + rollup-plugin-visualizer: 5.12.0(rollup@4.21.2) std-env: 3.7.0 strip-literal: 2.1.0 ufo: 1.5.4 @@ -6460,10 +6468,10 @@ snapshots: - vue-tsc - webpack-sources - '@nuxt/vite-builder@3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': + '@nuxt/vite-builder@3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.0)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3)': dependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) - '@rollup/plugin-replace': 5.0.7(rollup@4.21.2) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) + '@rollup/plugin-replace': 5.0.7(rollup@4.24.0) '@vitejs/plugin-vue': 5.1.4(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) '@vitejs/plugin-vue-jsx': 4.0.1(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3)) autoprefixer: 10.4.20(postcss@8.4.47) @@ -6485,7 +6493,7 @@ snapshots: perfect-debounce: 1.0.0 pkg-types: 1.2.0 postcss: 8.4.47 - rollup-plugin-visualizer: 5.12.0(rollup@4.21.2) + rollup-plugin-visualizer: 5.12.0(rollup@4.24.0) std-env: 3.7.0 strip-literal: 2.1.0 ufo: 1.5.4 @@ -6678,6 +6686,13 @@ snapshots: optionalDependencies: rollup: 4.21.2 + '@rollup/plugin-replace@5.0.7(rollup@4.24.0)': + dependencies: + '@rollup/pluginutils': 5.1.0(rollup@4.24.0) + magic-string: 0.30.12 + optionalDependencies: + rollup: 4.24.0 + '@rollup/plugin-terser@0.4.4(rollup@4.21.2)': dependencies: serialize-javascript: 6.0.2 @@ -6825,6 +6840,14 @@ snapshots: - supports-color - typescript + '@tmg0/vueuse-extra@0.0.2-alpha.2(vue@3.5.12(typescript@5.6.3))': + dependencies: + '@vueuse/core': 11.2.0(vue@3.5.12(typescript@5.6.3)) + destr: 2.0.3 + vue: 3.5.12(typescript@5.6.3) + transitivePeerDependencies: + - '@vue/composition-api' + '@trysound/sax@0.2.0': {} '@types/debug@4.1.12': @@ -7092,10 +7115,10 @@ snapshots: loupe: 3.1.2 tinyrainbow: 1.2.0 - '@vue-macros/common@1.14.0(rollup@3.29.4)(vue@3.5.12(typescript@5.6.3))': + '@vue-macros/common@1.14.0(rollup@4.21.2)(vue@3.5.12(typescript@5.6.3))': dependencies: '@babel/types': 7.25.6 - '@rollup/pluginutils': 5.1.0(rollup@3.29.4) + '@rollup/pluginutils': 5.1.0(rollup@4.21.2) '@vue/compiler-sfc': 3.5.12 ast-kit: 1.1.0 local-pkg: 0.5.0 @@ -7105,10 +7128,10 @@ snapshots: transitivePeerDependencies: - rollup - '@vue-macros/common@1.14.0(rollup@4.21.2)(vue@3.5.12(typescript@5.6.3))': + '@vue-macros/common@1.14.0(rollup@4.24.0)(vue@3.5.12(typescript@5.6.3))': dependencies: '@babel/types': 7.25.6 - '@rollup/pluginutils': 5.1.0(rollup@4.21.2) + '@rollup/pluginutils': 5.1.0(rollup@4.24.0) '@vue/compiler-sfc': 3.5.12 ast-kit: 1.1.0 local-pkg: 0.5.0 @@ -8707,9 +8730,9 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 - impound@0.1.0(rollup@3.29.4)(webpack-sources@3.2.3): + impound@0.1.0(rollup@4.21.2)(webpack-sources@3.2.3): dependencies: - '@rollup/pluginutils': 5.1.0(rollup@3.29.4) + '@rollup/pluginutils': 5.1.0(rollup@4.21.2) mlly: 1.7.1 pathe: 1.1.2 unenv: 1.10.0 @@ -8718,9 +8741,9 @@ snapshots: - rollup - webpack-sources - impound@0.1.0(rollup@4.21.2)(webpack-sources@3.2.3): + impound@0.1.0(rollup@4.24.0)(webpack-sources@3.2.3): dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.21.2) + '@rollup/pluginutils': 5.1.0(rollup@4.24.0) mlly: 1.7.1 pathe: 1.1.2 unenv: 1.10.0 @@ -9551,14 +9574,14 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - nuxt@3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.4)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3): + nuxt@3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.4.2(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) - '@nuxt/schema': 3.13.2(rollup@3.29.4)(webpack-sources@3.2.3) - '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) - '@nuxt/vite-builder': 3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.4)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + '@nuxt/devtools': 1.4.2(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/vite-builder': 3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) '@unhead/dom': 1.11.6 '@unhead/shared': 1.11.6 '@unhead/ssr': 1.11.6 @@ -9581,7 +9604,7 @@ snapshots: h3: 1.12.0 hookable: 5.5.3 ignore: 5.3.2 - impound: 0.1.0(rollup@3.29.4)(webpack-sources@3.2.3) + impound: 0.1.0(rollup@4.21.2)(webpack-sources@3.2.3) jiti: 1.21.6 klona: 2.0.6 knitwork: 1.1.0 @@ -9608,9 +9631,9 @@ snapshots: unctx: 2.3.1(webpack-sources@3.2.3) unenv: 1.10.0 unhead: 1.11.6 - unimport: 3.12.0(rollup@3.29.4)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) unplugin: 1.14.1(webpack-sources@3.2.3) - unplugin-vue-router: 0.10.8(rollup@3.29.4)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + unplugin-vue-router: 0.10.8(rollup@4.21.2)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) unstorage: 1.12.0(ioredis@5.4.1) untyped: 1.4.2 vue: 3.5.12(typescript@5.6.3) @@ -9664,14 +9687,14 @@ snapshots: - webpack-sources - xml2js - nuxt@3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3): + nuxt@3.13.2(@parcel/watcher@2.4.1)(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.0)(terser@5.33.0)(typescript@5.6.3)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(webpack-sources@3.2.3): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.4.2(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) - '@nuxt/schema': 3.13.2(rollup@4.21.2)(webpack-sources@3.2.3) - '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) - '@nuxt/vite-builder': 3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.21.2)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + '@nuxt/devtools': 1.4.2(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) + '@nuxt/schema': 3.13.2(rollup@4.24.0)(webpack-sources@3.2.3) + '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) + '@nuxt/vite-builder': 3.13.2(@types/node@22.5.5)(eslint@9.13.0(jiti@1.21.6))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.24.0)(terser@5.33.0)(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) '@unhead/dom': 1.11.6 '@unhead/shared': 1.11.6 '@unhead/ssr': 1.11.6 @@ -9694,7 +9717,7 @@ snapshots: h3: 1.12.0 hookable: 5.5.3 ignore: 5.3.2 - impound: 0.1.0(rollup@4.21.2)(webpack-sources@3.2.3) + impound: 0.1.0(rollup@4.24.0)(webpack-sources@3.2.3) jiti: 1.21.6 klona: 2.0.6 knitwork: 1.1.0 @@ -9721,9 +9744,9 @@ snapshots: unctx: 2.3.1(webpack-sources@3.2.3) unenv: 1.10.0 unhead: 1.11.6 - unimport: 3.12.0(rollup@4.21.2)(webpack-sources@3.2.3) + unimport: 3.12.0(rollup@4.24.0)(webpack-sources@3.2.3) unplugin: 1.14.1(webpack-sources@3.2.3) - unplugin-vue-router: 0.10.8(rollup@4.21.2)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) + unplugin-vue-router: 0.10.8(rollup@4.24.0)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3) unstorage: 1.12.0(ioredis@5.4.1) untyped: 1.4.2 vue: 3.5.12(typescript@5.6.3) @@ -10278,23 +10301,23 @@ snapshots: optionalDependencies: '@babel/code-frame': 7.24.7 - rollup-plugin-visualizer@5.12.0(rollup@3.29.4): + rollup-plugin-visualizer@5.12.0(rollup@4.21.2): dependencies: open: 8.4.2 picomatch: 2.3.1 source-map: 0.7.4 yargs: 17.7.2 optionalDependencies: - rollup: 3.29.4 + rollup: 4.21.2 - rollup-plugin-visualizer@5.12.0(rollup@4.21.2): + rollup-plugin-visualizer@5.12.0(rollup@4.24.0): dependencies: open: 8.4.2 picomatch: 2.3.1 source-map: 0.7.4 yargs: 17.7.2 optionalDependencies: - rollup: 4.21.2 + rollup: 4.24.0 rollup@3.29.4: optionalDependencies: @@ -10838,7 +10861,7 @@ snapshots: unicorn-magic@0.1.0: {} - unimport@3.12.0(rollup@3.29.4)(webpack-sources@3.2.3): + unimport@3.12.0: dependencies: '@rollup/pluginutils': 5.1.0(rollup@3.29.4) acorn: 8.12.1 @@ -10856,6 +10879,7 @@ snapshots: transitivePeerDependencies: - rollup - webpack-sources + optional: true unimport@3.12.0(rollup@4.21.2)(webpack-sources@3.2.3): dependencies: @@ -10876,7 +10900,7 @@ snapshots: - rollup - webpack-sources - unimport@3.12.0(rollup@4.24.0): + unimport@3.12.0(rollup@4.24.0)(webpack-sources@3.2.3): dependencies: '@rollup/pluginutils': 5.1.0(rollup@4.24.0) acorn: 8.12.1 @@ -10894,7 +10918,6 @@ snapshots: transitivePeerDependencies: - rollup - webpack-sources - optional: true unist-util-is@6.0.0: dependencies: @@ -10932,11 +10955,11 @@ snapshots: - rollup - supports-color - unplugin-vue-router@0.10.8(rollup@3.29.4)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3): + unplugin-vue-router@0.10.8(rollup@4.21.2)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3): dependencies: '@babel/types': 7.25.6 - '@rollup/pluginutils': 5.1.0(rollup@3.29.4) - '@vue-macros/common': 1.14.0(rollup@3.29.4)(vue@3.5.12(typescript@5.6.3)) + '@rollup/pluginutils': 5.1.0(rollup@4.21.2) + '@vue-macros/common': 1.14.0(rollup@4.21.2)(vue@3.5.12(typescript@5.6.3)) ast-walker-scope: 0.6.2 chokidar: 3.6.0 fast-glob: 3.3.2 @@ -10955,11 +10978,11 @@ snapshots: - vue - webpack-sources - unplugin-vue-router@0.10.8(rollup@4.21.2)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3): + unplugin-vue-router@0.10.8(rollup@4.24.0)(vue-router@4.4.5(vue@3.5.12(typescript@5.6.3)))(vue@3.5.12(typescript@5.6.3))(webpack-sources@3.2.3): dependencies: '@babel/types': 7.25.6 - '@rollup/pluginutils': 5.1.0(rollup@4.21.2) - '@vue-macros/common': 1.14.0(rollup@4.21.2)(vue@3.5.12(typescript@5.6.3)) + '@rollup/pluginutils': 5.1.0(rollup@4.24.0) + '@vue-macros/common': 1.14.0(rollup@4.24.0)(vue@3.5.12(typescript@5.6.3)) ast-walker-scope: 0.6.2 chokidar: 3.6.0 fast-glob: 3.3.2 @@ -11118,10 +11141,10 @@ snapshots: optionator: 0.9.4 typescript: 5.6.3 - vite-plugin-inspect@0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3))(rollup@3.29.4)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): + vite-plugin-inspect@0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): dependencies: '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.1.0(rollup@3.29.4) + '@rollup/pluginutils': 5.1.0(rollup@4.21.2) debug: 4.3.7 error-stack-parser-es: 0.1.5 fs-extra: 11.2.0 @@ -11131,15 +11154,15 @@ snapshots: sirv: 2.0.4 vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) optionalDependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@3.29.4)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) transitivePeerDependencies: - rollup - supports-color - vite-plugin-inspect@0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3))(rollup@4.21.2)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): + vite-plugin-inspect@0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3))(rollup@4.24.0)(vite@5.4.10(@types/node@22.5.5)(terser@5.33.0)): dependencies: '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.1.0(rollup@4.21.2) + '@rollup/pluginutils': 5.1.0(rollup@4.24.0) debug: 4.3.7 error-stack-parser-es: 0.1.5 fs-extra: 11.2.0 @@ -11149,7 +11172,7 @@ snapshots: sirv: 2.0.4 vite: 5.4.10(@types/node@22.5.5)(terser@5.33.0) optionalDependencies: - '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.21.2)(webpack-sources@3.2.3) + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) transitivePeerDependencies: - rollup - supports-color