Releases: nilbuild/driver.js
Releases · nilbuild/driver.js
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)