Repository navigation
Releases
Releases · kryptobaseddev/svelte-tourlight
v0.1.5
Install: npm i svelte-tourlight@0.1.5
Changes
- Popovers stay on screen for tall targets. When the spotlighted element is taller than the viewport, neither the top nor the bottom side fits, and the floating popover used to land below the fold with its buttons out of reach. The popover now also shifts on the cross axis (Floating UI
shift({ crossAxis: true })), so it slides over the target and stays inside the viewport. A browser test covers 1024x600 and 1280x800.
No API changes.
v0.1.4
Install: npm i svelte-tourlight@0.1.4
Changes
- License detection.
LICENSEis now the plain MIT text, so GitHub and other tools detect it as MIT. The react-tourlight credit and its license text are unchanged inNOTICE(shipped in the package) and the README. - Focus trap test. A browser test now checks that Tab and Shift+Tab wrap inside the tour dialog.
No API or behaviour changes.
v0.1.3
Install: npm i svelte-tourlight@0.1.3
Fixes (found while integrating into the EscapePlan app)
- The phone sheet no longer covers low targets. The new
sheetPositionoption is'auto'(default),'top'or'bottom'. In auto mode the sheet docks at the top, withsafe-area-inset-toppadding, whenever the target's centre is in the lower 45% of the viewport (a fixed mobile tab bar, for example). With'top', scrollable targets are moved into the lower part of the screen, below the sheet. The tooltip'sdata-sheetattribute is now"top"or"bottom". - The theme attribute is scoped. The overlay and beacons now carry
data-tourlight-themeinstead ofdata-theme, so daisyUI and other[data-theme]theme systems no longer redefine--color-*inside the tour. If you styled.tourlight-root[data-theme=…]yourself, switch to[data-tourlight-theme=…].
Also
scrollIntoViewinsvelte-tourlight/coreacceptsband: [start, end](fractions of the viewport height).- New demos: a
sheetPositionswitch with a fixed tab bar on the phone page, and a daisyUI note on the themes page.
v0.1.2
Install: npm i svelte-tourlight (or pnpm add github:kryptobaseddev/svelte-tourlight#v0.1.2).
New in 0.1.2
basePathoption: step routes stay base-free, and the provider strips the base before matching and adds it tonavigate. Useful for SvelteKitpaths.baseand GitHub Pages. Also exported:stripBasePath,withBasePath.- Live demo and docs: https://kryptobaseddev.github.io/svelte-tourlight/ has one runnable example per feature, with copyable code and a Getting started guide.
- Shorter README with an API overview that links to each demo.
- npm trusted publishing (OIDC with provenance) through
publish.yml.
No breaking changes.
v0.1.1
Release of svelte-tourlight: Svelte 5 product tours, ported from react-tourlight (MIT).
Install from this tag (the package is not on npm yet):
pnpm add github:kryptobaseddev/svelte-tourlight#v0.1.1The tag includes the built dist/, so no build step runs on install.
Changes in 0.1.1
- Unit test files moved out of
src/lib, so the compiled*.spec.jsfiles no longer ship indist/. No API changes.
Features (since 0.1.0)
- Headless core (
svelte-tourlight/core): state machine,waitForElement,resolveTarget, target tracking, evenodd clip-path spotlight, focus trap,setInert, keyboard handler, route matcher, persistence. - Styled player:
SpotlightProvider,SpotlightTour,SpotlightBeacon,SpotlightHighlightanduseSpotlight()(a reactiveTourlightcontroller). - Positioning with
@floating-ui/dom; a bottom-sheet tooltip below 640px. - Light, dark, auto and custom themes through CSS variables.
- Keyboard navigation, ARIA dialog, inert background and live announcements.
- Multi-page tours with
routeandnavigate(SvelteKitgoto), plus pluggable persistence that survives reloads. - Interactive steps with real pointer pass-through and
advanceOn. - Centered steps with no target.
- JSON tour documents (
svelte-tourlight/document), with a JSON Schema (svelte-tourlight/schema.json) and validation. - Analytics through
onEventplus per-tour callbacks; start at step N; reduced motion.
v0.1.0
First release of svelte-tourlight: Svelte 5 product tours, ported from react-tourlight (MIT).
Install from this tag (the package is not on npm yet):
pnpm add github:kryptobaseddev/svelte-tourlight#v0.1.0The tag includes the built dist/, so no build step runs on install.
Features
- Headless core (
svelte-tourlight/core): state machine,waitForElement,resolveTarget, target tracking, evenodd clip-path spotlight, focus trap,setInert, keyboard handler, route matcher, persistence. - Styled player:
SpotlightProvider,SpotlightTour,SpotlightBeacon,SpotlightHighlightanduseSpotlight()(a reactiveTourlightcontroller). - Positioning with
@floating-ui/dom; a bottom-sheet tooltip below 640px. - Light, dark, auto and custom themes through CSS variables.
- Keyboard navigation, ARIA dialog, inert background and live announcements.
- Multi-page tours with
routeandnavigate(SvelteKitgoto), plus pluggable persistence that survives reloads. - Interactive steps with real pointer pass-through and
advanceOn. - Centered steps with no target.
- JSON tour documents (
svelte-tourlight/document), with a JSON Schema (svelte-tourlight/schema.json) and validation. - Analytics through
onEventplus per-tour callbacks; start at step N; reduced motion.