@userflow-tech/react-native 0.3.0 → 0.4.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/README.md +360 -70
- package/docs/anchoring.md +58 -42
- package/docs/troubleshooting.md +69 -27
- package/expo-plugin/hostDependencyWarnings.d.ts +21 -0
- package/expo-plugin/hostDependencyWarnings.d.ts.map +1 -0
- package/expo-plugin/hostDependencyWarnings.js +101 -0
- package/expo-plugin/hostDependencyWarnings.js.map +1 -0
- package/expo-plugin/withUserflow.d.ts.map +1 -1
- package/expo-plugin/withUserflow.js +16 -0
- package/expo-plugin/withUserflow.js.map +1 -1
- package/lib/commonjs/anchors/AnchorRegistry.js +7 -0
- package/lib/commonjs/anchors/AnchorRegistry.js.map +1 -1
- package/lib/commonjs/anchors/elementConditionEvaluator.js +189 -55
- package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/commonjs/anchors/elementTapMonitor.js +92 -0
- package/lib/commonjs/anchors/elementTapMonitor.js.map +1 -0
- package/lib/commonjs/anchors/elementTargetMatch.js +85 -0
- package/lib/commonjs/anchors/elementTargetMatch.js.map +1 -0
- package/lib/commonjs/anchors/fiber/findAnchorFiber.js +64 -39
- package/lib/commonjs/anchors/fiber/findAnchorFiber.js.map +1 -1
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js +105 -0
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js.map +1 -0
- package/lib/commonjs/anchors/resolveAnchorHost.js +2 -1
- package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js +4 -2
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -1
- package/lib/commonjs/anchors/resolveElementTargets.js +158 -0
- package/lib/commonjs/anchors/resolveElementTargets.js.map +1 -0
- package/lib/commonjs/anchors/targetPressMonitor.js +9 -3
- package/lib/commonjs/anchors/targetPressMonitor.js.map +1 -1
- package/lib/commonjs/anchors/useUserflowAnchor.js +1 -0
- package/lib/commonjs/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/commonjs/anonymousId.js +16 -7
- package/lib/commonjs/anonymousId.js.map +1 -1
- package/lib/commonjs/authoring/capturePickerScreenshot.js +9 -1
- package/lib/commonjs/authoring/capturePickerScreenshot.js.map +1 -1
- package/lib/commonjs/evalJs/getWebView.js +5 -13
- package/lib/commonjs/evalJs/getWebView.js.map +1 -1
- package/lib/commonjs/hostAppVersion.js +6 -1
- package/lib/commonjs/hostAppVersion.js.map +1 -1
- package/lib/commonjs/index.js +5 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/installCheck.js +183 -0
- package/lib/commonjs/installCheck.js.map +1 -0
- package/lib/commonjs/nativeModules.js +44 -0
- package/lib/commonjs/nativeModules.js.map +1 -0
- package/lib/commonjs/network.js +20 -7
- package/lib/commonjs/network.js.map +1 -1
- package/lib/commonjs/pairing/deviceId.js +14 -11
- package/lib/commonjs/pairing/deviceId.js.map +1 -1
- package/lib/commonjs/pairing/tokenStorage.js +17 -4
- package/lib/commonjs/pairing/tokenStorage.js.map +1 -1
- package/lib/commonjs/runtime/TargetPressBridge.js +12 -1
- package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -1
- package/lib/commonjs/runtime/UserflowProvider.js +6 -3
- package/lib/commonjs/runtime/UserflowProvider.js.map +1 -1
- package/lib/commonjs/storage/asyncStorage.js +67 -0
- package/lib/commonjs/storage/asyncStorage.js.map +1 -0
- package/lib/commonjs/surfaces/BannerSurface.js +3 -1
- package/lib/commonjs/surfaces/BannerSurface.js.map +1 -1
- package/lib/commonjs/surfaces/safeArea.js +74 -28
- package/lib/commonjs/surfaces/safeArea.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/anchors/AnchorRegistry.js +7 -0
- package/lib/module/anchors/AnchorRegistry.js.map +1 -1
- package/lib/module/anchors/elementConditionEvaluator.js +189 -55
- package/lib/module/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/module/anchors/elementTapMonitor.js +87 -0
- package/lib/module/anchors/elementTapMonitor.js.map +1 -0
- package/lib/module/anchors/elementTargetMatch.js +78 -0
- package/lib/module/anchors/elementTargetMatch.js.map +1 -0
- package/lib/module/anchors/fiber/findAnchorFiber.js +62 -39
- package/lib/module/anchors/fiber/findAnchorFiber.js.map +1 -1
- package/lib/module/anchors/fiber/touchTargetFiber.js +100 -0
- package/lib/module/anchors/fiber/touchTargetFiber.js.map +1 -0
- package/lib/module/anchors/resolveAnchorHost.js +2 -1
- package/lib/module/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/module/anchors/resolveAutoAnchorHost.js +3 -3
- package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -1
- package/lib/module/anchors/resolveElementTargets.js +152 -0
- package/lib/module/anchors/resolveElementTargets.js.map +1 -0
- package/lib/module/anchors/targetPressMonitor.js +8 -3
- package/lib/module/anchors/targetPressMonitor.js.map +1 -1
- package/lib/module/anchors/useUserflowAnchor.js +1 -0
- package/lib/module/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/module/anonymousId.js +15 -5
- package/lib/module/anonymousId.js.map +1 -1
- package/lib/module/authoring/capturePickerScreenshot.js +9 -1
- package/lib/module/authoring/capturePickerScreenshot.js.map +1 -1
- package/lib/module/evalJs/getWebView.js +5 -13
- package/lib/module/evalJs/getWebView.js.map +1 -1
- package/lib/module/hostAppVersion.js +6 -1
- package/lib/module/hostAppVersion.js.map +1 -1
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/installCheck.js +169 -0
- package/lib/module/installCheck.js.map +1 -0
- package/lib/module/nativeModules.js +40 -0
- package/lib/module/nativeModules.js.map +1 -0
- package/lib/module/network.js +20 -7
- package/lib/module/network.js.map +1 -1
- package/lib/module/pairing/deviceId.js +14 -10
- package/lib/module/pairing/deviceId.js.map +1 -1
- package/lib/module/pairing/tokenStorage.js +17 -4
- package/lib/module/pairing/tokenStorage.js.map +1 -1
- package/lib/module/runtime/TargetPressBridge.js +12 -1
- package/lib/module/runtime/TargetPressBridge.js.map +1 -1
- package/lib/module/runtime/UserflowProvider.js +7 -4
- package/lib/module/runtime/UserflowProvider.js.map +1 -1
- package/lib/module/storage/asyncStorage.js +61 -0
- package/lib/module/storage/asyncStorage.js.map +1 -0
- package/lib/module/surfaces/BannerSurface.js +3 -1
- package/lib/module/surfaces/BannerSurface.js.map +1 -1
- package/lib/module/surfaces/safeArea.js +70 -28
- package/lib/module/surfaces/safeArea.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts +7 -0
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts +12 -16
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/elementTapMonitor.d.ts +36 -0
- package/lib/typescript/commonjs/src/anchors/elementTapMonitor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/elementTargetMatch.d.ts +20 -0
- package/lib/typescript/commonjs/src/anchors/elementTargetMatch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts +17 -5
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/touchTargetFiber.d.ts +24 -0
- package/lib/typescript/commonjs/src/anchors/fiber/touchTargetFiber.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +2 -1
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts +10 -1
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/resolveElementTargets.d.ts +39 -0
- package/lib/typescript/commonjs/src/anchors/resolveElementTargets.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts +2 -0
- package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anonymousId.d.ts +2 -0
- package/lib/typescript/commonjs/src/anonymousId.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/capturePickerScreenshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts +2 -1
- package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hostAppVersion.d.ts +1 -1
- package/lib/typescript/commonjs/src/hostAppVersion.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/installCheck.d.ts +48 -0
- package/lib/typescript/commonjs/src/installCheck.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/nativeModules.d.ts +13 -0
- package/lib/typescript/commonjs/src/nativeModules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/network.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/deviceId.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts +2 -1
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/storage/asyncStorage.d.ts +15 -0
- package/lib/typescript/commonjs/src/storage/asyncStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts +6 -2
- package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/version.d.ts +1 -1
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts +7 -0
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts +12 -16
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/elementTapMonitor.d.ts +36 -0
- package/lib/typescript/module/src/anchors/elementTapMonitor.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/elementTargetMatch.d.ts +20 -0
- package/lib/typescript/module/src/anchors/elementTargetMatch.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts +17 -5
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/touchTargetFiber.d.ts +24 -0
- package/lib/typescript/module/src/anchors/fiber/touchTargetFiber.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +2 -1
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts +10 -1
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/resolveElementTargets.d.ts +39 -0
- package/lib/typescript/module/src/anchors/resolveElementTargets.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts +2 -0
- package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/module/src/anonymousId.d.ts +2 -0
- package/lib/typescript/module/src/anonymousId.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/capturePickerScreenshot.d.ts.map +1 -1
- package/lib/typescript/module/src/evalJs/getWebView.d.ts +2 -1
- package/lib/typescript/module/src/evalJs/getWebView.d.ts.map +1 -1
- package/lib/typescript/module/src/hostAppVersion.d.ts +1 -1
- package/lib/typescript/module/src/hostAppVersion.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/installCheck.d.ts +48 -0
- package/lib/typescript/module/src/installCheck.d.ts.map +1 -0
- package/lib/typescript/module/src/nativeModules.d.ts +13 -0
- package/lib/typescript/module/src/nativeModules.d.ts.map +1 -0
- package/lib/typescript/module/src/network.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/deviceId.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts +2 -1
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/module/src/storage/asyncStorage.d.ts +15 -0
- package/lib/typescript/module/src/storage/asyncStorage.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/safeArea.d.ts +6 -2
- package/lib/typescript/module/src/surfaces/safeArea.d.ts.map +1 -1
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +25 -8
- package/src/anchors/AnchorRegistry.ts +12 -0
- package/src/anchors/elementConditionEvaluator.ts +235 -70
- package/src/anchors/elementTapMonitor.ts +95 -0
- package/src/anchors/elementTargetMatch.ts +90 -0
- package/src/anchors/fiber/findAnchorFiber.ts +66 -35
- package/src/anchors/fiber/touchTargetFiber.ts +125 -0
- package/src/anchors/resolveAnchorHost.ts +2 -1
- package/src/anchors/resolveAutoAnchorHost.ts +3 -3
- package/src/anchors/resolveElementTargets.ts +165 -0
- package/src/anchors/targetPressMonitor.ts +12 -3
- package/src/anchors/useUserflowAnchor.ts +1 -0
- package/src/anonymousId.ts +19 -8
- package/src/authoring/capturePickerScreenshot.ts +10 -1
- package/src/evalJs/getWebView.ts +6 -13
- package/src/hostAppVersion.ts +7 -1
- package/src/index.ts +10 -0
- package/src/installCheck.ts +225 -0
- package/src/nativeModules.ts +48 -0
- package/src/network.ts +27 -11
- package/src/pairing/deviceId.ts +14 -11
- package/src/pairing/tokenStorage.ts +23 -7
- package/src/runtime/TargetPressBridge.tsx +17 -1
- package/src/runtime/UserflowProvider.tsx +11 -4
- package/src/storage/asyncStorage.ts +88 -0
- package/src/surfaces/BannerSurface.tsx +7 -5
- package/src/surfaces/safeArea.ts +85 -40
- package/src/version.ts +1 -1
- package/vendor/core/dist/constants.d.ts +2 -0
- package/vendor/core/dist/constants.d.ts.map +1 -1
- package/vendor/core/dist/constants.js +2 -0
- package/vendor/core/dist/constants.js.map +1 -1
- package/vendor/core/dist/engine/ClientConditionEngine.d.ts +20 -1
- package/vendor/core/dist/engine/ClientConditionEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/ClientConditionEngine.js +13 -10
- package/vendor/core/dist/engine/ClientConditionEngine.js.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +21 -2
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/index.d.ts +1 -1
- package/vendor/core/dist/index.d.ts.map +1 -1
- package/vendor/core/dist/index.js.map +1 -1
- package/vendor/core/dist/version.d.ts +1 -1
- package/vendor/core/dist/version.js +1 -1
- package/vendor/core/package.json +1 -1
- package/vendor/protocol/package.json +1 -1
- package/docs/webview-custom-banner-poc.md +0 -64
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import type { ConditionEvaluator } from '@userflow-tech/core';
|
|
2
2
|
/**
|
|
3
3
|
* Evaluate ELEMENT client conditions against manual anchors, fiber-resolved
|
|
4
|
-
* `testID` / `nativeID` / `accessibilityLabel` targets, and AUTO
|
|
5
|
-
* selectors.
|
|
4
|
+
* `userflowId` / `testID` / `nativeID` / `accessibilityLabel` targets, and AUTO
|
|
5
|
+
* (codeless) selectors.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* just because the auto-anchor registry is empty. Web-interaction states
|
|
11
|
-
* (CLICK, DISABLED, …) still report unknown.
|
|
7
|
+
* PRESENT / NOT_PRESENT: any uniquely-or-not host on a visible navigator screen
|
|
8
|
+
* counts (web parity — duplicates are present). A measured 0×0 host counts as
|
|
9
|
+
* absent. AUTO `unknown` / `ambiguous` stay `null`.
|
|
12
10
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* ScrollView, opacity 0, etc.) would need async `measureInWindow` and is out
|
|
18
|
-
* of scope.
|
|
11
|
+
* CLICK / NOT_CLICK: latch from the first matching tap, including a tap on a
|
|
12
|
+
* descendant. The latch survives re-attach via `previousIsTrue` and is cleared
|
|
13
|
+
* when the server untracks. Disabled hosts are ignored. Until it latches, an
|
|
14
|
+
* AUTO selector that does not resolve reports `null`, like presence.
|
|
19
15
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
16
|
+
* Element states are compared as string literals rather than protocol enums so
|
|
17
|
+
* the wire values stay obvious next to the branches. They match
|
|
18
|
+
* `FlowConditionElementState`.
|
|
23
19
|
*/
|
|
24
20
|
export declare function createElementConditionEvaluator(warn?: (message: string) => void): ConditionEvaluator;
|
|
25
21
|
//# sourceMappingURL=elementConditionEvaluator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementConditionEvaluator.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/elementConditionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"elementConditionEvaluator.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/elementConditionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAGnB,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,GAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAK1B,GACA,kBAAkB,CA2BpB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pass-through tap observation for ELEMENT CLICK / NOT_CLICK conditions.
|
|
3
|
+
*
|
|
4
|
+
* Many conditions can subscribe at once. Touch start/end are paired per finger
|
|
5
|
+
* and a tap is emitted only when movement stays within the same slop the
|
|
6
|
+
* tooltip target-press monitor uses. The host fiber is the one captured at
|
|
7
|
+
* touch start, before the press's setState commits a new tree.
|
|
8
|
+
*
|
|
9
|
+
* With no subscribers the monitor stores nothing, so the bridge can skip the
|
|
10
|
+
* fiber lookup entirely.
|
|
11
|
+
*/
|
|
12
|
+
import type { AnyFiber } from './fiber/fiberInternals';
|
|
13
|
+
import { type TouchIdentifier } from './targetPressMonitor';
|
|
14
|
+
export interface ElementTap {
|
|
15
|
+
targetFiber: AnyFiber;
|
|
16
|
+
}
|
|
17
|
+
export type ElementTapListener = (tap: ElementTap) => void;
|
|
18
|
+
export declare class ElementTapMonitor {
|
|
19
|
+
private readonly listeners;
|
|
20
|
+
private readonly touchStarts;
|
|
21
|
+
get subscriberCount(): number;
|
|
22
|
+
subscribe(listener: ElementTapListener): () => void;
|
|
23
|
+
handleTouchStart(identifier: TouchIdentifier, pageX: number, pageY: number, targetFiber: AnyFiber | null): void;
|
|
24
|
+
/**
|
|
25
|
+
* Emit a tap when this finger started and ended within slop on a resolved
|
|
26
|
+
* host. Never claims the responder.
|
|
27
|
+
*/
|
|
28
|
+
handleTouchEnd(identifier: TouchIdentifier, pageX: number, pageY: number): void;
|
|
29
|
+
/** Drop in-progress gesture(s). Omit `identifier` to clear every finger. */
|
|
30
|
+
cancelTouch(identifier?: TouchIdentifier): void;
|
|
31
|
+
/** Test helper. */
|
|
32
|
+
resetForTests(): void;
|
|
33
|
+
}
|
|
34
|
+
/** Shared singleton used by TargetPressBridge and the element-condition evaluator. */
|
|
35
|
+
export declare const elementTapMonitor: ElementTapMonitor;
|
|
36
|
+
//# sourceMappingURL=elementTapMonitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementTapMonitor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/elementTapMonitor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,KAAK,eAAe,EAAkC,MAAM,sBAAsB,CAAC;AAE5F,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;AAM3D,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0C;IAEtE,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,SAAS,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI;IAUnD,gBAAgB,CACd,UAAU,EAAE,eAAe,EAC3B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,QAAQ,GAAG,IAAI,GAC3B,IAAI;IAQP;;;OAGG;IACH,cAAc,CAAC,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAkB/E,4EAA4E;IAC5E,WAAW,CAAC,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI;IAQ/C,mBAAmB;IACnB,aAAa,IAAI,IAAI;CAItB;AAED,sFAAsF;AACtF,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compare a touch-start fiber with a host resolved later, tolerating the
|
|
3
|
+
* alternate swap a Pressable `pressed` re-render does mid-gesture.
|
|
4
|
+
*/
|
|
5
|
+
import type { ElementTap } from './elementTapMonitor';
|
|
6
|
+
import { type AnyFiber } from './fiber/fiberInternals';
|
|
7
|
+
/**
|
|
8
|
+
* Anchor ids on the tapped fiber and its ancestors, built once per tap and
|
|
9
|
+
* shared by every click condition it is delivered to.
|
|
10
|
+
*/
|
|
11
|
+
export declare function anchorIdsAboveTap(tap: ElementTap): ReadonlySet<string>;
|
|
12
|
+
export declare function sameFiber(a: AnyFiber, b: AnyFiber): boolean;
|
|
13
|
+
/** True when `node` is `host` or a descendant of it. */
|
|
14
|
+
export declare function fiberIsUnder(node: AnyFiber, host: AnyFiber): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* True when the tapped fiber, the matched host, or a fiber between them is
|
|
17
|
+
* disabled. Browsers do not fire `click` on a disabled control.
|
|
18
|
+
*/
|
|
19
|
+
export declare function tapPathDisabled(tapped: AnyFiber, host: AnyFiber): boolean;
|
|
20
|
+
//# sourceMappingURL=elementTargetMatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementTargetMatch.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/elementTargetMatch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,wBAAwB,CAAC;AAKhC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAkBtE;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,CAM3D;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAOpE;AAoBD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAQzE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type AnyFiber } from './fiberInternals';
|
|
2
|
-
export type AnchorPropTier = 'testID' | 'nativeID' | 'accessibilityLabel';
|
|
2
|
+
export type AnchorPropTier = 'userflowId' | 'testID' | 'nativeID' | 'accessibilityLabel';
|
|
3
|
+
/** Props an anchor id can sit on, strongest first. */
|
|
4
|
+
export declare const ANCHOR_PROP_TIERS: readonly AnchorPropTier[];
|
|
3
5
|
export type FindAnchorFiberResult = {
|
|
4
6
|
status: 'found';
|
|
5
7
|
fiber: AnyFiber;
|
|
@@ -10,21 +12,31 @@ export type FindAnchorFiberResult = {
|
|
|
10
12
|
} | {
|
|
11
13
|
status: 'missing';
|
|
12
14
|
};
|
|
15
|
+
/** Every collapsed host of the winning tier. Duplicates stay in the list. */
|
|
16
|
+
export type FindAnchorFibersResult = {
|
|
17
|
+
status: 'found';
|
|
18
|
+
fibers: AnyFiber[];
|
|
19
|
+
tier: AnchorPropTier;
|
|
20
|
+
} | {
|
|
21
|
+
status: 'missing';
|
|
22
|
+
};
|
|
13
23
|
/**
|
|
14
24
|
* Bounded DFS under `rootFiber` looking for fibers whose memoizedProps match
|
|
15
|
-
* `id` on testID, then nativeID, then accessibilityLabel.
|
|
16
|
-
* tier that has any match so a testID hit is never made
|
|
17
|
-
* unrelated accessibilityLabel.
|
|
25
|
+
* `id` on userflowId, then testID, then nativeID, then accessibilityLabel.
|
|
26
|
+
* Uses the highest tier that has any match so a testID hit is never made
|
|
27
|
+
* ambiguous by an unrelated accessibilityLabel.
|
|
18
28
|
*
|
|
19
29
|
* A composite match resolves to the host beneath it that carries the same id
|
|
20
30
|
* (e.g. a tab item that wraps its button in a View and forwards testID to the
|
|
21
31
|
* button), else to its shallowest host descendant. Multiple matches on a single
|
|
22
32
|
* root-to-leaf chain (e.g. Pressable forwarding testID to its inner View)
|
|
23
|
-
* collapse to the outermost host. Disjoint matches
|
|
33
|
+
* collapse to the outermost host. Disjoint matches stay in the list returned by
|
|
34
|
+
* {@link findAnchorFibers}; {@link findAnchorFiber} fails closed on those.
|
|
24
35
|
*
|
|
25
36
|
* The walk never follows `rootFiber.sibling` so the Userflow overlay (a sibling
|
|
26
37
|
* of {@link FiberScanRoot} in UserflowProvider) cannot self-match SDK testIDs.
|
|
27
38
|
*/
|
|
39
|
+
export declare function findAnchorFibers(rootFiber: AnyFiber, id: string): FindAnchorFibersResult;
|
|
28
40
|
export declare function findAnchorFiber(rootFiber: AnyFiber, id: string): FindAnchorFiberResult;
|
|
29
41
|
/**
|
|
30
42
|
* BFS under `fiber` for the shallowest host descendant. Returns `fiber` itself
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findAnchorFiber.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/findAnchorFiber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,kBAAkB,CAAC;AAa1B,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"findAnchorFiber.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/findAnchorFiber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,kBAAkB,CAAC;AAa1B,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,oBAAoB,CAAC;AAEzF,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAKtD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAC7B;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GAC1D;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GAC7C;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1B,6EAA6E;AAC7E,MAAM,MAAM,sBAAsB,GAC9B;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GAC7D;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AAE1B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,sBAAsB,CAKxF;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,qBAAqB,CAOtF;AAsID;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,SAAQ,GAAG,QAAQ,GAAG,IAAI,CAkBxF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host fiber under a touch, resolved synchronously from the responder event.
|
|
3
|
+
*
|
|
4
|
+
* Feature-detected and never throws. A renderer that does not expose any of
|
|
5
|
+
* these pointers degrades to "no target", so a click condition simply does not
|
|
6
|
+
* latch.
|
|
7
|
+
*
|
|
8
|
+
* Order:
|
|
9
|
+
* 1. `event._targetInst` (React's fiber for the touched component)
|
|
10
|
+
* 2. `event.target` public instance via {@link lookupHostFiber}
|
|
11
|
+
* 3. The touch's native tag (`changedTouches[].target`, else `nativeEvent.target`)
|
|
12
|
+
* via the scan-root host index
|
|
13
|
+
*/
|
|
14
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
15
|
+
import { type AnyFiber } from './fiberInternals';
|
|
16
|
+
export declare function touchTargetFiber(event: GestureResponderEvent, identifier?: number | string): AnyFiber | null;
|
|
17
|
+
/**
|
|
18
|
+
* Fabric sends one touch event per touched view, and each lists every finger
|
|
19
|
+
* that changed. True when `identifier`'s finger is on this event's own view,
|
|
20
|
+
* so a caller can record each finger once, from its own event, instead of
|
|
21
|
+
* overwriting it from another finger's. Unreadable tags count as this event's.
|
|
22
|
+
*/
|
|
23
|
+
export declare function touchBelongsToEvent(event: GestureResponderEvent, identifier: number | string): boolean;
|
|
24
|
+
//# sourceMappingURL=touchTargetFiber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"touchTargetFiber.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/touchTargetFiber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EACL,KAAK,QAAQ,EAKd,MAAM,kBAAkB,CAAC;AAI1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,qBAAqB,EAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAC3B,QAAQ,GAAG,IAAI,CAiBjB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,qBAAqB,EAC5B,UAAU,EAAE,MAAM,GAAG,MAAM,GAC1B,OAAO,CAST"}
|
|
@@ -23,7 +23,8 @@ export declare function invalidateFiberAnchor(id: string): void;
|
|
|
23
23
|
*
|
|
24
24
|
* Tier 0: {@link anchorRegistry} (`useUserflowAnchor`) — higher priority, fails
|
|
25
25
|
* closed on ambiguous registry keys.
|
|
26
|
-
* Tier 1+: fiber scan for `testID`, then `nativeID`, then
|
|
26
|
+
* Tier 1+: fiber scan for `userflowId`, then `testID`, then `nativeID`, then
|
|
27
|
+
* `accessibilityLabel`.
|
|
27
28
|
*
|
|
28
29
|
* Synchronous (the walk is pure JS; only measurement is async via the returned
|
|
29
30
|
* host). Caches the resolved fiber per id and revalidates cheaply before reuse.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAnchorHost.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/resolveAnchorHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU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;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAmD9D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MobileAutoData } from '@userflow-tech/protocol';
|
|
1
|
+
import { type MobileAutoData, type MobileFingerprint } from '@userflow-tech/protocol';
|
|
2
2
|
import type { AnchorHost } from './AnchorRegistry';
|
|
3
3
|
import type { AnyFiber } from './fiber/fiberInternals';
|
|
4
4
|
import { type MatchResult } from './semanticMatcher';
|
|
@@ -22,6 +22,15 @@ export type AutoAnchorResolution = {
|
|
|
22
22
|
status: 'unknown';
|
|
23
23
|
match?: MatchResult;
|
|
24
24
|
};
|
|
25
|
+
/** Authoritative id that the existing fiber / manual resolver can look up. */
|
|
26
|
+
export declare function exactIdFromFingerprint(fp: MobileFingerprint): string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Score visible-screen instances first so a covered look-alike cannot steal
|
|
29
|
+
* uniqueness or win over a host the user can actually see. If nothing visible
|
|
30
|
+
* scored and the unfiltered pool still has a hit, that hit is on a covered
|
|
31
|
+
* screen — `absent`, matching MANUAL covered-screen semantics.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveScoredAutoAnchor(fp: MobileFingerprint): AutoAnchorResolution;
|
|
25
34
|
/**
|
|
26
35
|
* Resolve an AUTO (codeless) selector against the live UI.
|
|
27
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAutoAnchorHost.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/resolveAutoAnchorHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"resolveAutoAnchorHost.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/resolveAutoAnchorHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAMvD,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,MAAM,oBAAoB,GAC5B;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,GACD;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,GAC5C;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,GACzC;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AA8C/C,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAK3E;AA8BD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,iBAAiB,GAAG,oBAAoB,CAWnF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,GACnD,oBAAoB,CAoCtB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve every host an ELEMENT condition should consider.
|
|
3
|
+
*
|
|
4
|
+
* Tooltips fail closed when an id matches more than one view. Conditions follow
|
|
5
|
+
* the web SDK instead: any match counts. AUTO exact ids (`userflowId`, then
|
|
6
|
+
* `testID`, then a real `nativeID`) use that same multi-host lookup, and fall
|
|
7
|
+
* through to scoring only when nothing matched.
|
|
8
|
+
*/
|
|
9
|
+
import { type FlowSelectorFragment } from '@userflow-tech/protocol';
|
|
10
|
+
import { type AnchorHost } from './AnchorRegistry';
|
|
11
|
+
import type { ElementTap } from './elementTapMonitor';
|
|
12
|
+
import { type AnyFiber } from './fiber/fiberInternals';
|
|
13
|
+
export interface ElementTarget {
|
|
14
|
+
host: AnchorHost;
|
|
15
|
+
fiber?: AnyFiber;
|
|
16
|
+
}
|
|
17
|
+
export type ElementTargetResolution = {
|
|
18
|
+
status: 'found';
|
|
19
|
+
targets: ElementTarget[];
|
|
20
|
+
} | {
|
|
21
|
+
status: 'absent';
|
|
22
|
+
} | {
|
|
23
|
+
status: 'unknown';
|
|
24
|
+
/**
|
|
25
|
+
* Ambiguous scored matches stay unknown without a warning. A missing
|
|
26
|
+
* selector or an AUTO payload that cannot be decoded still warns.
|
|
27
|
+
*/
|
|
28
|
+
silent?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare function resolveElementTargets(selector: FlowSelectorFragment | null | undefined): ElementTargetResolution;
|
|
31
|
+
/**
|
|
32
|
+
* False when no target of `selector` can contain `tap`, decided without a tree
|
|
33
|
+
* scan. A fiber-scan target carries its id itself or sits under a composite
|
|
34
|
+
* that does, so a MANUAL id that is neither registered nor on the tap's
|
|
35
|
+
* ancestor chain cannot match. AUTO selectors are not gated: only a scan tells
|
|
36
|
+
* whether the exact id or a scored match applies.
|
|
37
|
+
*/
|
|
38
|
+
export declare function tapMayHitSelector(selector: FlowSelectorFragment | null | undefined, tap: ElementTap): boolean;
|
|
39
|
+
//# sourceMappingURL=resolveElementTargets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveElementTargets.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/resolveElementTargets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,wBAAwB,CAAC;AAiBpF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,MAAM,uBAAuB,GAC/B;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,aAAa,EAAE,CAAA;CAAE,GAC7C;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,GACpB;IACE,MAAM,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEN,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,GAChD,uBAAuB,CAUzB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,EACjD,GAAG,EAAE,UAAU,GACd,OAAO,CAOT"}
|
|
@@ -24,6 +24,8 @@ export interface TouchPoint {
|
|
|
24
24
|
pageX: number;
|
|
25
25
|
pageY: number;
|
|
26
26
|
}
|
|
27
|
+
/** True when the finger moved no more than `slop` between start and end. */
|
|
28
|
+
export declare function withinTapSlop(start: TouchPoint, end: TouchPoint, slop?: number): boolean;
|
|
27
29
|
/**
|
|
28
30
|
* True when start and end both land in `rect` and movement stays within tap
|
|
29
31
|
* slop — mirrors a DOM click on the target without claiming the responder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targetPressMonitor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/targetPressMonitor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;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,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,OAAO,EAAE,MAAM,eAAe,GAAG,IAAI,CAAC;IACtC,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAEhF;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,eAAe,EACrB,IAAI,GAAE,MAA8B,GACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"targetPressMonitor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/targetPressMonitor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;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,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,OAAO,EAAE,MAAM,eAAe,GAAG,IAAI,CAAC;IACtC,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAEhF;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AA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BAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useUserflowAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/useUserflowAnchor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAyDrE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Matches the web SDK's `userflow:anonymousId` localStorage key. */
|
|
2
2
|
export declare const ANONYMOUS_ID_STORAGE_KEY = "userflow:anonymousId";
|
|
3
|
+
export declare const ANONYMOUS_STORAGE_UNAVAILABLE = "Userflow.identifyAnonymous() is not supported when persistent storage is unavailable.";
|
|
4
|
+
export declare const ANONYMOUS_STORAGE_NOT_LINKED: string;
|
|
3
5
|
export declare function uuid(): string;
|
|
4
6
|
export declare function getOrCreateAnonymousId(): Promise<string>;
|
|
5
7
|
export declare function clearAnonymousId(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymousId.d.ts","sourceRoot":"","sources":["../../../../src/anonymousId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anonymousId.d.ts","sourceRoot":"","sources":["../../../../src/anonymousId.ts"],"names":[],"mappings":"AAIA,qEAAqE;AACrE,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D,eAAO,MAAM,6BAA6B,0FAC+C,CAAC;AAE1F,eAAO,MAAM,4BAA4B,QAEwD,CAAC;AAElG,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9D;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAQtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capturePickerScreenshot.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/capturePickerScreenshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capturePickerScreenshot.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/capturePickerScreenshot.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+CzC;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAkCzC;AAED,gBAAgB;AAChB,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD"}
|
|
@@ -51,7 +51,8 @@ export type EvalJsWebViewComponent = ComponentType<EvalJsWebViewProps>;
|
|
|
51
51
|
/**
|
|
52
52
|
* True when the native `react-native-webview` binary is linked. Do not
|
|
53
53
|
* `require('react-native-webview')` before this passes — the JS entry calls
|
|
54
|
-
* `TurboModuleRegistry.getEnforcing('RNCWebViewModule')` and
|
|
54
|
+
* `TurboModuleRegistry.getEnforcing('RNCWebViewModule')` and Metro reports that
|
|
55
|
+
* throw as fatal before try/catch.
|
|
55
56
|
*/
|
|
56
57
|
export declare function isEvalJsWebViewNativeLinked(): boolean;
|
|
57
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWebView.d.ts","sourceRoot":"","sources":["../../../../../src/evalJs/getWebView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"getWebView.d.ts","sourceRoot":"","sources":["../../../../../src/evalJs/getWebView.ts"],"names":[],"mappings":"AAAA,OAA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AE,WAAW,EAAE;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACxE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACrE,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAChC;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAKvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,sBAAsB,GAAG,IAAI,CA+BhE;AAsBD,gBAAgB;AAChB,wBAAgB,+BAA+B,IAAI,IAAI,CAGtD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Read the host app's native marketing version (store version), not the
|
|
3
3
|
* SDK package version. React Native does not expose the store version on
|
|
4
4
|
* `Platform`; Expo hosts may use optional expo modules; bare RN reads
|
|
5
|
-
* `NativeModules.RNDeviceInfo` constants from the
|
|
5
|
+
* `NativeModules.RNDeviceInfo` constants from the device-info native
|
|
6
6
|
* module (after autolink + rebuild). The OS name is `Platform.OS`.
|
|
7
7
|
*
|
|
8
8
|
* Do not `require('react-native-device-info')` — that package throws at import
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostAppVersion.d.ts","sourceRoot":"","sources":["../../../../src/hostAppVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"hostAppVersion.d.ts","sourceRoot":"","sources":["../../../../src/hostAppVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,MAAM,oBAAoB,GAC5B,kBAAkB,GAClB,gBAAgB,GAChB,0BAA0B,GAC1B,eAAe,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7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AAI;IAGzB;;;OAGG;wBACiB,IAAI;CAGzB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const INSTALL_CHECK_HEADER = "[Userflow] Native setup is incomplete. Flows may not run until you fix the following, then rebuild the app (a Metro reload is not enough):";
|
|
2
|
+
export declare const INSTALL_ASYNC_STORAGE_LINE = "- @react-native-async-storage/async-storage is not linked. Anonymous users and Builder pairing will not persist. Add it to the app package.json (npx expo install @react-native-async-storage/async-storage), run pod install on iOS, and rebuild.";
|
|
3
|
+
export declare const INSTALL_VIEW_SHOT_LINE = "- react-native-view-shot is not linked, so Builder element selection gets no screenshot. Install react-native-view-shot@^5.0.0 and rebuild. On Expo SDK 54, pin ^5.0.0; an unpinned npx expo install resolves 4.0.3.";
|
|
4
|
+
export declare const INSTALL_WEBVIEW_LINE = "- react-native-webview is not linked. Evaluate JavaScript and WebView banners will not run. Install it (npx expo install react-native-webview) and rebuild.";
|
|
5
|
+
export declare const INSTALL_DEVICE_INFO_LINE = "- react-native-device-info is not linked, so app_version and app_build are not sent. npm install react-native-device-info, then rebuild.";
|
|
6
|
+
export declare const INSTALL_CHECK_FOOTER = "See node_modules/@userflow-tech/react-native/docs/troubleshooting.md.";
|
|
7
|
+
/**
|
|
8
|
+
* Separate from {@link INSTALL_CHECK_HEADER}. Flows still run without
|
|
9
|
+
* safe-area-context; they draw under the status bar.
|
|
10
|
+
*/
|
|
11
|
+
export declare const INSTALL_SAFE_AREA_WARNING: string;
|
|
12
|
+
/**
|
|
13
|
+
* Separate from {@link INSTALL_CHECK_HEADER}. Flows still run on view-shot 4;
|
|
14
|
+
* Builder screenshots may not. The installed version is interpolated.
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatViewShotVersionWarning(version: string): string;
|
|
17
|
+
export declare const EXPO_GO_WARNING = "[Userflow] This app is running in Expo Go, which cannot load the SDK native modules. Builder preview links will not open the app. Use a development build (npx expo run:ios / npx expo run:android).";
|
|
18
|
+
export declare const INIT_OPTIONS_IGNORED_WARNING = "[Userflow] Userflow.init() already ran with different options. The new clientToken, serverEndpoint, and pairingEndpoint are ignored because init runs once per process. Userflow.reset() does not apply new credentials. Restart the app to change them.";
|
|
19
|
+
/** Dev warning when view-shot 4.x is installed. Null on 5.x or when it is absent. */
|
|
20
|
+
export declare function viewShotVersionWarning(): string | null;
|
|
21
|
+
/** Lines for missing native modules. Empty when the build looks complete. */
|
|
22
|
+
export declare function collectInstallFindings(): string[];
|
|
23
|
+
export declare function expoGoWarning(): string | null;
|
|
24
|
+
export declare function formatInstallWarning(findings: readonly string[]): string;
|
|
25
|
+
/**
|
|
26
|
+
* One development warning for missing native modules, separate warnings when
|
|
27
|
+
* safe-area-context is not installed or view-shot is older than 5, and a
|
|
28
|
+
* separate warning when the host is Expo Go. Release builds stay quiet. The
|
|
29
|
+
* safe-area and old view-shot warnings are not part of the native-module list:
|
|
30
|
+
* flows still run, and that list says they may not.
|
|
31
|
+
*/
|
|
32
|
+
export declare function warnIfInstallIncomplete(): void;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare function resetInstallCheckForTests(): void;
|
|
35
|
+
export declare function warnIfInitOptionsIgnored(config: {
|
|
36
|
+
clientToken: string;
|
|
37
|
+
serverEndpoint?: string;
|
|
38
|
+
pairingEndpoint?: string;
|
|
39
|
+
}): void;
|
|
40
|
+
/** The in-flight `init` resolved, so later calls really are ignored. */
|
|
41
|
+
export declare function commitInitOptions(): void;
|
|
42
|
+
/**
|
|
43
|
+
* The in-flight `init` rejected. Core drops its cached promise and will run
|
|
44
|
+
* the next call, so a corrected token or endpoint must not warn.
|
|
45
|
+
* A rejection after a successful init does not forget that success.
|
|
46
|
+
*/
|
|
47
|
+
export declare function releaseFailedInitOptions(): void;
|
|
48
|
+
//# sourceMappingURL=installCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installCheck.d.ts","sourceRoot":"","sources":["../../../../src/installCheck.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,+IAC6G,CAAC;AAE/I,eAAO,MAAM,0BAA0B,uPAC+M,CAAC;AAEvP,eAAO,MAAM,sBAAsB,yNACqL,CAAC;AAEzN,eAAO,MAAM,oBAAoB,gKAC8H,CAAC;AAEhK,eAAO,MAAM,wBAAwB,6IACuG,CAAC;AAE7I,eAAO,MAAM,oBAAoB,0EACwC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAEhB,CAAC;AAEvB;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,eAAO,MAAM,eAAe,yMAC4K,CAAC;AAEzM,eAAO,MAAM,4BAA4B,6PACmN,CAAC;AA0C7P,qFAAqF;AACrF,wBAAgB,sBAAsB,IAAI,MAAM,GAAG,IAAI,CAOtD;AAED,6EAA6E;AAC7E,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAWjD;AAED,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAI7C;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CA0B9C;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,IAAI,IAAI,CAIhD;AAwBD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,IAAI,CAgBP;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a native module is registered in this binary.
|
|
3
|
+
*
|
|
4
|
+
* Check this before `require`ing a package that throws while it loads when the
|
|
5
|
+
* native half is missing. Metro reports that throw as a fatal error before the
|
|
6
|
+
* caller's try/catch runs, which is a red screen in debug and can crash a
|
|
7
|
+
* release build.
|
|
8
|
+
*
|
|
9
|
+
* React Native modules show up on `TurboModuleRegistry` or `NativeModules`.
|
|
10
|
+
* Expo modules are on `globalThis.expo.modules` (see `requireOptionalNativeModule`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function isNativeModuleLinked(name: string): boolean;
|
|
13
|
+
//# sourceMappingURL=nativeModules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeModules.d.ts","sourceRoot":"","sources":["../../../../src/nativeModules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAoBH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAiB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../../src/network.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../../src/network.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,gEAAgE;IAChE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,yEAAyE;IACzE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;CACtE;AAqDD;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2D;IAErF,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAwB;gBAE7B,IAAI,EAAE,qBAAqB;IAKvC,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,IAAI;IAQZ,yBAAyB;IACzB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAa1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceId.d.ts","sourceRoot":"","sources":["../../../../../src/pairing/deviceId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deviceId.d.ts","sourceRoot":"","sources":["../../../../../src/pairing/deviceId.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,6BAA6B,CAAC;AAIxE,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,MAAM,CAAC,CA0BlE;AAED,4EAA4E;AAC5E,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenStorage.d.ts","sourceRoot":"","sources":["../../../../../src/pairing/tokenStorage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"tokenStorage.d.ts","sourceRoot":"","sources":["../../../../../src/pairing/tokenStorage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAO1D,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AACjE,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,GAAG,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9B,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,wCAAwC;IACxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,IAAI,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9C,UAAU,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAwDD,2EAA2E;AAC3E,wBAAgB,6BAA6B,IAAI,iBAAiB,CAqBjE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAyD3D;AAED,mDAAmD;AACnD,wBAAgB,mCAAmC,IAAI,IAAI,CAE1D"}
|
|
@@ -9,7 +9,8 @@ export interface TargetPressBridgeProps {
|
|
|
9
9
|
*
|
|
10
10
|
* The Userflow overlay is a sibling above the app, so hole Pressables would
|
|
11
11
|
* intercept presses. Instead we hit-test bubbled `onTouchStart` / `onTouchEnd`
|
|
12
|
-
* against the rect registered by {@link TooltipSurface}
|
|
12
|
+
* against the rect registered by {@link TooltipSurface}, and — while an
|
|
13
|
+
* element click condition is tracked — against the fiber under the finger.
|
|
13
14
|
*
|
|
14
15
|
* Preview-chrome double taps are observed by `DoubleTapBridge` around the
|
|
15
16
|
* whole provider tree — this bridge never sees overlay touches.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetPressBridge.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/TargetPressBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TargetPressBridge.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/TargetPressBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY,CAuD1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserflowProvider.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/UserflowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UserflowProvider.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/UserflowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAID,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yDAAyD;IACzD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AA0CD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,gBAAgB,GAC/B,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAoF5C;AAoBD,2EAA2E;AAC3E,wBAAgB,WAAW,IAAI,oBAAoB,CAMlD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AsyncStorageLike {
|
|
2
|
+
getItem(key: string): Promise<string | null>;
|
|
3
|
+
setItem(key: string, value: string): Promise<void>;
|
|
4
|
+
removeItem(key: string): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
/** True when some AsyncStorage native binary is in this build. */
|
|
7
|
+
export declare function isAsyncStorageLinked(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The AsyncStorage JS API, or `null` when the package or its native module is
|
|
10
|
+
* missing. Never requires the package until the native module is registered.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAsyncStorage(): AsyncStorageLike | null;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare function resetAsyncStorageCacheForTests(): void;
|
|
15
|
+
//# sourceMappingURL=asyncStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncStorage.d.ts","sourceRoot":"","sources":["../../../../../src/storage/asyncStorage.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC;AA6BD,kEAAkE;AAClE,wBAAgB,oBAAoB,IAAI,OAAO,CAI9C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,gBAAgB,GAAG,IAAI,CAyBzD;AAED,gBAAgB;AAChB,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerSurface.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/BannerSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,SAAS,EAAE,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,SAAS,EAAE,CAAC,SAAS,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACpD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,SAAS,GACV,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"BannerSurface.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/BannerSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,SAAS,EAAE,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,SAAS,EAAE,CAAC,SAAS,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACpD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,SAAS,GACV,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CA+ChD;AAED,gBAAgB;AAChB,wBAAgB,kCAAkC,IAAI,IAAI,CAEzD"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Context } from 'react';
|
|
2
2
|
export interface EdgeInsets {
|
|
3
3
|
top: number;
|
|
4
4
|
right: number;
|
|
5
5
|
bottom: number;
|
|
6
6
|
left: number;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
export declare const MISSING_SAFE_AREA_PROVIDER_WARNING: string;
|
|
9
|
+
/** True when the optional peer's JavaScript package can be loaded. */
|
|
10
|
+
export declare function isSafeAreaContextInstalled(): boolean;
|
|
11
|
+
/** Value from the nearest provider, or `null` when the peer or provider is absent. */
|
|
12
|
+
export declare function useParentSafeAreaInsets(): EdgeInsets | null;
|
|
9
13
|
export declare function useUserflowSafeAreaInsets(): EdgeInsets;
|
|
10
14
|
/**
|
|
11
15
|
* `SafeAreaInsetsContext` from the optional peer, or `null` when it is not installed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeArea.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/safeArea.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"safeArea.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/safeArea.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAUD,eAAO,MAAM,kCAAkC,QAGZ,CAAC;AA8BpC,sEAAsE;AACtE,wBAAgB,0BAA0B,IAAI,OAAO,CAEpD;AA2CD,sFAAsF;AACtF,wBAAgB,uBAAuB,IAAI,UAAU,GAAG,IAAI,CAE3D;AAED,wBAAgB,yBAAyB,IAAI,UAAU,CAMtD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,IAAI,CAE5E;AAED,gBAAgB;AAChB,wBAAgB,gCAAgC,IAAI,IAAI,CAGvD"}
|