Sticky responsive table of contents component
MIT License
reactToKeys
prop to Toc component and on_keydown
handler to enable navigating ToC with keyboard by @janosh in https://github.com/janosh/svelte-toc/pull/55
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.7...v0.5.8
Published by janosh 9 months ago
package.json
add "types": "./dist/index.d.ts"
and default --toc-overflow to auto
by @pre-commit-ci in https://github.com/janosh/svelte-toc/pull/49
window.setTimeout(50)
callback with scrollend
event to keepActiveTocItemInView
by @janosh in https://github.com/janosh/svelte-toc/pull/53
aside
and nav
HTMLElements
for external access fc8806d
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.6...v0.5.7
Published by janosh about 1 year ago
blurParams: BlurParams | null = { duration: 200 }
by @janosh in https://github.com/janosh/svelte-toc/pull/47
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.5...v0.5.6
For https://github.com/janosh/svelte-toc/issues/46#issuecomment-1714412178.
Published by janosh over 1 year ago
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.4...v0.5.5
Published by janosh over 1 year ago
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.3...v0.5.4
Published by janosh over 1 year ago
#37
var(--toc-overflow, auto scroll)
#34
src/routes/(demos)/left-border-active-li/+page.md
powered by mdsvexamples
6be66f0
84c1854
5df7767
06da853
var(--toc-ol-list-style, none)
and var(--toc-ol-padding, 0)
ade5425
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.2...v0.5.3
Published by janosh almost 2 years ago
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.1...v0.5.2
Published by janosh almost 2 years ago
49d43d7
bab57dc
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.5.0...v0.5.1
Published by janosh almost 2 years ago
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.4.1...v0.5.0
Published by janosh almost 2 years ago
yarn
to pnpm
by @janosh in https://github.com/janosh/svelte-toc/pull/27
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.4.0...v0.4.1
Published by janosh about 2 years ago
Toc.svelte
remove unused windowHeight
breaking: rename slot tocItem
to toc-item
add slot open-toc-icon
document new/renamed slots in readme
extend readme test to also check for correct type and default value of primitive-type props
fix lines in readme offending new test
simplify readme prop doc str format
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.3.2...v0.4.0
Published by janosh about 2 years ago
titleTag
allowing to change HTML tag used for ToC title by @oskar-gmerek in https://github.com/janosh/svelte-toc/pull/21
yarn add -D jsdom vitest
and update existing depsvite.config.ts
set jsdom
as test envpage_body
and title_tag
to pageBody
and titleTag
pageBody
to readmevitest
unit tests for readme
+ src/lib/{index.ts,Svelte.toc}
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.3.1...v0.3.2
Published by janosh about 2 years ago
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.3.0...v0.3.1
Published by janosh about 2 years ago
node.offsetTop
returning 0 for headings in parents with position: relative
by @Amerlander in https://github.com/janosh/svelte-toc/pull/16
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.2.12...v0.3.0
Published by janosh over 2 years ago
3466e0f replace scrollIntoViewIfNeeded()
with scrollIntoView({ block: `nearest` })
dd64696 update deps
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.2.9...v0.2.10
Published by janosh over 2 years ago
f8ad29f fix page.subscribe(requery_headings)
causing error 'Function called outside component initialization'
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.2.8...v0.2.9
Published by janosh over 2 years ago
afterNavigate()
runtime error in https://github.com/janosh/svelte-toc/pull/10
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.2.7...v0.2.8
Published by janosh over 2 years ago
.toc-exclude
in https://github.com/janosh/svelte-toc/pull/9
Full Changelog: https://github.com/janosh/svelte-toc/compare/v0.2.6...v0.2.7