46e675e
Thanks @vnphanquang! - specify Svelte peer dependency to include Svelte 5
- #281
8242e63
Thanks @vnphanquang! - add comprehensive type definitions for data attributes
- #270
a49ca6c
Thanks @nicholascostadev! - [BREAKING] using Map for items instead of POJO for better performance and insertion order preservation (#269)
-
#204
52b4677
Thanks @vnphanquang! - Migrated to vanilla JS (tracked at #203) -
#204
52b4677
Thanks @vnphanquang! -DEFAULT_TOC_PARAMETERS
&DEFAULT_TOC_LINK_PARAMETERS
are no longer exxported
- #160
2ab1c3e
Thanks @vnphanquang! - Logic correction to correctly cache & reset operations when toc is used in layout and across page navigation
b2e3f02
Thanks @vnphanquang! - support reactive attribute update for elements usingtoclink
. This fixes issue where toclink is reused (in layouts, for example) across page transitions.
22b3b94
Thanks @vnphanquang! - [BREAKING] move build output fromlib
todist
to stay consistent of new changes from @sveltejs/package@2. Also fixes some api docs issues
- #135
a86347a
Thanks @vnphanquang! - execute toclink operation on mount, and remove rerun on update, resolves #133
227e8dc
Thanks @vnphanquang! - add "Quick Start" section in package README
87d94df
Thanks @vnphanquang! - exposetoclink
parameters types in build output
8d02c83
Thanks @vnphanquang! - add idiomatic support with complementary actiontoclink
for anchor tags that link to toc items (typically those in a table of contents)
-
8d02c83
Thanks @vnphanquang! - undefinedanchor
&observe
should correctly take default options -
80730b4
Thanks @vnphanquang! - refator totoggleAttribute
in favor ofsetAttribute
for markers
07ccc5b
Thanks @vnphanquang! - refactor for better logics organization and only export necessary things at index
2a34159
Thanks @vnphanquang! - set extractedtocId
toelement.id
(bugfix)
-
d04d44e
Thanks @vnphanquang! - deprecate internal svelte store (for tracking active item within action operations, no effect on the user-providedstore
parameter) in favor of simple callback for smaller bundle size -
a8cd5c2
Thanks @vnphanquang! - add docs about lack of dynamic update support -
a8cd5c2
Thanks @vnphanquang! - improve perf by making observe operation async (prioritizetocinit
for initial rendering) -
60c2029
Thanks @vnphanquang! - use as few IntersectionObserver as possible, only create for each new threshold, otherwise reuse -
6058f0c
Thanks @vnphanquang! - add additional export entryinternal
for use within docs
94e3b25
Thanks @vnphanquang! - slice textContent to 100 max length before passing to slugify
- #93
4d379db
Thanks @vnphanquang! - [BREAKING] complete overhaul, drier code with scroll-margin-top and more customizable anchor options
- #93
84b63f8
Thanks @vnphanquang! - Add global ambient typings for data-toc-... attributes
4c2db74
Thanks @vnphanquang! - provide ambient types for custom event on:toc
57c5582
Thanks @vnphanquang! - Avoid manual d.ts typing, let svelte generates component type
35d6ba5
Thanks @vnphanquang! - add svelte REPL badge to top of README
feaf0be
Thanks @vnphanquang! - fix svelte kit migration build step, should use separate svelte-package
cb01113
Thanks @vnphanquang! - bump dependencies' version
edd30a0
Thanks @vnphanquang! - add style tag only if not already added
b5133df
Thanks @vnphanquang! - Better async handling - remove excessive setTimeout
-
6565e46
Thanks @vnphanquang! - .- Fixed broken imports from
Toc.svelte
- Better caching: only return cache when parameters are the same
- Temporarily fix the onMount issue where action doesn't run if page is loaded / navigated to from client side
- Added playground page for
svelte-put/toc
- Fixed broken imports from
b9c2d52
Thanks @vnphanquang! - Introduction ofuse:toc
and<Toc>
component for building table of contents