Skip to content

Commit

Permalink
v0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jan 22, 2024
1 parent fc8806d commit ccd6407
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### [v0.5.7](https://github.com/janosh/svelte-toc/compare/v0.5.6...v0.5.7)

> 22 January 2024
- Replace hacky `window.setTimeout(50)` callback with `scrollend` event to `keepActiveTocItemInView` [`#53`](https://github.com/janosh/svelte-toc/pull/53)
- `package.json` add `"types": "./dist/index.d.ts"` and default `--toc-overflow to auto` [`#49`](https://github.com/janosh/svelte-toc/pull/49)
- expose Toc aside and nav HTMLElements for external access [`fc8806d`](https://github.com/janosh/svelte-toc/commit/fc8806dd53b68cf972e8a07fa5600c6152560693)

#### [v0.5.6](https://github.com/janosh/svelte-toc/compare/v0.5.5...v0.5.6)

> 10 September 2023
> 12 September 2023
- Add prop `blurParams: BlurParams | null = { duration: 200 }` [`#47`](https://github.com/janosh/svelte-toc/pull/47)
- Copy buttons [`#43`](https://github.com/janosh/svelte-toc/pull/43)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://janosh.github.io/svelte-toc",
"repository": "https://github.com/janosh/svelte-toc",
"license": "MIT",
"version": "0.5.6",
"version": "0.5.7",
"type": "module",
"svelte": "./dist/index.js",
"bugs": "https://github.com/janosh/svelte-toc/issues",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Full list of props and bindable variables for this component (all of them option
The DOM node of the outer-most `aside` element. This is the element that gets the `toc` class. Cannot be passed in as a prop, only for external access!

1. ```ts
blurParams: BlurParams | null = { duration: 200 }
blurParams: BlurParams | undefined = { duration: 200 }
```

Parameters to pass to `transition:blur` from `svelte/transition`. Set to `null` or `{ duration: 0 }` to disable blurring.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Toc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
export let titleTag: string = `h2`
export let tocItems: HTMLLIElement[] = []
export let warnOnEmpty: boolean = true
export let blurParams: BlurParams | null = { duration: 200 }
export let blurParams: BlurParams | undefined = { duration: 200 }
let window_width: number
Expand Down

0 comments on commit ccd6407

Please sign in to comment.