Skip to content

Releases: nilbuild/driver.js

1.8.0

Choose a tag to compare

@nilbuild nilbuild released this 17 Jul 22:09

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)
  • sideEffects field 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 like isLastStep() account for skips.
    (#616)

1.7.0

Choose a tag to compare

@nilbuild nilbuild released this 13 Jul 23:13

Added

  • skipMissingElement option to skip a step whose target element is missing (#489, #395)
  • index on the options passed to every hook (#490)
  • --driver-popover-font-family CSS variable to set the popover font (#607)

Changed

  • The popover title and description now render in the default font stack. Set --driver-popover-font-family to use your own.

Fixed

  • Icon fonts placed inside a step description are no longer overridden (#510, #512)
  • Each driver() call keeps its own config, steps and state, (#571)
  • Popover no longer jumps when its content has images that load after render.

1.6.0

Choose a tag to compare

@nilbuild nilbuild released this 25 Jun 16:43

Added

  • animationDuration config to control how long the highlight transition takes. (#104)
  • allowScroll config to lock body scroll while a tour is active.
  • onDoneClick hook, fired when the done button on the final step is clicked. (#500)
  • data property 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 button selector (#555)
  • The popover exposes driver-popover-side-* and driver-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 onDriverClick that 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)
  • removeChild DOMException 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, respecting allowClose and any custom onCloseClick. (#444)

1.5.0

Choose a tag to compare

@nilbuild nilbuild released this 23 Jun 21:03
  • 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

Choose a tag to compare

@nilbuild nilbuild released this 18 Nov 22:25
  • overlayClickBehavior now supports callbacks (Fixes #476, #600)
  • Documents missing configuration option #573

1.3.6

Choose a tag to compare

@nilbuild nilbuild released this 13 May 08:44
  • 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

Choose a tag to compare

@nilbuild nilbuild released this 02 Feb 15:59
  • Fix #431 - Scroll to top for taller elements
  • Fixes issue where CSS is not importable in CSS file using @import

1.3.2

Choose a tag to compare

@nilbuild nilbuild released this 02 Feb 04:32

1.3.1

Choose a tag to compare

@nilbuild nilbuild released this 10 Nov 18:14
  • Add programmatically destroy to api docs #438
  • Add license to package.json #432
  • Fix error in vite config #416

1.3.0

Choose a tag to compare

@nilbuild nilbuild released this 04 Sep 10:43
  • Update vite configuration to support ES2019 #422 #416 (Closes #409 and #410)
  • Popover title to support HTML #415 (Closes #414)
  • Fixes wrong type definition for onPopoverRender configuration
  • Add validation on class name 288c7de
  • Upgrade all the dependencies to latest