Skip to content

Commit cdcdea6

Browse files
authored
bump prettier-plugin-svelte (#1048)
* bump prettier-plugin-svelte * format * another
1 parent d88895c commit cdcdea6

File tree

9 files changed

+50
-49
lines changed

9 files changed

+50
-49
lines changed

apps/svelte.dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"marked": "^14.1.2",
7070
"minimatch": "^10.0.1",
7171
"prettier": "^3.3.2",
72-
"prettier-plugin-svelte": "^3.2.4",
72+
"prettier-plugin-svelte": "^3.3.2",
7373
"satori": "^0.10.13",
7474
"satori-html": "^0.3.2",
7575
"svelte": "5.14.0",

packages/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@sveltejs/vite-plugin-svelte": "^4.0.0",
5454
"codemirror": "^6.0.1",
5555
"prettier": "^3.1.1",
56-
"prettier-plugin-svelte": "^3.1.2",
56+
"prettier-plugin-svelte": "^3.3.2",
5757
"publint": "^0.2.12",
5858
"svelte": "^5.14.0",
5959
"svelte-check": "^4.1.1",

packages/editor/src/lib/Editor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<svelte:window
4343
onpointerdown={(e) => {
44-
if (!container.contains((e.target as HTMLElement))) {
44+
if (!container.contains(e.target as HTMLElement)) {
4545
preserve_editor_focus = false;
4646
}
4747
}}

packages/repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@sveltejs/vite-plugin-svelte": "4.0.0",
5555
"@types/estree": "^1.0.5",
5656
"prettier": "^3.3.2",
57-
"prettier-plugin-svelte": "^3.2.4",
57+
"prettier-plugin-svelte": "^3.3.2",
5858
"publint": "^0.2.12",
5959
"svelte-check": "^4.1.1",
6060
"typescript": "^5.5.4",

packages/site-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"magic-string": "^0.30.11",
5353
"marked": "^14.1.2",
5454
"prettier": "^3.3.2",
55-
"prettier-plugin-svelte": "^3.2.4",
55+
"prettier-plugin-svelte": "^3.3.2",
5656
"svelte": "5.14.0",
5757
"svelte-check": "^4.1.1",
5858
"typescript": "^5.5.4",

packages/site-kit/src/lib/nav/MobileMenu.svelte

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,41 +66,41 @@
6666
class="clip"
6767
style:--height-difference="{menu_height - universal_menu_inner_height}px"
6868
ontransitionstart={(e) => {
69-
const target = e.target as HTMLElement;
69+
const target = e.target as HTMLElement;
7070

71-
if (!target?.classList.contains('viewport')) return;
72-
if (e.propertyName !== 'transform') return;
71+
if (!target?.classList.contains('viewport')) return;
72+
if (e.propertyName !== 'transform') return;
7373

74-
// we need to apply a clip-path during the transition so that the contents
75-
// are constrained to the menu background, but only while the transition
76-
// is running, otherwise it prevents the contents from being scrolled
77-
const a = 'calc(var(--height-difference) + 1px)';
78-
const b = '1px';
74+
// we need to apply a clip-path during the transition so that the contents
75+
// are constrained to the menu background, but only while the transition
76+
// is running, otherwise it prevents the contents from being scrolled
77+
const a = 'calc(var(--height-difference) + 1px)';
78+
const b = '1px';
7979

80-
const start = show_context_menu ? a : b;
81-
const end = show_context_menu ? b : a;
80+
const start = show_context_menu ? a : b;
81+
const end = show_context_menu ? b : a;
8282

83-
const container = e.currentTarget;
83+
const container = e.currentTarget;
8484

85-
container.style.clipPath = `polygon(0% ${start}, 100% ${start}, 100% 100%, 0% 100%)`;
85+
container.style.clipPath = `polygon(0% ${start}, 100% ${start}, 100% 100%, 0% 100%)`;
8686

87-
setTimeout(() => {
88-
container.style.clipPath = `polygon(0% ${end}, 100% ${end}, 100% 100%, 0% 100%)`;
89-
}, 0);
90-
}}
87+
setTimeout(() => {
88+
container.style.clipPath = `polygon(0% ${end}, 100% ${end}, 100% 100%, 0% 100%)`;
89+
}, 0);
90+
}}
9191
ontransitionend={(e) => {
92-
const target = e.target as HTMLElement;
92+
const target = e.target as HTMLElement;
9393

94-
if (!target?.classList.contains('viewport')) return;
95-
if (e.propertyName !== 'transform') return;
94+
if (!target?.classList.contains('viewport')) return;
95+
if (e.propertyName !== 'transform') return;
9696

97-
e.currentTarget.style.clipPath = '';
97+
e.currentTarget.style.clipPath = '';
9898

99-
// whenever we transition from one menu to the other, we need to move focus to the first item in the new menu
100-
if (!show_context_menu) {
101-
universal_menu?.querySelector('a')?.focus();
102-
}
103-
}}
99+
// whenever we transition from one menu to the other, we need to move focus to the first item in the new menu
100+
if (!show_context_menu) {
101+
universal_menu?.querySelector('a')?.focus();
102+
}
103+
}}
104104
>
105105
<div
106106
class="viewport"

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
9898
<a
9999
class="secondary"
100100
href={section.path}
101-
aria-current={$page.url.pathname === section.path || $page.url.pathname.startsWith(section.path!)
102-
? 'page'
103-
: undefined}
101+
aria-current={$page.url.pathname === section.path ||
102+
$page.url.pathname.startsWith(section.path!)
103+
? 'page'
104+
: undefined}
104105
>
105106
{section.title}
106107
</a>

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ It appears when the user clicks on the `Search` component or presses the corresp
172172
<input
173173
use:forcefocus
174174
onkeydown={(e) => {
175-
if (e.key === 'Enter' && !e.isComposing) {
176-
const element = modal.querySelector('a[data-has-node]') as HTMLElement | undefined;
177-
element?.click();
178-
}
179-
}}
175+
if (e.key === 'Enter' && !e.isComposing) {
176+
const element = modal.querySelector('a[data-has-node]') as HTMLElement | undefined;
177+
element?.click();
178+
}
179+
}}
180180
oninput={(e) => {
181181
$search_query = e.currentTarget.value;
182182
}}

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)