Commit Graph
624 Commits
Author SHA1 Message Date
Frederic Bahr 4d9de02a5d feat: add 'data' property to DriveStep for custom logic support
Before it was not possible to pass custom data to the `DriveStep` interface.
This limits the possiblities within a hook to execute custom logic based on the current step.

Fixes #539
2026-06-25 11:29:46 +01:00
Kamran Ahmed 46371576c0 Add changelog page and refine docs styling 2026-06-25 02:55:46 +01:00
Kamran Ahmed e1b00394ed Style footer buttons via class so custom buttons can opt out 2026-06-25 02:55:41 +01:00
Kamran Ahmed abc923b7fb Make docs depend on unversioned package 2026-06-25 02:13:12 +01:00
Kamran Ahmed 4062ddf79b Fix document event listener leak in onDriverClick (#452) 2026-06-24 21:20:40 +01:00
Kamran Ahmed 431c0367b7 Add allowScroll config to lock body scroll during tour 2026-06-24 12:30:08 +01:00
Kamran Ahmed bb2dbff280 Fix black borders in mobile docs header 2026-06-24 12:12:45 +01:00
Kamran Ahmed 43041de9e1 Add configurable animation duration 2026-06-24 12:12:45 +01:00
Md Yeasin 343573c5b7 Fix stale copyright year in docs (#582) 2026-06-24 10:52:42 +01:00
Kamran Ahmed b5105a9225 Get rid of :has selector (closes #586) 2026-06-24 09:01:00 +01:00
Kamran Ahmed f7b7760506 Fix issue with progress test merge 2026-06-24 02:37:38 +01:00
Kamran Ahmed 407c131c10 Add missing lifecycle tests 2026-06-24 02:35:24 +01:00
Kamran Ahmed 67b7450869 Update github link in package.json 2026-06-24 02:18:28 +01:00
Kamran Ahmed f321230f9c Remove broken gif from the demo 2026-06-24 02:17:37 +01:00
Kamran Ahmed 614fc7e430 Document popover side/align and add arrow playground examples
- Clarify the side/align options and their defaults in the docs
- Give each popover-position example a unique id
- Add an "Arrow Positioning" playground group covering the edge cases
2026-06-24 02:16:35 +01:00
Kamran Ahmed e2e5dc0f3d Rewrite popover arrow positioning
Position the arrow with a continuous inline offset that points at the
element's center, replacing the three fixed start/center/end CSS slots so
it stays accurate when the element and popover differ in size.

- Aim at the center of the element/popover overlap, and fall back to the
  configured align only when the element spans the whole popover edge
- Flip the arrow to the perpendicular edge when the element scrolls clear
  of the popover, so it keeps pointing at the element instead of a corner
- Move positioning into src/position.ts with pure, unit-tested helpers
- Default popover side is now bottom instead of left
- Drop the internal "over" value from the public Side type
2026-06-24 02:16:29 +01:00
Kamran Ahmed a8fcd260af Add support onDoneClick 2026-06-24 01:03:47 +01:00
Kamran Ahmed fb5c1bf90b Document theming classes for popover 2026-06-24 00:11:15 +01:00
Kamran Ahmed d52bc2d44e Assign popover align/side classes to popover 2026-06-24 00:01:51 +01:00
Kamran Ahmed 310ddf9084 Bump version 1.5.0 2026-06-23 22:01:05 +01:00
Kamran Ahmed 52623adf60 Remove unicode characters from buttons 2026-06-23 21:52:50 +01:00
Kamran Ahmed 275b4428c0 Add getNextStep to the driver API (closes #420) 2026-06-23 21:48:29 +01:00
Kamran Ahmed c3847ccf84 Fire onNextClick on overlay nextStep (closes #576) 2026-06-23 21:48:29 +01:00
Kamran Ahmed 0476a5b43d Remove button text-shadow ghost text (closes #605) 2026-06-23 21:48:29 +01:00
Kamran Ahmed 5af1a5418d Keep tour open on arrow-left at step 1 (closes #564) 2026-06-23 21:48:29 +01:00
Kamran Ahmed 158711f2f6 Pass final state to onDestroyed hook (closes #553) 2026-06-23 21:48:29 +01:00
Kamran Ahmed 7826aa98d0 Add done-btn class to next button (closes #610) 2026-06-23 21:48:29 +01:00
Kamran Ahmed 6af2229e8d Add SEO meta, OG image, sitemap and robots to docs 2026-06-23 13:48:29 +01:00
Kamran Ahmed 9b6b5e4fd2 Use the JS markdown processor in docs (Astro 7) 2026-06-23 13:48:29 +01:00
Kamran Ahmed f2937ea3ee Fix home page examples not firing 2026-06-23 13:48:29 +01:00
Kamran Ahmed bf461234b8 Validate the package on publish/CI; fix dual-format types 2026-06-23 13:48:29 +01:00
Kamran Ahmed 28e0d7cf10 Fix docs deploy (Node 22) and the feature marquee 2026-06-23 13:48:29 +01:00
Kamran Ahmed 498be73ba3 Modernize build and docs tooling 2026-06-23 13:48:29 +01:00
Kamran Ahmed 61c33f7a41 Add np for interactive releases 2026-06-23 09:48:04 +01:00
Kamran Ahmed 3be3cb8203 Remove release workflow 2026-06-23 09:48:04 +01:00
Kamran Ahmed 65fc79abd1 Add release workflow to publish on tag push 2026-06-23 09:48:04 +01:00
Kamran Ahmed 92a1dce2f4 Add CI workflow to build and test on PRs 2026-06-23 09:48:04 +01:00
Kamran Ahmed 4fd1a55297 Add a jsdom test suite for the public API 2026-06-23 09:48:04 +01:00
Kamran Ahmed 664af5330d Style the playground with Tailwind CSS 2026-06-23 09:48:04 +01:00
Kamran Ahmed c324835cc8 Modernize tooling and add an Astro examples playground 2026-06-23 09:48:04 +01:00
André Goulart Nogueira 4e4d07d481 Fix typo in button guide documentation (#594)
`onPreviousClick` is not a valid callback. The correct syntax is `onPrevClick`.
2026-02-27 11:36:55 +00:00
Kamran Ahmed 061fb774fb Bump version 1.4.0 1.4.0 2025-11-18 22:21:52 +00:00
Kamran Ahmed df376f58e2 Adds support for overlayClickBehavior (#600)
* Add overlay click behavior

* Add overlay click behavior
2025-11-18 22:17:00 +00:00
Vadim KonungandJarik Marwede e5baef1274 update: Adds a missing type option in the guide for the configuration (#573)
* Update `element` type

This change adds a missing type option to `element` property in the configuration to accept a function that returns an Element.

* adds mention in the comment for the type

* Update docs/src/content/guides/configuration.mdx

Co-authored-by: Jarik Marwede <account@jarikmarwede.com>

---------

Co-authored-by: Jarik Marwede <account@jarikmarwede.com>
2025-07-11 12:56:56 +01:00
Kamran Ahmed 2c19cd0fca fix: grammar on readme 2025-07-09 13:28:16 +01:00
Kamran Ahmed e90b0d7bf0 Bump version 1.3.6 1.3.6 2025-05-13 09:38:12 +01:00
Jarik Marwede c1123f9f16 Fix children of driver buttons not triggering click events (#560)
* Fix children of driver buttons not triggering click events

* Replace custom function with Element.closest()
2025-05-13 09:36:36 +01:00
6aea0113d8 Add missing option (#562)
* Update configuration.mdx

Adding instructions for the overlayClickBehavior configuration option.

* Update docs/src/content/guides/configuration.mdx

Co-authored-by: Jarik Marwede <account@jarikmarwede.com>

* Update docs/src/content/guides/configuration.mdx

Co-authored-by: Jarik Marwede <account@jarikmarwede.com>

---------

Co-authored-by: Jarik Marwede <account@jarikmarwede.com>
Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
2025-04-11 14:35:59 +01:00
Kamran Ahmed 1a36d65f98 Add jsdelivr stats 2025-02-06 13:17:14 +00:00
Kamran Ahmed f672f3fe95 Bump version 1.3.5 1.3.5 2025-02-03 17:34:30 +00:00