diff --git a/packages/svelte-notion-page/package.json b/packages/svelte-notion-page/package.json index 65933ee..09958b1 100644 --- a/packages/svelte-notion-page/package.json +++ b/packages/svelte-notion-page/package.json @@ -1,6 +1,6 @@ { "name": "@cozy-blog/svelte-notion-page", - "version": "0.0.20", + "version": "0.0.23", "scripts": { "dev": "vite dev", "build": "svelte-kit sync && svelte-package", @@ -24,9 +24,10 @@ "@storybook/svelte": "^7.0.0-beta.31", "@storybook/sveltekit": "^7.0.0-beta.31", "@storybook/testing-library": "^0.0.13", - "@sveltejs/adapter-auto": "^1.0.0", - "@sveltejs/kit": "^1.0.0", + "@sveltejs/adapter-auto": "^3.0.0", + "@sveltejs/kit": "^2.0.0", "@sveltejs/package": "^1.0.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "@types/he": "^1.2.0", "@types/katex": "^0.16.0", "@types/prismjs": "^1.26.0", @@ -40,17 +41,17 @@ "eslint-plugin-svelte3": "^4.0.0", "postcss": "^8.4.20", "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.8.1", + "prettier-plugin-svelte": "^2.10.1", "react": "^18.2.0", "react-dom": "^18.2.0", "storybook": "^7.0.0-beta.31", - "svelte": "^3.54.0", - "svelte-check": "^2.9.2", + "svelte": "^4.0.0", + "svelte-check": "^3.4.3", "tailwindcss": "^3.2.4", "ts-dedent": "^2.2.0", "tslib": "^2.4.1", - "typescript": "^4.9.3", - "vite": "^4.0.0" + "typescript": "^5.0.0", + "vite": "^5.0.0" }, "type": "module", "dependencies": { @@ -64,4 +65,4 @@ "svelte-legos": "^0.2.1", "svelte-youtube-embed": "^0.1.8" } -} +} \ No newline at end of file diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/Audio.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/Audio.svelte index 2903c77..4f684e9 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/Audio.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/Audio.svelte @@ -1,8 +1,8 @@ diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/Equation.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/Equation.svelte index 6e5349a..c944f20 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/Equation.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/Equation.svelte @@ -1,8 +1,8 @@
diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/Image/Image.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/Image/Image.svelte index 07f9602..88d5267 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/Image/Image.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/Image/Image.svelte @@ -1,9 +1,10 @@ -
+
{#if url} @@ -81,10 +82,4 @@ display: flex; flex-direction: column; } - - .notion-image-content img { - width: 100%; - margin: 0 auto; - object-fit: contain; - } diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/Image/ImageViewer.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/Image/ImageViewer.svelte index e691e79..63410cf 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/Image/ImageViewer.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/Image/ImageViewer.svelte @@ -184,7 +184,7 @@ tabindex="0" on:mousemove={handleHideCursorOnMouseStop} use:focusAction={opened} - transition:fade={{ duration: 200 }} + transition:fade|global={{ duration: 200 }} class:hide-cursor={!cursorVisible} class="notion-viewer-container" > diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/NumberedListItem.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/NumberedListItem.svelte index 903aea5..cd3fd8e 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/NumberedListItem.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/NumberedListItem.svelte @@ -1,10 +1,10 @@
diff --git a/packages/svelte-notion-page/src/lib/default-notion-components/Table.svelte b/packages/svelte-notion-page/src/lib/default-notion-components/Table.svelte index 965cf84..59b4cfd 100644 --- a/packages/svelte-notion-page/src/lib/default-notion-components/Table.svelte +++ b/packages/svelte-notion-page/src/lib/default-notion-components/Table.svelte @@ -1,6 +1,6 @@