diff --git a/package-lock.json b/package-lock.json index e717e32..204f761 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ }, "devDependencies": { "@resvg/resvg-js": "^2.4.1", - "@svelte-put/toc": "^4.0.0", + "@svelte-put/toc": "^5.0.1", "@sveltejs/adapter-auto": "^3.1.1", "@sveltejs/adapter-netlify": "^4.1.0", "@sveltejs/kit": "2.5.4", @@ -1179,9 +1179,9 @@ } }, "node_modules/@svelte-put/toc": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@svelte-put/toc/-/toc-4.0.0.tgz", - "integrity": "sha512-Z7iWtG1XMQXaeyzV1PZJ47STaBRGEhbW5EHBZOjcoqIrimBNKhtGMNhfecanFBQZZKblT1BCsq5OfOjf/vpFyQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svelte-put/toc/-/toc-5.0.1.tgz", + "integrity": "sha512-oxDFPM2Y0XmhhXoNDhcPltf8RxhIvtiotFL0PX9NLossTumuAPiLVaDeEsGfBOn+nZK2J1oo9XqJU3NWHDROcw==", "dev": true, "peerDependencies": { "svelte": "^3.55.0 || ^4.0.0" @@ -9298,9 +9298,9 @@ } }, "@svelte-put/toc": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@svelte-put/toc/-/toc-4.0.0.tgz", - "integrity": "sha512-Z7iWtG1XMQXaeyzV1PZJ47STaBRGEhbW5EHBZOjcoqIrimBNKhtGMNhfecanFBQZZKblT1BCsq5OfOjf/vpFyQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svelte-put/toc/-/toc-5.0.1.tgz", + "integrity": "sha512-oxDFPM2Y0XmhhXoNDhcPltf8RxhIvtiotFL0PX9NLossTumuAPiLVaDeEsGfBOn+nZK2J1oo9XqJU3NWHDROcw==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index 21bce62..6422dff 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@resvg/resvg-js": "^2.4.1", - "@svelte-put/toc": "^4.0.0", + "@svelte-put/toc": "^5.0.1", "@sveltejs/adapter-auto": "^3.1.1", "@sveltejs/adapter-netlify": "^4.1.0", "@sveltejs/kit": "2.5.4", diff --git a/src/app.html b/src/app.html index 2ee5441..a96a47a 100644 --- a/src/app.html +++ b/src/app.html @@ -35,7 +35,7 @@ %sveltekit.head%
%sveltekit.body%
diff --git a/src/lib/components/Toc.svelte b/src/lib/components/Toc.svelte index 1795d90..fd80932 100644 --- a/src/lib/components/Toc.svelte +++ b/src/lib/components/Toc.svelte @@ -12,7 +12,7 @@ -{#if Object.values($tocStore.items).length && Object.values($tocStore.items).length > 1} +{#if $tocStore.items.size}