@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,599 @@
|
|
|
1
|
+
import type { RefObject, ReactNode, ComponentType } from 'react';
|
|
2
|
+
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
+
import type { TourEvents } from './events';
|
|
4
|
+
/**
|
|
5
|
+
* A ref target that can be measured (View-like component).
|
|
6
|
+
* Uses a flexible type to support multiple React Native versions.
|
|
7
|
+
*/
|
|
8
|
+
export type MeasurableRef = RefObject<any>;
|
|
9
|
+
/**
|
|
10
|
+
* A ref to a scrollable component (ScrollView-like).
|
|
11
|
+
* Uses a flexible type to support multiple React Native versions.
|
|
12
|
+
*/
|
|
13
|
+
export type ScrollableRef = RefObject<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Represents the position and dimensions of a spotlight target
|
|
16
|
+
*/
|
|
17
|
+
export interface SpotlightTarget {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Edge insets (in px) describing regions the tour should stay clear of:
|
|
25
|
+
* the status bar / notch (top), the home indicator or Android navigation bar
|
|
26
|
+
* (bottom), and any side insets. Used to keep tooltips on-screen and to scroll
|
|
27
|
+
* targets out from behind system chrome.
|
|
28
|
+
*/
|
|
29
|
+
export interface EdgeInsets {
|
|
30
|
+
top: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
left: number;
|
|
33
|
+
right: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Configuration for automatic scrolling to a target
|
|
37
|
+
*/
|
|
38
|
+
export interface ScrollToTargetConfig {
|
|
39
|
+
/** Reference to the ScrollView component */
|
|
40
|
+
scrollRef: ScrollableRef;
|
|
41
|
+
/** Additional offset in pixels (positive = scroll down more, negative = scroll up) */
|
|
42
|
+
offset?: number;
|
|
43
|
+
/** Whether to animate the scroll (default: true) */
|
|
44
|
+
animated?: boolean;
|
|
45
|
+
/** If true, offset is absolute position; if false (default), it's relative to target */
|
|
46
|
+
absolute?: boolean;
|
|
47
|
+
/** Function to get the current scroll Y position */
|
|
48
|
+
getCurrentScrollOffset?: () => number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Backdrop press behavior options
|
|
52
|
+
* - 'dismiss': Skip/close the tour
|
|
53
|
+
* - 'next': Advance to next step
|
|
54
|
+
* - 'none': Do nothing (default)
|
|
55
|
+
* - function: Custom handler
|
|
56
|
+
*/
|
|
57
|
+
export type BackdropBehavior = 'dismiss' | 'next' | 'none' | (() => void);
|
|
58
|
+
/**
|
|
59
|
+
* Configuration for a single tour step
|
|
60
|
+
*/
|
|
61
|
+
export interface TourStep {
|
|
62
|
+
/** Unique identifier for the step */
|
|
63
|
+
id: string;
|
|
64
|
+
/** Reference to the component to highlight (optional for full-screen tooltips) */
|
|
65
|
+
targetRef?: MeasurableRef;
|
|
66
|
+
/**
|
|
67
|
+
* ID of a `<TourTarget>` to highlight — the declarative alternative to
|
|
68
|
+
* `targetRef`. The tour waits briefly for the target to register (useful when
|
|
69
|
+
* the screen mounts after the tour starts). If both are given, `targetRef`
|
|
70
|
+
* wins.
|
|
71
|
+
*/
|
|
72
|
+
targetId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Highlight a fixed screen region instead of a component — for map overlays,
|
|
75
|
+
* camera views, canvases, or anything you can't attach a ref to. Uses the
|
|
76
|
+
* same coordinate space as `measureInWindow` (the library applies the same
|
|
77
|
+
* Android status-bar correction it applies to measured targets). Skips
|
|
78
|
+
* measurement entirely; wins over targetRef/targetId.
|
|
79
|
+
*/
|
|
80
|
+
targetRegion?: SpotlightTarget;
|
|
81
|
+
/** Title shown in the tooltip */
|
|
82
|
+
title: string;
|
|
83
|
+
/** Description text in the tooltip */
|
|
84
|
+
description: string;
|
|
85
|
+
/** Position of the tooltip relative to the target (default: 'bottom', use 'auto' for smart positioning) */
|
|
86
|
+
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right' | 'auto';
|
|
87
|
+
/** Padding around the spotlight in px — a number for uniform padding, or per-side values (default: 0) */
|
|
88
|
+
spotlightPadding?: number | Partial<EdgeInsets>;
|
|
89
|
+
/** Uniform border radius override for the spotlight (default: 12). For per-corner control, use targetStyle instead. */
|
|
90
|
+
spotlightBorderRadius?: number;
|
|
91
|
+
/** Style applied to the target component — border radius is auto-extracted for spotlight shape matching */
|
|
92
|
+
targetStyle?: StyleProp<ViewStyle>;
|
|
93
|
+
/** Configuration for auto-scrolling to the target */
|
|
94
|
+
scrollToTarget?: ScrollToTargetConfig;
|
|
95
|
+
/** Callback invoked when moving to the next step */
|
|
96
|
+
onNext?: () => void;
|
|
97
|
+
/** Callback invoked when moving to the previous step */
|
|
98
|
+
onPrev?: () => void;
|
|
99
|
+
/** Callback invoked when skipping the tour */
|
|
100
|
+
onSkip?: () => void;
|
|
101
|
+
/** Whether this step is active/included in the tour (default: true) */
|
|
102
|
+
active?: boolean;
|
|
103
|
+
/** What happens when the backdrop (dark overlay) is pressed */
|
|
104
|
+
backdropBehavior?: BackdropBehavior;
|
|
105
|
+
/** Callback when the spotlight area is pressed */
|
|
106
|
+
onSpotlightPress?: () => void;
|
|
107
|
+
/**
|
|
108
|
+
* Awaited before this step is measured and shown. Navigate, open a sheet, or
|
|
109
|
+
* wait for data here — the spotlight only appears once the promise resolves.
|
|
110
|
+
* Prefer this over guessing a `delayBefore`.
|
|
111
|
+
*/
|
|
112
|
+
before?: () => void | Promise<void>;
|
|
113
|
+
/** Delay in ms before showing this step (useful for waiting on animations) */
|
|
114
|
+
delayBefore?: number;
|
|
115
|
+
/** Auto-advance to next step after this many ms (0 = disabled) */
|
|
116
|
+
autoAdvance?: number;
|
|
117
|
+
/** Hide the next/done button for this step */
|
|
118
|
+
hideNextButton?: boolean;
|
|
119
|
+
/** Hide the previous/back button for this step */
|
|
120
|
+
hidePrevButton?: boolean;
|
|
121
|
+
/** Hide the skip button for this step */
|
|
122
|
+
hideSkipButton?: boolean;
|
|
123
|
+
/** Custom accessibility label for this step (overrides auto-generated one) */
|
|
124
|
+
accessibilityLabel?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Gates progression: `false` disables the Next button, pauses `autoAdvance`,
|
|
127
|
+
* and turns a `backdropBehavior: 'next'` tap into a no-op until
|
|
128
|
+
* `setStepCompleted(id, true)` is called (e.g. after the user performs the
|
|
129
|
+
* action this step teaches). Explicit `nextStep()` calls from your own
|
|
130
|
+
* handlers still advance. `undefined` means no gating.
|
|
131
|
+
*/
|
|
132
|
+
completed?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Let touches pass through the spotlight hole to the real element underneath,
|
|
135
|
+
* so the user can actually tap the thing being highlighted. Requires
|
|
136
|
+
* `config.overlayMode: 'inline'` — a Modal overlay swallows every touch.
|
|
137
|
+
* Advance the tour from the element's own handler (call `nextStep()`), or
|
|
138
|
+
* pair with `completed` gating.
|
|
139
|
+
*/
|
|
140
|
+
interactive?: boolean;
|
|
141
|
+
/** Custom tooltip renderer for this step only (overrides config.renderTooltip) */
|
|
142
|
+
renderTooltip?: (props: TooltipProps) => ReactNode;
|
|
143
|
+
/** Spotlight transition into this step (overrides config.motion) */
|
|
144
|
+
motion?: SpotlightMotion;
|
|
145
|
+
/**
|
|
146
|
+
* Per-step spotlight styling, merged over `config.spotlightStyles` — change
|
|
147
|
+
* the overlay color/opacity, toggle the pulse, or swap the `maskPath` for
|
|
148
|
+
* just this step.
|
|
149
|
+
*/
|
|
150
|
+
spotlightStyles?: SpotlightStyles;
|
|
151
|
+
/** Wait for InteractionManager before measuring this step (overrides config) */
|
|
152
|
+
waitForInteractions?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Keep this step's spotlight punched out of the backdrop after the tour
|
|
155
|
+
* moves FORWARD past it — "these three things work together" storytelling.
|
|
156
|
+
* Kept holes are visual only (no pulse, no press pass-through) and are
|
|
157
|
+
* dropped again when the user navigates back to or before this step.
|
|
158
|
+
*/
|
|
159
|
+
keepSpotlight?: boolean;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A per-platform value: give each OS its own value, with `default` as the
|
|
163
|
+
* fallback. Any config field typed `PerPlatform<T>` accepts either a plain
|
|
164
|
+
* value or one of these.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* tooltipWidth: { ios: 320, android: 300, default: 320 }
|
|
168
|
+
*/
|
|
169
|
+
export interface OSConfig<T> {
|
|
170
|
+
ios?: T;
|
|
171
|
+
android?: T;
|
|
172
|
+
web?: T;
|
|
173
|
+
/** Used when the current platform has no entry */
|
|
174
|
+
default?: T;
|
|
175
|
+
}
|
|
176
|
+
/** A value that may vary per platform. */
|
|
177
|
+
export type PerPlatform<T> = T | OSConfig<T>;
|
|
178
|
+
/**
|
|
179
|
+
* How the spotlight travels between steps:
|
|
180
|
+
* - 'morph' (default): animates position, size and radius in one smooth move
|
|
181
|
+
* - 'bounce': the same move on a spring, with a little overshoot
|
|
182
|
+
* - 'fade': the overlay dips out, jumps, and fades back in at the new target
|
|
183
|
+
* - 'none': instant jump, no animation
|
|
184
|
+
*/
|
|
185
|
+
export type SpotlightMotion = 'morph' | 'bounce' | 'fade' | 'none';
|
|
186
|
+
/**
|
|
187
|
+
* Custom spotlight cutout path. Return an SVG subpath describing the hole
|
|
188
|
+
* (it is punched out of the full-screen backdrop via evenodd fill).
|
|
189
|
+
* The ultimate escape hatch — draw any highlight shape you like.
|
|
190
|
+
*/
|
|
191
|
+
export type SpotlightMaskPathFn = (args: {
|
|
192
|
+
/** The measured target (unpadded), in window coordinates */
|
|
193
|
+
target: SpotlightTarget;
|
|
194
|
+
/** The padded bounding box the default shape would use */
|
|
195
|
+
bounds: {
|
|
196
|
+
x: number;
|
|
197
|
+
y: number;
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
|
+
};
|
|
201
|
+
screenWidth: number;
|
|
202
|
+
screenHeight: number;
|
|
203
|
+
}) => string;
|
|
204
|
+
/** Props passed to a replacement tour button (Next / Back / Skip). */
|
|
205
|
+
export interface TourButtonProps {
|
|
206
|
+
/** Resolved label text (respects configured button texts and Done on the last step) */
|
|
207
|
+
label: string;
|
|
208
|
+
onPress: () => void;
|
|
209
|
+
/** True when `completed: false` gating disables this button */
|
|
210
|
+
disabled?: boolean;
|
|
211
|
+
/** True on the final step (Next slot only) */
|
|
212
|
+
isLast?: boolean;
|
|
213
|
+
}
|
|
214
|
+
/** Props passed to a replacement progress indicator (StepCounter / ProgressDots). */
|
|
215
|
+
export interface TourProgressProps {
|
|
216
|
+
currentStep: number;
|
|
217
|
+
totalSteps: number;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Replace individual pieces of the built-in tooltip without rebuilding the
|
|
221
|
+
* whole thing. Anything not provided keeps the default rendering. For a fully
|
|
222
|
+
* custom tooltip, use `renderTooltip` instead.
|
|
223
|
+
*/
|
|
224
|
+
export interface TooltipComponents {
|
|
225
|
+
NextButton?: ComponentType<TourButtonProps>;
|
|
226
|
+
PrevButton?: ComponentType<TourButtonProps>;
|
|
227
|
+
SkipButton?: ComponentType<TourButtonProps>;
|
|
228
|
+
StepCounter?: ComponentType<TourProgressProps>;
|
|
229
|
+
ProgressDots?: ComponentType<TourProgressProps>;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Customization options for the tooltip component
|
|
233
|
+
*/
|
|
234
|
+
export interface TooltipStyles {
|
|
235
|
+
/** Background color of the tooltip */
|
|
236
|
+
backgroundColor?: string;
|
|
237
|
+
/** Border radius of the tooltip */
|
|
238
|
+
borderRadius?: number;
|
|
239
|
+
/** Text color for title */
|
|
240
|
+
titleColor?: string;
|
|
241
|
+
/** Text color for description */
|
|
242
|
+
descriptionColor?: string;
|
|
243
|
+
/** Button text color */
|
|
244
|
+
buttonTextColor?: string;
|
|
245
|
+
/** Primary button background color */
|
|
246
|
+
primaryButtonColor?: string;
|
|
247
|
+
/** Secondary button background color */
|
|
248
|
+
secondaryButtonColor?: string;
|
|
249
|
+
/** Skip button color */
|
|
250
|
+
skipButtonColor?: string;
|
|
251
|
+
/** Custom title text style */
|
|
252
|
+
titleStyle?: TextStyle;
|
|
253
|
+
/** Custom description text style */
|
|
254
|
+
descriptionStyle?: TextStyle;
|
|
255
|
+
/** Custom tooltip container style */
|
|
256
|
+
containerStyle?: ViewStyle;
|
|
257
|
+
/** Style merged onto the tooltip's arrow/triangle (borders, shadows, overrides) */
|
|
258
|
+
arrowStyle?: ViewStyle;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Customization options for the spotlight overlay
|
|
262
|
+
*/
|
|
263
|
+
export interface SpotlightStyles {
|
|
264
|
+
/** Opacity of the overlay (0-1, default: 0.6) */
|
|
265
|
+
overlayOpacity?: number;
|
|
266
|
+
/** Color of the overlay (default: 'black') */
|
|
267
|
+
overlayColor?: string;
|
|
268
|
+
/** Blur amount (0-100, default: 4) - requires @react-native-community/blur */
|
|
269
|
+
blurAmount?: number;
|
|
270
|
+
/** Enable blur effect (default: false) */
|
|
271
|
+
enableBlur?: boolean;
|
|
272
|
+
/** Enable gradient overlay (default: false) */
|
|
273
|
+
enableGradient?: boolean;
|
|
274
|
+
/** Gradient colors (requires react-native-linear-gradient) */
|
|
275
|
+
gradientColors?: string[];
|
|
276
|
+
/** Enable pulsing border around spotlight (default: false) */
|
|
277
|
+
enablePulse?: boolean;
|
|
278
|
+
/** Pulse border color (default: '#FFFFFF') */
|
|
279
|
+
pulseColor?: string;
|
|
280
|
+
/** Pulse border width in px (default: 2) */
|
|
281
|
+
pulseWidth?: number;
|
|
282
|
+
/** Pulse animation duration for one full cycle in ms (default: 1500) */
|
|
283
|
+
pulseDuration?: number;
|
|
284
|
+
/** Pulse min opacity (default: 0.2) */
|
|
285
|
+
pulseMinOpacity?: number;
|
|
286
|
+
/** Pulse max opacity (default: 0.8) */
|
|
287
|
+
pulseMaxOpacity?: number;
|
|
288
|
+
/**
|
|
289
|
+
* Custom cutout shape: return an SVG subpath for the spotlight hole.
|
|
290
|
+
* Overrides the automatic shape matching for every step. Shape animation is
|
|
291
|
+
* skipped for custom paths (the hole jumps between steps).
|
|
292
|
+
*/
|
|
293
|
+
maskPath?: SpotlightMaskPathFn;
|
|
294
|
+
/**
|
|
295
|
+
* Android + expo-blur only: real backdrop blurring on Android needs a ref to
|
|
296
|
+
* an `expo-blur` `BlurTargetView` wrapping the content behind the overlay.
|
|
297
|
+
* Wrap your screen content in `<BlurTargetView ref={r}>` and pass `r` here;
|
|
298
|
+
* without it, expo-blur on Android falls back to a soft tint. Ignored on iOS
|
|
299
|
+
* and with @react-native-community/blur (which blur the real backdrop
|
|
300
|
+
* directly).
|
|
301
|
+
*/
|
|
302
|
+
blurTarget?: RefObject<any>;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* A complete theme preset combining tooltip and spotlight styles
|
|
306
|
+
*/
|
|
307
|
+
export interface TourTheme {
|
|
308
|
+
tooltipStyles: TooltipStyles;
|
|
309
|
+
spotlightStyles: SpotlightStyles;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Storage adapter for tour persistence.
|
|
313
|
+
* Implement this interface to use any storage solution (AsyncStorage, MMKV, etc.)
|
|
314
|
+
*/
|
|
315
|
+
export interface TourStorage {
|
|
316
|
+
/** Get a value by key. Return null if not found. */
|
|
317
|
+
getItem: (key: string) => Promise<string | null> | string | null;
|
|
318
|
+
/** Set a value by key */
|
|
319
|
+
setItem: (key: string, value: string) => Promise<void> | void;
|
|
320
|
+
/** Remove a value by key */
|
|
321
|
+
removeItem: (key: string) => Promise<void> | void;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Configuration for the tour guide
|
|
325
|
+
*/
|
|
326
|
+
export interface TourGuideConfig {
|
|
327
|
+
/** Custom tooltip styles */
|
|
328
|
+
tooltipStyles?: TooltipStyles;
|
|
329
|
+
/** Custom spotlight styles */
|
|
330
|
+
spotlightStyles?: SpotlightStyles;
|
|
331
|
+
/** Show progress dots (default: false) */
|
|
332
|
+
showProgressDots?: boolean;
|
|
333
|
+
/** Show step counter (default: true) */
|
|
334
|
+
showStepCounter?: boolean;
|
|
335
|
+
/** Enable back button (default: true) */
|
|
336
|
+
enableBackButton?: boolean;
|
|
337
|
+
/** Text for the next button (default: 'Next') */
|
|
338
|
+
nextButtonText?: string;
|
|
339
|
+
/** Text for the previous button (default: 'Back') */
|
|
340
|
+
prevButtonText?: string;
|
|
341
|
+
/** Text for the skip button (default: 'Skip') */
|
|
342
|
+
skipButtonText?: string;
|
|
343
|
+
/** Text for the done button (default: 'Done') */
|
|
344
|
+
doneButtonText?: string;
|
|
345
|
+
/** Custom render function for tooltip */
|
|
346
|
+
renderTooltip?: (props: TooltipProps) => ReactNode;
|
|
347
|
+
/** Replace individual tooltip pieces (buttons, counter, dots) while keeping the rest */
|
|
348
|
+
components?: TooltipComponents;
|
|
349
|
+
/**
|
|
350
|
+
* How the overlay is mounted (default: 'modal').
|
|
351
|
+
* - 'modal': a React Native Modal — always on top, immune to parent overflow,
|
|
352
|
+
* but the app underneath is unreachable while the tour runs.
|
|
353
|
+
* - 'inline': an absolutely-positioned view rendered where <TourGuideOverlay />
|
|
354
|
+
* sits. Required for `interactive` steps (touches can reach the highlighted
|
|
355
|
+
* element). Place <TourGuideOverlay /> at the root of your app so it covers
|
|
356
|
+
* the full screen; the Android back button is not intercepted in this mode.
|
|
357
|
+
*/
|
|
358
|
+
overlayMode?: 'modal' | 'inline';
|
|
359
|
+
/**
|
|
360
|
+
* Keep the highlight and tooltip glued to the target while the user scrolls
|
|
361
|
+
* freely (default: false). Requires wiring your scrollable through
|
|
362
|
+
* `useTourScroll()` — spread its `scrollProps` onto the ScrollView/FlatList —
|
|
363
|
+
* so the tour knows when scrolling happens. Position updates are JS-driven
|
|
364
|
+
* (re-measured per scroll event at ~16ms throttle).
|
|
365
|
+
*/
|
|
366
|
+
followTarget?: boolean;
|
|
367
|
+
/** Whether tooltip text respects the OS font-size setting (default: true) */
|
|
368
|
+
allowFontScaling?: boolean;
|
|
369
|
+
/** Cap on OS font scaling applied to tooltip text (default: unlimited) */
|
|
370
|
+
maxFontSizeMultiplier?: number;
|
|
371
|
+
/** Animation duration in ms for spotlight transitions (default: 300) */
|
|
372
|
+
animationDuration?: PerPlatform<number>;
|
|
373
|
+
/** Default spotlight transition between steps (default: 'morph'); steps can override */
|
|
374
|
+
motion?: PerPlatform<SpotlightMotion>;
|
|
375
|
+
/**
|
|
376
|
+
* Orientations the overlay Modal allows on iOS (default: all). Only relevant
|
|
377
|
+
* in 'modal' overlay mode; iOS intersects this with the app's own allowed
|
|
378
|
+
* orientations, so the full-list default simply means "rotate with the app".
|
|
379
|
+
*/
|
|
380
|
+
supportedOrientations?: Array<'portrait' | 'portrait-upside-down' | 'landscape' | 'landscape-left' | 'landscape-right'>;
|
|
381
|
+
/**
|
|
382
|
+
* Wait for `InteractionManager.runAfterInteractions` before measuring each
|
|
383
|
+
* step (default: false) — lets navigation/layout animations finish first,
|
|
384
|
+
* without guessing a `delayBefore`. Steps can override.
|
|
385
|
+
*/
|
|
386
|
+
waitForInteractions?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Set the status-bar style while the tour is active, restoring it after.
|
|
389
|
+
* 'auto' picks light-content over a dark backdrop and dark-content over a
|
|
390
|
+
* light one. Default: leave the status bar alone.
|
|
391
|
+
*/
|
|
392
|
+
statusBarStyle?: 'light-content' | 'dark-content' | 'auto';
|
|
393
|
+
/** Called when a tour starts */
|
|
394
|
+
onTourStart?: () => void;
|
|
395
|
+
/** Called when a tour ends (completed = true if finished all steps, false if skipped) */
|
|
396
|
+
onTourEnd?: (completed: boolean) => void;
|
|
397
|
+
/** Called when the step changes */
|
|
398
|
+
onStepChange?: (fromIndex: number, toIndex: number) => void;
|
|
399
|
+
/** Called before step changes. Return false (or resolve false) to prevent the transition. */
|
|
400
|
+
beforeStepChange?: (fromIndex: number, toIndex: number) => boolean | Promise<boolean>;
|
|
401
|
+
/**
|
|
402
|
+
* Safe-area insets to respect (status bar, notch, Android nav bar, home
|
|
403
|
+
* indicator). Tooltips are clamped within these and targets are scrolled out
|
|
404
|
+
* from behind them. If omitted, insets are auto-detected from
|
|
405
|
+
* react-native-safe-area-context (when installed) or fall back to the Android
|
|
406
|
+
* status-bar height. Provide partial values to override specific edges.
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* const insets = useSafeAreaInsets();
|
|
410
|
+
* startTour(steps, { insets });
|
|
411
|
+
*/
|
|
412
|
+
insets?: Partial<EdgeInsets>;
|
|
413
|
+
/**
|
|
414
|
+
* Extra insets ADDED on top of the safe area for app chrome that overlaps the
|
|
415
|
+
* content — e.g. a bottom tab bar, a top tab bar, or a custom header. The tour
|
|
416
|
+
* keeps tooltips and targets clear of these too.
|
|
417
|
+
*
|
|
418
|
+
* @example
|
|
419
|
+
* // 56px bottom tab bar + 48px top tabs, on top of the safe area
|
|
420
|
+
* startTour(steps, { insets, extraInsets: { top: 48, bottom: 56 } });
|
|
421
|
+
*/
|
|
422
|
+
extraInsets?: Partial<EdgeInsets>;
|
|
423
|
+
/** Default backdrop behavior for all steps (default: 'none') */
|
|
424
|
+
defaultBackdropBehavior?: BackdropBehavior;
|
|
425
|
+
/**
|
|
426
|
+
* Smart tooltip auto-positioning, which flips the tooltip to whichever side
|
|
427
|
+
* has room so it never renders off-screen (default: true).
|
|
428
|
+
* Set to `false` to always honour each step's explicit `tooltipPosition`.
|
|
429
|
+
*/
|
|
430
|
+
autoPositionTooltip?: boolean;
|
|
431
|
+
/** Safe zone offset in px for scroll calculations (default: 120) */
|
|
432
|
+
safeZoneOffset?: PerPlatform<number>;
|
|
433
|
+
/** Tooltip width in px (default: 320) */
|
|
434
|
+
tooltipWidth?: PerPlatform<number>;
|
|
435
|
+
/** Triangle/arrow size in px (default: 12) */
|
|
436
|
+
triangleSize?: PerPlatform<number>;
|
|
437
|
+
/** Gap between target and tooltip in px (default: 8) */
|
|
438
|
+
tooltipOffset?: PerPlatform<number>;
|
|
439
|
+
/** Reference to the ScrollView wrapping your tour content. Enables automatic scrolling when the target + tooltip would be off-screen. */
|
|
440
|
+
scrollRef?: ScrollableRef;
|
|
441
|
+
/** Function returning the current scroll Y offset (needed for accurate scroll calculations) */
|
|
442
|
+
getCurrentScrollOffset?: () => number;
|
|
443
|
+
/** Unique ID for this tour (used for persistence and multiple tours) */
|
|
444
|
+
tourId?: string;
|
|
445
|
+
/** Enable accessibility announcements (default: true) */
|
|
446
|
+
enableAccessibility?: boolean;
|
|
447
|
+
/** Custom accessibility label prefix (default: 'Tour guide') */
|
|
448
|
+
accessibilityLabelPrefix?: string;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* `TourGuideConfig` after per-platform (`PerPlatform`) values have been
|
|
452
|
+
* resolved for the running OS. This is what `startTour` stores and what you
|
|
453
|
+
* read back from context/`TooltipProps` — always plain values.
|
|
454
|
+
*/
|
|
455
|
+
export interface ResolvedTourGuideConfig extends Omit<TourGuideConfig, 'animationDuration' | 'motion' | 'safeZoneOffset' | 'tooltipWidth' | 'triangleSize' | 'tooltipOffset'> {
|
|
456
|
+
animationDuration?: number;
|
|
457
|
+
motion?: SpotlightMotion;
|
|
458
|
+
safeZoneOffset?: number;
|
|
459
|
+
tooltipWidth?: number;
|
|
460
|
+
triangleSize?: number;
|
|
461
|
+
tooltipOffset?: number;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Props passed to custom tooltip render functions and the built-in tooltip.
|
|
465
|
+
*
|
|
466
|
+
* This is the library's **headless contract**: everything a fully custom
|
|
467
|
+
* tooltip needs — target geometry, resolved placement, safe-area insets, and
|
|
468
|
+
* navigation callbacks. Treat it as a stable public API.
|
|
469
|
+
*/
|
|
470
|
+
export interface TooltipProps {
|
|
471
|
+
title: string;
|
|
472
|
+
description: string;
|
|
473
|
+
position: {
|
|
474
|
+
x: number;
|
|
475
|
+
y: number;
|
|
476
|
+
};
|
|
477
|
+
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right' | 'auto';
|
|
478
|
+
currentStep: number;
|
|
479
|
+
totalSteps: number;
|
|
480
|
+
onNext: () => void;
|
|
481
|
+
onPrev?: () => void;
|
|
482
|
+
onSkip: () => void;
|
|
483
|
+
targetHeight?: number;
|
|
484
|
+
targetWidth?: number;
|
|
485
|
+
config?: ResolvedTourGuideConfig;
|
|
486
|
+
hideNextButton?: boolean;
|
|
487
|
+
hidePrevButton?: boolean;
|
|
488
|
+
hideSkipButton?: boolean;
|
|
489
|
+
screenWidth?: number;
|
|
490
|
+
screenHeight?: number;
|
|
491
|
+
/** Resolved safe-area + extra insets the tooltip must stay within */
|
|
492
|
+
insets?: EdgeInsets;
|
|
493
|
+
/** True when `completed: false` gating should disable the Next button */
|
|
494
|
+
nextDisabled?: boolean;
|
|
495
|
+
/** True on the final step (Next acts as Done) */
|
|
496
|
+
isLastStep?: boolean;
|
|
497
|
+
}
|
|
498
|
+
/** A target registered by <TourTarget>, addressable from steps via `targetId`. */
|
|
499
|
+
export interface RegisteredTarget {
|
|
500
|
+
ref: MeasurableRef;
|
|
501
|
+
/** The wrapper's style — used for spotlight shape extraction when the step has no targetStyle */
|
|
502
|
+
style?: StyleProp<ViewStyle>;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Context value for the tour guide
|
|
506
|
+
*/
|
|
507
|
+
export interface TourGuideContextValue {
|
|
508
|
+
/** Current step index (within active steps) */
|
|
509
|
+
currentStep: number;
|
|
510
|
+
/** Whether a tour is currently active */
|
|
511
|
+
isActive: boolean;
|
|
512
|
+
/** Whether the tour is paused (overlay hidden but state preserved) */
|
|
513
|
+
isPaused: boolean;
|
|
514
|
+
/** The ID of the currently active tour (from config.tourId) */
|
|
515
|
+
activeTourId?: string;
|
|
516
|
+
/** All tour steps (including inactive) */
|
|
517
|
+
steps: TourStep[];
|
|
518
|
+
/** Only active/visible steps (filtered from steps where active !== false) */
|
|
519
|
+
activeSteps: TourStep[];
|
|
520
|
+
/** Configuration for the tour (per-platform values already resolved) */
|
|
521
|
+
config?: ResolvedTourGuideConfig;
|
|
522
|
+
/**
|
|
523
|
+
* Start a tour: pass a steps array (with optional config), or the id of a
|
|
524
|
+
* tour previously registered with `defineTour` (config then overrides the
|
|
525
|
+
* stored one field-by-field).
|
|
526
|
+
*/
|
|
527
|
+
startTour: (steps: TourStep[] | string, config?: TourGuideConfig) => void;
|
|
528
|
+
/**
|
|
529
|
+
* Register a named tour up front so it can be started by id from anywhere
|
|
530
|
+
* (`startTour('onboarding')`) and checked with `canStartTour`.
|
|
531
|
+
*/
|
|
532
|
+
defineTour: (tourId: string, steps: TourStep[], config?: TourGuideConfig) => void;
|
|
533
|
+
/** Remove a tour registered with defineTour. */
|
|
534
|
+
removeTour: (tourId: string) => void;
|
|
535
|
+
/**
|
|
536
|
+
* Whether a tour is ready to start: every step that references a `targetId`
|
|
537
|
+
* has its <TourTarget> registered (steps with targetRef / targetRegion / no
|
|
538
|
+
* target always count as ready). Accepts a defined tour's id or a steps
|
|
539
|
+
* array. Useful to delay startTour until async screens have mounted.
|
|
540
|
+
*/
|
|
541
|
+
canStartTour: (tourOrSteps: string | TourStep[]) => boolean;
|
|
542
|
+
/** Move to the next step */
|
|
543
|
+
nextStep: () => void;
|
|
544
|
+
/** Move to the previous step */
|
|
545
|
+
prevStep: () => void;
|
|
546
|
+
/** Skip the entire tour */
|
|
547
|
+
skipTour: () => void;
|
|
548
|
+
/** End the tour programmatically */
|
|
549
|
+
endTour: () => void;
|
|
550
|
+
/** Jump to a specific step index (within active steps) */
|
|
551
|
+
goToStep: (index: number) => void;
|
|
552
|
+
/** Pause the tour (hides overlay, preserves state) */
|
|
553
|
+
pauseTour: () => void;
|
|
554
|
+
/** Resume a paused tour */
|
|
555
|
+
resumeTour: () => void;
|
|
556
|
+
/**
|
|
557
|
+
* Mark a step's gating condition met (or unmet). A step with
|
|
558
|
+
* `completed: false` keeps its Next button disabled until this is called
|
|
559
|
+
* with `true`.
|
|
560
|
+
*/
|
|
561
|
+
setStepCompleted: (stepId: string, completed: boolean) => void;
|
|
562
|
+
/** Register a <TourTarget> so steps can reference it by `targetId`. Called by TourTarget. */
|
|
563
|
+
registerTarget: (id: string, ref: MeasurableRef, style?: StyleProp<ViewStyle>) => void;
|
|
564
|
+
/**
|
|
565
|
+
* Unregister a <TourTarget> (called on unmount). Pass the same ref that was
|
|
566
|
+
* registered so an unmounting duplicate can't remove a still-mounted
|
|
567
|
+
* instance's registration; without a ref, removal is unconditional.
|
|
568
|
+
*/
|
|
569
|
+
unregisterTarget: (id: string, ref?: MeasurableRef) => void;
|
|
570
|
+
/** Look up a registered target by id. */
|
|
571
|
+
getTarget: (id: string) => RegisteredTarget | undefined;
|
|
572
|
+
/** Set the target layout (internal) */
|
|
573
|
+
setTargetLayout: (layout: SpotlightTarget | null) => void;
|
|
574
|
+
/** Current target layout */
|
|
575
|
+
targetLayout: SpotlightTarget | null;
|
|
576
|
+
/**
|
|
577
|
+
* Lifecycle event subscriptions — the analytics-friendly alternative to
|
|
578
|
+
* config callbacks. Attach once (e.g. at app root):
|
|
579
|
+
* `events.on('stepChange', ({ from, to }) => track(...))`.
|
|
580
|
+
*/
|
|
581
|
+
events: TourEvents;
|
|
582
|
+
/** @internal Reports a scroll offset from useTourScroll. */
|
|
583
|
+
__reportScroll?: (y: number) => void;
|
|
584
|
+
/** @internal Reports momentum-scroll end from useTourScroll. */
|
|
585
|
+
__reportScrollEnd?: () => void;
|
|
586
|
+
/** @internal Subscribe to reported scroll offsets. Returns unsubscribe. */
|
|
587
|
+
__subscribeScroll?: (cb: (y: number) => void) => () => void;
|
|
588
|
+
/** @internal Subscribe to momentum-scroll-end signals. Returns unsubscribe. */
|
|
589
|
+
__subscribeScrollEnd?: (cb: () => void) => () => void;
|
|
590
|
+
/** @internal Last scroll offset reported through useTourScroll, if any. */
|
|
591
|
+
__getTrackedScrollY?: () => number | undefined;
|
|
592
|
+
/**
|
|
593
|
+
* Registers a mounted `<TourGuideOverlay />` so the provider can warn (in dev)
|
|
594
|
+
* when no overlay — or more than one — is mounted. Returns its cleanup.
|
|
595
|
+
* @internal Not part of the supported public API.
|
|
596
|
+
*/
|
|
597
|
+
__registerOverlay?: () => () => void;
|
|
598
|
+
}
|
|
599
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;GAGG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAE3C;;;GAGG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,SAAS,EAAE,aAAa,CAAC;IACzB,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OA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