chore: update frontend dependencies within their semver ranges

SvelteKit 2.53 to 2.70 renamed the remote form enhance callback's `form` to
`element`, which would have thrown on reset in the signup, device, library and
cover forms.
This commit is contained in:
2026-08-17 16:13:42 -04:00
parent 54043a97d2
commit b33f57d942
7 changed files with 1140 additions and 1087 deletions
@@ -13,7 +13,7 @@
</script>
<form
{...createDevice.enhance(async ({ form, submit }) => {
{...createDevice.enhance(async ({ element, submit }) => {
try {
await submit();
@@ -24,7 +24,7 @@
const deviceName = createDevice.fields.name.value();
form.reset();
element.reset();
toast.success(`Device '${deviceName}' created`);
onSuccess?.();
} catch (error) {
@@ -50,10 +50,10 @@
<form
bind:this={formEl}
{...updateBookCover.enhance(async ({ submit, form }) => {
{...updateBookCover.enhance(async ({ submit, element }) => {
try {
await submit();
form.reset();
element.reset();
// Deliberately does not close the dialog. The cover is one panel of a
// larger form now, and closing here would throw away metadata edits
// the reader has not saved yet.
@@ -23,7 +23,7 @@
</Dialog.Header>
<form
{...createLibrary.enhance(async ({ form, submit }) => {
{...createLibrary.enhance(async ({ element, submit }) => {
try {
await submit();
@@ -35,7 +35,7 @@
const libraryName = createLibrary.fields.name.value();
form.reset();
element.reset();
selectedIcon = 'library';
open = false;
toast.success(`Library '${libraryName}' created.`);
@@ -17,7 +17,7 @@
</Card.Header>
<form
{...signup.enhance(async ({ submit, form }) => {
{...signup.enhance(async ({ submit, element }) => {
try {
await submit();
@@ -29,7 +29,7 @@
// Move to login tab on success
// TODO: Fix previous errors showing on login form
form.reset();
element.reset();
toast.success('Successfully registered!');
login.fields.set({ email: '', password: '' });
login.validate();
@@ -6,9 +6,7 @@ import type { WithChildren } from 'bits-ui';
import type { HTMLInputAttributes } from 'svelte/elements';
export type FileRejectedReason =
| 'Maximum file size exceeded'
| 'File type not allowed'
| 'Maximum files uploaded';
'Maximum file size exceeded' | 'File type not allowed' | 'Maximum files uploaded';
export type FileDropZonePropsWithoutHTML = WithChildren<{
ref?: HTMLInputElement | null;