Skip to content

Releases

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 26 Oct 21:31

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

Choose a tag to compare

@github-actions github-actions released this 24 Oct 23:00

Install: npm i svelte-tourlight@0.1.4

Changes

  • License detection. LICENSE is now the plain MIT text, so GitHub and other tools detect it as MIT. The react-tourlight credit and its license text are unchanged in NOTICE (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

Choose a tag to compare

@github-actions github-actions released this 24 Oct 19:57

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 sheetPosition option is 'auto' (default), 'top' or 'bottom'. In auto mode the sheet docks at the top, with safe-area-inset-top padding, 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's data-sheet attribute is now "top" or "bottom".
  • The theme attribute is scoped. The overlay and beacons now carry data-tourlight-theme instead of data-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

  • scrollIntoView in svelte-tourlight/core accepts band: [start, end] (fractions of the viewport height).
  • New demos: a sheetPosition switch with a fixed tab bar on the phone page, and a daisyUI note on the themes page.

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 24 Oct 19:44

Install: npm i svelte-tourlight (or pnpm add github:kryptobaseddev/svelte-tourlight#v0.1.2).

New in 0.1.2

  • basePath option: step routes stay base-free, and the provider strips the base before matching and adds it to navigate. Useful for SvelteKit paths.base and 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

Choose a tag to compare

@github-actions github-actions released this 24 Oct 19:23

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.1

The 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.js files no longer ship in dist/. 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, SpotlightHighlight and useSpotlight() (a reactive Tourlight controller).
  • 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 route and navigate (SvelteKit goto), 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 onEvent plus per-tour callbacks; start at step N; reduced motion.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 06:52

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.0

The 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, SpotlightHighlight and useSpotlight() (a reactive Tourlight controller).
  • 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 route and navigate (SvelteKit goto), 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 onEvent plus per-tour callbacks; start at step N; reduced motion.