Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<svelte:window
onpointerdown={(e) => {
if (!container.contains((e.target as HTMLElement))) {
if (!container.contains(e.target as HTMLElement)) {
preserve_editor_focus = false;
}
}}
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
50 changes: 25 additions & 25 deletions packages/site-kit/src/lib/nav/MobileMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}}
>
<div
class="viewport"
Expand Down
7 changes: 4 additions & 3 deletions packages/site-kit/src/lib/nav/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
<a
class="secondary"
href={section.path}
aria-current={$page.url.pathname === section.path || $page.url.pathname.startsWith(section.path!)
? 'page'
: undefined}
aria-current={$page.url.pathname === section.path ||
$page.url.pathname.startsWith(section.path!)
? 'page'
: undefined}
>
{section.title}
</a>
Expand Down
10 changes: 5 additions & 5 deletions packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ It appears when the user clicks on the `Search` component or presses the corresp
<input
use:forcefocus
onkeydown={(e) => {
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;
}}
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading