diff --git a/.changeset/selfish-tips-notice.md b/.changeset/selfish-tips-notice.md new file mode 100644 index 000000000..605d85ae3 --- /dev/null +++ b/.changeset/selfish-tips-notice.md @@ -0,0 +1,5 @@ +--- +'layerchart': patch +--- + +Update dependencies diff --git a/packages/layerchart/package.json b/packages/layerchart/package.json index 40542f4da..9518bb9ac 100644 --- a/packages/layerchart/package.json +++ b/packages/layerchart/package.json @@ -21,16 +21,16 @@ "@changesets/cli": "^2.27.5", "@mdi/js": "^7.4.47", "@rollup/plugin-dsv": "^3.0.4", - "@sveltejs/adapter-auto": "^3.2.1", - "@sveltejs/kit": "^2.5.10", - "@sveltejs/package": "^2.3.1", + "@sveltejs/adapter-auto": "^3.2.2", + "@sveltejs/kit": "^2.5.17", + "@sveltejs/package": "^2.3.2", "@sveltejs/vite-plugin-svelte": "^3.1.1", "@svitejs/changesets-changelog-github-compact": "^1.1.0", "@tailwindcss/typography": "^0.5.13", "@types/d3-array": "^3.2.1", "@types/d3-delaunay": "^6.0.4", "@types/d3-dsv": "^3.0.7", - "@types/d3-force": "^3.0.9", + "@types/d3-force": "^3.0.10", "@types/d3-geo": "^3.1.0", "@types/d3-hierarchy": "^3.1.7", "@types/d3-interpolate": "^3.0.4", @@ -52,7 +52,7 @@ "mdsvex": "^0.11.2", "posthog-js": "^1.95.1", "prettier": "^3.3.2", - "prettier-plugin-svelte": "^3.2.4", + "prettier-plugin-svelte": "^3.2.5", "prism-svelte": "^0.5.0", "prism-themes": "^1.9.0", "prismjs": "^1.29.0", @@ -60,18 +60,18 @@ "shapefile": "^0.6.6", "solar-calculator": "^0.3.0", "svelte": "^4.2.18", - "svelte-check": "^3.8.0", + "svelte-check": "^3.8.1", "svelte-json-tree": "^2.2.0", - "svelte-preprocess": "^6.0.0", - "svelte2tsx": "^0.7.9", + "svelte-preprocess": "^6.0.1", + "svelte2tsx": "^0.7.10", "tailwindcss": "^3.4.4", "topojson-client": "^3.1.0", "topojson-simplify": "^3.0.3", "tslib": "^2.6.3", - "typescript": "^5.4.5", + "typescript": "^5.5.2", "unist-util-visit": "^5.0.0", "us-atlas": "^3.0.1", - "vite": "^5.2.13" + "vite": "^5.3.1" }, "type": "module", "dependencies": { @@ -97,9 +97,9 @@ "date-fns": "^3.6.0", "layercake": "^8.3.0", "lodash-es": "^4.17.21", - "posthog-js": "^1.139.1", + "posthog-js": "^1.139.6", "shapefile": "^0.6.6", - "svelte-ux": "^0.66.7", + "svelte-ux": "^0.69.1", "topojson-client": "^3.1.0" }, "peerDependencies": { diff --git a/packages/layerchart/src/routes/+layout.svelte b/packages/layerchart/src/routes/+layout.svelte index 241d6075c..864d344f9 100644 --- a/packages/layerchart/src/routes/+layout.svelte +++ b/packages/layerchart/src/routes/+layout.svelte @@ -205,7 +205,7 @@ -
+
@@ -215,8 +215,8 @@ @tailwind components; @tailwind utilities; - :global(body) { - @apply bg-surface-200 accent-primary; + :global(html) { + @apply bg-surface-200 accent-primary scroll-smooth; /* background-image: radial-gradient(at 0% 0%, hsl(var(--color-secondary) / 0.33) 0px, transparent 50%), radial-gradient(at 98% 1%, hsl(var(--color-primary) / 0.33) 0px, transparent 50%); */ @@ -230,19 +230,20 @@ @apply pt-4 pb-2 pl-4 text-xs text-surface-content font-bold; } + :global(main :is(h1, h2, h3):not(.prose *, .related *, .ApiDocs *)) { + scroll-margin-top: calc(var(--headerHeight) + 128px); /* app header + docs header */ + } + :global(main h1:not(.prose *, .related *, .ApiDocs *)) { @apply text-xl font-semibold mt-4 mb-2 border-b pb-1; - scroll-margin-top: 128px; /* sticky header */ } :global(main h2:not(.prose *, .related *, .ApiDocs *)) { @apply text-lg font-semibold mt-4 mb-1; - scroll-margin-top: 128px; /* sticky header */ } :global(main h3:not(.prose *, .related *, .ApiDocs *)) { @apply text-xs text-surface-content/50 mb-1; - scroll-margin-top: 128px; /* sticky header */ } :global(main :not(.prose) h2 + h3) { @apply -mt-1; diff --git a/packages/layerchart/src/routes/changelog/+page.svelte b/packages/layerchart/src/routes/changelog/+page.svelte index 3bb2a0303..9ad53a91c 100644 --- a/packages/layerchart/src/routes/changelog/+page.svelte +++ b/packages/layerchart/src/routes/changelog/+page.svelte @@ -15,7 +15,7 @@