diff --git a/apps/svelte.dev/package.json b/apps/svelte.dev/package.json index 963eb36f93..64a7ab86f5 100644 --- a/apps/svelte.dev/package.json +++ b/apps/svelte.dev/package.json @@ -69,7 +69,7 @@ "marked": "^14.1.2", "minimatch": "^10.0.1", "prettier": "^3.3.2", - "prettier-plugin-svelte": "^3.2.4", + "prettier-plugin-svelte": "^3.3.2", "satori": "^0.10.13", "satori-html": "^0.3.2", "svelte": "5.14.0", diff --git a/packages/editor/package.json b/packages/editor/package.json index 3111f75cc0..2ca77bbc6d 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -53,7 +53,7 @@ "@sveltejs/vite-plugin-svelte": "^4.0.0", "codemirror": "^6.0.1", "prettier": "^3.1.1", - "prettier-plugin-svelte": "^3.1.2", + "prettier-plugin-svelte": "^3.3.2", "publint": "^0.2.12", "svelte": "^5.14.0", "svelte-check": "^4.1.1", diff --git a/packages/editor/src/lib/Editor.svelte b/packages/editor/src/lib/Editor.svelte index 20ad089fd6..a017f9e8c5 100644 --- a/packages/editor/src/lib/Editor.svelte +++ b/packages/editor/src/lib/Editor.svelte @@ -41,7 +41,7 @@ { - if (!container.contains((e.target as HTMLElement))) { + if (!container.contains(e.target as HTMLElement)) { preserve_editor_focus = false; } }} diff --git a/packages/repl/package.json b/packages/repl/package.json index f7a2297bd6..a16b7e1df6 100644 --- a/packages/repl/package.json +++ b/packages/repl/package.json @@ -54,7 +54,7 @@ "@sveltejs/vite-plugin-svelte": "4.0.0", "@types/estree": "^1.0.5", "prettier": "^3.3.2", - "prettier-plugin-svelte": "^3.2.4", + "prettier-plugin-svelte": "^3.3.2", "publint": "^0.2.12", "svelte-check": "^4.1.1", "typescript": "^5.5.4", diff --git a/packages/site-kit/package.json b/packages/site-kit/package.json index 965ea1086d..fcf674226e 100644 --- a/packages/site-kit/package.json +++ b/packages/site-kit/package.json @@ -52,7 +52,7 @@ "magic-string": "^0.30.11", "marked": "^14.1.2", "prettier": "^3.3.2", - "prettier-plugin-svelte": "^3.2.4", + "prettier-plugin-svelte": "^3.3.2", "svelte": "5.14.0", "svelte-check": "^4.1.1", "typescript": "^5.5.4", diff --git a/packages/site-kit/src/lib/nav/MobileMenu.svelte b/packages/site-kit/src/lib/nav/MobileMenu.svelte index abfda674c2..715596bb02 100644 --- a/packages/site-kit/src/lib/nav/MobileMenu.svelte +++ b/packages/site-kit/src/lib/nav/MobileMenu.svelte @@ -66,41 +66,41 @@ class="clip" style:--height-difference="{menu_height - universal_menu_inner_height}px" ontransitionstart={(e) => { - const target = e.target as HTMLElement; + const target = e.target as HTMLElement; - if (!target?.classList.contains('viewport')) return; - if (e.propertyName !== 'transform') return; + if (!target?.classList.contains('viewport')) return; + if (e.propertyName !== 'transform') return; - // we need to apply a clip-path during the transition so that the contents - // are constrained to the menu background, but only while the transition - // is running, otherwise it prevents the contents from being scrolled - const a = 'calc(var(--height-difference) + 1px)'; - const b = '1px'; + // we need to apply a clip-path during the transition so that the contents + // are constrained to the menu background, but only while the transition + // is running, otherwise it prevents the contents from being scrolled + const a = 'calc(var(--height-difference) + 1px)'; + const b = '1px'; - const start = show_context_menu ? a : b; - const end = show_context_menu ? b : a; + const start = show_context_menu ? a : b; + const end = show_context_menu ? b : a; - const container = e.currentTarget; + const container = e.currentTarget; - container.style.clipPath = `polygon(0% ${start}, 100% ${start}, 100% 100%, 0% 100%)`; + container.style.clipPath = `polygon(0% ${start}, 100% ${start}, 100% 100%, 0% 100%)`; - setTimeout(() => { - container.style.clipPath = `polygon(0% ${end}, 100% ${end}, 100% 100%, 0% 100%)`; - }, 0); - }} + setTimeout(() => { + container.style.clipPath = `polygon(0% ${end}, 100% ${end}, 100% 100%, 0% 100%)`; + }, 0); + }} ontransitionend={(e) => { - const target = e.target as HTMLElement; + const target = e.target as HTMLElement; - if (!target?.classList.contains('viewport')) return; - if (e.propertyName !== 'transform') return; + if (!target?.classList.contains('viewport')) return; + if (e.propertyName !== 'transform') return; - e.currentTarget.style.clipPath = ''; + e.currentTarget.style.clipPath = ''; - // whenever we transition from one menu to the other, we need to move focus to the first item in the new menu - if (!show_context_menu) { - universal_menu?.querySelector('a')?.focus(); - } - }} + // whenever we transition from one menu to the other, we need to move focus to the first item in the new menu + if (!show_context_menu) { + universal_menu?.querySelector('a')?.focus(); + } + }} >
{section.title} diff --git a/packages/site-kit/src/lib/search/SearchBox.svelte b/packages/site-kit/src/lib/search/SearchBox.svelte index 75b5fdda5c..f56af88da6 100644 --- a/packages/site-kit/src/lib/search/SearchBox.svelte +++ b/packages/site-kit/src/lib/search/SearchBox.svelte @@ -172,11 +172,11 @@ It appears when the user clicks on the `Search` component or presses the corresp { - if (e.key === 'Enter' && !e.isComposing) { - const element = modal.querySelector('a[data-has-node]') as HTMLElement | undefined; - element?.click(); - } - }} + if (e.key === 'Enter' && !e.isComposing) { + const element = modal.querySelector('a[data-has-node]') as HTMLElement | undefined; + element?.click(); + } + }} oninput={(e) => { $search_query = e.currentTarget.value; }} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e2bcc7489..a5ee117b10 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -169,8 +169,8 @@ importers: specifier: ^3.3.2 version: 3.3.2 prettier-plugin-svelte: - specifier: ^3.2.4 - version: 3.2.4(prettier@3.3.2)(svelte@5.14.0) + specifier: ^3.3.2 + version: 3.3.2(prettier@3.3.2)(svelte@5.14.0) satori: specifier: ^0.10.13 version: 0.10.13 @@ -275,8 +275,8 @@ importers: specifier: ^3.1.1 version: 3.3.2 prettier-plugin-svelte: - specifier: ^3.1.2 - version: 3.2.4(prettier@3.3.2)(svelte@5.14.0) + specifier: ^3.3.2 + version: 3.3.2(prettier@3.3.2)(svelte@5.14.0) publint: specifier: ^0.2.12 version: 0.2.12 @@ -399,8 +399,8 @@ importers: specifier: ^3.3.2 version: 3.3.2 prettier-plugin-svelte: - specifier: ^3.2.4 - version: 3.2.4(prettier@3.3.2)(svelte@5.14.0) + specifier: ^3.3.2 + version: 3.3.2(prettier@3.3.2)(svelte@5.14.0) publint: specifier: ^0.2.12 version: 0.2.12 @@ -502,8 +502,8 @@ importers: specifier: ^3.3.2 version: 3.3.2 prettier-plugin-svelte: - specifier: ^3.2.4 - version: 3.2.4(prettier@3.3.2)(svelte@5.14.0) + specifier: ^3.3.2 + version: 3.3.2(prettier@3.3.2)(svelte@5.14.0) svelte: specifier: 5.14.0 version: 5.14.0 @@ -2780,8 +2780,8 @@ packages: resolution: {integrity: sha512-7KTLTdzdZZYscUc65XmjFiB73vBhBfbPztCYdUNvlaso9PrzjzcmjqBPR0lNGkcVlcO4BjiO5rK/qNz+XAen1Q==} engines: {node: ^10 || ^12 || >=14} - prettier-plugin-svelte@3.2.4: - resolution: {integrity: sha512-tZv+ADfeOWFNQkXkRh6zUXE16w3Vla8x2Ug0B/EnSmjR4EnwdwZbGgL/liSwR1kcEALU5mAAyua98HBxheCxgg==} + prettier-plugin-svelte@3.3.2: + resolution: {integrity: sha512-kRPjH8wSj2iu+dO+XaUv4vD8qr5mdDmlak3IT/7AOgGIMRG86z/EHOLauFcClKEnOUf4A4nOA7sre5KrJD4Raw==} peerDependencies: prettier: ^3.0.0 svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 @@ -5638,7 +5638,7 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.0 - prettier-plugin-svelte@3.2.4(prettier@3.3.2)(svelte@5.14.0): + prettier-plugin-svelte@3.3.2(prettier@3.3.2)(svelte@5.14.0): dependencies: prettier: 3.3.2 svelte: 5.14.0