Skip to content

Releases: janosh/svelte-toc

v0.5.8

21 Mar 08:48
Compare
Choose a tag to compare

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 and on_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

22 Jan 11:21
Compare
Choose a tag to compare

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 with scrollend event to keepActiveTocItemInView by @janosh in #53
  • expose Toc aside and nav HTMLElements for external access fc8806d

Full Changelog: v0.5.6...v0.5.7

v0.5.6

12 Sep 09:29
Compare
Choose a tag to compare

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

21 Apr 00:11
Compare
Choose a tag to compare

What's Changed

  • DRY GitHub Actions #40
  • fix svelte a11y warning about <li> tabindex and role aa1cd50

Full Changelog: v0.5.4...v0.5.5

v0.5.4

17 Mar 00:23
Compare
Choose a tag to compare

What's Changed

  • Fix new timeout callback for keepActiveTocItemInView=true breaking page scrolling by @janosh in #39

Full Changelog: v0.5.3...v0.5.4

v0.5.3

12 Mar 21:03
Compare
Choose a tag to compare

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 by mdsvexamples 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) and var(--toc-ol-padding, 0) ade5425

New Contributors

Full Changelog: v0.5.2...v0.5.3

v0.5.2

13 Jan 00:31
Compare
Choose a tag to compare
  • add many new CSS variables in Toc.svelte badbe2f
  • add vite alias $root to clean up package.json, readme|contributing|changelog.md imports 76427ee
  • add coverage badges to readme 8a24e2b
  • add contributing.md a313e7b
  • add auto changelog d7eaeea

Full Changelog: v0.5.1...v0.5.2

v0.5.1

20 Dec 14:14
Compare
Choose a tag to compare
  • use margin instead transform: translateX for indented ToC items 49d43d7
  • pnpm add -D @vitest/coverage-c8 bab57dc

Full Changelog: v0.5.0...v0.5.1

v0.5.0

04 Dec 04:51
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.5.0

v0.4.1

06 Nov 23:52
Compare
Choose a tag to compare

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 to pnpm 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