Releases: nilbuild/driver.js
Releases · nilbuild/driver.js
Release list
1.8.0
Added
- Hints: pulsing beacons that open a popover on click; overlay optional, the
page stays interactive.driver.js/hints, ~5KB gzip. Guide.
(#363) advanceOnClick(driver and step level) to advance the tour by clicking the
highlighted element itself.
(#606)waitForElement(driver and step level) to wait up to N ms for a step's
element before treating it as missing.
(#606)sideEffectsfield in package.json for better tree-shaking.
Changed
- Popover internals shared between tours and hints; tour behaviour verified
unchanged against 1.7.0. - Build migrated from vite to tsdown; artifact names, exports map and CDN
globals unchanged, sizes within ±2%.
Fixed
skipMissingElement: the last reachable step now shows Done and runs
onDoneClick; step queries likeisLastStep()account for skips.
(#616)
1.7.0
Added
skipMissingElementoption to skip a step whose target element is missing (#489, #395)indexon the options passed to every hook (#490)--driver-popover-font-familyCSS variable to set the popover font (#607)
Changed
- The popover title and description now render in the default font stack. Set
--driver-popover-font-familyto use your own.
Fixed
1.6.0
Added
animationDurationconfig to control how long the highlight transition takes. (#104)allowScrollconfig to lock body scroll while a tour is active.onDoneClickhook, fired when the done button on the final step is clicked. (#500)dataproperty on a step for passing arbitrary data, accessible from hooks for custom per-step logic. (#539)
Changed
- Breaking - Custom popover footer buttons no longer get auto styled, style them using
.driver-popover-footer buttonselector (#555) - The popover exposes
driver-popover-side-*anddriver-popover-align-*classes as per the rendered side and alignment #608 - Arrow positioning has been fixed #558 #429 #406
Fixed
- Document event listener leak in
onDriverClickthat left handlers attached after the tour was destroyed. (#452) - Dropped the CSS
:has()selector for broader browser compatibility. (#586) - Positioned highlighted elements and their children (e.g. dropdown menus) no longer get clipped. (#454, #563)
removeChildDOMException when re-rendering a popover whose wrapper was already detached from the DOM. (#572)- Close button on a single-element
highlight()popover did nothing when clicked. It now closes the popover by default, respectingallowCloseand any customonCloseClick. (#444)
1.5.0
- Add done-btn class to next button (closes #610)
- Pass final state to onDestroyed hook (closes #553)
- Keep tour open on arrow-left at step 1 (closes #564)
- Remove button text-shadow ghost text (closes #605)
- Fire onNextClick on overlay nextStep (closes #576)
- Add getNextStep to the driver API (closes #420)
- Remove unicode characters from buttons
1.4.0
1.3.6
- Fix - Buttons not clickable when they have nested elements #560
- Documents the missing options #562
- Fix - Module not found: Default condition should be last one #545
- Fix - Type definition for onPopoverRender #548
- Fix - CSS not importable in CSS files
Thank you @jarikmarwede @SliverYuki and @ervan23 for the contributions 🙏
1.3.4
1.3.2
- Fixes alignment issue in some cases #531
- Improves documentation (Thanks @jarikmarwede #544)
- Exposes
driverinstance in hooks #537 - Allows element to be function type (Thanks @richie-south #463)
- Allows disabling interactions with active element (Thanks @tmsperera #534)
- Allows overlay click to navigate to next step (Thanks @CryUshio #499)