@userflow-tech/react-native 0.1.1 → 0.2.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 +97 -61
- package/app.plugin.js +11 -1
- package/babel-plugin/index.d.ts +8 -8
- package/babel-plugin/index.d.ts.map +1 -1
- package/babel-plugin/index.js +17 -9
- package/babel-plugin/index.js.map +1 -1
- package/babel-plugin.js +13 -0
- package/docs/anchoring.md +141 -13
- package/docs/deep-linking.md +18 -15
- package/docs/theme-mapping.md +44 -15
- package/docs/troubleshooting.md +36 -29
- package/expo-plugin/withUserflow.js +1 -1
- package/expo-plugin/withUserflow.js.map +1 -1
- package/lib/commonjs/anchors/AutoAnchorRegistry.js +124 -2
- package/lib/commonjs/anchors/AutoAnchorRegistry.js.map +1 -1
- package/lib/commonjs/anchors/anchorChangeTicker.js +10 -0
- package/lib/commonjs/anchors/anchorChangeTicker.js.map +1 -1
- package/lib/commonjs/anchors/elementConditionEvaluator.js +25 -12
- package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js +11 -47
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js.map +1 -1
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +50 -0
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -0
- package/lib/commonjs/anchors/fiber/fiberInternals.js +145 -3
- package/lib/commonjs/anchors/fiber/fiberInternals.js.map +1 -1
- package/lib/commonjs/anchors/fiber/indexHostFibers.js +129 -0
- package/lib/commonjs/anchors/fiber/indexHostFibers.js.map +1 -0
- package/lib/commonjs/anchors/fiber/readHostContent.js +131 -0
- package/lib/commonjs/anchors/fiber/readHostContent.js.map +1 -0
- package/lib/commonjs/anchors/fiberAnchorCache.js +50 -0
- package/lib/commonjs/anchors/fiberAnchorCache.js.map +1 -0
- package/lib/commonjs/anchors/resolveAnchorHost.js +15 -21
- package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js +171 -0
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -0
- package/lib/commonjs/anchors/semanticMatcher.js +285 -0
- package/lib/commonjs/anchors/semanticMatcher.js.map +1 -0
- package/lib/commonjs/authoring/ElementPickerOverlay.js +490 -0
- package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -0
- package/lib/commonjs/authoring/capturePickerScreenshot.js +73 -0
- package/lib/commonjs/authoring/capturePickerScreenshot.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeBarTransition.js +94 -0
- package/lib/commonjs/authoring/chrome/ChromeBarTransition.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js +64 -0
- package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeButton.js +94 -0
- package/lib/commonjs/authoring/chrome/ChromeButton.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeDialog.js +131 -0
- package/lib/commonjs/authoring/chrome/ChromeDialog.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeIcon.js +39 -0
- package/lib/commonjs/authoring/chrome/ChromeIcon.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeTooltip.js +88 -0
- package/lib/commonjs/authoring/chrome/ChromeTooltip.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeTopBar.js +110 -0
- package/lib/commonjs/authoring/chrome/ChromeTopBar.js.map +1 -0
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js +57 -0
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js.map +1 -0
- package/lib/commonjs/authoring/chrome/doubleTapMonitor.js +80 -0
- package/lib/commonjs/authoring/chrome/doubleTapMonitor.js.map +1 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/userflow-logomark.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/xmark.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/xmark@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/xmark@3x.png +0 -0
- package/lib/commonjs/authoring/chrome/tokens.js +150 -0
- package/lib/commonjs/authoring/chrome/tokens.js.map +1 -0
- package/lib/commonjs/authoring/doubleTap.js +23 -0
- package/lib/commonjs/authoring/doubleTap.js.map +1 -0
- package/lib/commonjs/authoring/elementPickerController.js +102 -0
- package/lib/commonjs/authoring/elementPickerController.js.map +1 -0
- package/lib/commonjs/authoring/fingerprintFromInstance.js +195 -0
- package/lib/commonjs/authoring/fingerprintFromInstance.js.map +1 -0
- package/lib/commonjs/authoring/hitTest.js +106 -0
- package/lib/commonjs/authoring/hitTest.js.map +1 -0
- package/lib/commonjs/content/RichContentRenderer.js +12 -2
- package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
- package/lib/commonjs/content/StepButton.js +19 -4
- package/lib/commonjs/content/StepButton.js.map +1 -1
- package/lib/commonjs/content/resolveStepButtonChrome.js +8 -6
- package/lib/commonjs/content/resolveStepButtonChrome.js.map +1 -1
- package/lib/commonjs/content/themeColor.js +11 -0
- package/lib/commonjs/content/themeColor.js.map +1 -1
- package/lib/commonjs/deviceContext.js +158 -0
- package/lib/commonjs/deviceContext.js.map +1 -0
- package/lib/commonjs/expo-router/useUserflowExpoRouter.js +40 -4
- package/lib/commonjs/expo-router/useUserflowExpoRouter.js.map +1 -1
- package/lib/commonjs/hostAppVersion.js +242 -0
- package/lib/commonjs/hostAppVersion.js.map +1 -0
- package/lib/commonjs/index.js +118 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lifecycle.js +2 -0
- package/lib/commonjs/lifecycle.js.map +1 -1
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js +17 -8
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js.map +1 -1
- package/lib/commonjs/navigation/isOverlayPresentation.js +64 -0
- package/lib/commonjs/navigation/isOverlayPresentation.js.map +1 -0
- package/lib/commonjs/pairing/PairingController.js +29 -2
- package/lib/commonjs/pairing/PairingController.js.map +1 -1
- package/lib/commonjs/pairing/PreviewModeBanner.js +211 -84
- package/lib/commonjs/pairing/PreviewModeBanner.js.map +1 -1
- package/lib/commonjs/pairing/diagnostics.js +9 -0
- package/lib/commonjs/pairing/diagnostics.js.map +1 -1
- package/lib/commonjs/pairing/elementPickerRelay.js +91 -0
- package/lib/commonjs/pairing/elementPickerRelay.js.map +1 -0
- package/lib/commonjs/pairing/resolvePreviewChrome.js +52 -0
- package/lib/commonjs/pairing/resolvePreviewChrome.js.map +1 -0
- package/lib/commonjs/pairing/tokenStorage.js +25 -2
- package/lib/commonjs/pairing/tokenStorage.js.map +1 -1
- package/lib/commonjs/pairing/usePairingState.js +3 -1
- package/lib/commonjs/pairing/usePairingState.js.map +1 -1
- package/lib/commonjs/runtime/FlowRenderer.js +45 -21
- package/lib/commonjs/runtime/FlowRenderer.js.map +1 -1
- package/lib/commonjs/runtime/FlowSurfaceFade.js +47 -24
- package/lib/commonjs/runtime/FlowSurfaceFade.js.map +1 -1
- package/lib/commonjs/runtime/TargetPressBridge.js +13 -44
- package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -1
- package/lib/commonjs/runtime/UserflowProvider.js +74 -20
- package/lib/commonjs/runtime/UserflowProvider.js.map +1 -1
- package/lib/commonjs/runtime/changedTouchPoints.js +48 -0
- package/lib/commonjs/runtime/changedTouchPoints.js.map +1 -0
- package/lib/commonjs/runtime/flowEngine.js +3 -1
- package/lib/commonjs/runtime/flowEngine.js.map +1 -1
- package/lib/commonjs/runtime/flowSessionViewState.js +32 -7
- package/lib/commonjs/runtime/flowSessionViewState.js.map +1 -1
- package/lib/commonjs/runtime/useFlowSessionState.js +2 -1
- package/lib/commonjs/runtime/useFlowSessionState.js.map +1 -1
- package/lib/commonjs/screenTracker.js +46 -4
- package/lib/commonjs/screenTracker.js.map +1 -1
- package/lib/commonjs/surfaces/CardFade.js +31 -0
- package/lib/commonjs/surfaces/CardFade.js.map +1 -0
- package/lib/commonjs/surfaces/CloseButton.js +11 -6
- package/lib/commonjs/surfaces/CloseButton.js.map +1 -1
- package/lib/commonjs/surfaces/ModalSurface.js +50 -34
- package/lib/commonjs/surfaces/ModalSurface.js.map +1 -1
- package/lib/commonjs/surfaces/TooltipSurface.js +366 -87
- package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
- package/lib/commonjs/surfaces/cardTransition.js +70 -0
- package/lib/commonjs/surfaces/cardTransition.js.map +1 -0
- package/lib/commonjs/surfaces/resolveHighlightChrome.js +109 -0
- package/lib/commonjs/surfaces/resolveHighlightChrome.js.map +1 -0
- package/lib/commonjs/surfaces/resolveModalLayout.js +7 -3
- package/lib/commonjs/surfaces/resolveModalLayout.js.map +1 -1
- package/lib/commonjs/surfaces/resolveTooltipLayout.js +0 -4
- package/lib/commonjs/surfaces/resolveTooltipLayout.js.map +1 -1
- package/lib/commonjs/surfaces/surfaceInteractionConfig.js +33 -0
- package/lib/commonjs/surfaces/surfaceInteractionConfig.js.map +1 -0
- package/lib/commonjs/surfaces/surfaceLayoutInsets.js +128 -0
- package/lib/commonjs/surfaces/surfaceLayoutInsets.js.map +1 -0
- package/lib/commonjs/surfaces/themeChrome.js +4 -1
- package/lib/commonjs/surfaces/themeChrome.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/TooltipBubble.js +142 -21
- package/lib/commonjs/surfaces/tooltip/TooltipBubble.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/TooltipCutout.js +100 -47
- package/lib/commonjs/surfaces/tooltip/TooltipCutout.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js +124 -0
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js +67 -13
- package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js +88 -19
- package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/placementDiagnostics.js +52 -0
- package/lib/commonjs/surfaces/tooltip/placementDiagnostics.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/rect.js +12 -0
- package/lib/commonjs/surfaces/tooltip/rect.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/resolveSideCardWidth.js +103 -0
- package/lib/commonjs/surfaces/tooltip/resolveSideCardWidth.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/anchors/AutoAnchorRegistry.js +125 -2
- package/lib/module/anchors/AutoAnchorRegistry.js.map +1 -1
- package/lib/module/anchors/anchorChangeTicker.js +10 -0
- package/lib/module/anchors/anchorChangeTicker.js.map +1 -1
- package/lib/module/anchors/elementConditionEvaluator.js +25 -12
- package/lib/module/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/module/anchors/fiber/FiberScanRoot.js +2 -43
- package/lib/module/anchors/fiber/FiberScanRoot.js.map +1 -1
- package/lib/module/anchors/fiber/FiberScanRootStore.js +46 -0
- package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -0
- package/lib/module/anchors/fiber/fiberInternals.js +139 -3
- package/lib/module/anchors/fiber/fiberInternals.js.map +1 -1
- package/lib/module/anchors/fiber/indexHostFibers.js +122 -0
- package/lib/module/anchors/fiber/indexHostFibers.js.map +1 -0
- package/lib/module/anchors/fiber/readHostContent.js +127 -0
- package/lib/module/anchors/fiber/readHostContent.js.map +1 -0
- package/lib/module/anchors/fiberAnchorCache.js +40 -0
- package/lib/module/anchors/fiberAnchorCache.js.map +1 -0
- package/lib/module/anchors/resolveAnchorHost.js +15 -21
- package/lib/module/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/module/anchors/resolveAutoAnchorHost.js +167 -0
- package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -0
- package/lib/module/anchors/semanticMatcher.js +280 -0
- package/lib/module/anchors/semanticMatcher.js.map +1 -0
- package/lib/module/authoring/ElementPickerOverlay.js +485 -0
- package/lib/module/authoring/ElementPickerOverlay.js.map +1 -0
- package/lib/module/authoring/capturePickerScreenshot.js +68 -0
- package/lib/module/authoring/capturePickerScreenshot.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeBarTransition.js +88 -0
- package/lib/module/authoring/chrome/ChromeBarTransition.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeBottomSheet.js +59 -0
- package/lib/module/authoring/chrome/ChromeBottomSheet.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeButton.js +89 -0
- package/lib/module/authoring/chrome/ChromeButton.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeDialog.js +126 -0
- package/lib/module/authoring/chrome/ChromeDialog.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeIcon.js +33 -0
- package/lib/module/authoring/chrome/ChromeIcon.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeTooltip.js +82 -0
- package/lib/module/authoring/chrome/ChromeTooltip.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeTopBar.js +104 -0
- package/lib/module/authoring/chrome/ChromeTopBar.js.map +1 -0
- package/lib/module/authoring/chrome/DoubleTapBridge.js +52 -0
- package/lib/module/authoring/chrome/DoubleTapBridge.js.map +1 -0
- package/lib/module/authoring/chrome/doubleTapMonitor.js +75 -0
- package/lib/module/authoring/chrome/doubleTapMonitor.js.map +1 -0
- package/lib/module/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
- package/lib/module/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
- package/lib/module/authoring/chrome/icons/arrow-rotate-left.png +0 -0
- package/lib/module/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
- package/lib/module/authoring/chrome/icons/userflow-logomark.png +0 -0
- package/lib/module/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
- package/lib/module/authoring/chrome/icons/xmark.png +0 -0
- package/lib/module/authoring/chrome/icons/xmark@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/xmark@3x.png +0 -0
- package/lib/module/authoring/chrome/tokens.js +146 -0
- package/lib/module/authoring/chrome/tokens.js.map +1 -0
- package/lib/module/authoring/doubleTap.js +18 -0
- package/lib/module/authoring/doubleTap.js.map +1 -0
- package/lib/module/authoring/elementPickerController.js +97 -0
- package/lib/module/authoring/elementPickerController.js.map +1 -0
- package/lib/module/authoring/fingerprintFromInstance.js +187 -0
- package/lib/module/authoring/fingerprintFromInstance.js.map +1 -0
- package/lib/module/authoring/hitTest.js +100 -0
- package/lib/module/authoring/hitTest.js.map +1 -0
- package/lib/module/content/RichContentRenderer.js +12 -2
- package/lib/module/content/RichContentRenderer.js.map +1 -1
- package/lib/module/content/StepButton.js +19 -4
- package/lib/module/content/StepButton.js.map +1 -1
- package/lib/module/content/resolveStepButtonChrome.js +8 -6
- package/lib/module/content/resolveStepButtonChrome.js.map +1 -1
- package/lib/module/content/themeColor.js +10 -0
- package/lib/module/content/themeColor.js.map +1 -1
- package/lib/module/deviceContext.js +142 -0
- package/lib/module/deviceContext.js.map +1 -0
- package/lib/module/expo-router/useUserflowExpoRouter.js +42 -6
- package/lib/module/expo-router/useUserflowExpoRouter.js.map +1 -1
- package/lib/module/hostAppVersion.js +225 -0
- package/lib/module/hostAppVersion.js.map +1 -0
- package/lib/module/index.js +119 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/lifecycle.js +2 -0
- package/lib/module/lifecycle.js.map +1 -1
- package/lib/module/navigation/WithUserflowReactNavigation.js +18 -9
- package/lib/module/navigation/WithUserflowReactNavigation.js.map +1 -1
- package/lib/module/navigation/isOverlayPresentation.js +58 -0
- package/lib/module/navigation/isOverlayPresentation.js.map +1 -0
- package/lib/module/pairing/PairingController.js +30 -3
- package/lib/module/pairing/PairingController.js.map +1 -1
- package/lib/module/pairing/PreviewModeBanner.js +212 -85
- package/lib/module/pairing/PreviewModeBanner.js.map +1 -1
- package/lib/module/pairing/diagnostics.js +8 -0
- package/lib/module/pairing/diagnostics.js.map +1 -1
- package/lib/module/pairing/elementPickerRelay.js +87 -0
- package/lib/module/pairing/elementPickerRelay.js.map +1 -0
- package/lib/module/pairing/resolvePreviewChrome.js +48 -0
- package/lib/module/pairing/resolvePreviewChrome.js.map +1 -0
- package/lib/module/pairing/tokenStorage.js +24 -2
- package/lib/module/pairing/tokenStorage.js.map +1 -1
- package/lib/module/pairing/usePairingState.js +3 -1
- package/lib/module/pairing/usePairingState.js.map +1 -1
- package/lib/module/runtime/FlowRenderer.js +45 -21
- package/lib/module/runtime/FlowRenderer.js.map +1 -1
- package/lib/module/runtime/FlowSurfaceFade.js +49 -26
- package/lib/module/runtime/FlowSurfaceFade.js.map +1 -1
- package/lib/module/runtime/TargetPressBridge.js +12 -43
- package/lib/module/runtime/TargetPressBridge.js.map +1 -1
- package/lib/module/runtime/UserflowProvider.js +74 -20
- package/lib/module/runtime/UserflowProvider.js.map +1 -1
- package/lib/module/runtime/changedTouchPoints.js +43 -0
- package/lib/module/runtime/changedTouchPoints.js.map +1 -0
- package/lib/module/runtime/flowEngine.js +3 -1
- package/lib/module/runtime/flowEngine.js.map +1 -1
- package/lib/module/runtime/flowSessionViewState.js +32 -7
- package/lib/module/runtime/flowSessionViewState.js.map +1 -1
- package/lib/module/runtime/useFlowSessionState.js +2 -1
- package/lib/module/runtime/useFlowSessionState.js.map +1 -1
- package/lib/module/screenTracker.js +42 -4
- package/lib/module/screenTracker.js.map +1 -1
- package/lib/module/surfaces/CardFade.js +26 -0
- package/lib/module/surfaces/CardFade.js.map +1 -0
- package/lib/module/surfaces/CloseButton.js +10 -6
- package/lib/module/surfaces/CloseButton.js.map +1 -1
- package/lib/module/surfaces/ModalSurface.js +52 -36
- package/lib/module/surfaces/ModalSurface.js.map +1 -1
- package/lib/module/surfaces/TooltipSurface.js +368 -90
- package/lib/module/surfaces/TooltipSurface.js.map +1 -1
- package/lib/module/surfaces/cardTransition.js +64 -0
- package/lib/module/surfaces/cardTransition.js.map +1 -0
- package/lib/module/surfaces/resolveHighlightChrome.js +102 -0
- package/lib/module/surfaces/resolveHighlightChrome.js.map +1 -0
- package/lib/module/surfaces/resolveModalLayout.js +7 -3
- package/lib/module/surfaces/resolveModalLayout.js.map +1 -1
- package/lib/module/surfaces/resolveTooltipLayout.js +1 -4
- package/lib/module/surfaces/resolveTooltipLayout.js.map +1 -1
- package/lib/module/surfaces/surfaceInteractionConfig.js +27 -0
- package/lib/module/surfaces/surfaceInteractionConfig.js.map +1 -0
- package/lib/module/surfaces/surfaceLayoutInsets.js +119 -0
- package/lib/module/surfaces/surfaceLayoutInsets.js.map +1 -0
- package/lib/module/surfaces/themeChrome.js +3 -1
- package/lib/module/surfaces/themeChrome.js.map +1 -1
- package/lib/module/surfaces/tooltip/TooltipBubble.js +143 -22
- package/lib/module/surfaces/tooltip/TooltipBubble.js.map +1 -1
- package/lib/module/surfaces/tooltip/TooltipCutout.js +100 -47
- package/lib/module/surfaces/tooltip/TooltipCutout.js.map +1 -1
- package/lib/module/surfaces/tooltip/TooltipHighlight.js +118 -0
- package/lib/module/surfaces/tooltip/TooltipHighlight.js.map +1 -0
- package/lib/module/surfaces/tooltip/computeTooltipPosition.js +67 -13
- package/lib/module/surfaces/tooltip/computeTooltipPosition.js.map +1 -1
- package/lib/module/surfaces/tooltip/inferTooltipPlacement.js +87 -19
- package/lib/module/surfaces/tooltip/inferTooltipPlacement.js.map +1 -1
- package/lib/module/surfaces/tooltip/placementDiagnostics.js +43 -0
- package/lib/module/surfaces/tooltip/placementDiagnostics.js.map +1 -0
- package/lib/module/surfaces/tooltip/rect.js +11 -0
- package/lib/module/surfaces/tooltip/rect.js.map +1 -1
- package/lib/module/surfaces/tooltip/resolveSideCardWidth.js +96 -0
- package/lib/module/surfaces/tooltip/resolveSideCardWidth.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts +26 -0
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts +2 -0
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts +14 -10
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts +42 -1
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts +42 -0
- package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/readHostContent.d.ts +17 -0
- package/lib/typescript/commonjs/src/anchors/fiber/readHostContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts +20 -0
- package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +5 -5
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts +48 -0
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +7 -0
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/capturePickerScreenshot.d.ts +11 -0
- package/lib/typescript/commonjs/src/authoring/capturePickerScreenshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBarTransition.d.ts +32 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBarTransition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts +13 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeButton.d.ts +20 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeDialog.d.ts +14 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts +13 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTooltip.d.ts +17 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts +25 -0
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/DoubleTapBridge.d.ts +12 -0
- package/lib/typescript/commonjs/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts +26 -0
- package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts +141 -0
- package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/doubleTap.d.ts +14 -0
- package/lib/typescript/commonjs/src/authoring/doubleTap.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts +59 -0
- package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts +26 -0
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +31 -0
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts +6 -1
- package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/resolveStepButtonChrome.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/themeColor.d.ts +5 -0
- package/lib/typescript/commonjs/src/content/themeColor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/deviceContext.d.ts +66 -0
- package/lib/typescript/commonjs/src/deviceContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hostAppVersion.d.ts +69 -0
- package/lib/typescript/commonjs/src/hostAppVersion.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +53 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/lifecycle.d.ts +6 -0
- package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/navigation/isOverlayPresentation.d.ts +14 -0
- package/lib/typescript/commonjs/src/navigation/isOverlayPresentation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +7 -0
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts +6 -1
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts +5 -0
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/elementPickerRelay.d.ts +11 -0
- package/lib/typescript/commonjs/src/pairing/elementPickerRelay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/resolvePreviewChrome.d.ts +16 -0
- package/lib/typescript/commonjs/src/pairing/resolvePreviewChrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts +2 -0
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/usePairingState.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts +6 -3
- package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts +20 -7
- package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts +5 -1
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts +6 -4
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/changedTouchPoints.d.ts +10 -0
- package/lib/typescript/commonjs/src/runtime/changedTouchPoints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts +12 -3
- package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts +1 -0
- package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/screenTracker.d.ts +21 -3
- package/lib/typescript/commonjs/src/screenTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/CardFade.d.ts +12 -0
- package/lib/typescript/commonjs/src/surfaces/CardFade.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts +8 -2
- package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts +1 -1
- package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts +1 -1
- package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts +12 -1
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/cardTransition.d.ts +31 -0
- package/lib/typescript/commonjs/src/surfaces/cardTransition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/resolveHighlightChrome.d.ts +44 -0
- package/lib/typescript/commonjs/src/surfaces/resolveHighlightChrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts +1 -1
- package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts +0 -7
- package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/surfaceInteractionConfig.d.ts +15 -0
- package/lib/typescript/commonjs/src/surfaces/surfaceInteractionConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/surfaceLayoutInsets.d.ts +38 -0
- package/lib/typescript/commonjs/src/surfaces/surfaceLayoutInsets.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts +3 -1
- package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts +21 -6
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts +18 -10
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipHighlight.d.ts +25 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipHighlight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts +23 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts +47 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/placementDiagnostics.d.ts +39 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/placementDiagnostics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts +2 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/resolveSideCardWidth.d.ts +76 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/resolveSideCardWidth.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/version.d.ts +1 -1
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts +26 -0
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts +2 -0
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts +14 -10
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts +42 -1
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts +42 -0
- package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/readHostContent.d.ts +17 -0
- package/lib/typescript/module/src/anchors/fiber/readHostContent.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts +20 -0
- package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +5 -5
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts +48 -0
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +7 -0
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/capturePickerScreenshot.d.ts +11 -0
- package/lib/typescript/module/src/authoring/capturePickerScreenshot.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeBarTransition.d.ts +32 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeBarTransition.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts +13 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeButton.d.ts +20 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeButton.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeDialog.d.ts +14 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeDialog.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts +13 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeTooltip.d.ts +17 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeTooltip.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts +25 -0
- package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/DoubleTapBridge.d.ts +12 -0
- package/lib/typescript/module/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts +26 -0
- package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/tokens.d.ts +141 -0
- package/lib/typescript/module/src/authoring/chrome/tokens.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/doubleTap.d.ts +14 -0
- package/lib/typescript/module/src/authoring/doubleTap.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/elementPickerController.d.ts +59 -0
- package/lib/typescript/module/src/authoring/elementPickerController.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts +26 -0
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/hitTest.d.ts +31 -0
- package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -0
- package/lib/typescript/module/src/content/RichContentRenderer.d.ts +6 -1
- package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -1
- package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -1
- package/lib/typescript/module/src/content/resolveStepButtonChrome.d.ts.map +1 -1
- package/lib/typescript/module/src/content/themeColor.d.ts +5 -0
- package/lib/typescript/module/src/content/themeColor.d.ts.map +1 -1
- package/lib/typescript/module/src/deviceContext.d.ts +66 -0
- package/lib/typescript/module/src/deviceContext.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
- package/lib/typescript/module/src/hostAppVersion.d.ts +69 -0
- package/lib/typescript/module/src/hostAppVersion.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +53 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/lifecycle.d.ts +6 -0
- package/lib/typescript/module/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/module/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -1
- package/lib/typescript/module/src/navigation/isOverlayPresentation.d.ts +14 -0
- package/lib/typescript/module/src/navigation/isOverlayPresentation.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/PairingController.d.ts +7 -0
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts +6 -1
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/diagnostics.d.ts +5 -0
- package/lib/typescript/module/src/pairing/diagnostics.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/elementPickerRelay.d.ts +11 -0
- package/lib/typescript/module/src/pairing/elementPickerRelay.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/resolvePreviewChrome.d.ts +16 -0
- package/lib/typescript/module/src/pairing/resolvePreviewChrome.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts +2 -0
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/usePairingState.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/FlowRenderer.d.ts +6 -3
- package/lib/typescript/module/src/runtime/FlowRenderer.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts +20 -7
- package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts +5 -1
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts +6 -4
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/changedTouchPoints.d.ts +10 -0
- package/lib/typescript/module/src/runtime/changedTouchPoints.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/flowEngine.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts +12 -3
- package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts +1 -0
- package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts.map +1 -1
- package/lib/typescript/module/src/screenTracker.d.ts +21 -3
- package/lib/typescript/module/src/screenTracker.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/CardFade.d.ts +12 -0
- package/lib/typescript/module/src/surfaces/CardFade.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/CloseButton.d.ts +8 -2
- package/lib/typescript/module/src/surfaces/CloseButton.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts +1 -1
- package/lib/typescript/module/src/surfaces/ModalSurface.d.ts +1 -1
- package/lib/typescript/module/src/surfaces/ModalSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts +12 -1
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/cardTransition.d.ts +31 -0
- package/lib/typescript/module/src/surfaces/cardTransition.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/resolveHighlightChrome.d.ts +44 -0
- package/lib/typescript/module/src/surfaces/resolveHighlightChrome.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts +1 -1
- package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts +0 -7
- package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/surfaceInteractionConfig.d.ts +15 -0
- package/lib/typescript/module/src/surfaces/surfaceInteractionConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/surfaceLayoutInsets.d.ts +38 -0
- package/lib/typescript/module/src/surfaces/surfaceLayoutInsets.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/themeChrome.d.ts +3 -1
- package/lib/typescript/module/src/surfaces/themeChrome.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts +21 -6
- package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts +18 -10
- package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/TooltipHighlight.d.ts +25 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipHighlight.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts +23 -0
- package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts +47 -1
- package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/placementDiagnostics.d.ts +39 -0
- package/lib/typescript/module/src/surfaces/tooltip/placementDiagnostics.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts +2 -0
- package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/resolveSideCardWidth.d.ts +76 -0
- package/lib/typescript/module/src/surfaces/tooltip/resolveSideCardWidth.d.ts.map +1 -0
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +22 -16
- package/src/anchors/AutoAnchorRegistry.ts +139 -2
- package/src/anchors/anchorChangeTicker.ts +10 -0
- package/src/anchors/elementConditionEvaluator.ts +29 -16
- package/src/anchors/fiber/FiberScanRoot.tsx +2 -50
- package/src/anchors/fiber/FiberScanRootStore.ts +51 -0
- package/src/anchors/fiber/fiberInternals.ts +166 -3
- package/src/anchors/fiber/indexHostFibers.ts +136 -0
- package/src/anchors/fiber/readHostContent.ts +146 -0
- package/src/anchors/fiberAnchorCache.ts +45 -0
- package/src/anchors/resolveAnchorHost.ts +23 -23
- package/src/anchors/resolveAutoAnchorHost.ts +180 -0
- package/src/anchors/semanticMatcher.ts +361 -0
- package/src/authoring/ElementPickerOverlay.tsx +553 -0
- package/src/authoring/capturePickerScreenshot.ts +90 -0
- package/src/authoring/chrome/ChromeBarTransition.tsx +106 -0
- package/src/authoring/chrome/ChromeBottomSheet.tsx +69 -0
- package/src/authoring/chrome/ChromeButton.tsx +103 -0
- package/src/authoring/chrome/ChromeDialog.tsx +121 -0
- package/src/authoring/chrome/ChromeIcon.tsx +40 -0
- package/src/authoring/chrome/ChromeTooltip.tsx +89 -0
- package/src/authoring/chrome/ChromeTopBar.tsx +126 -0
- package/src/authoring/chrome/DoubleTapBridge.tsx +60 -0
- package/src/authoring/chrome/doubleTapMonitor.ts +80 -0
- package/src/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
- package/src/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
- package/src/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
- package/src/authoring/chrome/icons/arrow-rotate-left.png +0 -0
- package/src/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
- package/src/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
- package/src/authoring/chrome/icons/userflow-logomark.png +0 -0
- package/src/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
- package/src/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
- package/src/authoring/chrome/icons/xmark.png +0 -0
- package/src/authoring/chrome/icons/xmark@2x.png +0 -0
- package/src/authoring/chrome/icons/xmark@3x.png +0 -0
- package/src/authoring/chrome/tokens.ts +106 -0
- package/src/authoring/doubleTap.ts +27 -0
- package/src/authoring/elementPickerController.ts +135 -0
- package/src/authoring/fingerprintFromInstance.ts +152 -0
- package/src/authoring/hitTest.ts +133 -0
- package/src/content/RichContentRenderer.tsx +22 -1
- package/src/content/StepButton.tsx +17 -2
- package/src/content/resolveStepButtonChrome.ts +12 -6
- package/src/content/themeColor.ts +10 -0
- package/src/deviceContext.ts +168 -0
- package/src/expo-router/useUserflowExpoRouter.ts +47 -4
- package/src/hostAppVersion.ts +258 -0
- package/src/index.ts +148 -4
- package/src/lifecycle.ts +8 -0
- package/src/navigation/WithUserflowReactNavigation.tsx +23 -7
- package/src/navigation/isOverlayPresentation.ts +76 -0
- package/src/pairing/PairingController.ts +32 -3
- package/src/pairing/PreviewModeBanner.tsx +250 -94
- package/src/pairing/diagnostics.ts +8 -0
- package/src/pairing/elementPickerRelay.ts +100 -0
- package/src/pairing/resolvePreviewChrome.ts +57 -0
- package/src/pairing/tokenStorage.ts +31 -2
- package/src/pairing/usePairingState.ts +2 -0
- package/src/runtime/FlowRenderer.tsx +55 -27
- package/src/runtime/FlowSurfaceFade.tsx +51 -30
- package/src/runtime/TargetPressBridge.tsx +14 -32
- package/src/runtime/UserflowProvider.tsx +76 -13
- package/src/runtime/changedTouchPoints.ts +34 -0
- package/src/runtime/flowEngine.ts +2 -0
- package/src/runtime/flowSessionViewState.ts +42 -4
- package/src/runtime/useFlowSessionState.ts +2 -0
- package/src/screenTracker.ts +46 -4
- package/src/surfaces/CardFade.tsx +18 -0
- package/src/surfaces/CloseButton.tsx +17 -7
- package/src/surfaces/MadeWithUserflow.tsx +1 -1
- package/src/surfaces/ModalSurface.tsx +48 -35
- package/src/surfaces/TooltipSurface.tsx +406 -86
- package/src/surfaces/cardTransition.ts +67 -0
- package/src/surfaces/resolveHighlightChrome.ts +139 -0
- package/src/surfaces/resolveModalLayout.ts +16 -8
- package/src/surfaces/resolveTooltipLayout.ts +1 -14
- package/src/surfaces/surfaceInteractionConfig.ts +25 -0
- package/src/surfaces/surfaceLayoutInsets.tsx +135 -0
- package/src/surfaces/themeChrome.ts +5 -3
- package/src/surfaces/tooltip/TooltipBubble.tsx +154 -19
- package/src/surfaces/tooltip/TooltipCutout.tsx +106 -49
- package/src/surfaces/tooltip/TooltipHighlight.tsx +144 -0
- package/src/surfaces/tooltip/computeTooltipPosition.ts +98 -12
- package/src/surfaces/tooltip/inferTooltipPlacement.ts +107 -18
- package/src/surfaces/tooltip/placementDiagnostics.ts +70 -0
- package/src/surfaces/tooltip/rect.ts +11 -0
- package/src/surfaces/tooltip/resolveSideCardWidth.ts +121 -0
- package/src/version.ts +1 -1
- package/vendor/core/dist/attributes.d.ts +1 -2
- package/vendor/core/dist/attributes.d.ts.map +1 -1
- package/vendor/core/dist/attributes.js.map +1 -1
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts +69 -1
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/FlowSessionEngine.js +268 -7
- package/vendor/core/dist/engine/FlowSessionEngine.js.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.d.ts +44 -1
- package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.js +103 -9
- package/vendor/core/dist/engine/PairingEngine.js.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts +23 -4
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +64 -1
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/engine/conditionOperators.d.ts +16 -0
- package/vendor/core/dist/engine/conditionOperators.d.ts.map +1 -0
- package/vendor/core/dist/engine/conditionOperators.js +168 -0
- package/vendor/core/dist/engine/conditionOperators.js.map +1 -0
- package/vendor/core/dist/engine/handleActions.d.ts +27 -4
- package/vendor/core/dist/engine/handleActions.d.ts.map +1 -1
- package/vendor/core/dist/engine/handleActions.js +140 -13
- package/vendor/core/dist/engine/handleActions.js.map +1 -1
- package/vendor/core/dist/engine/simpleObservable.d.ts +13 -0
- package/vendor/core/dist/engine/simpleObservable.d.ts.map +1 -0
- package/vendor/core/dist/engine/simpleObservable.js +29 -0
- package/vendor/core/dist/engine/simpleObservable.js.map +1 -0
- package/vendor/core/dist/engine/trackCondition.d.ts +25 -0
- package/vendor/core/dist/engine/trackCondition.d.ts.map +1 -0
- package/vendor/core/dist/engine/trackCondition.js +177 -0
- package/vendor/core/dist/engine/trackCondition.js.map +1 -0
- package/vendor/core/dist/engine/trackStepTriggers.d.ts +21 -0
- package/vendor/core/dist/engine/trackStepTriggers.d.ts.map +1 -0
- package/vendor/core/dist/engine/trackStepTriggers.js +49 -0
- package/vendor/core/dist/engine/trackStepTriggers.js.map +1 -0
- package/vendor/core/dist/index.d.ts +4 -3
- package/vendor/core/dist/index.d.ts.map +1 -1
- package/vendor/core/dist/index.js +2 -1
- package/vendor/core/dist/index.js.map +1 -1
- package/vendor/core/dist/normalizeAttributes.d.ts +8 -0
- package/vendor/core/dist/normalizeAttributes.d.ts.map +1 -0
- package/vendor/core/dist/normalizeAttributes.js +127 -0
- package/vendor/core/dist/normalizeAttributes.js.map +1 -0
- package/vendor/core/dist/transport/phoenix.d.ts +11 -6
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
- package/vendor/core/dist/transport/phoenix.js +59 -5
- package/vendor/core/dist/transport/phoenix.js.map +1 -1
- package/vendor/core/dist/types.d.ts +26 -1
- package/vendor/core/dist/types.d.ts.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/dist/attributes.d.ts +43 -0
- package/vendor/protocol/dist/attributes.d.ts.map +1 -0
- package/vendor/protocol/dist/attributes.js +15 -0
- package/vendor/protocol/dist/attributes.js.map +1 -0
- package/vendor/protocol/dist/autoData.d.ts +2 -2
- package/vendor/protocol/dist/autoData.js +2 -2
- package/vendor/protocol/dist/events.d.ts +8 -0
- package/vendor/protocol/dist/events.d.ts.map +1 -1
- package/vendor/protocol/dist/flows.d.ts +66 -4
- package/vendor/protocol/dist/flows.d.ts.map +1 -1
- package/vendor/protocol/dist/flows.js +50 -3
- package/vendor/protocol/dist/flows.js.map +1 -1
- package/vendor/protocol/dist/index.d.ts +1 -0
- package/vendor/protocol/dist/index.d.ts.map +1 -1
- package/vendor/protocol/dist/index.js +1 -0
- package/vendor/protocol/dist/index.js.map +1 -1
- package/vendor/protocol/dist/messages.d.ts +25 -4
- package/vendor/protocol/dist/messages.d.ts.map +1 -1
- package/vendor/protocol/dist/messages.js +4 -0
- package/vendor/protocol/dist/messages.js.map +1 -1
- package/vendor/protocol/dist/pairing.d.ts +26 -0
- package/vendor/protocol/dist/pairing.d.ts.map +1 -1
- package/vendor/protocol/dist/pairing.js.map +1 -1
- package/vendor/protocol/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { ClientMessage, FlowActionFragment, FlowSessionFragment, FlowStepFragment, ServerMessage } from '@userflow-tech/protocol';
|
|
1
|
+
import type { ClientMessage, FlowActionFragment, FlowSessionFragment, FlowStepFragment, ServerMessage, StartFlowReasonInput } from '@userflow-tech/protocol';
|
|
2
2
|
import { EndFlowReasonInput } from '@userflow-tech/protocol';
|
|
3
3
|
import { type Scheduler } from '../transport/scheduler.js';
|
|
4
|
+
import type { PublicAttributes } from '../types.js';
|
|
4
5
|
/** Narrow transport surface the flow session engine depends on. */
|
|
5
6
|
export interface FlowTransport {
|
|
6
7
|
send(message: ClientMessage): Promise<void>;
|
|
@@ -24,6 +25,12 @@ export interface FlowSessionEngineDeps {
|
|
|
24
25
|
transport: FlowTransport;
|
|
25
26
|
/** Open a URL for NAVIGATE actions (both SAME_TAB and NEW_TAB on mobile). */
|
|
26
27
|
onOpenExternalUrl?: (url: string) => void;
|
|
28
|
+
/** Persist user attributes (SET_ATTRIBUTE on the user scope). */
|
|
29
|
+
updateUser?: (attributes: PublicAttributes) => Promise<void>;
|
|
30
|
+
/** Persist group / membership attributes (SET_ATTRIBUTE on group scopes). */
|
|
31
|
+
updateGroup?: (attributes: PublicAttributes, options?: {
|
|
32
|
+
membership?: PublicAttributes;
|
|
33
|
+
}) => Promise<void>;
|
|
27
34
|
warn?: (message: string) => void;
|
|
28
35
|
scheduler?: Scheduler;
|
|
29
36
|
}
|
|
@@ -36,6 +43,8 @@ export interface FlowSessionEngineDeps {
|
|
|
36
43
|
export declare class FlowSessionEngine {
|
|
37
44
|
private readonly transport;
|
|
38
45
|
private readonly onOpenExternalUrl;
|
|
46
|
+
private readonly updateUserImpl;
|
|
47
|
+
private readonly updateGroupImpl;
|
|
39
48
|
private readonly warn;
|
|
40
49
|
private readonly scheduler;
|
|
41
50
|
private clientClock;
|
|
@@ -46,7 +55,23 @@ export declare class FlowSessionEngine {
|
|
|
46
55
|
private readonly conditionWaitTimers;
|
|
47
56
|
private readonly pendingSends;
|
|
48
57
|
private flushingPending;
|
|
58
|
+
private inBatch;
|
|
59
|
+
/** EndBatch failed to send; must land before another BeginBatch. */
|
|
60
|
+
private pendingEndBatch;
|
|
61
|
+
/** >0 while a BeginBatch is open, so a mid-op flush cannot close the batch. */
|
|
62
|
+
private batchOpDepth;
|
|
49
63
|
private unsubscribeServerMessages;
|
|
64
|
+
/** Step whose triggers are currently tracked (may differ from currentStep on ForceGoToStep). */
|
|
65
|
+
private displayedStepId;
|
|
66
|
+
private triggerTrackingKey;
|
|
67
|
+
private triggerUntrack;
|
|
68
|
+
private applyingTriggers;
|
|
69
|
+
private triggersDirty;
|
|
70
|
+
private triggerSessionData;
|
|
71
|
+
/** Keys visited during the current trigger-driven auto-advance chain. */
|
|
72
|
+
private triggerCycleVisited;
|
|
73
|
+
/** >0 while a step trigger's handleActions is in flight (including awaits). */
|
|
74
|
+
private triggerActionDepth;
|
|
50
75
|
constructor(deps: FlowSessionEngineDeps);
|
|
51
76
|
/** Subscribe to inbound server messages. Must be called after identify. */
|
|
52
77
|
attach(): () => void;
|
|
@@ -65,6 +90,19 @@ export declare class FlowSessionEngine {
|
|
|
65
90
|
endFlow(endReason: EndFlowReasonInput): Promise<void>;
|
|
66
91
|
reportTooltipTargetMissing(stepId: string): Promise<void>;
|
|
67
92
|
handleActions(actions: FlowActionFragment[]): Promise<void>;
|
|
93
|
+
trackButtonEvent(eventName: string, token: string, stepCvid: string | null, sessionId: string | null): Promise<void>;
|
|
94
|
+
updateUser(attributes: PublicAttributes): Promise<void>;
|
|
95
|
+
updateGroup(attributes: PublicAttributes, options?: {
|
|
96
|
+
membership?: PublicAttributes;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
/** Button SET_ATTRIBUTE must not abort sibling close/next/navigate. */
|
|
99
|
+
private warnSetAttributeFailure;
|
|
100
|
+
startFlow(options: {
|
|
101
|
+
flowId: string;
|
|
102
|
+
stepCvid: string | null;
|
|
103
|
+
startReason: StartFlowReasonInput;
|
|
104
|
+
replaceCurrent: boolean;
|
|
105
|
+
}): Promise<void>;
|
|
68
106
|
/**
|
|
69
107
|
* Clear the local flow session and join resume id without detaching from
|
|
70
108
|
* server messages. Used when a long background makes mid-flow resume stale.
|
|
@@ -80,6 +118,36 @@ export declare class FlowSessionEngine {
|
|
|
80
118
|
/** @internal Test helper. */
|
|
81
119
|
getPendingSendCountForTests(): number;
|
|
82
120
|
private setFlowSession;
|
|
121
|
+
/**
|
|
122
|
+
* Same-session SetFlowSession must not wipe a local goToStep. Tracking a
|
|
123
|
+
* button event enqueues `check_sessions`, which can still report the old
|
|
124
|
+
* current step. Web FlowApp `updateSession` keeps the local step for the
|
|
125
|
+
* same session id.
|
|
126
|
+
*/
|
|
127
|
+
private applyLocalStepToSession;
|
|
128
|
+
/**
|
|
129
|
+
* Start/stop client-side step triggers to match the displayed step. Nested
|
|
130
|
+
* calls (a trigger's GO_TO_STEP) mark dirty and let the outer loop apply the
|
|
131
|
+
* new step. handleActions awaits, so GO_TO_STEP can also start a new sync
|
|
132
|
+
* after this returns; triggerActionDepth keeps the visited set across those
|
|
133
|
+
* hops so ALWAYS_TRUE cycles still stop.
|
|
134
|
+
*/
|
|
135
|
+
private syncStepTriggers;
|
|
136
|
+
private untrackStepTriggers;
|
|
137
|
+
/**
|
|
138
|
+
* Open a server batch. Nested / overlapping callers share one BeginBatch;
|
|
139
|
+
* `check_sessions` stays deferred until the matching {@link endBatch} at
|
|
140
|
+
* depth 0. `inBatch` is set before the send (web `{batch: true}`) so a
|
|
141
|
+
* second click cannot send another BeginBatch while the first is in flight.
|
|
142
|
+
*/
|
|
143
|
+
beginBatch(): Promise<void>;
|
|
144
|
+
/** Close a batch opened by {@link beginBatch}. Nested closes are no-ops until depth 0. */
|
|
145
|
+
endBatch(): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Close the server batch. `inBatch` stays true until EndBatch is acked so a
|
|
148
|
+
* later replace cannot send BeginBatch while a close is still queued.
|
|
149
|
+
*/
|
|
150
|
+
private sendEndBatch;
|
|
83
151
|
private optimisticClockUIUpdate;
|
|
84
152
|
private enqueuePendingSend;
|
|
85
153
|
private sendTracked;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSessionEngine.d.ts","sourceRoot":"","sources":["../../src/engine/FlowSessionEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,
|
|
1
|
+
{"version":3,"file":"FlowSessionEngine.d.ts","sourceRoot":"","sources":["../../src/engine/FlowSessionEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EAEb,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAA0B,MAAM,yBAAyB,CAAC;AAGrF,OAAO,EAAoB,KAAK,SAAS,EAAoB,MAAM,2BAA2B,CAAC;AAC/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AASpD,mEAAmE;AACnE,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,eAAe,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IACvE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,E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;YAOZ,WAAW;IAazB,OAAO,CAAC,uBAAuB;IAkB/B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,IAAI;CASb"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EndFlowReasonInput, TooltipMissingBehavior } from '@userflow-tech/protocol';
|
|
2
|
-
import { UserflowAuthError } from '../errors.js';
|
|
2
|
+
import { UserflowAuthError, UserflowRateLimitError } from '../errors.js';
|
|
3
3
|
import { defaultScheduler } from '../transport/scheduler.js';
|
|
4
4
|
import { handleActions } from './handleActions.js';
|
|
5
|
+
import { SimpleObservable } from './simpleObservable.js';
|
|
6
|
+
import { trackStepTriggers } from './trackStepTriggers.js';
|
|
5
7
|
/** Cap for in-memory client-message retry after transport failure. */
|
|
6
8
|
const MAX_PENDING_SENDS = 20;
|
|
7
9
|
function isValidFlowSession(session) {
|
|
@@ -37,9 +39,27 @@ export class FlowSessionEngine {
|
|
|
37
39
|
this.conditionWaitTimers = new Map();
|
|
38
40
|
this.pendingSends = [];
|
|
39
41
|
this.flushingPending = false;
|
|
42
|
+
this.inBatch = false;
|
|
43
|
+
/** EndBatch failed to send; must land before another BeginBatch. */
|
|
44
|
+
this.pendingEndBatch = false;
|
|
45
|
+
/** >0 while a BeginBatch is open, so a mid-op flush cannot close the batch. */
|
|
46
|
+
this.batchOpDepth = 0;
|
|
40
47
|
this.unsubscribeServerMessages = null;
|
|
48
|
+
/** Step whose triggers are currently tracked (may differ from currentStep on ForceGoToStep). */
|
|
49
|
+
this.displayedStepId = null;
|
|
50
|
+
this.triggerTrackingKey = null;
|
|
51
|
+
this.triggerUntrack = null;
|
|
52
|
+
this.applyingTriggers = false;
|
|
53
|
+
this.triggersDirty = false;
|
|
54
|
+
this.triggerSessionData = null;
|
|
55
|
+
/** Keys visited during the current trigger-driven auto-advance chain. */
|
|
56
|
+
this.triggerCycleVisited = new Set();
|
|
57
|
+
/** >0 while a step trigger's handleActions is in flight (including awaits). */
|
|
58
|
+
this.triggerActionDepth = 0;
|
|
41
59
|
this.transport = deps.transport;
|
|
42
60
|
this.onOpenExternalUrl = deps.onOpenExternalUrl;
|
|
61
|
+
this.updateUserImpl = deps.updateUser;
|
|
62
|
+
this.updateGroupImpl = deps.updateGroup;
|
|
43
63
|
this.warn = deps.warn ?? ((message) => console.warn(message));
|
|
44
64
|
this.scheduler = deps.scheduler ?? defaultScheduler;
|
|
45
65
|
}
|
|
@@ -73,9 +93,12 @@ export class FlowSessionEngine {
|
|
|
73
93
|
}
|
|
74
94
|
getCurrentStep() {
|
|
75
95
|
const session = this.flowSession;
|
|
76
|
-
if (!session
|
|
96
|
+
if (!session)
|
|
77
97
|
return null;
|
|
78
|
-
|
|
98
|
+
const stepId = this.displayedStepId ?? session.currentStep?.id;
|
|
99
|
+
if (!stepId)
|
|
100
|
+
return null;
|
|
101
|
+
return session.version.steps.find((step) => step.id === stepId) ?? null;
|
|
79
102
|
}
|
|
80
103
|
/** Visible for tests / advanced callers; prefer {@link attach}. */
|
|
81
104
|
handleServerMessage(message) {
|
|
@@ -106,11 +129,13 @@ export class FlowSessionEngine {
|
|
|
106
129
|
if (this.flowSessionClock > this.serverClock)
|
|
107
130
|
return;
|
|
108
131
|
if (this.flowSession?.id === message.sessionId) {
|
|
132
|
+
this.displayedStepId = message.stepId;
|
|
109
133
|
this.emit({
|
|
110
134
|
type: 'goToStep',
|
|
111
135
|
sessionId: message.sessionId,
|
|
112
136
|
stepId: message.stepId,
|
|
113
137
|
});
|
|
138
|
+
this.syncStepTriggers();
|
|
114
139
|
}
|
|
115
140
|
return;
|
|
116
141
|
}
|
|
@@ -140,7 +165,9 @@ export class FlowSessionEngine {
|
|
|
140
165
|
// will not see this update — they must also handle the goToStep event
|
|
141
166
|
// (or we should clone before mutating in a later pass).
|
|
142
167
|
session.currentStep = { id: step.id, crossVersionId: step.crossVersionId };
|
|
168
|
+
this.displayedStepId = step.id;
|
|
143
169
|
this.emit({ type: 'goToStep', sessionId: session.id, stepId: step.id });
|
|
170
|
+
this.syncStepTriggers();
|
|
144
171
|
await promise;
|
|
145
172
|
}
|
|
146
173
|
async endFlow(endReason) {
|
|
@@ -179,14 +206,87 @@ export class FlowSessionEngine {
|
|
|
179
206
|
? { onOpenExternalUrl: this.onOpenExternalUrl }
|
|
180
207
|
: {}),
|
|
181
208
|
warn: this.warn,
|
|
209
|
+
}).catch((error) => {
|
|
210
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
211
|
+
this.warn(`Userflow: flow actions failed: ${detail}`);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
async trackButtonEvent(eventName, token, stepCvid, sessionId) {
|
|
215
|
+
await this.sendTracked({
|
|
216
|
+
kind: 'TrackButtonEvent',
|
|
217
|
+
eventName,
|
|
218
|
+
token,
|
|
219
|
+
stepCvid,
|
|
220
|
+
sessionId,
|
|
182
221
|
});
|
|
183
222
|
}
|
|
223
|
+
async updateUser(attributes) {
|
|
224
|
+
if (!this.updateUserImpl) {
|
|
225
|
+
this.warn('Userflow: SET_ATTRIBUTE requires an identified user');
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
try {
|
|
229
|
+
await this.updateUserImpl(attributes);
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
this.warnSetAttributeFailure(error);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
async updateGroup(attributes, options) {
|
|
236
|
+
if (!this.updateGroupImpl) {
|
|
237
|
+
this.warn('Userflow: SET_ATTRIBUTE on a group requires a prior group() call');
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
try {
|
|
241
|
+
await this.updateGroupImpl(attributes, options);
|
|
242
|
+
}
|
|
243
|
+
catch (error) {
|
|
244
|
+
this.warnSetAttributeFailure(error);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/** Button SET_ATTRIBUTE must not abort sibling close/next/navigate. */
|
|
248
|
+
warnSetAttributeFailure(error) {
|
|
249
|
+
if (error instanceof UserflowAuthError || error instanceof UserflowRateLimitError) {
|
|
250
|
+
this.warn(`Userflow: SET_ATTRIBUTE failed: ${error.message}`);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
throw error;
|
|
254
|
+
}
|
|
255
|
+
async startFlow(options) {
|
|
256
|
+
// Batch EndFlow+StartFlow so the server defers check_sessions until both
|
|
257
|
+
// land. Without this, ending the current flow can promote an already-active
|
|
258
|
+
// next flow into the slot — the UI then hides flow A over a flow B that
|
|
259
|
+
// was already running (web `startFlow` uses the same BeginBatch/EndBatch).
|
|
260
|
+
const replacing = options.replaceCurrent && this.flowSession != null;
|
|
261
|
+
if (replacing) {
|
|
262
|
+
await this.beginBatch();
|
|
263
|
+
}
|
|
264
|
+
try {
|
|
265
|
+
if (replacing) {
|
|
266
|
+
await this.endFlow(EndFlowReasonInput.REPLACED);
|
|
267
|
+
}
|
|
268
|
+
await this.sendTracked({
|
|
269
|
+
kind: 'StartFlow',
|
|
270
|
+
flowId: options.flowId,
|
|
271
|
+
stepCvid: options.stepCvid,
|
|
272
|
+
startReason: options.startReason,
|
|
273
|
+
once: false,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
finally {
|
|
277
|
+
if (replacing) {
|
|
278
|
+
await this.endBatch();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
184
282
|
/**
|
|
185
283
|
* Clear the local flow session and join resume id without detaching from
|
|
186
284
|
* server messages. Used when a long background makes mid-flow resume stale.
|
|
187
285
|
*/
|
|
188
286
|
clearLocalSession() {
|
|
189
287
|
this.clearConditionWaitTimers();
|
|
288
|
+
this.displayedStepId = null;
|
|
289
|
+
this.untrackStepTriggers();
|
|
190
290
|
if (this.flowSession !== null) {
|
|
191
291
|
this.flowSession = null;
|
|
192
292
|
this.transport.setFlowSessionId(null);
|
|
@@ -203,6 +303,9 @@ export class FlowSessionEngine {
|
|
|
203
303
|
this.serverClock = 1;
|
|
204
304
|
this.flowSessionClock = 0;
|
|
205
305
|
this.pendingSends.length = 0;
|
|
306
|
+
this.inBatch = false;
|
|
307
|
+
this.pendingEndBatch = false;
|
|
308
|
+
this.batchOpDepth = 0;
|
|
206
309
|
this.clearLocalSession();
|
|
207
310
|
}
|
|
208
311
|
/**
|
|
@@ -225,6 +328,9 @@ export class FlowSessionEngine {
|
|
|
225
328
|
return;
|
|
226
329
|
}
|
|
227
330
|
}
|
|
331
|
+
if (this.pendingEndBatch && this.batchOpDepth === 0) {
|
|
332
|
+
await this.sendEndBatch();
|
|
333
|
+
}
|
|
228
334
|
}
|
|
229
335
|
finally {
|
|
230
336
|
this.flushingPending = false;
|
|
@@ -232,13 +338,168 @@ export class FlowSessionEngine {
|
|
|
232
338
|
}
|
|
233
339
|
/** @internal Test helper. */
|
|
234
340
|
getPendingSendCountForTests() {
|
|
235
|
-
return this.pendingSends.length;
|
|
341
|
+
return this.pendingSends.length + (this.pendingEndBatch ? 1 : 0);
|
|
236
342
|
}
|
|
237
343
|
setFlowSession(session, clock) {
|
|
238
|
-
|
|
344
|
+
const applied = this.applyLocalStepToSession(session);
|
|
345
|
+
this.flowSession = applied;
|
|
239
346
|
this.flowSessionClock = clock;
|
|
240
|
-
this.transport.setFlowSessionId(
|
|
241
|
-
this.
|
|
347
|
+
this.transport.setFlowSessionId(applied?.id ?? null);
|
|
348
|
+
this.displayedStepId = applied?.currentStep?.id ?? null;
|
|
349
|
+
// Track triggers before sessionChange so ALWAYS_TRUE go-to-next can
|
|
350
|
+
// advance currentStep before the first UI paint (web useLayoutEffect).
|
|
351
|
+
this.syncStepTriggers();
|
|
352
|
+
this.emit({ type: 'sessionChange', session: this.flowSession });
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Same-session SetFlowSession must not wipe a local goToStep. Tracking a
|
|
356
|
+
* button event enqueues `check_sessions`, which can still report the old
|
|
357
|
+
* current step. Web FlowApp `updateSession` keeps the local step for the
|
|
358
|
+
* same session id.
|
|
359
|
+
*/
|
|
360
|
+
applyLocalStepToSession(session) {
|
|
361
|
+
if (session == null || this.flowSession?.id !== session.id || this.displayedStepId == null) {
|
|
362
|
+
return session;
|
|
363
|
+
}
|
|
364
|
+
const displayedStepId = this.displayedStepId;
|
|
365
|
+
const previous = this.flowSession.version.steps.find((step) => step.id === displayedStepId);
|
|
366
|
+
const kept = session.version.steps.find((step) => step.id === displayedStepId) ??
|
|
367
|
+
(previous == null
|
|
368
|
+
? undefined
|
|
369
|
+
: session.version.steps.find((step) => step.crossVersionId === previous.crossVersionId));
|
|
370
|
+
if (!kept || session.currentStep?.id === kept.id) {
|
|
371
|
+
return session;
|
|
372
|
+
}
|
|
373
|
+
return {
|
|
374
|
+
...session,
|
|
375
|
+
currentStep: { id: kept.id, crossVersionId: kept.crossVersionId },
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Start/stop client-side step triggers to match the displayed step. Nested
|
|
380
|
+
* calls (a trigger's GO_TO_STEP) mark dirty and let the outer loop apply the
|
|
381
|
+
* new step. handleActions awaits, so GO_TO_STEP can also start a new sync
|
|
382
|
+
* after this returns; triggerActionDepth keeps the visited set across those
|
|
383
|
+
* hops so ALWAYS_TRUE cycles still stop.
|
|
384
|
+
*/
|
|
385
|
+
syncStepTriggers() {
|
|
386
|
+
if (this.applyingTriggers) {
|
|
387
|
+
this.triggersDirty = true;
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
// User/server-driven step changes start a new auto-advance chain.
|
|
391
|
+
if (this.triggerActionDepth === 0) {
|
|
392
|
+
this.triggerCycleVisited.clear();
|
|
393
|
+
}
|
|
394
|
+
this.applyingTriggers = true;
|
|
395
|
+
try {
|
|
396
|
+
do {
|
|
397
|
+
this.triggersDirty = false;
|
|
398
|
+
const session = this.flowSession;
|
|
399
|
+
const stepId = this.displayedStepId;
|
|
400
|
+
const key = session && stepId ? `${session.id}:${stepId}` : null;
|
|
401
|
+
if (key === this.triggerTrackingKey) {
|
|
402
|
+
if (session) {
|
|
403
|
+
this.triggerSessionData?.update(session.data);
|
|
404
|
+
}
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
if (key !== null && this.triggerCycleVisited.has(key)) {
|
|
408
|
+
this.warn('Userflow: step trigger cycle detected; stopping auto-advance');
|
|
409
|
+
// Untrack the previous step so its remaining triggers cannot fire
|
|
410
|
+
// while a different step is displayed. Pin the key so a later
|
|
411
|
+
// same-step sync does not immediately re-enter the cycle.
|
|
412
|
+
this.untrackStepTriggers();
|
|
413
|
+
this.triggerTrackingKey = key;
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
this.untrackStepTriggers();
|
|
417
|
+
this.triggerTrackingKey = key;
|
|
418
|
+
if (key !== null) {
|
|
419
|
+
this.triggerCycleVisited.add(key);
|
|
420
|
+
}
|
|
421
|
+
if (!session || !stepId) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
const step = session.version.steps.find((candidate) => candidate.id === stepId);
|
|
425
|
+
if (!step) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
this.triggerSessionData = new SimpleObservable(session.data);
|
|
429
|
+
this.triggerUntrack = trackStepTriggers(step.triggers ?? [], session, {
|
|
430
|
+
engine: this,
|
|
431
|
+
scheduler: this.scheduler,
|
|
432
|
+
sessionData: this.triggerSessionData,
|
|
433
|
+
getSession: () => this.flowSession,
|
|
434
|
+
enterTriggerActions: () => {
|
|
435
|
+
this.triggerActionDepth += 1;
|
|
436
|
+
},
|
|
437
|
+
leaveTriggerActions: () => {
|
|
438
|
+
this.triggerActionDepth = Math.max(0, this.triggerActionDepth - 1);
|
|
439
|
+
},
|
|
440
|
+
...(this.onOpenExternalUrl !== undefined
|
|
441
|
+
? { onOpenExternalUrl: this.onOpenExternalUrl }
|
|
442
|
+
: {}),
|
|
443
|
+
warn: this.warn,
|
|
444
|
+
});
|
|
445
|
+
} while (this.triggersDirty);
|
|
446
|
+
}
|
|
447
|
+
finally {
|
|
448
|
+
this.applyingTriggers = false;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
untrackStepTriggers() {
|
|
452
|
+
this.triggerUntrack?.();
|
|
453
|
+
this.triggerUntrack = null;
|
|
454
|
+
this.triggerTrackingKey = null;
|
|
455
|
+
this.triggerSessionData = null;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Open a server batch. Nested / overlapping callers share one BeginBatch;
|
|
459
|
+
* `check_sessions` stays deferred until the matching {@link endBatch} at
|
|
460
|
+
* depth 0. `inBatch` is set before the send (web `{batch: true}`) so a
|
|
461
|
+
* second click cannot send another BeginBatch while the first is in flight.
|
|
462
|
+
*/
|
|
463
|
+
async beginBatch() {
|
|
464
|
+
if (this.pendingEndBatch) {
|
|
465
|
+
await this.sendEndBatch();
|
|
466
|
+
}
|
|
467
|
+
this.batchOpDepth += 1;
|
|
468
|
+
if (this.inBatch)
|
|
469
|
+
return;
|
|
470
|
+
this.inBatch = true;
|
|
471
|
+
try {
|
|
472
|
+
await this.transport.send({ kind: 'BeginBatch' });
|
|
473
|
+
}
|
|
474
|
+
catch {
|
|
475
|
+
this.warn('Userflow: failed to send BeginBatch');
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
/** Close a batch opened by {@link beginBatch}. Nested closes are no-ops until depth 0. */
|
|
479
|
+
async endBatch() {
|
|
480
|
+
if (this.batchOpDepth > 0) {
|
|
481
|
+
this.batchOpDepth -= 1;
|
|
482
|
+
}
|
|
483
|
+
if (this.batchOpDepth > 0)
|
|
484
|
+
return;
|
|
485
|
+
if (!this.inBatch && !this.pendingEndBatch)
|
|
486
|
+
return;
|
|
487
|
+
await this.sendEndBatch();
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Close the server batch. `inBatch` stays true until EndBatch is acked so a
|
|
491
|
+
* later replace cannot send BeginBatch while a close is still queued.
|
|
492
|
+
*/
|
|
493
|
+
async sendEndBatch() {
|
|
494
|
+
try {
|
|
495
|
+
await this.transport.send({ kind: 'EndBatch' });
|
|
496
|
+
this.inBatch = false;
|
|
497
|
+
this.pendingEndBatch = false;
|
|
498
|
+
}
|
|
499
|
+
catch {
|
|
500
|
+
this.pendingEndBatch = true;
|
|
501
|
+
this.warn('Userflow: failed to send EndBatch; queued for retry on reconnect');
|
|
502
|
+
}
|
|
242
503
|
}
|
|
243
504
|
optimisticClockUIUpdate(callback) {
|
|
244
505
|
this.clientClock += 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSessionEngine.js","sourceRoot":"","sources":["../../src/engine/FlowSessionEngine.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAoC,MAAM,2BAA2B,CAAC;AAE/F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,sEAAsE;AACtE,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAwB7B,SAAS,kBAAkB,CAAC,OAAgB;IAC1C,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACjE,MAAM,SAAS,GAAG,OAAuC,CAAC;IAC1D,IAAI,OAAO,SAAS,CAAC,EAAE,KAAK,QAAQ,IAAI,SAAS,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,SAAS,CAAC,OAAO,IAAI,IAAI,IAAI,OAAO,SAAS,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACrF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1D,IAAI,SAAS,CAAC,WAAW,IAAI,IAAI,IAAI,OAAO,SA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|
|
1
|
+
import type { ClientMessage, PairingRelayEvent, ServerMessage } from '@userflow-tech/protocol';
|
|
2
2
|
import { PairingConnection, type PairingConnectionOptions } from '../transport/pairing.js';
|
|
3
3
|
export type PairingEngineStatus = 'idle' | 'connecting' | 'connected' | 'reconnecting' | 'token_expired' | 'device_already_paired' | 'error';
|
|
4
4
|
export interface PairingEngineState {
|
|
@@ -16,8 +16,20 @@ export interface PairingEngineState {
|
|
|
16
16
|
* condition that never fires.
|
|
17
17
|
*/
|
|
18
18
|
awaitingStartCondition: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* True when a delivered `startFlowWithToken` can be replayed from the top bar.
|
|
21
|
+
* Requires a cached payload and `status === 'connected'`.
|
|
22
|
+
*/
|
|
23
|
+
canRestartPreview: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Bumped at the start of each {@link PairingEngine.restartPreview} attempt so
|
|
26
|
+
* the RN overlay can re-bootstrap tooltip targeting when the server reuses
|
|
27
|
+
* the same draft session id.
|
|
28
|
+
*/
|
|
29
|
+
previewRestartGeneration: number;
|
|
19
30
|
}
|
|
20
31
|
export type PairingEngineListener = (state: PairingEngineState) => void;
|
|
32
|
+
export type PairingRelayHandler = (event: PairingRelayEvent, payload: unknown) => void;
|
|
21
33
|
export interface PairingEngineDeps {
|
|
22
34
|
/** Send a client message on the end-user channel (after identify). */
|
|
23
35
|
sendClientMessage: (message: ClientMessage) => Promise<void>;
|
|
@@ -39,6 +51,13 @@ export interface PairingEngineDeps {
|
|
|
39
51
|
pairingOptions?: PairingConnectionOptions;
|
|
40
52
|
createConnection?: (options: PairingConnectionOptions) => PairingConnection;
|
|
41
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* True when a pairing `push` reached the socket but the server ack timed out.
|
|
56
|
+
* Relayed events are delivered via broadcast; a missing ack is not a lost send.
|
|
57
|
+
* {@link PairingEngine.sendRelay} rejects with this for `UserflowAuthError`
|
|
58
|
+
* messages containing `reply timed out`. Connection failures do not match.
|
|
59
|
+
*/
|
|
60
|
+
export declare function isPairingPushAckTimeout(error: unknown): boolean;
|
|
42
61
|
/**
|
|
43
62
|
* Orchestrates a pairing session: connect/join the pairing socket, bridge
|
|
44
63
|
* `startFlowWithToken` onto the end-user channel, and expose preview-mode state.
|
|
@@ -48,7 +67,10 @@ export declare class PairingEngine {
|
|
|
48
67
|
private unsubscribe;
|
|
49
68
|
private state;
|
|
50
69
|
private readonly listeners;
|
|
70
|
+
private readonly relayListeners;
|
|
51
71
|
private pendingStartTokens;
|
|
72
|
+
/** Last successfully delivered preview start; replayed by {@link restartPreview}. */
|
|
73
|
+
private lastStartPayload;
|
|
52
74
|
/** True while the server is waiting on a start condition (see TestStartCondition). */
|
|
53
75
|
private testingStartCondition;
|
|
54
76
|
private startConditionUnsub;
|
|
@@ -57,11 +79,30 @@ export declare class PairingEngine {
|
|
|
57
79
|
getState(): PairingEngineState;
|
|
58
80
|
isPreviewActive(): boolean;
|
|
59
81
|
onStateChange(listener: PairingEngineListener): () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Subscribe to inbound pairing-channel relay events (`selectElement`,
|
|
84
|
+
* `screenshot`, …). `startFlowWithToken` is still handled internally; it is
|
|
85
|
+
* also forwarded here so consumers can ignore it.
|
|
86
|
+
*/
|
|
87
|
+
onRelay(handler: PairingRelayHandler): () => void;
|
|
88
|
+
/**
|
|
89
|
+
* Push a relay event to the builder (e.g. `selectElementResult`).
|
|
90
|
+
* Rejects when there is no connection (`Not connected to a pairing channel`)
|
|
91
|
+
* or the websocket is closed. A `reply timed out` rejection means the frame
|
|
92
|
+
* was sent; use {@link isPairingPushAckTimeout} to ignore those acks.
|
|
93
|
+
*/
|
|
94
|
+
sendRelay(event: PairingRelayEvent, payload: unknown): Promise<unknown>;
|
|
60
95
|
/**
|
|
61
96
|
* Begin (or replace) a pairing session with a JWT from a deep link.
|
|
62
97
|
* Closes any existing pairing websocket first (warm re-scan).
|
|
63
98
|
*/
|
|
64
99
|
start(pairingToken: string): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Re-deliver the last successful `startFlowWithToken` payload on the end-user
|
|
102
|
+
* channel. Does not ack the builder — that listener is keyed to the original
|
|
103
|
+
* Preview-dialog `idempotency_key`.
|
|
104
|
+
*/
|
|
105
|
+
restartPreview(): Promise<boolean>;
|
|
65
106
|
/** Exit preview: disconnect pairing and clear queued preview tokens. */
|
|
66
107
|
stop(): void;
|
|
67
108
|
/**
|
|
@@ -85,8 +126,10 @@ export declare class PairingEngine {
|
|
|
85
126
|
private handleStartFlowWithToken;
|
|
86
127
|
private flushPendingStartTokens;
|
|
87
128
|
private deliverStartFlowWithToken;
|
|
129
|
+
private clearStartCache;
|
|
88
130
|
private pushStartResult;
|
|
89
131
|
private teardownConnection;
|
|
132
|
+
private emitRelay;
|
|
90
133
|
private setState;
|
|
91
134
|
}
|
|
92
135
|
//# sourceMappingURL=PairingEngine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PairingEngine.d.ts","sourceRoot":"","sources":["../../src/engine/PairingEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EAEd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAEjB,KAAK,wBAAwB,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,YAAY,GACZ,WAAW,GACX,cAAc,GACd,eAAe,GACf,uBAAuB,GACvB,OAAO,CAAC;AAEZ,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,uEAAuE;IACvE,WAAW,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,sBAAsB,EAAE,OAA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