diff --git a/bun.lockb b/bun.lockb index 5e1590d..9ccc0fa 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index df4b593..d7c8064 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "lucide-svelte": "^0.469.0", "lz-string": "^1.5.0", "mode-watcher": "^0.5.0", - "svelte-codemirror-editor": "^1.4.1", "svelte-file-dropzone": "^2.0.9", "svelte-sonner": "^0.3.28", "tailwind-merge": "^2.5.5", @@ -37,10 +36,10 @@ }, "devDependencies": { "@biomejs/biome": "1.9.2", - "@svelte-put/shortcut": "^3.2.0", + "@svelte-put/shortcut": "^4.1.0", "@sveltejs/adapter-static": "^3.0.8", - "@sveltejs/kit": "^2.14.0", - "@sveltejs/vite-plugin-svelte": "^4.0.4", + "@sveltejs/kit": "^2.15.0", + "@sveltejs/vite-plugin-svelte": "^5.0.3", "@tailwindcss/typography": "^0.5.15", "@tailwindcss/vite": "^4.0.0-beta.8", "@types/bun": "latest", diff --git a/src/lib/components/ui/context-menu/context-menu-radio-group.svelte b/src/lib/components/ui/context-menu/context-menu-radio-group.svelte index 53fa692..7c59ef6 100644 --- a/src/lib/components/ui/context-menu/context-menu-radio-group.svelte +++ b/src/lib/components/ui/context-menu/context-menu-radio-group.svelte @@ -3,9 +3,15 @@ type $$Props = ContextMenuPrimitive.RadioGroupProps; - export let value: $$Props["value"] = undefined; + interface Props { + value?: $$Props["value"]; + children?: import('svelte').Snippet; + [key: string]: any + } + + let { value = $bindable(undefined), children, ...rest }: Props = $props(); - - + + {@render children?.()} diff --git a/src/lib/components/ui/dialog/dialog-portal.svelte b/src/lib/components/ui/dialog/dialog-portal.svelte index eb5d0a5..38b451f 100644 --- a/src/lib/components/ui/dialog/dialog-portal.svelte +++ b/src/lib/components/ui/dialog/dialog-portal.svelte @@ -1,8 +1,14 @@ - - + + {@render children?.()} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ee1deb9..3512cc8 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -23,7 +23,7 @@ import { readTextFileOnTauri } from "./utils/read-text-file-on-tauri"; import { writeTextFileOnTauri } from "./utils/write-text-file-on-tauri"; let inputText = $state(""); -let textarea!: Textarea; +let textarea: Textarea; let open = $state(true); let fileInput = $state(null); let textFilePath = $state(""); @@ -122,7 +122,7 @@ if (isTauriApp()) { />
- {#if (inputText === "" || !inputText) && !isTauriApp() } + {#if (inputText === "" || !inputText) && !isTauriApp()}