Commit Graph
115 Commits
Author SHA1 Message Date
Kamran Ahmed d9f20e9342 Replace dts-bundle-generator with vite-plugin-dts
- Generate the bundled dist/driver.js.d.ts during `vite build` via
  vite-plugin-dts (bundleTypes), dropping the separate
  dts-bundle-generator step and its config
- Explicitly re-export the public types (Config, Popover, Side, etc.)
  from the entry so the bundled .d.ts keeps the same export surface;
  api-extractor only exports what the entry exports

Verified: the generated .d.ts has an identical export surface and
semantically identical type bodies to the previous output (12 types).
2026-06-23 10:10:02 +01:00
Kamran Ahmed 7ad2db4756 Add np for interactive releases
- `pnpm release` runs np, which prompts for patch/minor/major, then
  bumps, tags, pushes and publishes
- Runs the non-watch `test:run` script before publishing
- prepublishOnly builds dist so publishes are never stale
- .npmrc sets an empty tag-version-prefix to keep tags like 1.4.0 (no "v")
2026-06-23 09:48:04 +01:00
Kamran Ahmed 7d6de08569 Add a jsdom test suite for the public API
Replaces the placeholder test with focused, maintainable suites that
encode the documented API behaviour as a regression net for the
upcoming API migration:

- lifecycle: activate/highlight/destroy, active element, modal popovers
- navigation: drive, moveNext/movePrevious/moveTo, first/last, getters
- popover: buttons, progress text, custom class, onPopoverRender
- interactions: next/prev/close clicks and onNextClick/onPrevClick overrides
- keyboard: escape + arrow keys, allowClose/allowKeyboardControl
- hooks: onHighlightStarted/onHighlighted/onDeselected/onDestroyed
- config: getConfig/setConfig/setSteps/getState/refresh

Shared setup lives in tests/utils.ts. Also add test:run and
test:coverage scripts.
2026-06-23 09:48:04 +01:00
Kamran Ahmed 6d3863642b Modernize tooling and add an Astro examples playground
Library:
- Update all dev dependencies to latest (vite 4->8, vitest 0.34->4,
  typescript 5.2->6, @types/node 26, dts-bundle-generator 9, prettier 3.8)
- Replace deprecated @vitest/coverage-c8 with @vitest/coverage-v8
- Drop unused ts-node; add jsdom and a jsdom test environment
- ESM vite config, modern tsconfig (ES2020, Bundler resolution),
  Rollup 4 asset-name handling so the CSS still emits as driver.css

Playground:
- Replace the 1,165-line index.html with playground/, a self-contained
  Astro app that imports the library from source with HMR
- Each scenario is its own file under playground/src/examples grouped into
  Highlight / Popover & Buttons / Tour / API, listed in a sidebar and run
  on its own page; shared demo markup lives in Stage.astro
- All 41 original scenarios ported and type-checked against the library types
- Wire `pnpm dev` to the playground; document local development in the readme
2026-06-23 09:48:04 +01:00
Kamran Ahmed 061fb774fb Bump version 1.4.0 2025-11-18 22:21:52 +00:00
Kamran Ahmed e90b0d7bf0 Bump version 1.3.6 2025-05-13 09:38:12 +01:00
Kamran Ahmed f672f3fe95 Bump version 1.3.5 2025-02-03 17:34:30 +00:00
Ervan Prastyanto 4b9eebe570 Fix: package.json to correct sort default and require (#546) 2025-02-03 17:33:18 +00:00
Kamran Ahmed 6bd64db882 Fix CSS not importable in CSS file 2025-02-02 15:53:50 +00:00
Kamran Ahmed 8996e6aa41 Bump version 1.3.3 2025-02-02 15:42:10 +00:00
Kamran Ahmed 871a2103ab Bump version 1.3.2 2025-02-02 04:24:29 +00:00
Kamran Ahmed e65eaf383e Bump version 1.3.1 2023-11-10 18:12:28 +00:00
Rafael Heard 124a216bee add license to package.json (#432) 2023-09-27 21:35:52 +01:00
Kamran Ahmed d9dddec4d7 Upgrade dependencies 2023-09-04 11:21:47 +01:00
Kamran Ahmed 494e4503ba Bump version 1.3.0 2023-09-04 11:15:51 +01:00
Kamran Ahmed a952b08220 Bump version 1.2.1 2023-08-04 04:03:21 +01:00
Kamran Ahmed aef795e334 Bump version 1.2.0 2023-08-04 02:03:02 +01:00
ntnyq e986f9cc70 Add types exports path 2023-08-04 01:25:17 +01:00
Kamran Ahmed 529f19abbe Fixes #391 allowKeyboardControl option not working 2023-08-04 01:22:11 +01:00
Kamran Ahmed f3d28fac7f Bump version 1.1.0 2023-07-24 00:36:29 +01:00
Kamran Ahmed a8f769969c Bump version 1.0.5 2023-07-17 19:55:28 +01:00
Kamran Ahmed de338586e6 Add a way to configure steps 2023-07-06 08:27:31 +01:00
Kamran Ahmed 42aa4bee6a Rename onPopoverRendered to onPopoverRender 2023-07-05 14:20:06 +01:00
Kamran Ahmed 57bb1d0a1b Add keywords 2023-07-05 14:02:39 +01:00
Kamran Ahmed 1f0a0bb563 Add web and repo URLs to package.json 2023-07-05 14:00:09 +01:00
Kamran Ahmed e545e81990 Bump version 1.0.0 2023-07-05 12:59:02 +01:00
Kamran Ahmed 67d6fc897c 1.1.11-next.0 2023-07-03 14:23:00 +01:00
Kamran Ahmed 4368b97196 1.1.10-next.0 2023-07-03 03:34:38 +01:00
Kamran Ahmed f46ed15d42 1.1.9-next.0 2023-07-03 03:24:06 +01:00
Kamran Ahmed 3ddddd98e0 1.1.8-next.0 2023-07-03 02:20:27 +01:00
Kamran Ahmed 11f4e8d24d 1.1.7-next.0 2023-07-03 02:13:48 +01:00
Kamran Ahmed b17be9346e 1.1.6-next.0 2023-07-01 17:46:41 +01:00
Kamran Ahmed 76d4a2e060 1.1.5-next.0 2023-06-26 02:44:54 +01:00
Kamran Ahmed 194c4d47fc 1.1.4-next.0 2023-06-26 02:40:59 +01:00
Kamran Ahmed cbc2d83c0d 1.1.3-next.0 2023-06-26 02:32:18 +01:00
Kamran Ahmed d538d71e58 Rename CSS file to have same name 2023-06-26 02:32:11 +01:00
Kamran Ahmed 464f70bc57 1.1.2-next.0 2023-06-26 02:21:54 +01:00
Kamran Ahmed acbae00f95 Fix type definitions not found 2023-06-26 02:21:37 +01:00
Kamran Ahmed e9333a24cc 1.1.1-next.0 2023-06-26 01:58:53 +01:00
Kamran Ahmed 5da915b0e1 1.1.0-next.0 2023-06-26 01:41:55 +01:00
Kamran Ahmed c73f86bf78 Add basic home setup 2023-06-24 22:22:03 +01:00
Kamran Ahmed 6cadce0285 Bump version 1.0.0-next.0 2023-06-24 01:50:34 +01:00
Kamran Ahmed 8869f63387 Run prettier 2023-06-24 01:41:15 +01:00
Kamran Ahmed edd7dca2df Refactor stage padding and radius 2023-06-11 02:49:32 +01:00
Kamran Ahmed a65a41ec0a Update package name 2023-05-15 12:26:49 +01:00
Kamran Ahmed 68ab4bd247 Remove linting 2023-05-15 11:59:14 +01:00
Kamran Ahmed aa3b624a52 Add basic highlight functionality 2023-05-08 00:26:47 +01:00
Teo Dragovic 24403cf99b Resolve merge conflicts 2020-03-20 01:02:58 +04:00
Kamran Ahmed bfb119ea5b Rebuild 0.9.8 2019-09-30 11:50:45 +04:00
Kamran Ahmed 49f9e85157 Update dependencies 2019-06-14 17:02:05 +04:00