@tour-kit/hints 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/index.cjs +3 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @tour-kit/hints
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ### @tour-kit/react
|
|
8
|
+
|
|
9
|
+
- Fix `Tour` component to properly render children content alongside tour steps
|
|
10
|
+
- Add `TourCard`, `TourOverlay`, and navigation components with Floating UI positioning
|
|
11
|
+
- Add primitive components: `TourPortal`, `TourArrow`
|
|
12
|
+
|
|
13
|
+
### @tour-kit/core
|
|
14
|
+
|
|
15
|
+
- Export hooks and utilities for tour state management
|
|
16
|
+
- Add focus trap, keyboard navigation, and spotlight hooks
|
|
17
|
+
|
|
18
|
+
### @tour-kit/hints
|
|
19
|
+
|
|
20
|
+
- Initial hints package setup
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @tour-kit/core@0.3.0
|
|
26
|
+
|
|
27
|
+
## 0.2.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- Add tour hooks and utility functions
|
|
32
|
+
|
|
33
|
+
### New Hooks
|
|
34
|
+
|
|
35
|
+
- `useTour` - Main tour control hook with state and actions
|
|
36
|
+
- `useStep` - Individual step management hook
|
|
37
|
+
- `useSpotlight` - Spotlight overlay positioning and styling
|
|
38
|
+
- `useKeyboardNavigation` - Keyboard navigation (arrow keys, Escape)
|
|
39
|
+
- `useFocusTrap` - Focus trap for accessibility compliance
|
|
40
|
+
- `usePersistence` - Tour state persistence (localStorage/sessionStorage/cookies)
|
|
41
|
+
- `useElementPosition` - Track element position with ResizeObserver
|
|
42
|
+
- `useMediaQuery` / `usePrefersReducedMotion` - Media query hooks
|
|
43
|
+
|
|
44
|
+
### New Utilities
|
|
45
|
+
|
|
46
|
+
- DOM utilities: `waitForElement`, `isElementVisible`, `getScrollParent`
|
|
47
|
+
- Position utilities: `calculatePosition`, `getOptimalPlacement`
|
|
48
|
+
- Scroll utilities: `scrollIntoView`, `getScrollOffset`
|
|
49
|
+
- Storage utilities: `createStorageAdapter`, `createPrefixedStorage`
|
|
50
|
+
- Accessibility utilities: `generateId`, `announceToScreenReader`, `trapFocus`
|
|
51
|
+
- Factory functions: `createTour`, `createStep`
|
|
52
|
+
|
|
53
|
+
### Context Providers
|
|
54
|
+
|
|
55
|
+
- `TourProvider` - Main tour state management with reducer
|
|
56
|
+
- `TourKitProvider` - Configuration wrapper with merged configs
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- @tour-kit/core@0.2.0
|
|
62
|
+
|
|
3
63
|
## 0.1.0
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
6
|
var __copyProps = (to, from, except, desc) => {
|
|
11
7
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
8
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,23 +11,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
11
|
}
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
16
|
|
|
20
17
|
// src/index.ts
|
|
21
18
|
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
VERSION: () => VERSION,
|
|
24
|
-
hello: () => hello2,
|
|
25
|
-
helloCore: () => import_core.hello
|
|
26
|
-
});
|
|
27
19
|
module.exports = __toCommonJS(index_exports);
|
|
28
|
-
|
|
29
|
-
var VERSION = "0.0.1";
|
|
30
|
-
var hello2 = () => "Hello from @tour-kit/hints!";
|
|
20
|
+
__reExport(index_exports, require("@tour-kit/core"), module.exports);
|
|
31
21
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
22
|
0 && (module.exports = {
|
|
33
|
-
|
|
34
|
-
hello,
|
|
35
|
-
helloCore
|
|
23
|
+
...require("@tour-kit/core")
|
|
36
24
|
});
|
|
37
25
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Re-export types from core\nexport * from '@tour-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,0BAAc,2BADd;","names":[]}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
|
|
3
|
-
var VERSION = "0.0.1";
|
|
4
|
-
var hello2 = () => "Hello from @tour-kit/hints!";
|
|
5
|
-
export {
|
|
6
|
-
VERSION,
|
|
7
|
-
hello2 as hello,
|
|
8
|
-
hello as helloCore
|
|
9
|
-
};
|
|
2
|
+
export * from "@tour-kit/core";
|
|
10
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Re-export types from core\nexport * from '@tour-kit/core'\n"],"mappings":";AACA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tour-kit/hints",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Headless onboarding and product tour library for React - Hints package",
|
|
5
5
|
"author": "Tour Kit Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@tour-kit/core": "0.
|
|
56
|
+
"@tour-kit/core": "0.3.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"react": "
|
|
60
|
-
"react-dom": "
|
|
59
|
+
"react": "^18.0.0 || >=19.2.0",
|
|
60
|
+
"react-dom": "^18.0.0 || >=19.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/react": "^19.2.0",
|