@pgy-eu/react-native-tour-guide 0.0.0-stage → 2.0.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/LICENSE +20 -0
- package/README.md +993 -2
- package/lib/commonjs/SpotlightOverlay.js +712 -0
- package/lib/commonjs/SpotlightOverlay.js.map +1 -0
- package/lib/commonjs/Tooltip.js +593 -0
- package/lib/commonjs/Tooltip.js.map +1 -0
- package/lib/commonjs/TourGuideContext.js +535 -0
- package/lib/commonjs/TourGuideContext.js.map +1 -0
- package/lib/commonjs/TourGuideOverlay.js +1173 -0
- package/lib/commonjs/TourGuideOverlay.js.map +1 -0
- package/lib/commonjs/TourTarget.js +80 -0
- package/lib/commonjs/TourTarget.js.map +1 -0
- package/lib/commonjs/accessibility.js +49 -0
- package/lib/commonjs/accessibility.js.map +1 -0
- package/lib/commonjs/dev.js +48 -0
- package/lib/commonjs/dev.js.map +1 -0
- package/lib/commonjs/events.js +56 -0
- package/lib/commonjs/events.js.map +1 -0
- package/lib/commonjs/index.js +169 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/shapes.js +158 -0
- package/lib/commonjs/shapes.js.map +1 -0
- package/lib/commonjs/storage.js +116 -0
- package/lib/commonjs/storage.js.map +1 -0
- package/lib/commonjs/themes.js +86 -0
- package/lib/commonjs/themes.js.map +1 -0
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/useTourPersistence.js +135 -0
- package/lib/commonjs/useTourPersistence.js.map +1 -0
- package/lib/commonjs/useTourScroll.js +46 -0
- package/lib/commonjs/useTourScroll.js.map +1 -0
- package/lib/commonjs/utils.js +372 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/commonjs/validation.js +143 -0
- package/lib/commonjs/validation.js.map +1 -0
- package/lib/module/SpotlightOverlay.js +707 -0
- package/lib/module/SpotlightOverlay.js.map +1 -0
- package/lib/module/Tooltip.js +588 -0
- package/lib/module/Tooltip.js.map +1 -0
- package/lib/module/TourGuideContext.js +529 -0
- package/lib/module/TourGuideContext.js.map +1 -0
- package/lib/module/TourGuideOverlay.js +1167 -0
- package/lib/module/TourGuideOverlay.js.map +1 -0
- package/lib/module/TourTarget.js +74 -0
- package/lib/module/TourTarget.js.map +1 -0
- package/lib/module/accessibility.js +43 -0
- package/lib/module/accessibility.js.map +1 -0
- package/lib/module/dev.js +40 -0
- package/lib/module/dev.js.map +1 -0
- package/lib/module/events.js +51 -0
- package/lib/module/events.js.map +1 -0
- package/lib/module/index.js +25 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/shapes.js +152 -0
- package/lib/module/shapes.js.map +1 -0
- package/lib/module/storage.js +111 -0
- package/lib/module/storage.js.map +1 -0
- package/lib/module/themes.js +81 -0
- package/lib/module/themes.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/useTourPersistence.js +130 -0
- package/lib/module/useTourPersistence.js.map +1 -0
- package/lib/module/useTourScroll.js +41 -0
- package/lib/module/useTourScroll.js.map +1 -0
- package/lib/module/utils.js +361 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/module/validation.js +138 -0
- package/lib/module/validation.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/SpotlightOverlay.d.ts +46 -0
- package/lib/typescript/commonjs/src/SpotlightOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Tooltip.d.ts +9 -0
- package/lib/typescript/commonjs/src/Tooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TourGuideContext.d.ts +46 -0
- package/lib/typescript/commonjs/src/TourGuideContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TourGuideOverlay.d.ts +22 -0
- package/lib/typescript/commonjs/src/TourGuideOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TourTarget.d.ts +36 -0
- package/lib/typescript/commonjs/src/TourTarget.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/accessibility.d.ts +22 -0
- package/lib/typescript/commonjs/src/accessibility.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/dev.d.ts +22 -0
- package/lib/typescript/commonjs/src/dev.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/events.d.ts +57 -0
- package/lib/typescript/commonjs/src/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shapes.d.ts +50 -0
- package/lib/typescript/commonjs/src/shapes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/storage.d.ts +15 -0
- package/lib/typescript/commonjs/src/storage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/themes.d.ts +10 -0
- package/lib/typescript/commonjs/src/themes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types.d.ts +599 -0
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useTourPersistence.d.ts +63 -0
- package/lib/typescript/commonjs/src/useTourPersistence.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useTourScroll.d.ts +36 -0
- package/lib/typescript/commonjs/src/useTourScroll.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils.d.ts +97 -0
- package/lib/typescript/commonjs/src/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/validation.d.ts +11 -0
- package/lib/typescript/commonjs/src/validation.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/SpotlightOverlay.d.ts +46 -0
- package/lib/typescript/module/src/SpotlightOverlay.d.ts.map +1 -0
- package/lib/typescript/module/src/Tooltip.d.ts +9 -0
- package/lib/typescript/module/src/Tooltip.d.ts.map +1 -0
- package/lib/typescript/module/src/TourGuideContext.d.ts +46 -0
- package/lib/typescript/module/src/TourGuideContext.d.ts.map +1 -0
- package/lib/typescript/module/src/TourGuideOverlay.d.ts +22 -0
- package/lib/typescript/module/src/TourGuideOverlay.d.ts.map +1 -0
- package/lib/typescript/module/src/TourTarget.d.ts +36 -0
- package/lib/typescript/module/src/TourTarget.d.ts.map +1 -0
- package/lib/typescript/module/src/accessibility.d.ts +22 -0
- package/lib/typescript/module/src/accessibility.d.ts.map +1 -0
- package/lib/typescript/module/src/dev.d.ts +22 -0
- package/lib/typescript/module/src/dev.d.ts.map +1 -0
- package/lib/typescript/module/src/events.d.ts +57 -0
- package/lib/typescript/module/src/events.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +21 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shapes.d.ts +50 -0
- package/lib/typescript/module/src/shapes.d.ts.map +1 -0
- package/lib/typescript/module/src/storage.d.ts +15 -0
- package/lib/typescript/module/src/storage.d.ts.map +1 -0
- package/lib/typescript/module/src/themes.d.ts +10 -0
- package/lib/typescript/module/src/themes.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +599 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/lib/typescript/module/src/useTourPersistence.d.ts +63 -0
- package/lib/typescript/module/src/useTourPersistence.d.ts.map +1 -0
- package/lib/typescript/module/src/useTourScroll.d.ts +36 -0
- package/lib/typescript/module/src/useTourScroll.d.ts.map +1 -0
- package/lib/typescript/module/src/utils.d.ts +97 -0
- package/lib/typescript/module/src/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/validation.d.ts +11 -0
- package/lib/typescript/module/src/validation.d.ts.map +1 -0
- package/llms.txt +62 -0
- package/package.json +281 -4
- package/src/SpotlightOverlay.tsx +742 -0
- package/src/Tooltip.tsx +638 -0
- package/src/TourGuideContext.tsx +644 -0
- package/src/TourGuideOverlay.tsx +1382 -0
- package/src/TourTarget.tsx +74 -0
- package/src/accessibility.ts +60 -0
- package/src/dev.ts +39 -0
- package/src/events.ts +76 -0
- package/src/index.tsx +64 -0
- package/src/shapes.ts +184 -0
- package/src/storage.ts +114 -0
- package/src/themes.ts +83 -0
- package/src/types.ts +648 -0
- package/src/useTourPersistence.ts +147 -0
- package/src/useTourScroll.ts +60 -0
- package/src/utils.ts +401 -0
- package/src/validation.ts +248 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { isDev, warn } from "./dev.js";
|
|
4
|
+
const VALID_POSITIONS = ['top', 'bottom', 'left', 'right', 'auto'];
|
|
5
|
+
const VALID_MOTIONS = ['morph', 'bounce', 'fade', 'none'];
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Does this value look like a React ref object (`{ current: ... }`)?
|
|
9
|
+
* Callback refs and bare component instances are the two things people pass by
|
|
10
|
+
* mistake, and both fail silently at measure time — so we detect them up front.
|
|
11
|
+
*/
|
|
12
|
+
const looksLikeRef = value => typeof value === 'object' && value !== null && 'current' in value;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Validate tour steps and config in development and report actionable warnings.
|
|
16
|
+
*
|
|
17
|
+
* Every check here corresponds to a mistake that otherwise fails *silently* at
|
|
18
|
+
* runtime — the tour simply does nothing, or shows a centered tooltip with no
|
|
19
|
+
* explanation — which is the hardest class of bug to diagnose from the outside.
|
|
20
|
+
* Runs only in dev; it is a no-op in production builds.
|
|
21
|
+
*/
|
|
22
|
+
export const validateTour = (steps, config) => {
|
|
23
|
+
if (!isDev()) return;
|
|
24
|
+
if (!Array.isArray(steps)) {
|
|
25
|
+
warn(`startTour() was called with ${typeof steps} instead of an array of steps.`, 'Pass an array: startTour([{ id, title, description }]).');
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (steps.length === 0) {
|
|
29
|
+
warn('startTour() was called with an empty steps array, so there is nothing to show.', 'Pass at least one step, and build the array before calling startTour().');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const seenIds = new Set();
|
|
33
|
+
steps.forEach((step, index) => {
|
|
34
|
+
const where = `Step ${index}${step?.id ? ` ("${step.id}")` : ''}`;
|
|
35
|
+
if (!step || typeof step !== 'object') {
|
|
36
|
+
warn(`${where} is not an object.`, 'Each step must be an object with id, title and description.');
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// --- id ---
|
|
41
|
+
if (!step.id) {
|
|
42
|
+
warn(`${where} has no "id".`, 'Give every step a unique string id — it is used for React keys and warnings.');
|
|
43
|
+
} else if (seenIds.has(step.id)) {
|
|
44
|
+
warn(`${where} reuses the id "${step.id}", which is already used by an earlier step.`, 'Make every step id unique so steps can be told apart.');
|
|
45
|
+
} else {
|
|
46
|
+
seenIds.add(step.id);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// --- content ---
|
|
50
|
+
if (typeof step.title !== 'string' || step.title.length === 0) {
|
|
51
|
+
warn(`${where} has no "title".`, 'Provide a non-empty title string; it is the tooltip heading.');
|
|
52
|
+
}
|
|
53
|
+
if (typeof step.description !== 'string' || step.description.length === 0) {
|
|
54
|
+
warn(`${where} has no "description".`, 'Provide a non-empty description string; it is the tooltip body.');
|
|
55
|
+
}
|
|
56
|
+
if (step.targetRegion !== undefined) {
|
|
57
|
+
const r = step.targetRegion;
|
|
58
|
+
if (typeof r !== 'object' || r === null || [r.x, r.y, r.width, r.height].some(v => typeof v !== 'number' || Number.isNaN(v)) || r.width <= 0 || r.height <= 0) {
|
|
59
|
+
warn(`${where} has an invalid targetRegion — it needs numeric x, y and positive width/height in window px.`, 'Example: targetRegion: { x: 24, y: 120, width: 200, height: 80 }.');
|
|
60
|
+
}
|
|
61
|
+
if (step.targetRef !== undefined || step.targetId !== undefined) {
|
|
62
|
+
warn(`${where} sets targetRegion together with targetRef/targetId — targetRegion wins and the others are ignored.`, 'Use one targeting method per step.');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (step.motion !== undefined && !VALID_MOTIONS.includes(step.motion)) {
|
|
66
|
+
warn(`${where} has motion "${step.motion}", which is not valid.`, `Use one of: ${VALID_MOTIONS.join(', ')}.`);
|
|
67
|
+
}
|
|
68
|
+
if (step.targetRef !== undefined && step.targetId !== undefined) {
|
|
69
|
+
warn(`${where} sets both targetRef and targetId — targetRef wins and targetId is ignored.`, 'Use one or the other.');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// --- targetRef: the single most common wiring mistake ---
|
|
73
|
+
if (step.targetRef !== undefined && !looksLikeRef(step.targetRef)) {
|
|
74
|
+
warn(`${where} has a "targetRef" that is not a ref object (received ${typeof step.targetRef}).`, 'Pass the ref itself, not its value: targetRef={myRef} where const myRef = useRef(null). Callback refs are not supported.');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// --- tooltipPosition ---
|
|
78
|
+
if (step.tooltipPosition !== undefined && !VALID_POSITIONS.includes(step.tooltipPosition)) {
|
|
79
|
+
warn(`${where} has tooltipPosition "${step.tooltipPosition}", which is not valid.`, `Use one of: ${VALID_POSITIONS.join(', ')}.`);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// --- numeric options ---
|
|
83
|
+
if (step.spotlightPadding !== undefined) {
|
|
84
|
+
const pads = typeof step.spotlightPadding === 'number' ? [step.spotlightPadding] : Object.values(step.spotlightPadding);
|
|
85
|
+
if (pads.some(v => typeof v === 'number' && v < 0)) {
|
|
86
|
+
warn(`${where} has a negative spotlightPadding, which shrinks the spotlight below the target.`, 'Use values >= 0.');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (step.autoAdvance !== undefined && step.autoAdvance > 0 && step.autoAdvance < 500) {
|
|
90
|
+
warn(`${where} sets autoAdvance to ${step.autoAdvance}ms, which is too fast to read.`, 'Use at least 500ms, or 0 to disable auto-advance.');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// --- per-step scroll config ---
|
|
94
|
+
const stepScroll = step.scrollToTarget;
|
|
95
|
+
if (stepScroll && !looksLikeRef(stepScroll.scrollRef)) {
|
|
96
|
+
warn(`${where} has scrollToTarget.scrollRef that is not a ref object.`, 'Pass the ScrollView/FlatList ref itself: scrollRef={scrollViewRef}.');
|
|
97
|
+
}
|
|
98
|
+
if (stepScroll?.getCurrentScrollOffset !== undefined && typeof stepScroll.getCurrentScrollOffset !== 'function') {
|
|
99
|
+
warn(`${where} has scrollToTarget.getCurrentScrollOffset that is not a function.`, 'Pass a getter function: getCurrentScrollOffset: () => scrollY.');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// --- hiding every control on a step traps the user ---
|
|
103
|
+
if (step.hideNextButton && step.hideSkipButton && !step.autoAdvance) {
|
|
104
|
+
warn(`${where} hides both the next and skip buttons with no autoAdvance, leaving no way to continue the tour.`, 'Keep one of them visible, set autoAdvance, or handle advancing yourself via onSpotlightPress / backdropBehavior.');
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
if (steps.some(st => st?.interactive) && config?.overlayMode !== 'inline') {
|
|
108
|
+
warn("A step sets interactive: true but config.overlayMode is not 'inline', so the Modal overlay will swallow the touches anyway.", "Set overlayMode: 'inline' on the tour config to let touches reach the highlighted element.");
|
|
109
|
+
}
|
|
110
|
+
validateConfig(config);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** Validate the tour-level config. Dev only. */
|
|
114
|
+
const validateConfig = config => {
|
|
115
|
+
if (!config) return;
|
|
116
|
+
if (config.scrollRef !== undefined && !looksLikeRef(config.scrollRef)) {
|
|
117
|
+
warn(`config.scrollRef is not a ref object (received ${typeof config.scrollRef}).`, 'Pass the ref itself: scrollRef: scrollViewRef, where const scrollViewRef = useRef(null).');
|
|
118
|
+
}
|
|
119
|
+
if (config.getCurrentScrollOffset !== undefined && typeof config.getCurrentScrollOffset !== 'function') {
|
|
120
|
+
warn('config.getCurrentScrollOffset is not a function.', 'Pass a getter: getCurrentScrollOffset: () => scrollY.');
|
|
121
|
+
}
|
|
122
|
+
if (config.renderTooltip !== undefined && typeof config.renderTooltip !== 'function') {
|
|
123
|
+
warn('config.renderTooltip is not a function.', 'Pass a render function: renderTooltip: (props) => <MyTooltip {...props} />.');
|
|
124
|
+
}
|
|
125
|
+
if (config.animationDuration !== undefined && config.animationDuration < 0) {
|
|
126
|
+
warn('config.animationDuration is negative.', 'Use 0 to disable animation, or a positive duration in ms.');
|
|
127
|
+
}
|
|
128
|
+
if (config.motion !== undefined && !VALID_MOTIONS.includes(config.motion)) {
|
|
129
|
+
warn(`config.motion "${config.motion}" is not valid.`, `Use one of: ${VALID_MOTIONS.join(', ')}.`);
|
|
130
|
+
}
|
|
131
|
+
if (config.spotlightStyles?.maskPath !== undefined && typeof config.spotlightStyles.maskPath !== 'function') {
|
|
132
|
+
warn('config.spotlightStyles.maskPath is not a function.', 'Pass a function returning an SVG subpath: maskPath: ({ bounds }) => `M…Z`.');
|
|
133
|
+
}
|
|
134
|
+
if (config.tooltipWidth !== undefined && config.tooltipWidth <= 0) {
|
|
135
|
+
warn('config.tooltipWidth must be greater than 0.', 'Remove it to use the 320px default.');
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isDev","warn","VALID_POSITIONS","VALID_MOTIONS","looksLikeRef","value","validateTour","steps","config","Array","isArray","length","seenIds","Set","forEach","step","index","where","id","has","add","title","description","targetRegion","undefined","r","x","y","width","height","some","v","Number","isNaN","targetRef","targetId","motion","includes","join","tooltipPosition","spotlightPadding","pads","Object","values","autoAdvance","stepScroll","scrollToTarget","scrollRef","getCurrentScrollOffset","hideNextButton","hideSkipButton","st","interactive","overlayMode","validateConfig","renderTooltip","animationDuration","spotlightStyles","maskPath","tooltipWidth"],"sourceRoot":"../../src","sources":["validation.ts"],"mappings":";;AACA,SAASA,KAAK,EAAEC,IAAI,QAAQ,UAAO;AAEnC,MAAMC,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;AAClE,MAAMC,aAAa,GAAG,CAAC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M,CAACwC,sBAAsB,KAAKxB,SAAS,IAC3C,OAAOhB,MAAM,CAACwC,sBAAsB,KAAK,UAAU,EACnD;IACA/C,IAAI,CACF,kDAAkD,EAClD,uDACF,CAAC;EACH;EAEA,IAAIO,MAAM,CAAC+C,aAAa,KAAK/B,SAAS,IAAI,OAAOhB,MAAM,CAAC+C,aAAa,KAAK,UAAU,EAAE;IACpFtD,IAAI,CACF,yCAAyC,EACzC,6EACF,CAAC;EACH;EAEA,IAAIO,MAAM,CAACgD,iBAAiB,KAAKhC,SAAS,IAAIhB,MAAM,CAACgD,iBAAiB,GAAG,CAAC,EAAE;IAC1EvD,IAAI,CACF,uCAAuC,EACvC,2DACF,CAAC;EACH;EAEA,IAAIO,MAAM,CAAC4B,MAAM,KAAKZ,SAAS,IAAI,CAACrB,aAAa,CAACkC,QAAQ,CAAC7B,MAAM,CAAC4B,MAAM,CAAC,EAAE;IACzEnC,IAAI,CACF,kBAAkBO,MAAM,CAAC4B,MAAM,iBAAiB,EAChD,eAAejC,aAAa,CAACmC,IAAI,CAAC,IAAI,CAAC,GACzC,CAAC;EACH;EAEA,IACE9B,MAAM,CAACiD,eAAe,EAAEC,QAAQ,KAAKlC,SAAS,IAC9C,OAAOhB,MAAM,CAACiD,eAAe,CAACC,QAAQ,KAAK,UAAU,EACrD;IACAzD,IAAI,CACF,oDAAoD,EACpD,4EACF,CAAC;EACH;EAEA,IAAIO,MAAM,CAACmD,YAAY,KAAKnC,SAAS,IAAIhB,MAAM,CAACmD,YAAY,IAAI,CAAC,EAAE;IACjE1D,IAAI,CAAC,6CAA6C,EAAE,qCAAqC,CAAC;EAC5F;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpotlightMotion, SpotlightStyles, SpotlightTarget } from './types';
|
|
3
|
+
import type { SpotlightBorderRadius, SpotlightPadding } from './shapes';
|
|
4
|
+
export interface SpotlightOverlayProps {
|
|
5
|
+
target: SpotlightTarget | null;
|
|
6
|
+
/** Uniform number or per-side padding around the spotlight */
|
|
7
|
+
padding?: SpotlightPadding;
|
|
8
|
+
borderRadius?: SpotlightBorderRadius;
|
|
9
|
+
styles?: SpotlightStyles;
|
|
10
|
+
screenWidth: number;
|
|
11
|
+
screenHeight: number;
|
|
12
|
+
animationDuration?: number;
|
|
13
|
+
onBackdropPress?: () => void;
|
|
14
|
+
onSpotlightPress?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Leave the spotlight hole touch-transparent so the real element underneath
|
|
17
|
+
* receives taps. Only meaningful when the overlay is NOT inside a Modal
|
|
18
|
+
* (inline overlay mode) — a Modal swallows touches regardless.
|
|
19
|
+
*/
|
|
20
|
+
interactive?: boolean;
|
|
21
|
+
/** How the spotlight travels between steps (default: 'morph') */
|
|
22
|
+
motion?: SpotlightMotion;
|
|
23
|
+
/**
|
|
24
|
+
* Keep the (expensive) blur subtree mounted even while the current step has
|
|
25
|
+
* blur disabled, cross-fading its opacity instead of mounting/unmounting at
|
|
26
|
+
* step boundaries — that mount is what caused a visible hitch when moving
|
|
27
|
+
* between blurred and unblurred steps. Set by TourGuideOverlay when any step
|
|
28
|
+
* in the tour enables blur.
|
|
29
|
+
*/
|
|
30
|
+
mountBlurLayer?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Additional cutout subpaths that stay punched out of the backdrop —
|
|
33
|
+
* spotlights kept lit from earlier steps (`step.keepSpotlight`). Purely
|
|
34
|
+
* visual: press bands and the blur mask only consider the current spotlight.
|
|
35
|
+
*/
|
|
36
|
+
keptPaths?: string[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Component that creates a spotlight effect with a dark overlay.
|
|
40
|
+
* Supports smooth animated transitions between targets.
|
|
41
|
+
* The spotlight automatically matches the target's shape via border radius.
|
|
42
|
+
* Optionally supports blur and gradient effects if dependencies are installed.
|
|
43
|
+
*/
|
|
44
|
+
declare const SpotlightOverlay: React.FC<SpotlightOverlayProps>;
|
|
45
|
+
export default SpotlightOverlay;
|
|
46
|
+
//# sourceMappingURL=SpotlightOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpotlightOverlay.d.ts","sourceRoot":"","sources":["../../../../src/SpotlightOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA8DxE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iEAAiE;IACjE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsnBrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TooltipProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip component that displays tour information.
|
|
5
|
+
* Supports automatic positioning and customizable styling.
|
|
6
|
+
*/
|
|
7
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
8
|
+
export default Tooltip;
|
|
9
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAiBrE;;;GAGG;AACH,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAofnC,CAAC;AAgHF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import type { TourGuideContextValue } from './types';
|
|
3
|
+
export interface TourGuideProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Provider component that wraps your app to enable tour guide functionality.
|
|
8
|
+
* Place this at the root of your app, typically in App.tsx.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { TourGuideProvider, TourGuideOverlay } from '@wrack/react-native-tour-guide';
|
|
13
|
+
*
|
|
14
|
+
* export default function App() {
|
|
15
|
+
* return (
|
|
16
|
+
* <TourGuideProvider>
|
|
17
|
+
* <YourApp />
|
|
18
|
+
* <TourGuideOverlay />
|
|
19
|
+
* </TourGuideProvider>
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const TourGuideProvider: React.FC<TourGuideProviderProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Hook to access tour guide functionality.
|
|
27
|
+
* Must be used within a TourGuideProvider.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { startTour, isActive } = useTourGuide();
|
|
32
|
+
*
|
|
33
|
+
* const handleStartTour = () => {
|
|
34
|
+
* startTour([
|
|
35
|
+
* {
|
|
36
|
+
* id: 'step1',
|
|
37
|
+
* targetRef: myButtonRef,
|
|
38
|
+
* title: 'Welcome!',
|
|
39
|
+
* description: 'This is your first step.',
|
|
40
|
+
* },
|
|
41
|
+
* ]);
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const useTourGuide: () => TourGuideContextValue;
|
|
46
|
+
//# sourceMappingURL=TourGuideContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourGuideContext.d.ts","sourceRoot":"","sources":["../../../../src/TourGuideContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAQZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAMV,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAajB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgjB9D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,QAAO,qBAM/B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Main overlay component that displays the tour guide.
|
|
4
|
+
* This should be placed at the root level of your app, after your main content.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import { TourGuideProvider, TourGuideOverlay } from '@wrack/react-native-tour-guide';
|
|
9
|
+
*
|
|
10
|
+
* export default function App() {
|
|
11
|
+
* return (
|
|
12
|
+
* <TourGuideProvider>
|
|
13
|
+
* <YourApp />
|
|
14
|
+
* <TourGuideOverlay />
|
|
15
|
+
* </TourGuideProvider>
|
|
16
|
+
* );
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const TourGuideOverlay: React.FC;
|
|
21
|
+
export default TourGuideOverlay;
|
|
22
|
+
//# sourceMappingURL=TourGuideOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourGuideOverlay.d.ts","sourceRoot":"","sources":["../../../../src/TourGuideOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqHjF;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAstC7B,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface TourTargetProps {
|
|
4
|
+
/** Unique id steps reference via `targetId` */
|
|
5
|
+
id: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Style for the wrapper View. Border radius set here is auto-extracted for
|
|
9
|
+
* spotlight shape matching, exactly like a step's `targetStyle`.
|
|
10
|
+
*/
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Declaratively mark a component as a tour target — the alternative to
|
|
15
|
+
* threading refs into your steps array.
|
|
16
|
+
*
|
|
17
|
+
* Wraps its children in a View (with `collapsable={false}`, so Android's view
|
|
18
|
+
* flattening can never make the target unmeasurable) and registers it with the
|
|
19
|
+
* provider. Steps then reference it by id:
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <TourTarget id="compose" style={{ borderRadius: 24 }}>
|
|
24
|
+
* <ComposeButton />
|
|
25
|
+
* </TourTarget>
|
|
26
|
+
*
|
|
27
|
+
* startTour([{ id: 'step1', targetId: 'compose', title: '…', description: '…' }]);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The wrapper carries no styles of its own, so layout is unchanged unless you
|
|
31
|
+
* pass `style`. If the target mounts after the tour starts (a later screen),
|
|
32
|
+
* the tour waits briefly for it to register before falling back to a centered
|
|
33
|
+
* tooltip.
|
|
34
|
+
*/
|
|
35
|
+
export declare const TourTarget: React.FC<TourTargetProps>;
|
|
36
|
+
//# sourceMappingURL=TourTarget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourTarget.d.ts","sourceRoot":"","sources":["../../../../src/TourTarget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkChD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TourStep, TourGuideConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Announce a step change to screen readers (VoiceOver / TalkBack).
|
|
4
|
+
*/
|
|
5
|
+
export declare const announceStep: (step: TourStep, stepIndex: number, totalSteps: number, config?: TourGuideConfig) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Build the accessibility label for the tooltip container.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getTooltipAccessibilityProps: (step: TourStep, stepIndex: number, totalSteps: number, config?: TourGuideConfig) => {
|
|
10
|
+
accessible?: undefined;
|
|
11
|
+
accessibilityRole?: undefined;
|
|
12
|
+
accessibilityLabel?: undefined;
|
|
13
|
+
accessibilityHint?: undefined;
|
|
14
|
+
accessibilityLiveRegion?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
accessible: boolean;
|
|
17
|
+
accessibilityRole: "alert";
|
|
18
|
+
accessibilityLabel: string;
|
|
19
|
+
accessibilityHint: string;
|
|
20
|
+
accessibilityLiveRegion: "polite";
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../../src/accessibility.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,QAAQ,EACd,WAAW,MAAM,EACjB,YAAY,MAAM,EAClB,SAAS,eAAe,SAmBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,GACvC,MAAM,QAAQ,EACd,WAAW,MAAM,EACjB,YAAY,MAAM,EAClB,SAAS,eAAe;;;;;;;;;;;;CAoBzB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dev-only diagnostics.
|
|
3
|
+
*
|
|
4
|
+
* Every warning the library emits goes through here so that:
|
|
5
|
+
* - it is stripped in production builds (`__DEV__` is false), keeping consumer
|
|
6
|
+
* release logs and crash-reporting breadcrumbs clean;
|
|
7
|
+
* - it is de-duplicated, so a warning inside a render/measure loop is printed
|
|
8
|
+
* once instead of on every frame;
|
|
9
|
+
* - it always carries the package name and an actionable "how to fix" line.
|
|
10
|
+
*/
|
|
11
|
+
/** True in development. Falls back to NODE_ENV outside React Native (e.g. tests, web SSR). */
|
|
12
|
+
export declare const isDev: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Print a dev-only warning at most once per unique message.
|
|
15
|
+
* `fix` is appended as a concrete next step for whoever reads the log.
|
|
16
|
+
*/
|
|
17
|
+
export declare const warnOnce: (message: string, fix?: string) => void;
|
|
18
|
+
/** Print a dev-only warning every time (for genuinely per-occurrence problems). */
|
|
19
|
+
export declare const warn: (message: string, fix?: string) => void;
|
|
20
|
+
/** Test-only: clear the de-duplication cache so each test starts clean. */
|
|
21
|
+
export declare const __resetWarnings: () => void;
|
|
22
|
+
//# sourceMappingURL=dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,8FAA8F;AAC9F,eAAO,MAAM,KAAK,QAAO,OACyD,CAAC;AAInF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,EAAE,MAAM,MAAM,SAMrD,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,IAAI,GAAI,SAAS,MAAM,EAAE,MAAM,MAAM,SAGjD,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,eAAe,YAAqB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TourStep } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Events emitted over the tour's lifecycle, with their payloads.
|
|
4
|
+
* Subscribe via `useTourGuide().events.on(...)` — the subscription-based
|
|
5
|
+
* alternative to config callbacks, built for analytics: attach once at app
|
|
6
|
+
* root instead of threading onTourStart/onStepChange through every config.
|
|
7
|
+
*/
|
|
8
|
+
export interface TourEventMap {
|
|
9
|
+
/** A tour started */
|
|
10
|
+
start: {
|
|
11
|
+
tourId?: string;
|
|
12
|
+
totalSteps: number;
|
|
13
|
+
};
|
|
14
|
+
/** The step changed (next, back, or a goToStep jump). `to` is the new index. */
|
|
15
|
+
stepChange: {
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
step?: TourStep;
|
|
19
|
+
};
|
|
20
|
+
/** The tour ended — completed=true when the user finished the last step */
|
|
21
|
+
end: {
|
|
22
|
+
completed: boolean;
|
|
23
|
+
tourId?: string;
|
|
24
|
+
};
|
|
25
|
+
/** The user skipped the tour (an `end` with completed=false follows) */
|
|
26
|
+
skip: {
|
|
27
|
+
at: number;
|
|
28
|
+
};
|
|
29
|
+
/** The tour was paused */
|
|
30
|
+
pause: {
|
|
31
|
+
at: number;
|
|
32
|
+
};
|
|
33
|
+
/** The tour was resumed */
|
|
34
|
+
resume: {
|
|
35
|
+
at: number;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export type TourEventName = keyof TourEventMap;
|
|
39
|
+
export type TourEventHandler<K extends TourEventName> = (payload: TourEventMap[K]) => void;
|
|
40
|
+
/** The public subscription surface exposed on the context as `events`. */
|
|
41
|
+
export interface TourEvents {
|
|
42
|
+
/** Subscribe. Returns an unsubscribe function. */
|
|
43
|
+
on<K extends TourEventName>(event: K, handler: TourEventHandler<K>): () => void;
|
|
44
|
+
/** Remove a previously added handler. */
|
|
45
|
+
off<K extends TourEventName>(event: K, handler: TourEventHandler<K>): void;
|
|
46
|
+
}
|
|
47
|
+
/** @internal The provider-side emitter (public surface + emit). */
|
|
48
|
+
export interface TourEventsInternal extends TourEvents {
|
|
49
|
+
emit<K extends TourEventName>(event: K, payload: TourEventMap[K]): void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A tiny dependency-free emitter. A throwing handler is isolated — analytics
|
|
53
|
+
* code must never be able to take the tour down.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export declare const createTourEvents: () => TourEventsInternal;
|
|
57
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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CAAC,CAAC,SAAS,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CACzE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,kBA+BnC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { TourGuideProvider, useTourGuide } from './TourGuideContext';
|
|
2
|
+
export { TourTarget } from './TourTarget';
|
|
3
|
+
export { default as TourGuideOverlay } from './TourGuideOverlay';
|
|
4
|
+
export { default as SpotlightOverlay } from './SpotlightOverlay';
|
|
5
|
+
export { default as Tooltip } from './Tooltip';
|
|
6
|
+
export { useTourPersistence } from './useTourPersistence';
|
|
7
|
+
export { useTourScroll } from './useTourScroll';
|
|
8
|
+
export type { TourScrollBinding } from './useTourScroll';
|
|
9
|
+
export { detectStorage } from './storage';
|
|
10
|
+
export type { StorageType } from './storage';
|
|
11
|
+
export type { TourEvents, TourEventMap, TourEventName, TourEventHandler } from './events';
|
|
12
|
+
export { darkTheme, lightTheme, minimalTheme, vibrantTheme, createTheme } from './themes';
|
|
13
|
+
export { computeShape, roundedRectPath, shapeInnerPath } from './shapes';
|
|
14
|
+
export { computeTooltipPosition, validateRef, extractBorderRadius, resolveInsets, resolveSafeAreaInsets, osValue, } from './utils';
|
|
15
|
+
export { announceStep, getTooltipAccessibilityProps } from './accessibility';
|
|
16
|
+
export type { TourStep, RegisteredTarget, TooltipComponents, TourButtonProps, TourProgressProps, TourGuideConfig, TourGuideContextValue, SpotlightTarget, SpotlightStyles, TooltipStyles, TooltipProps, ScrollToTargetConfig, BackdropBehavior, TourStorage, TourTheme, MeasurableRef, ScrollableRef, EdgeInsets, SpotlightMotion, SpotlightMaskPathFn, OSConfig, PerPlatform, ResolvedTourGuideConfig, } from './types';
|
|
17
|
+
export type { SpotlightBorderRadius, SpotlightPadding, ShapeBounds, ShapeResult } from './shapes';
|
|
18
|
+
export type { TourGuideProviderProps } from './TourGuideContext';
|
|
19
|
+
export type { TourTargetProps } from './TourTarget';
|
|
20
|
+
export type { SpotlightOverlayProps } from './SpotlightOverlay';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG1F,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG1F,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAGzE,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,OAAO,GACR,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAG7E,YAAY,EACV,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAElG,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { EdgeInsets, SpotlightTarget } from './types';
|
|
2
|
+
/** Padding around the spotlight: uniform number or per-side values. */
|
|
3
|
+
export type SpotlightPadding = number | Partial<EdgeInsets>;
|
|
4
|
+
/** Resolve a SpotlightPadding to explicit per-side values. */
|
|
5
|
+
export declare const resolvePadding: (padding: SpotlightPadding | undefined) => EdgeInsets;
|
|
6
|
+
/**
|
|
7
|
+
* Internal type for border radius — number for uniform, object for per-corner.
|
|
8
|
+
* Users specify this via `targetStyle` (auto-extracted) or `spotlightBorderRadius` (number override).
|
|
9
|
+
*/
|
|
10
|
+
export type SpotlightBorderRadius = number | {
|
|
11
|
+
topLeft?: number;
|
|
12
|
+
topRight?: number;
|
|
13
|
+
bottomRight?: number;
|
|
14
|
+
bottomLeft?: number;
|
|
15
|
+
};
|
|
16
|
+
export interface ShapeBounds {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
}
|
|
22
|
+
export interface RectShapeResult {
|
|
23
|
+
kind: 'rect';
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
rx: number;
|
|
29
|
+
ry: number;
|
|
30
|
+
}
|
|
31
|
+
export interface PathShapeResult {
|
|
32
|
+
kind: 'path';
|
|
33
|
+
d: string;
|
|
34
|
+
bounds: ShapeBounds;
|
|
35
|
+
}
|
|
36
|
+
export type ShapeResult = RectShapeResult | PathShapeResult;
|
|
37
|
+
/**
|
|
38
|
+
* SVG subpath for a uniformly-rounded rectangle (clockwise, closed). Used for
|
|
39
|
+
* the spotlight cutout and for kept spotlights.
|
|
40
|
+
*/
|
|
41
|
+
export declare const roundedRectPath: (x: number, y: number, w: number, h: number, r: number) => string;
|
|
42
|
+
/** The inner (hole) subpath for any shape result. */
|
|
43
|
+
export declare const shapeInnerPath: (result: ShapeResult) => string;
|
|
44
|
+
/**
|
|
45
|
+
* Compute the spotlight shape for a target.
|
|
46
|
+
* Always produces a rounded rectangle matching the target's border radius.
|
|
47
|
+
* Border radii are scaled proportionally so circles stay circular with padding.
|
|
48
|
+
*/
|
|
49
|
+
export declare const computeShape: (target: SpotlightTarget, padding?: SpotlightPadding, customBorderRadius?: SpotlightBorderRadius) => ShapeResult;
|
|
50
|
+
//# sourceMappingURL=shapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.d.ts","sourceRoot":"","sources":["../../../../src/shapes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE3D,uEAAuE;AACvE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAE5D,8DAA8D;AAC9D,eAAO,MAAM,cAAc,GAAI,SAAS,gBAAgB,GAAG,SAAS,KAAG,UAUtE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAIN,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,eAAe,CAAC;AAW5D;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MASvF,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,KAAG,MAG4B,CAAC;AA0DlF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,eAAe,EACvB,UAAS,gBAAoB,EAC7B,qBAAqB,qBAAqB,KACzC,WA8BF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TourStorage } from './types';
|
|
2
|
+
/** How persistence storage was resolved. */
|
|
3
|
+
export type StorageType = 'mmkv' | 'async-storage' | 'memory' | 'custom';
|
|
4
|
+
/**
|
|
5
|
+
* Detect an available storage backend for tour persistence.
|
|
6
|
+
* Priority: MMKV (fastest) → AsyncStorage → in-memory fallback.
|
|
7
|
+
* The result is cached; the adapters are only probed once.
|
|
8
|
+
*/
|
|
9
|
+
export declare const detectStorage: () => {
|
|
10
|
+
type: StorageType;
|
|
11
|
+
adapter: TourStorage;
|
|
12
|
+
};
|
|
13
|
+
/** Test-only: clear the detection cache. */
|
|
14
|
+
export declare const __resetStorageCache: () => void;
|
|
15
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,4CAA4C;AAC5C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AA8EzE;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAO;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAqBzE,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,mBAAmB,YAE/B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TourTheme } from './types';
|
|
2
|
+
export declare const darkTheme: TourTheme;
|
|
3
|
+
export declare const lightTheme: TourTheme;
|
|
4
|
+
export declare const minimalTheme: TourTheme;
|
|
5
|
+
export declare const vibrantTheme: TourTheme;
|
|
6
|
+
/**
|
|
7
|
+
* Create a custom theme by deep-merging overrides onto the dark theme base.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createTheme: (overrides: Partial<TourTheme>) => TourTheme;
|
|
10
|
+
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../src/themes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,SAAS,EAAE,SAevB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,SAexB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,SAe1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,SAe1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO,CAAC,SAAS,CAAC,KAAG,SAS1D,CAAC"}
|