Releases: janosh/svelte-toc
Releases · janosh/svelte-toc
v0.5.8
What's Changed
- When opening ToC on mobile, ensure active ToC item is scrolled into view by @Comefled in #54
- Add
reactToKeys
prop to Toc component andon_keydown
handler to enable navigating ToC with keyboard by @janosh in #55
New Contributors
Full Changelog: v0.5.7...v0.5.8
v0.5.7
What's Changed
package.json
add"types": "./dist/index.d.ts"
and default--toc-overflow to auto
by @pre-commit-ci in #49- Replace hacky
window.setTimeout(50)
callback withscrollend
event tokeepActiveTocItemInView
by @janosh in #53 - expose Toc
aside
andnav
HTMLElements
for external accessfc8806d
Full Changelog: v0.5.6...v0.5.7
v0.5.6
What's Changed
- Copy buttons by @janosh in #43
- Add prop
blurParams: BlurParams | null = { duration: 200 }
by @janosh in #47
Full Changelog: v0.5.5...v0.5.6
For #46 (comment).
v0.5.5
v0.5.4
v0.5.3
What's Changed
- Fix ToC scroll abort
#37
- Add
var(--toc-overflow, auto scroll)
#34
- add
src/routes/(demos)/left-border-active-li/+page.md
powered bymdsvexamples
6be66f0
- tweak readme prop docs
84c1854
- document new CSS variables in readme
5df7767
- add test 'subheadings are indented'
06da853
- add
var(--toc-ol-list-style, none)
andvar(--toc-ol-padding, 0)
ade5425
New Contributors
Full Changelog: v0.5.2...v0.5.3
v0.5.2
v0.5.1
v0.5.0
v0.4.1
What's Changed
- d08eb59 test that readme documents no non-existent props
- ecf994b test CSS variables in readme are in sync with actual component
- b7f6f49 improve readme docs on props, types and defaults
yarn
topnpm
by @janosh in #27- b18b003 add test 'ToC lists expected headings'
- Only trigger keyup event handler on enter/space keys by @janosh in #28
Full Changelog: v0.4.0...v0.4.1