@userflow-tech/react-native 0.6.0 → 0.7.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 +41 -33
- package/docs/troubleshooting.md +38 -38
- package/expo-plugin/hostDependencyWarnings.d.ts +5 -5
- package/expo-plugin/hostDependencyWarnings.js +7 -7
- package/expo-plugin/hostDependencyWarnings.js.map +1 -1
- package/lib/commonjs/anchors/AnchorRegistry.js +5 -0
- package/lib/commonjs/anchors/AnchorRegistry.js.map +1 -1
- package/lib/commonjs/anchors/ScrollContainerRegistry.js +8 -0
- package/lib/commonjs/anchors/ScrollContainerRegistry.js.map +1 -1
- package/lib/commonjs/anchors/fiber/presentedModal.js +215 -0
- package/lib/commonjs/anchors/fiber/presentedModal.js.map +1 -0
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js +1 -0
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js.map +1 -1
- package/lib/commonjs/anchors/fiber/visibleRect.js +12 -3
- package/lib/commonjs/anchors/fiber/visibleRect.js.map +1 -1
- package/lib/commonjs/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/commonjs/anchors/useUserflowScrollContainer.js.map +1 -1
- package/lib/commonjs/authoring/ElementPickerOverlay.js +197 -138
- package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/commonjs/authoring/hitTest.js +67 -10
- package/lib/commonjs/authoring/hitTest.js.map +1 -1
- package/lib/commonjs/authoring/hostAtPoint.js +45 -21
- package/lib/commonjs/authoring/hostAtPoint.js.map +1 -1
- package/lib/commonjs/content/RichContentRenderer.js +19 -7
- package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
- package/lib/commonjs/deepLinking.js.map +1 -1
- package/lib/commonjs/deviceContext.js +39 -19
- package/lib/commonjs/deviceContext.js.map +1 -1
- package/lib/commonjs/index.js +11 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/installCheck.js +3 -3
- package/lib/commonjs/installCheck.js.map +1 -1
- package/lib/commonjs/lifecycle.js +2 -0
- package/lib/commonjs/lifecycle.js.map +1 -1
- package/lib/commonjs/pairing/PairingController.js.map +1 -1
- package/lib/commonjs/runtime/UserflowOverlay.js +17 -13
- package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -1
- package/lib/commonjs/runtime/WindowOverlayHost.js +83 -0
- package/lib/commonjs/runtime/WindowOverlayHost.js.map +1 -0
- package/lib/commonjs/runtime/userflowCore.js +9 -2
- package/lib/commonjs/runtime/userflowCore.js.map +1 -1
- package/lib/commonjs/surfaces/TooltipSurface.js +109 -51
- package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js +6 -6
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/targetOrigin.js +74 -0
- package/lib/commonjs/surfaces/tooltip/targetOrigin.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/anchors/AnchorRegistry.js +5 -0
- package/lib/module/anchors/AnchorRegistry.js.map +1 -1
- package/lib/module/anchors/ScrollContainerRegistry.js +8 -0
- package/lib/module/anchors/ScrollContainerRegistry.js.map +1 -1
- package/lib/module/anchors/fiber/presentedModal.js +206 -0
- package/lib/module/anchors/fiber/presentedModal.js.map +1 -0
- package/lib/module/anchors/fiber/touchTargetFiber.js +1 -0
- package/lib/module/anchors/fiber/touchTargetFiber.js.map +1 -1
- package/lib/module/anchors/fiber/visibleRect.js +12 -3
- package/lib/module/anchors/fiber/visibleRect.js.map +1 -1
- package/lib/module/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/module/anchors/useUserflowScrollContainer.js.map +1 -1
- package/lib/module/authoring/ElementPickerOverlay.js +199 -140
- package/lib/module/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/module/authoring/hitTest.js +67 -11
- package/lib/module/authoring/hitTest.js.map +1 -1
- package/lib/module/authoring/hostAtPoint.js +45 -21
- package/lib/module/authoring/hostAtPoint.js.map +1 -1
- package/lib/module/content/RichContentRenderer.js +19 -7
- package/lib/module/content/RichContentRenderer.js.map +1 -1
- package/lib/module/deepLinking.js.map +1 -1
- package/lib/module/deviceContext.js +38 -17
- package/lib/module/deviceContext.js.map +1 -1
- package/lib/module/index.js +11 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/installCheck.js +3 -3
- package/lib/module/installCheck.js.map +1 -1
- package/lib/module/lifecycle.js +2 -0
- package/lib/module/lifecycle.js.map +1 -1
- package/lib/module/pairing/PairingController.js.map +1 -1
- package/lib/module/runtime/UserflowOverlay.js +18 -14
- package/lib/module/runtime/UserflowOverlay.js.map +1 -1
- package/lib/module/runtime/WindowOverlayHost.js +76 -0
- package/lib/module/runtime/WindowOverlayHost.js.map +1 -0
- package/lib/module/runtime/userflowCore.js +9 -2
- package/lib/module/runtime/userflowCore.js.map +1 -1
- package/lib/module/surfaces/TooltipSurface.js +109 -51
- package/lib/module/surfaces/TooltipSurface.js.map +1 -1
- package/lib/module/surfaces/tooltip/TooltipHighlight.js +6 -6
- package/lib/module/surfaces/tooltip/TooltipHighlight.js.map +1 -1
- package/lib/module/surfaces/tooltip/targetOrigin.js +67 -0
- package/lib/module/surfaces/tooltip/targetOrigin.js.map +1 -0
- 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/ScrollContainerRegistry.d.ts +11 -2
- package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts +45 -0
- package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts +5 -2
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts +2 -2
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts +3 -2
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +4 -0
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +25 -2
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts +6 -1
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/deepLinking.d.ts +1 -1
- package/lib/typescript/commonjs/src/deepLinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/deviceContext.d.ts +14 -5
- package/lib/typescript/commonjs/src/deviceContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +11 -5
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/installCheck.d.ts +2 -2
- package/lib/typescript/commonjs/src/installCheck.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/lifecycle.d.ts +1 -0
- package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts +34 -0
- package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/userflowCore.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
- 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/ScrollContainerRegistry.d.ts +11 -2
- package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts +45 -0
- package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts +5 -2
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts +2 -2
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts +3 -2
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +4 -0
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/hitTest.d.ts +25 -2
- package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts +6 -1
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/deepLinking.d.ts +1 -1
- package/lib/typescript/module/src/deepLinking.d.ts.map +1 -1
- package/lib/typescript/module/src/deviceContext.d.ts +14 -5
- package/lib/typescript/module/src/deviceContext.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +11 -5
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/installCheck.d.ts +2 -2
- package/lib/typescript/module/src/installCheck.d.ts.map +1 -1
- package/lib/typescript/module/src/lifecycle.d.ts +1 -0
- package/lib/typescript/module/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts +34 -0
- package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/userflowCore.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
- package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +5 -4
- package/src/anchors/AnchorRegistry.ts +8 -0
- package/src/anchors/ScrollContainerRegistry.ts +15 -3
- package/src/anchors/fiber/presentedModal.ts +203 -0
- package/src/anchors/fiber/touchTargetFiber.ts +2 -1
- package/src/anchors/fiber/visibleRect.ts +12 -3
- package/src/anchors/useUserflowAnchor.ts +4 -5
- package/src/anchors/useUserflowScrollContainer.ts +5 -4
- package/src/authoring/ElementPickerOverlay.tsx +242 -166
- package/src/authoring/hitTest.ts +88 -13
- package/src/authoring/hostAtPoint.ts +67 -21
- package/src/content/RichContentRenderer.tsx +11 -9
- package/src/deepLinking.ts +2 -1
- package/src/deviceContext.ts +50 -14
- package/src/index.ts +11 -5
- package/src/installCheck.ts +3 -3
- package/src/lifecycle.ts +2 -1
- package/src/pairing/PairingController.ts +2 -1
- package/src/runtime/UserflowOverlay.tsx +29 -21
- package/src/runtime/WindowOverlayHost.tsx +95 -0
- package/src/runtime/userflowCore.ts +8 -2
- package/src/surfaces/TooltipSurface.tsx +103 -45
- package/src/surfaces/tooltip/TooltipHighlight.tsx +3 -5
- package/src/surfaces/tooltip/targetOrigin.ts +74 -0
- package/src/version.ts +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts +7 -0
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +3 -2
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/transport/phoenix.d.ts +12 -2
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
- package/vendor/core/dist/transport/phoenix.js +7 -6
- package/vendor/core/dist/transport/phoenix.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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { fiberScanRoot } from "../../anchors/fiber/FiberScanRootStore.js";
|
|
4
|
+
import { locatePresentedModal, measureOriginOf } from "../../anchors/fiber/presentedModal.js";
|
|
5
|
+
import { getFiberAnchorScreenKey } from "../../anchors/fiberAnchorCache.js";
|
|
6
|
+
import { hasWindowOverlayHost } from "../../runtime/WindowOverlayHost.js";
|
|
7
|
+
const ZERO = {
|
|
8
|
+
x: 0,
|
|
9
|
+
y: 0
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* How long "nothing is presented" is trusted on the same screen. The lookup
|
|
14
|
+
* walks the whole fiber tree (1.4ms for 2,200 fibers in a debug build), and
|
|
15
|
+
* an anchored tooltip resolves four times a second. Expo Router and native
|
|
16
|
+
* stack modals change the screen, which skips this wait; a React Native
|
|
17
|
+
* `<Modal>` over the target is noticed within it.
|
|
18
|
+
*/
|
|
19
|
+
export const NO_MODAL_TRUST_MS = 1000;
|
|
20
|
+
let noModalSince = null;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Where a tooltip target's measured rects sit in the window. `done` gets the
|
|
24
|
+
* window position of `(0, 0)` in the target's measure space, or null when the
|
|
25
|
+
* tooltip cannot point at it: a natively presented modal covers the target,
|
|
26
|
+
* or the target is inside a modal that cannot be placed (see
|
|
27
|
+
* `presentedModal.ts`). Also null when the target has no fiber to place.
|
|
28
|
+
*
|
|
29
|
+
* Without the window host, flow chrome is drawn in the root view under any
|
|
30
|
+
* native modal, as before, and `done` runs synchronously with zero.
|
|
31
|
+
*/
|
|
32
|
+
export function locateTargetOrigin(fiber, done) {
|
|
33
|
+
if (!hasWindowOverlayHost()) {
|
|
34
|
+
done(ZERO);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const screenKey = getFiberAnchorScreenKey();
|
|
38
|
+
const now = Date.now();
|
|
39
|
+
if (noModalSince && noModalSince.screenKey === screenKey && now - noModalSince.at < NO_MODAL_TRUST_MS) {
|
|
40
|
+
done(ZERO);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
locatePresentedModal(fiberScanRoot.getFiber()).then(modal => {
|
|
44
|
+
noModalSince = modal == null ? {
|
|
45
|
+
at: now,
|
|
46
|
+
screenKey
|
|
47
|
+
} : null;
|
|
48
|
+
done(modal == null ? ZERO : fiber ? measureOriginOf(fiber, modal) : null);
|
|
49
|
+
}, () => {
|
|
50
|
+
noModalSince = null;
|
|
51
|
+
done(null);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export function offsetRect(rect, origin) {
|
|
55
|
+
if (origin.x === 0 && origin.y === 0) return rect;
|
|
56
|
+
return {
|
|
57
|
+
...rect,
|
|
58
|
+
x: rect.x + origin.x,
|
|
59
|
+
y: rect.y + origin.y
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @internal Forgets the cached "nothing is presented" between tests. */
|
|
64
|
+
export function resetTargetOriginForTests() {
|
|
65
|
+
noModalSince = null;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=targetOrigin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fiberScanRoot","locatePresentedModal","measureOriginOf","getFiberAnchorScreenKey","hasWindowOverlayHost","ZERO","x","y","NO_MODAL_TRUST_MS","noModalSince","locateTargetOrigin","fiber","done","screenKey","now","Date","at","getFiber","then","modal","offsetRect","rect","origin","resetTargetOriginForTests"],"sourceRoot":"../../../../src","sources":["surfaces/tooltip/targetOrigin.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,2CAAwC;AAEtE,SACEC,oBAAoB,EACpBC,eAAe,QAEV,uCAAoC;AAC3C,SAASC,uBAAuB,QAAQ,mCAAgC;AACxE,SAASC,oBAAoB,QAAQ,oCAAiC;AAItE,MAAMC,IAAW,GAAG;EAAEC,CAAC,EAAE,CAAC;EAAEC,CAAC,EAAE;AAAE,CAAC;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,IAAI;AAErC,IAAIC,YAA6D,GAAG,IAAI;;AAExE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAChCC,KAAsB,EACtBC,IAAoC,EAC9B;EACN,IAAI,CAACR,oBAAoB,CAAC,CAAC,EAAE;IAC3BQ,IAAI,CAACP,IAAI,CAAC;IACV;EACF;EACA,MAAMQ,SAAS,GAAGV,uBAAuB,CAAC,CAAC;EAC3C,MAAMW,GAAG,GAAGC,IAAI,CAACD,GAAG,CAAC,CAAC;EACtB,IACEL,YAAY,IACZA,YAAY,CAACI,SAAS,KAAKA,SAAS,IACpCC,GAAG,GAAGL,YAAY,CAACO,EAAE,GAAGR,iBAAiB,EACzC;IACAI,IAAI,CAACP,IAAI,CAAC;IACV;EACF;EACAJ,oBAAoB,CAACD,aAAa,CAACiB,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAChDC,KAAK,IAAK;IACTV,YAAY,GAAGU,KAAK,IAAI,IAAI,GAAG;MAAEH,EAAE,EAAEF,GAAG;MAAED;IAAU,CAAC,GAAG,IAAI;IAC5DD,IAAI,CAACO,KAAK,IAAI,IAAI,GAAGd,IAAI,GAAGM,KAAK,GAAGT,eAAe,CAACS,KAAK,EAAEQ,KAAK,CAAC,GAAG,IAAI,CAAC;EAC3E,CAAC,EACD,MAAM;IACJV,YAAY,GAAG,IAAI;IACnBG,IAAI,CAAC,IAAI,CAAC;EACZ,CACF,CAAC;AACH;AAEA,OAAO,SAASQ,UAAUA,CAACC,IAAU,EAAEC,MAAa,EAAQ;EAC1D,IAAIA,MAAM,CAAChB,CAAC,KAAK,CAAC,IAAIgB,MAAM,CAACf,CAAC,KAAK,CAAC,EAAE,OAAOc,IAAI;EACjD,OAAO;IAAE,GAAGA,IAAI;IAAEf,CAAC,EAAEe,IAAI,CAACf,CAAC,GAAGgB,MAAM,CAAChB,CAAC;IAAEC,CAAC,EAAEc,IAAI,CAACd,CAAC,GAAGe,MAAM,CAACf;EAAE,CAAC;AAChE;;AAEA;AACA,OAAO,SAASgB,yBAAyBA,CAAA,EAAS;EAChDd,YAAY,GAAG,IAAI;AACrB","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -12,6 +12,13 @@ export interface AnchorHost {
|
|
|
12
12
|
*/
|
|
13
13
|
node?: object | null;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The view instance an anchor ref receives. Structural rather than `View`,
|
|
17
|
+
* which React Native 0.88 types as a function component, not an instance.
|
|
18
|
+
*/
|
|
19
|
+
export interface MeasurableNode {
|
|
20
|
+
measureInWindow: AnchorHost['measureInWindow'];
|
|
21
|
+
}
|
|
15
22
|
type Listener = () => void;
|
|
16
23
|
/**
|
|
17
24
|
* Manual-anchor registry for Phase 3 (WS6). Codeless resolution is Phase 4.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/AnchorRegistry.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,CACf,QAAQ,EAAE,CAAC,CAAC,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IACV;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;CAChD;AAED,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;AAE3B;;;;GAIG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IAEjD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAW5C,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAU9C,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAUlC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,EAAE;IAMhC,kEAAkE;IAClE,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIhC,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IAOzC,uCAAuC;IACvC,KAAK,IAAI,IAAI;IAKb,OAAO,CAAC,IAAI;CAKb;AAED,6EAA6E;AAC7E,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeScrollEvent, NativeSyntheticEvent
|
|
1
|
+
import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
|
|
2
2
|
import type { Rect } from '../surfaces/tooltip/inferTooltipPlacement';
|
|
3
3
|
export interface ScrollContainerHost {
|
|
4
4
|
measureInWindow: (callback: (x: number, y: number, width: number, height: number) => void) => void;
|
|
@@ -12,6 +12,15 @@ export interface ScrollContainerHost {
|
|
|
12
12
|
animated?: boolean;
|
|
13
13
|
}) => void;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The ScrollView instance a scroll container ref receives. Structural rather
|
|
17
|
+
* than `ScrollView`, which React Native 0.88 types as a function component.
|
|
18
|
+
* Older React Native types leave measureInWindow off the ScrollView instance,
|
|
19
|
+
* so it is not required here.
|
|
20
|
+
*/
|
|
21
|
+
export interface ScrollContainerNode {
|
|
22
|
+
scrollTo: ScrollContainerHost['scrollTo'];
|
|
23
|
+
}
|
|
15
24
|
type Listener = () => void;
|
|
16
25
|
/**
|
|
17
26
|
* Registry of host {@link ScrollView}s used as an explicit override when
|
|
@@ -37,7 +46,7 @@ export declare class ScrollContainerRegistry {
|
|
|
37
46
|
/** Module singleton used by {@link useUserflowScrollContainer} and TooltipSurface. */
|
|
38
47
|
export declare const scrollContainerRegistry: ScrollContainerRegistry;
|
|
39
48
|
/** Build a host from a live ScrollView + tracked content offset. */
|
|
40
|
-
export declare function createScrollContainerHost(node:
|
|
49
|
+
export declare function createScrollContainerHost(node: ScrollContainerNode, getContentOffset: () => {
|
|
41
50
|
x: number;
|
|
42
51
|
y: number;
|
|
43
52
|
}): ScrollContainerHost;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollContainerRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/ScrollContainerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"ScrollContainerRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/ScrollContainerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AAOtE,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,CACf,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,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GAAG,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AnyFiber } from './fiberInternals';
|
|
2
|
+
export interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface Size {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PresentedModal {
|
|
11
|
+
/** `RNSModalScreen`, or React Native's `ModalHostView`. */
|
|
12
|
+
host: AnyFiber;
|
|
13
|
+
/**
|
|
14
|
+
* Window position of `(0, 0)` in the space the modal's content is measured
|
|
15
|
+
* and hit-tested in. Null when the modal cannot be placed.
|
|
16
|
+
*/
|
|
17
|
+
origin: Point | null;
|
|
18
|
+
/** The modal's size, when it was measured (iOS Fabric only). */
|
|
19
|
+
size: Size | null;
|
|
20
|
+
/** True on iOS Fabric, where that space is the modal's own rather than the window's. */
|
|
21
|
+
modalSpace: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Window origin of a presented modal of `size`, bottom-anchored. Null when it
|
|
25
|
+
* is narrower than the window (see above) or does not fit in it, as
|
|
26
|
+
* mid-rotation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function modalOriginInWindow(size: Size, windowSize: Size): Point | null;
|
|
29
|
+
/**
|
|
30
|
+
* The modal drawn on top of the app and where its content space sits in the
|
|
31
|
+
* window, or null when nothing is presented. Look it up per tap: a
|
|
32
|
+
* `fitToContents` sheet resizes as its content changes.
|
|
33
|
+
*/
|
|
34
|
+
export declare function locatePresentedModal(root: AnyFiber | null): Promise<PresentedModal | null>;
|
|
35
|
+
/** True when window point `(x, y)` is outside a placed modal, on the screen it covers. */
|
|
36
|
+
export declare function isOutsideModal(x: number, y: number, modal: PresentedModal): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Window position of `(0, 0)` in the space `fiber` is measured in, given what
|
|
39
|
+
* {@link locatePresentedModal} returned. Null when `modal` covers `fiber`, or
|
|
40
|
+
* `fiber` is inside a modal that cannot be placed.
|
|
41
|
+
*/
|
|
42
|
+
export declare function measureOriginOf(fiber: AnyFiber, modal: PresentedModal | null): Point | null;
|
|
43
|
+
/** `rect`, measured in `modal`'s content space, in window coordinates. */
|
|
44
|
+
export declare function rectInWindow<T extends Point>(rect: T, modal: PresentedModal): T;
|
|
45
|
+
//# sourceMappingURL=presentedModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentedModal.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/presentedModal.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjD,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,gEAAgE;IAChE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,wFAAwF;IACxF,UAAU,EAAE,OAAO,CAAC;CACrB;AA0ED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,CAO9E;AAYD;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAUhG;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAInF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAI3F;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,GAAG,CAAC,CAI/E"}
|
|
@@ -22,8 +22,11 @@ export declare function intersectRects(a: VisibleRect, b: VisibleRect): VisibleR
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function clipToScrollViewports(fiber: AnyFiber | null, rect: VisibleRect): Promise<VisibleRect | null>;
|
|
24
24
|
/**
|
|
25
|
-
* The visible modal host drawn on top, or null
|
|
26
|
-
*
|
|
25
|
+
* The visible modal host drawn on top, or null: a React Native `<Modal>` or a
|
|
26
|
+
* screen react-native-screens presents natively. Later fibers win: React Native
|
|
27
|
+
* mounts a newer `<Modal>` after the previous one, a native stack's newest
|
|
28
|
+
* screen is its last child, and a modal presented from inside another one sits
|
|
29
|
+
* deeper in the tree.
|
|
27
30
|
*/
|
|
28
31
|
export declare function topmostVisibleModalHost(root: AnyFiber | null, maxNodes?: number): AnyFiber | null;
|
|
29
32
|
/** True when `fiber` is `ancestor` or sits under it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibleRect.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/visibleRect.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"visibleRect.d.ts","sourceRoot":"","sources":["../../../../../../src/anchors/fiber/visibleRect.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAUD,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AA8BrF,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,IAAI,CASjF;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,QAAQ,GAAG,IAAI,EACtB,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAgB7B;AAgBD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,SAAQ,GAAG,QAAQ,GAAG,IAAI,CAwBhG;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,SAAS,GAAG,OAAO,CAQ5F;AAED,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type MeasurableNode } from './AnchorRegistry';
|
|
3
3
|
/**
|
|
4
4
|
* Register a view as a manual Userflow tooltip / embed target.
|
|
5
5
|
*
|
|
@@ -26,5 +26,5 @@ import type { View } from 'react-native';
|
|
|
26
26
|
*
|
|
27
27
|
* Phase 3 resolves targets via `step.selector.css` (leading `#` stripped).
|
|
28
28
|
*/
|
|
29
|
-
export declare function useUserflowAnchor(id: string): React.RefCallback<
|
|
29
|
+
export declare function useUserflowAnchor(id: string): React.RefCallback<MeasurableNode>;
|
|
30
30
|
//# sourceMappingURL=useUserflowAnchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserflowAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/useUserflowAnchor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useUserflowAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/useUserflowAnchor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAyD/E"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { NativeScrollEvent, NativeSyntheticEvent
|
|
2
|
+
import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
|
|
3
|
+
import { type ScrollContainerNode } from './ScrollContainerRegistry';
|
|
3
4
|
export interface UserflowScrollContainerProps {
|
|
4
5
|
/** Attach to the host ScrollView (or merge with an existing ref). */
|
|
5
|
-
ref: React.RefCallback<
|
|
6
|
+
ref: React.RefCallback<ScrollContainerNode>;
|
|
6
7
|
/** Forward to ScrollView so content offsets stay in sync for scroll-into-view. */
|
|
7
8
|
onScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
8
9
|
/** Required for frequent offset updates while scrolling. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserflowScrollContainer.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/useUserflowScrollContainer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"useUserflowScrollContainer.d.ts","sourceRoot":"","sources":["../../../../../src/anchors/useUserflowScrollContainer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,4BAA4B;IAC3C,qEAAqE;IACrE,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC5C,kFAAkF;IAClF,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACnE,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,GACtE,4BAA4B,CA2C9B"}
|
|
@@ -3,6 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
* Overlay chrome for in-app element picking. Mounted by UserflowProvider;
|
|
4
4
|
* renders nothing until {@link elementPickerController.beginSelection}.
|
|
5
5
|
* Every pick shows the menu and onboarding tooltip.
|
|
6
|
+
*
|
|
7
|
+
* Drawn in {@link WindowOverlayHost} so native modal screens on iOS cannot
|
|
8
|
+
* cover it. It mounts only while there is something to show, so the window
|
|
9
|
+
* container exists only for the pick.
|
|
6
10
|
*/
|
|
7
11
|
export declare function ElementPickerOverlay(): React.ReactElement | null;
|
|
8
12
|
//# sourceMappingURL=ElementPickerOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementPickerOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/ElementPickerOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ElementPickerOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/ElementPickerOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwH/B;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,YAAY,GAAG,IAAI,CA+jBhE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SemanticRole } from '@userflow-tech/protocol';
|
|
2
2
|
import { type AutoAnchorInstance } from '../anchors/AutoAnchorRegistry';
|
|
3
3
|
import { type AnyFiber } from '../anchors/fiber/fiberInternals';
|
|
4
|
+
import { type PresentedModal } from '../anchors/fiber/presentedModal';
|
|
4
5
|
export interface HitRect {
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
@@ -32,7 +33,12 @@ export interface HitCandidate {
|
|
|
32
33
|
}
|
|
33
34
|
export type MeasureInstance = (inst: AutoAnchorInstance) => Promise<HitRect | null>;
|
|
34
35
|
export type InstanceFilter = (inst: AutoAnchorInstance) => boolean;
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Why a tap on a presented modal found nothing: the modal cannot be placed in
|
|
38
|
+
* the window, or the tap was outside it.
|
|
39
|
+
*/
|
|
40
|
+
export type ModalMiss = 'unplaceable' | 'outside';
|
|
41
|
+
export type HostAtPoint = (x: number, y: number, presented?: PresentedModal | null) => Promise<AnyFiber | null>;
|
|
36
42
|
/**
|
|
37
43
|
* Measure a live auto-anchor instance in window coordinates. Prefers the
|
|
38
44
|
* public instance's `measureInWindow`, then the fiber host path.
|
|
@@ -48,8 +54,11 @@ export declare function fiberTargetDescriptor(fiber: AnyFiber): FiberTargetDescr
|
|
|
48
54
|
* {@link FiberScanRoot}. Hosts above it (the provider's own wrappers) are never
|
|
49
55
|
* resolvable at play time. Empty when `host` is on a covered screen: its
|
|
50
56
|
* ancestors above the navigator are not what was tapped.
|
|
57
|
+
*
|
|
58
|
+
* The walk also stops at `boundary`, a presented modal: hosts above it are
|
|
59
|
+
* drawn beneath the modal, not around what was tapped.
|
|
51
60
|
*/
|
|
52
|
-
export declare function candidateChain(host: AnyFiber, byFiber: Map<AnyFiber, AutoAnchorInstance
|
|
61
|
+
export declare function candidateChain(host: AnyFiber, byFiber: Map<AnyFiber, AutoAnchorInstance>, boundary?: AnyFiber | null): PickTarget[];
|
|
53
62
|
/**
|
|
54
63
|
* First control-sized pressable in an innermost-first list, else 0. A
|
|
55
64
|
* screen-sized pressable ancestor would select an invisible full-screen rect.
|
|
@@ -63,13 +72,27 @@ export declare function defaultCandidateIndex(candidates: HitCandidate[]): numbe
|
|
|
63
72
|
* lands on a covered screen. A visible native hit with no identifiable
|
|
64
73
|
* ancestor returns no candidates: geometry ignores stacking order and would
|
|
65
74
|
* offer whatever lies underneath the tap.
|
|
75
|
+
*
|
|
76
|
+
* While a modal is presented, only its content is a candidate, and candidate
|
|
77
|
+
* rects come back in window coordinates. A modal that cannot be placed in the
|
|
78
|
+
* window yields no candidates rather than a guess, and so does a tap outside
|
|
79
|
+
* the modal, on the screen it covers. Both call `onModalMiss` so the caller
|
|
80
|
+
* can say why.
|
|
66
81
|
*/
|
|
67
82
|
export declare function hitTestAt(x: number, y: number, opts?: {
|
|
68
83
|
instanceFilter?: InstanceFilter;
|
|
69
84
|
measure?: MeasureInstance;
|
|
70
85
|
instances?: AutoAnchorInstance[];
|
|
71
86
|
hostAtPoint?: HostAtPoint;
|
|
87
|
+
onModalMiss?: (miss: ModalMiss) => void;
|
|
72
88
|
}): Promise<HitCandidate[]>;
|
|
89
|
+
/**
|
|
90
|
+
* `candidates` measured again, for when the screen may have moved under a
|
|
91
|
+
* selection: the keyboard opening or closing resizes or moves a sheet. Null
|
|
92
|
+
* when one can no longer be measured, or its modal can no longer be placed,
|
|
93
|
+
* so the caller drops the selection rather than keep a stale rect.
|
|
94
|
+
*/
|
|
95
|
+
export declare function remeasureCandidates(candidates: HitCandidate[], measure?: MeasureInstance): Promise<HitCandidate[] | null>;
|
|
73
96
|
/** Cycle to the next-larger containing candidate (wraps). */
|
|
74
97
|
export declare function nextContainingIndex(candidates: HitCandidate[], currentIndex: number): number;
|
|
75
98
|
//# sourceMappingURL=hitTest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hitTest.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/hitTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"hitTest.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/hitTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAczC,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,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;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC7B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,CAAC,EAAE;IACL,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC,GACA,OAAO,CAAC,YAAY,EAAE,CAAC,CAiCzB;AAoDD;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,YAAY,EAAE,EAC1B,OAAO,GAAE,eAAqC,GAC7C,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAShC;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAG5F"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type AnyFiber } from '../anchors/fiber/fiberInternals';
|
|
2
|
+
import { type PresentedModal } from '../anchors/fiber/presentedModal';
|
|
2
3
|
/**
|
|
3
4
|
* Host fiber drawn on top at window coordinates, or null when neither Fabric
|
|
4
5
|
* nor Paper hit-testing is available.
|
|
6
|
+
*
|
|
7
|
+
* While a modal is presented, only its content can be hit, and nothing is
|
|
8
|
+
* when the modal cannot be placed in the window. Pass `presented` when the
|
|
9
|
+
* caller has already looked it up.
|
|
5
10
|
*/
|
|
6
|
-
export declare function hostAtPoint(x: number, y: number): Promise<AnyFiber | null>;
|
|
11
|
+
export declare function hostAtPoint(x: number, y: number, presented?: PresentedModal | null): Promise<AnyFiber | null>;
|
|
7
12
|
//# sourceMappingURL=hostAtPoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostAtPoint.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/hostAtPoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hostAtPoint.d.ts","sourceRoot":"","sources":["../../../../../src/authoring/hostAtPoint.ts"],"names":[],"mappings":"AAyBA,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AA8NzC;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAC/B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,GAChC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAkB1B"}
|
|
@@ -21,7 +21,7 @@ export interface DeepLinkingDeps {
|
|
|
21
21
|
startFlowWithToken: DeepLinkStartFlowWithToken;
|
|
22
22
|
/** Optional Linking overrides for tests. */
|
|
23
23
|
linking?: {
|
|
24
|
-
getInitialURL: () => Promise<string | null>;
|
|
24
|
+
getInitialURL: () => Promise<string | null | undefined>;
|
|
25
25
|
addEventListener: (type: 'url', handler: (event: {
|
|
26
26
|
url: string;
|
|
27
27
|
}) => void) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepLinking.d.ts","sourceRoot":"","sources":["../../../../src/deepLinking.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,YAAY,EAAE,MAAM,OAAO,CAAC;IAC5B,+CAA+C;IAC/C,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,4CAA4C;IAC5C,OAAO,C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G,IAAI,CAEhE;AAED,sDAAsD;AACtD,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Resolve mobile platform metadata for Userflow
|
|
2
|
+
* Resolve mobile platform metadata and the running SDK version for Userflow
|
|
3
|
+
* user attributes.
|
|
3
4
|
*
|
|
4
5
|
* Cached once during {@link Userflow.init} and merged into identify attributes
|
|
5
6
|
* (same lifecycle as {@link hostAppVersion.ts}).
|
|
@@ -9,12 +10,18 @@ export type DeviceOs = 'ios' | 'android';
|
|
|
9
10
|
export type DeviceType = 'phone' | 'tablet';
|
|
10
11
|
export interface DeviceContext {
|
|
11
12
|
sdk: SdkPlatform;
|
|
13
|
+
/**
|
|
14
|
+
* Published `@userflow-tech/react-native` version, e.g. `0.4.6`. Always set by
|
|
15
|
+
* the SDK; optional so context objects built by host code (mocks) stay valid.
|
|
16
|
+
*/
|
|
17
|
+
sdkVersion?: string;
|
|
12
18
|
deviceOs?: DeviceOs;
|
|
13
19
|
deviceType?: DeviceType;
|
|
14
20
|
}
|
|
15
21
|
/** Android `smallestScreenWidthDp` tablet threshold (sw600dp). */
|
|
16
22
|
export declare const ANDROID_TABLET_SMALLEST_WIDTH_DP = 600;
|
|
17
23
|
export declare const SDK_USER_ATTRIBUTE = "sdk";
|
|
24
|
+
export declare const SDK_VERSION_USER_ATTRIBUTE = "sdk_version";
|
|
18
25
|
export declare const DEVICE_OS_USER_ATTRIBUTE = "device_os";
|
|
19
26
|
export declare const DEVICE_TYPE_USER_ATTRIBUTE = "device_type";
|
|
20
27
|
interface PlatformShape {
|
|
@@ -47,20 +54,22 @@ export declare function resolveDeviceContext(): DeviceContext;
|
|
|
47
54
|
export declare function cacheDeviceContextAtInit(): DeviceContext;
|
|
48
55
|
/** Returns the context cached at init, or `null` before init. */
|
|
49
56
|
export declare function getCachedDeviceContext(): DeviceContext | null;
|
|
50
|
-
/** Returns cached device fields for UpsertUser, or `{}` before init. */
|
|
51
|
-
export declare function deviceContextUserAttributes(): Record<string, string>;
|
|
52
57
|
/** Optional user-attribute keys added by {@link mergeDeviceContextUserAttributes}. */
|
|
53
58
|
export type DeviceContextUserAttributeMap = Partial<{
|
|
54
59
|
[SDK_USER_ATTRIBUTE]: SdkPlatform;
|
|
60
|
+
[SDK_VERSION_USER_ATTRIBUTE]: string;
|
|
55
61
|
[DEVICE_OS_USER_ATTRIBUTE]: DeviceOs;
|
|
56
62
|
[DEVICE_TYPE_USER_ATTRIBUTE]: DeviceType;
|
|
57
63
|
}>;
|
|
58
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Merges cached device attrs into identify attributes. Caller values win on key
|
|
66
|
+
* conflicts, except `sdk_version`, which always reports the running SDK.
|
|
67
|
+
*/
|
|
59
68
|
export declare function mergeDeviceContextUserAttributes<T extends Record<string, unknown>>(attributes?: T): (T & DeviceContextUserAttributeMap) | undefined;
|
|
60
69
|
export declare function formatDeviceContextLog(resolved: DeviceContext | null): string;
|
|
61
70
|
/** Log cached user-attribute values. Requires {@link cacheDeviceContextAtInit}. */
|
|
62
71
|
export declare function logDeviceContext(): void;
|
|
63
|
-
/** @internal Resets init cache between tests. */
|
|
72
|
+
/** @internal Resets init cache and the one-time override warning between tests. */
|
|
64
73
|
export declare function resetCachedDeviceContextForTests(): void;
|
|
65
74
|
export {};
|
|
66
75
|
//# sourceMappingURL=deviceContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceContext.d.ts","sourceRoot":"","sources":["../../../../src/deviceContext.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"deviceContext.d.ts","sourceRoot":"","sources":["../../../../src/deviceContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AACzC,MAAM,MAAM,UAAU,GAAG,OAAO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,IAAI,aAAa,GAAG,IAAI,CAE7D;AAWD,sFAAsF;AACtF,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;IAClD,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IAClC,CAAC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACrC,CAAC,wBAAwB,CAAC,EAAE,QAAQ,CAAC;IACrC,CAAC,0BAA0B,CAAC,EAAE,UAAU,CAAC;CAC1C,CAAC,CAAC;AAmBH;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChF,UAAU,CAAC,EAAE,CAAC,GACb,CAAC,CAAC,GAAG,6BAA6B,CAAC,GAAG,SAAS,CAWjD;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,GAAG,MAAM,CAO7E;AAED,mFAAmF;AACnF,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC;AAED,mFAAmF;AACnF,wBAAgB,gCAAgC,IAAI,IAAI,CAGvD"}
|
|
@@ -73,9 +73,15 @@ export declare const Userflow: {
|
|
|
73
73
|
* `init({ onNavigate })`). Wins over React Navigation / Expo Router / Linking.
|
|
74
74
|
*/
|
|
75
75
|
setOnNavigate(handler: FlowNavigateHandler | null | undefined): void;
|
|
76
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Identify the current user and upsert their attributes. The SDK adds `sdk_version`
|
|
78
|
+
* itself; a value passed for it here is ignored.
|
|
79
|
+
*/
|
|
77
80
|
identify(userId: string, attributes?: UserflowAttributes, options?: UserflowIdentifyOptions): Promise<void>;
|
|
78
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Identify an anonymous user with a stable auto-generated id stored on device. Like
|
|
83
|
+
* {@link identify}, the SDK sets `sdk_version` itself.
|
|
84
|
+
*/
|
|
79
85
|
identifyAnonymous(attributes?: UserflowAttributes, options?: UserflowIdentifyOptions): Promise<void>;
|
|
80
86
|
/**
|
|
81
87
|
* Handle an inbound URL. Returns `true` when it was a Userflow preview deep
|
|
@@ -114,8 +120,8 @@ export declare const Userflow: {
|
|
|
114
120
|
*/
|
|
115
121
|
getHostAppVersion(): HostAppVersion | null;
|
|
116
122
|
/**
|
|
117
|
-
* Platform metadata cached during {@link init} (`sdk`, `
|
|
118
|
-
* or `null` before init.
|
|
123
|
+
* Platform metadata cached during {@link init} (`sdk`, `sdkVersion`, `deviceOs`,
|
|
124
|
+
* `deviceType`), or `null` before init.
|
|
119
125
|
*/
|
|
120
126
|
getDeviceContext(): DeviceContext | null;
|
|
121
127
|
/** The flow session engine (created lazily; attach runs after identify). */
|
|
@@ -171,7 +177,7 @@ export declare const Userflow: {
|
|
|
171
177
|
*/
|
|
172
178
|
logHostAppVersion(): void;
|
|
173
179
|
/**
|
|
174
|
-
* Log cached user-attribute values (`sdk`, `device_os`, `device_type`).
|
|
180
|
+
* Log cached user-attribute values (`sdk`, `sdk_version`, `device_os`, `device_type`).
|
|
175
181
|
* Requires {@link init}; before init, logs that init is required.
|
|
176
182
|
*/
|
|
177
183
|
logDeviceContext(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,sBAAsB,CAAC;AAI9B,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EAGL,KAAK,mBAAmB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IAI/F;;;;;OAKG;gBAEK,MAAM,eACC,uBAAuB,YAC1B,oBAAoB,GAC7B,OAAO,CAAC,IAAI,CAAC;IAMhB,mEAAmE;iBACtD,MAAM,GAAG,IAAI;IAG1B,8DAA8D;qBAC7C,kBAAkB;IAGnC;;;OAGG;yBACkB,cAAc,GAAG,IAAI;IAG1C;;;OAGG;wBACiB,aAAa,GAAG,IAAI;IAGxC,4EAA4E;;IAI5E,8EAA8E;;IAI9E,sEAAsE;aACvD,OAAO,CAAC,IAAI,CAAC;IAU5B,+FAA+F;gBACnF,IAAI;IAShB;;;;;OAKG;sBACe,IAAI;IAKtB;;;;;OAKG;6BACsB,MAAM,GAAG,SAAS,GAAG,IAAI;IAKlD;;;OAGG;8BACuB,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAGjE;;;OAGG;gCACyB,oBAAoB,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAG1E;;;;;OAKG;2CACoC,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAGxE;;;;OAIG;6BACsB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAG1E;;;;;OAKG;yBACkB,IAAI;IAGzB;;;OAGG;wBACiB,IAAI;CAGzB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
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 it and rebuild. On Expo SDK 56
|
|
3
|
+
export declare const INSTALL_VIEW_SHOT_LINE = "- react-native-view-shot is not linked, so Builder element selection gets no screenshot. Install it and rebuild. On Expo SDK 56 to 58, run npx expo install react-native-view-shot unpinned, with no expo.install.exclude entry for it. Otherwise install react-native-view-shot@^5.0.0; on Expo SDK 55 and older, an unpinned npx expo install resolves 4.0.3.";
|
|
4
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
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
6
|
export declare const INSTALL_CHECK_FOOTER = "See node_modules/@userflow-tech/react-native/docs/troubleshooting.md.";
|
|
@@ -16,7 +16,7 @@ export declare const INSTALL_SAFE_AREA_WARNING: string;
|
|
|
16
16
|
export declare function formatViewShotVersionWarning(version: string): string;
|
|
17
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
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. */
|
|
19
|
+
/** Dev warning when view-shot 4.x is installed. Null on 5.x and later, or when it is absent. */
|
|
20
20
|
export declare function viewShotVersionWarning(): string | null;
|
|
21
21
|
/** Lines for missing native modules. Empty when the build looks complete. */
|
|
22
22
|
export declare function collectInstallFindings(): string[];
|
|
@@ -1 +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,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 +75,7 @@ export declare class LifecycleController {
|
|
|
75
75
|
private readonly scheduler;
|
|
76
76
|
private readonly now;
|
|
77
77
|
private readonly suspendGraceMs;
|
|
78
|
+
/** Wider than AppStateStatus: React Native 0.88 types currentState as `string | null | undefined`. */
|
|
78
79
|
private readonly getCurrentAppState;
|
|
79
80
|
private readonly subscribeAppState;
|
|
80
81
|
private unsubscribeAppState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAA2B,MAAM,cAAc,CAAC;AAE5E,2FAA2F;AAC3F,eAAO,MAAM,qBAAqB,QAAgB,CAAC;AAEnD,wEAAwE;AACxE,eAAO,MAAM,iCAAiC,QAAgB,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAAQ,CAAC;AAEtC,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,CAAC;IACzD,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,gEAAg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AAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,cAAc,CAAuB;IAC7C,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,iFAAiF;IACjF,OAAO,CAAC,SAAS,CAAS;gBAEd,IAAI,EAAE,uBAAuB;IAczC,KAAK,IAAI,IAAI;IAYb,IAAI,IAAI,IAAI;IAWZ;;;OAGG;IACH,cAAc,IAAI,IAAI;IAOtB,yBAAyB;IACzB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAalD,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,YAAY;IAqCpB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,cAAc;CAMvB"}
|
|
@@ -23,7 +23,7 @@ export interface PairingControllerOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
cancelPendingDraftEnd?: () => void;
|
|
25
25
|
LinkingModule?: {
|
|
26
|
-
getInitialURL(): Promise<string | null>;
|
|
26
|
+
getInitialURL(): Promise<string | null | undefined>;
|
|
27
27
|
addEventListener(type: 'url', handler: (event: {
|
|
28
28
|
url: string;
|
|
29
29
|
}) => void): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PairingController.d.ts","sourceRoot":"","sources":["../../../../../src/pairing/PairingController.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAY,KAAK,cAAc,EAAqB,MAAM,cAAc,CAAC;AAOhF,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjF,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iBAAiB,IAAI,IAAI;IAUzB;;;;OAIG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBxC;;;OAGG;IACH,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAUtC;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAMhB,sEAAsE;IAChE,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,GAAE,cAAc,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAmC9F;;;;;OAKG;YACW,sBAAsB;IAiCpC;;;OAGG;YACW,wBAAwB;IAUtC;;;OAGG;YACW,mBAAmB;YAWnB,eAAe;IAKvB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAkBlC;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAOxC,sDAAsD;IACtD,gBAAgB,IAAI,IAAI;IAIxB,OAAO,CAAC,YAAY;IAkCpB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,IAAI;CASb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserflowOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/UserflowOverlay.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":"UserflowOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/UserflowOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,mBAAmB,CAAC;IAClC,6EAA6E;IAC7E,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,YAAY,EACZ,YAAY,GACb,EAAE,oBAAoB,GAAG,KAAK,CAAC,YAAY,CAyF3C"}
|