diff --git a/.changeset/brown-pillows-hear.md b/.changeset/brown-pillows-hear.md new file mode 100644 index 000000000..af4b75ce2 --- /dev/null +++ b/.changeset/brown-pillows-hear.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +fix: Combobox & Select trigger default to `type="button"` diff --git a/.changeset/famous-trains-notice.md b/.changeset/famous-trains-notice.md new file mode 100644 index 000000000..69a6da2d8 --- /dev/null +++ b/.changeset/famous-trains-notice.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +fix: derived updates diff --git a/package.json b/package.json index 0efbad85b..05374934d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "test": "pnpm -F \"./packages/**\" --parallel --reporter append-only --color test", "test:components": "pnpm -F tests test", "test:utils": "pnpm -F bits-ui test" - }, "keywords": [], "author": "Hunter Johnston ", @@ -29,7 +28,7 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.2", "prettier-plugin-tailwindcss": "0.5.13", - "svelte": "^5.0.0", + "svelte": "^5.1.0", "svelte-eslint-parser": "^0.41.1", "wrangler": "^3.44.0" }, diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index 13af4a9e7..eafecdac3 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -36,7 +36,7 @@ "jest-axe": "^9.0.0", "jsdom": "^24.1.0", "publint": "^0.2.11", - "svelte": "^5.0.0", + "svelte": "^5.1.0", "svelte-check": "4.0.3", "tslib": "^2.7.0", "typescript": "^5.6.2", diff --git a/packages/bits-ui/src/lib/bits/combobox/components/combobox-trigger.svelte b/packages/bits-ui/src/lib/bits/combobox/components/combobox-trigger.svelte index cebf121fa..9e49261fe 100644 --- a/packages/bits-ui/src/lib/bits/combobox/components/combobox-trigger.svelte +++ b/packages/bits-ui/src/lib/bits/combobox/components/combobox-trigger.svelte @@ -9,6 +9,7 @@ ref = $bindable(null), child, children, + type = "button", ...restProps }: ComboboxTriggerProps = $props(); @@ -20,7 +21,7 @@ ), }); - const mergedProps = $derived(mergeProps(restProps, triggerState.props)); + const mergedProps = $derived(mergeProps(restProps, triggerState.props, { type })); {#if child} diff --git a/packages/bits-ui/src/lib/bits/radio-group/radio-group.svelte.ts b/packages/bits-ui/src/lib/bits/radio-group/radio-group.svelte.ts index 9c1620307..72defd414 100644 --- a/packages/bits-ui/src/lib/bits/radio-group/radio-group.svelte.ts +++ b/packages/bits-ui/src/lib/bits/radio-group/radio-group.svelte.ts @@ -108,6 +108,10 @@ class RadioGroupItemState { id: this.#id, ref: this.#ref, }); + + $effect(() => { + this.#tabIndex = this.#root.rovingFocusGroup.getTabIndex(this.#ref.current); + }); } #onpointerdown = (e: PointerEvent) => { @@ -132,7 +136,7 @@ class RadioGroupItemState { this.#root.rovingFocusGroup.handleKeydown(this.#ref.current, e, true); }; - #tabIndex = $derived.by(() => this.#root.rovingFocusGroup.getTabIndex(this.#ref.current)); + #tabIndex = $state(0); snippetProps = $derived.by(() => ({ checked: this.#isChecked })); diff --git a/packages/bits-ui/src/lib/bits/select/components/select-trigger.svelte b/packages/bits-ui/src/lib/bits/select/components/select-trigger.svelte index 77888259e..bf6a4b995 100644 --- a/packages/bits-ui/src/lib/bits/select/components/select-trigger.svelte +++ b/packages/bits-ui/src/lib/bits/select/components/select-trigger.svelte @@ -10,6 +10,7 @@ ref = $bindable(null), child, children, + type = "button", ...restProps }: SelectTriggerProps = $props(); @@ -21,7 +22,7 @@ ), }); - const mergedProps = $derived(mergeProps(restProps, triggerState.props)); + const mergedProps = $derived(mergeProps(restProps, triggerState.props, { type })); diff --git a/packages/bits-ui/src/lib/bits/toggle-group/toggle-group.svelte.ts b/packages/bits-ui/src/lib/bits/toggle-group/toggle-group.svelte.ts index 3eca74cd1..c7b770dc4 100644 --- a/packages/bits-ui/src/lib/bits/toggle-group/toggle-group.svelte.ts +++ b/packages/bits-ui/src/lib/bits/toggle-group/toggle-group.svelte.ts @@ -169,6 +169,14 @@ class ToggleGroupItemState { id: this.#id, ref: this.#ref, }); + + $effect(() => { + if (!this.#root.rovingFocus.current) { + this.#tabIndex = 0; + } else { + this.#tabIndex = this.#root.rovingFocusGroup.getTabIndex(this.#ref.current); + } + }); } toggleItem = () => { @@ -203,11 +211,7 @@ class ToggleGroupItemState { return this.#root.isMulti ? getAriaPressed(this.isPressed) : undefined; }); - #tabIndex = $derived.by(() => - !this.#root.rovingFocus.current - ? 0 - : this.#root.rovingFocusGroup.getTabIndex(this.#ref.current) - ); + #tabIndex = $state(0); props = $derived.by( () => diff --git a/packages/bits-ui/src/lib/bits/toolbar/toolbar.svelte.ts b/packages/bits-ui/src/lib/bits/toolbar/toolbar.svelte.ts index 444109b66..a3b71b7f6 100644 --- a/packages/bits-ui/src/lib/bits/toolbar/toolbar.svelte.ts +++ b/packages/bits-ui/src/lib/bits/toolbar/toolbar.svelte.ts @@ -210,6 +210,10 @@ class ToolbarGroupItemState { id: this.#id, ref: this.#ref, }); + + $effect(() => { + this.#tabIndex = this.#root.rovingFocusGroup.getTabIndex(this.#ref.current); + }); } toggleItem = () => { @@ -252,7 +256,7 @@ class ToolbarGroupItemState { return this.#group.isMulti ? getAriaPressed(this.isPressed) : undefined; }); - #tabIndex = $derived.by(() => this.#root.rovingFocusGroup.getTabIndex(this.#ref.current)); + #tabIndex = $state(0); props = $derived.by( () => @@ -293,6 +297,10 @@ class ToolbarLinkState { id: this.#id, ref: this.#ref, }); + + $effect(() => { + this.#tabIndex = this.#root.rovingFocusGroup.getTabIndex(this.#ref.current); + }); } #onkeydown = (e: KeyboardEvent) => { @@ -306,7 +314,7 @@ class ToolbarLinkState { return undefined; }); - #tabIndex = $derived.by(() => this.#root.rovingFocusGroup.getTabIndex(this.#ref.current)); + #tabIndex = $state(0); props = $derived.by(() => ({ id: this.#id.current, @@ -342,13 +350,17 @@ class ToolbarButtonState { id: this.#id, ref: this.#ref, }); + + $effect(() => { + this.#tabIndex = this.#root.rovingFocusGroup.getTabIndex(this.#ref.current); + }); } #onkeydown = (e: KeyboardEvent) => { this.#root.rovingFocusGroup.handleKeydown(this.#ref.current, e); }; - #tabIndex = $derived.by(() => this.#root.rovingFocusGroup.getTabIndex(this.#ref.current)); + #tabIndex = $state(0); #role = $derived.by(() => { if (!this.#ref.current) return undefined; diff --git a/packages/tests/package.json b/packages/tests/package.json index 23a82faaf..0ed0f5bcd 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -24,7 +24,7 @@ "jest-axe": "^9.0.0", "jsdom": "^24.1.0", "resize-observer-polyfill": "^1.5.1", - "svelte": "^5.0.0", + "svelte": "^5.1.0", "svelte-check": "^4.0.3", "typescript": "^5.6.2", "vite": "^5.4.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2881f3f5..db939d304 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ importers: version: 2.27.7 '@huntabyte/eslint-config': specifier: ^0.3.2 - version: 0.3.2(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.0.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vitest@2.1.1) + version: 0.3.2(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.1.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vitest@2.1.1) '@huntabyte/eslint-plugin': specifier: ^0.1.0 version: 0.1.0(eslint@9.6.0) @@ -25,22 +25,22 @@ importers: version: 9.6.0 eslint-plugin-svelte: specifier: ^2.44.0 - version: 2.44.0(eslint@9.6.0)(svelte@5.0.0) + version: 2.44.0(eslint@9.6.0)(svelte@5.1.0) prettier: specifier: ^3.2.5 version: 3.3.2 prettier-plugin-svelte: specifier: ^3.2.2 - version: 3.2.5(prettier@3.3.2)(svelte@5.0.0) + version: 3.2.5(prettier@3.3.2)(svelte@5.1.0) prettier-plugin-tailwindcss: specifier: 0.5.13 - version: 0.5.13(prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.0.0))(prettier@3.3.2) + version: 0.5.13(prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.1.0))(prettier@3.3.2) svelte: - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^5.1.0 + version: 5.1.0 svelte-eslint-parser: specifier: ^0.41.1 - version: 0.41.1(svelte@5.0.0) + version: 0.41.1(svelte@5.1.0) wrangler: specifier: ^3.44.0 version: 3.64.0(@cloudflare/workers-types@4.20240701.0) @@ -61,20 +61,20 @@ importers: version: 1.0.0 runed: specifier: ^0.15.2 - version: 0.15.2(svelte@5.0.0) + version: 0.15.2(svelte@5.1.0) svelte-toolbelt: specifier: ^0.4.4 - version: 0.4.4(svelte@5.0.0) + version: 0.4.4(svelte@5.1.0) devDependencies: '@sveltejs/kit': specifier: ^2.5.28 - version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) '@sveltejs/package': specifier: ^2.3.5 - version: 2.3.5(svelte@5.0.0)(typescript@5.6.2) + version: 2.3.5(svelte@5.1.0)(typescript@5.6.2) '@sveltejs/vite-plugin-svelte': specifier: 4.0.0-next.7 - version: 4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + version: 4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) '@types/node': specifier: ^20.14.10 version: 20.14.10 @@ -94,11 +94,11 @@ importers: specifier: ^0.2.11 version: 0.2.11 svelte: - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^5.1.0 + version: 5.1.0 svelte-check: specifier: 4.0.3 - version: 4.0.3(picomatch@4.0.2)(svelte@5.0.0)(typescript@5.6.2) + version: 4.0.3(picomatch@4.0.2)(svelte@5.1.0)(typescript@5.6.2) tslib: specifier: ^2.7.0 version: 2.7.0 @@ -123,13 +123,13 @@ importers: devDependencies: '@sveltejs/adapter-auto': specifier: ^3.0.0 - version: 3.2.5(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))) + version: 3.2.5(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))) '@sveltejs/kit': specifier: ^2.0.0 - version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) '@sveltejs/vite-plugin-svelte': specifier: 4.0.0-next.7 - version: 4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + version: 4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) '@testing-library/dom': specifier: ^10.3.1 version: 10.3.1 @@ -138,7 +138,7 @@ importers: version: 6.4.6(@types/jest@29.5.12)(vitest@2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1)) '@testing-library/svelte': specifier: ^5.2.1 - version: 5.2.1(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))(vitest@2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1)) + version: 5.2.1(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))(vitest@2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1)) '@testing-library/user-event': specifier: ^14.5.2 version: 14.5.2(@testing-library/dom@10.3.1) @@ -164,11 +164,11 @@ importers: specifier: ^1.5.1 version: 1.5.1 svelte: - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^5.1.0 + version: 5.1.0 svelte-check: specifier: ^4.0.3 - version: 4.0.3(picomatch@4.0.2)(svelte@5.0.0)(typescript@5.6.2) + version: 4.0.3(picomatch@4.0.2)(svelte@5.1.0)(typescript@5.6.2) typescript: specifier: ^5.6.2 version: 5.6.2 @@ -186,7 +186,7 @@ importers: version: 3.5.6 '@melt-ui/svelte': specifier: 0.76.2 - version: 0.76.2(svelte@5.0.0) + version: 0.76.2(svelte@5.1.0) bits-ui: specifier: workspace:* version: link:../../packages/bits-ui @@ -196,19 +196,19 @@ importers: devDependencies: '@melt-ui/pp': specifier: ^0.3.0 - version: 0.3.2(@melt-ui/svelte@0.76.2(svelte@5.0.0))(svelte@5.0.0) + version: 0.3.2(@melt-ui/svelte@0.76.2(svelte@5.1.0))(svelte@5.1.0) '@prettier/sync': specifier: 0.3.0 version: 0.3.0(prettier@3.3.2) '@sveltejs/adapter-cloudflare': specifier: ^4.2.0 - version: 4.6.1(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(wrangler@3.64.0(@cloudflare/workers-types@4.20240701.0)) + version: 4.6.1(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(wrangler@3.64.0(@cloudflare/workers-types@4.20240701.0)) '@sveltejs/kit': specifier: ^2.5.28 - version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) '@sveltejs/vite-plugin-svelte': specifier: 4.0.0-next.7 - version: 4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + version: 4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) '@tailwindcss/typography': specifier: ^0.5.10 version: 0.5.13(tailwindcss@3.4.4) @@ -241,13 +241,13 @@ importers: version: 14.1.2 mdsx: specifier: ^0.0.6 - version: 0.0.6(svelte@5.0.0) + version: 0.0.6(svelte@5.1.0) mode-watcher: specifier: ^0.4.1 - version: 0.4.1(svelte@5.0.0) + version: 0.4.1(svelte@5.1.0) phosphor-svelte: specifier: ^2.0.1 - version: 2.0.1(svelte@5.0.0) + version: 2.0.1(svelte@5.1.0) postcss: specifier: ^8.4.33 version: 8.4.39 @@ -270,14 +270,14 @@ importers: specifier: ^1.1.1 version: 1.10.3 svelte: - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^5.1.0 + version: 5.1.0 svelte-check: specifier: 4.0.3 - version: 4.0.3(picomatch@4.0.2)(svelte@5.0.0)(typescript@5.6.2) + version: 4.0.3(picomatch@4.0.2)(svelte@5.1.0)(typescript@5.6.2) svelte-sonner: specifier: ^0.3.24 - version: 0.3.25(svelte@5.0.0) + version: 0.3.25(svelte@5.1.0) tailwind-merge: specifier: ^2.2.1 version: 2.4.0 @@ -4232,8 +4232,8 @@ packages: svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0 typescript: ^4.9.4 || ^5.0.0 - svelte@5.0.0: - resolution: {integrity: sha512-jv2IvTtakG58DqZMo6fY3T6HFmGV4iDQH2lSUyfmCEYaoa+aCNcF+9rERbdDvT4XDF0nQBg6TEoJn0dirED8VQ==} + svelte@5.1.0: + resolution: {integrity: sha512-qD0pUvL3P26Vx+K1VodZROSu7MjDHFDunEVZ+2d3LUDWHyYI87AJFOIws0HufKWHDgXbPO4FCSugmysnX4LDwA==} engines: {node: '>=18'} symbol-tree@3.2.4: @@ -4757,7 +4757,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@2.22.0(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.0.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vitest@2.1.1)': + '@antfu/eslint-config@2.22.0(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.1.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vitest@2.1.1)': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 @@ -4777,7 +4777,7 @@ snapshots: eslint-plugin-markdown: 5.1.0(eslint@9.6.0) eslint-plugin-n: 17.9.0(eslint@9.6.0) eslint-plugin-no-only-tests: 3.1.0 - eslint-plugin-perfectionist: 2.11.0(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.6.0)) + eslint-plugin-perfectionist: 2.11.0(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.6.0)) eslint-plugin-regexp: 2.6.0(eslint@9.6.0) eslint-plugin-toml: 0.11.1(eslint@9.6.0) eslint-plugin-unicorn: 54.0.0(eslint@9.6.0) @@ -4796,8 +4796,8 @@ snapshots: yaml-eslint-parser: 1.2.3 yargs: 17.7.2 optionalDependencies: - eslint-plugin-svelte: 2.44.0(eslint@9.6.0)(svelte@5.0.0) - svelte-eslint-parser: 0.41.1(svelte@5.0.0) + eslint-plugin-svelte: 2.44.0(eslint@9.6.0)(svelte@5.1.0) + svelte-eslint-parser: 0.41.1(svelte@5.1.0) transitivePeerDependencies: - '@vue/compiler-sfc' - supports-color @@ -5327,9 +5327,9 @@ snapshots: '@humanwhocodes/retry@0.3.0': {} - '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.0.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vitest@2.1.1)': + '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.1.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vitest@2.1.1)': dependencies: - '@antfu/eslint-config': 2.22.0(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.0.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vitest@2.1.1) + '@antfu/eslint-config': 2.22.0(@vue/compiler-sfc@3.4.31)(eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.1.0))(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vitest@2.1.1) '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 '@huntabyte/eslint-plugin': 0.1.0(eslint@9.6.0) @@ -5338,10 +5338,10 @@ snapshots: chalk: 5.3.0 eslint: 9.6.0 eslint-flat-config-utils: 0.2.5 - eslint-plugin-svelte: 2.44.0(eslint@9.6.0)(svelte@5.0.0) + eslint-plugin-svelte: 2.44.0(eslint@9.6.0)(svelte@5.1.0) local-pkg: 0.5.0 parse-gitignore: 2.0.0 - svelte-eslint-parser: 0.41.1(svelte@5.0.0) + svelte-eslint-parser: 0.41.1(svelte@5.1.0) yargs: 17.7.2 transitivePeerDependencies: - '@eslint-react/eslint-plugin' @@ -5548,14 +5548,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@melt-ui/pp@0.3.2(@melt-ui/svelte@0.76.2(svelte@5.0.0))(svelte@5.0.0)': + '@melt-ui/pp@0.3.2(@melt-ui/svelte@0.76.2(svelte@5.1.0))(svelte@5.1.0)': dependencies: - '@melt-ui/svelte': 0.76.2(svelte@5.0.0) + '@melt-ui/svelte': 0.76.2(svelte@5.1.0) estree-walker: 3.0.3 magic-string: 0.30.10 - svelte: 5.0.0 + svelte: 5.1.0 - '@melt-ui/svelte@0.76.2(svelte@5.0.0)': + '@melt-ui/svelte@0.76.2(svelte@5.1.0)': dependencies: '@floating-ui/core': 1.6.4 '@floating-ui/dom': 1.6.7 @@ -5563,7 +5563,7 @@ snapshots: dequal: 2.0.3 focus-trap: 7.5.4 nanoid: 5.0.7 - svelte: 5.0.0 + svelte: 5.1.0 '@nodelib/fs.scandir@2.1.5': dependencies: @@ -5737,22 +5737,22 @@ snapshots: - supports-color - typescript - '@sveltejs/adapter-auto@3.2.5(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))': + '@sveltejs/adapter-auto@3.2.5(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))': dependencies: - '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) import-meta-resolve: 4.1.0 - '@sveltejs/adapter-cloudflare@4.6.1(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(wrangler@3.64.0(@cloudflare/workers-types@4.20240701.0))': + '@sveltejs/adapter-cloudflare@4.6.1(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(wrangler@3.64.0(@cloudflare/workers-types@4.20240701.0))': dependencies: '@cloudflare/workers-types': 4.20240701.0 - '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) esbuild: 0.21.5 worktop: 0.8.0-next.18 wrangler: 3.64.0(@cloudflare/workers-types@4.20240701.0) - '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': + '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -5764,13 +5764,13 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.6.0 sirv: 2.0.4 - svelte: 5.0.0 + svelte: 5.1.0 tiny-glob: 0.2.9 vite: 5.3.3(@types/node@20.16.10)(terser@5.34.1) - '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': + '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -5782,60 +5782,60 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.6.0 sirv: 2.0.4 - svelte: 5.0.0 + svelte: 5.1.0 tiny-glob: 0.2.9 vite: 5.4.6(@types/node@20.14.10)(terser@5.34.1) - '@sveltejs/package@2.3.5(svelte@5.0.0)(typescript@5.6.2)': + '@sveltejs/package@2.3.5(svelte@5.1.0)(typescript@5.6.2)': dependencies: chokidar: 4.0.0 kleur: 4.1.5 sade: 1.8.1 semver: 7.6.2 - svelte: 5.0.0 - svelte2tsx: 0.7.19(svelte@5.0.0)(typescript@5.6.2) + svelte: 5.1.0 + svelte2tsx: 0.7.19(svelte@5.1.0)(typescript@5.6.2) transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': + '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) debug: 4.3.7 - svelte: 5.0.0 + svelte: 5.1.0 vite: 5.3.3(@types/node@20.16.10)(terser@5.34.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': + '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) debug: 4.3.7 - svelte: 5.0.0 + svelte: 5.1.0 vite: 5.4.6(@types/node@20.14.10)(terser@5.34.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': + '@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.11 - svelte: 5.0.0 + svelte: 5.1.0 vite: 5.3.3(@types/node@20.16.10)(terser@5.34.1) vitefu: 1.0.2(vite@5.3.3(@types/node@20.16.10)(terser@5.34.1)) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': + '@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) + '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)))(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.11 - svelte: 5.0.0 + svelte: 5.1.0 vite: 5.4.6(@types/node@20.14.10)(terser@5.34.1) vitefu: 1.0.2(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1)) transitivePeerDependencies: @@ -5885,10 +5885,10 @@ snapshots: '@types/jest': 29.5.12 vitest: 2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1) - '@testing-library/svelte@5.2.1(svelte@5.0.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))(vitest@2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1))': + '@testing-library/svelte@5.2.1(svelte@5.1.0)(vite@5.4.6(@types/node@20.14.10)(terser@5.34.1))(vitest@2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1))': dependencies: '@testing-library/dom': 10.3.1 - svelte: 5.0.0 + svelte: 5.1.0 optionalDependencies: vite: 5.4.6(@types/node@20.14.10)(terser@5.34.1) vitest: 2.1.1(@types/node@20.14.10)(@vitest/ui@2.1.1)(jsdom@24.1.0)(terser@5.34.1) @@ -6905,15 +6905,15 @@ snapshots: eslint-plugin-no-only-tests@3.1.0: {} - eslint-plugin-perfectionist@2.11.0(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0))(svelte@5.0.0)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.6.0)): + eslint-plugin-perfectionist@2.11.0(eslint@9.6.0)(svelte-eslint-parser@0.41.1(svelte@5.1.0))(svelte@5.1.0)(typescript@5.6.2)(vue-eslint-parser@9.4.3(eslint@9.6.0)): dependencies: '@typescript-eslint/utils': 7.16.0(eslint@9.6.0)(typescript@5.6.2) eslint: 9.6.0 minimatch: 9.0.5 natural-compare-lite: 1.4.0 optionalDependencies: - svelte: 5.0.0 - svelte-eslint-parser: 0.41.1(svelte@5.0.0) + svelte: 5.1.0 + svelte-eslint-parser: 0.41.1(svelte@5.1.0) vue-eslint-parser: 9.4.3(eslint@9.6.0) transitivePeerDependencies: - supports-color @@ -6930,7 +6930,7 @@ snapshots: regexp-ast-analysis: 0.7.1 scslre: 0.3.0 - eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.0.0): + eslint-plugin-svelte@2.44.0(eslint@9.6.0)(svelte@5.1.0): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.6.0) '@jridgewell/sourcemap-codec': 1.5.0 @@ -6943,9 +6943,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.39) postcss-selector-parser: 6.1.1 semver: 7.6.2 - svelte-eslint-parser: 0.41.1(svelte@5.0.0) + svelte-eslint-parser: 0.41.1(svelte@5.1.0) optionalDependencies: - svelte: 5.0.0 + svelte: 5.1.0 transitivePeerDependencies: - ts-node @@ -7986,7 +7986,7 @@ snapshots: dependencies: '@types/mdast': 4.0.4 - mdsx@0.0.6(svelte@5.0.0): + mdsx@0.0.6(svelte@5.1.0): dependencies: esrap: 1.2.2 hast-util-to-html: 9.0.1 @@ -7995,7 +7995,7 @@ snapshots: rehype-stringify: 10.0.0 remark-parse: 11.0.0 remark-rehype: 11.1.0 - svelte: 5.0.0 + svelte: 5.1.0 unified: 11.0.5 unist-util-visit: 5.0.0 vfile: 6.0.1 @@ -8334,9 +8334,9 @@ snapshots: pkg-types: 1.1.3 ufo: 1.5.3 - mode-watcher@0.4.1(svelte@5.0.0): + mode-watcher@0.4.1(svelte@5.1.0): dependencies: - svelte: 5.0.0 + svelte: 5.1.0 mri@1.2.0: {} @@ -8538,9 +8538,9 @@ snapshots: estree-walker: 3.0.3 is-reference: 3.0.2 - phosphor-svelte@2.0.1(svelte@5.0.0): + phosphor-svelte@2.0.1(svelte@5.1.0): dependencies: - svelte: 5.0.0 + svelte: 5.1.0 picocolors@1.0.1: {} @@ -8648,16 +8648,16 @@ snapshots: prelude-ls@1.2.1: {} - prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.0.0): + prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.1.0): dependencies: prettier: 3.3.2 - svelte: 5.0.0 + svelte: 5.1.0 - prettier-plugin-tailwindcss@0.5.13(prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.0.0))(prettier@3.3.2): + prettier-plugin-tailwindcss@0.5.13(prettier-plugin-svelte@3.2.5(prettier@3.3.2)(svelte@5.1.0))(prettier@3.3.2): dependencies: prettier: 3.3.2 optionalDependencies: - prettier-plugin-svelte: 3.2.5(prettier@3.3.2)(svelte@5.0.0) + prettier-plugin-svelte: 3.2.5(prettier@3.3.2)(svelte@5.1.0) prettier@2.8.8: {} @@ -8914,10 +8914,10 @@ snapshots: dependencies: queue-microtask: 1.2.3 - runed@0.15.2(svelte@5.0.0): + runed@0.15.2(svelte@5.1.0): dependencies: esm-env: 1.0.0 - svelte: 5.0.0 + svelte: 5.1.0 rxjs@7.8.1: dependencies: @@ -9152,19 +9152,19 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@4.0.3(picomatch@4.0.2)(svelte@5.0.0)(typescript@5.6.2): + svelte-check@4.0.3(picomatch@4.0.2)(svelte@5.1.0)(typescript@5.6.2): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 4.0.1 fdir: 6.3.0(picomatch@4.0.2) picocolors: 1.1.0 sade: 1.8.1 - svelte: 5.0.0 + svelte: 5.1.0 typescript: 5.6.2 transitivePeerDependencies: - picomatch - svelte-eslint-parser@0.41.1(svelte@5.0.0): + svelte-eslint-parser@0.41.1(svelte@5.1.0): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -9172,26 +9172,26 @@ snapshots: postcss: 8.4.39 postcss-scss: 4.0.9(postcss@8.4.39) optionalDependencies: - svelte: 5.0.0 + svelte: 5.1.0 - svelte-sonner@0.3.25(svelte@5.0.0): + svelte-sonner@0.3.25(svelte@5.1.0): dependencies: - svelte: 5.0.0 + svelte: 5.1.0 - svelte-toolbelt@0.4.4(svelte@5.0.0): + svelte-toolbelt@0.4.4(svelte@5.1.0): dependencies: clsx: 2.1.1 style-to-object: 1.0.8 - svelte: 5.0.0 + svelte: 5.1.0 - svelte2tsx@0.7.19(svelte@5.0.0)(typescript@5.6.2): + svelte2tsx@0.7.19(svelte@5.1.0)(typescript@5.6.2): dependencies: dedent-js: 1.0.1 pascal-case: 3.1.2 - svelte: 5.0.0 + svelte: 5.1.0 typescript: 5.6.2 - svelte@5.0.0: + svelte@5.1.0: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.5.0 diff --git a/sites/docs/package.json b/sites/docs/package.json index 037094cab..a8e5d9091 100644 --- a/sites/docs/package.json +++ b/sites/docs/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "concurrently \"pnpm:dev:content\" \"pnpm:dev:svelte\" \"pnpm:replace:velite\"", "dev:content": "velite dev --watch", - "dev:svelte": "vite dev --host", + "dev:svelte": "vite dev", "build": "velite && node ./other/update-velite-output.js && pnpm build:search && vite build", "replace:velite": "node ./other/watch-velite-output.js", "build:content": "velite", @@ -41,7 +41,7 @@ "remark-gfm": "^4.0.0", "remove-markdown": "^0.5.5", "shiki": "^1.1.1", - "svelte": "^5.0.0", + "svelte": "^5.1.0", "svelte-check": "4.0.3", "svelte-sonner": "^0.3.24", "tailwind-merge": "^2.2.1",