@userflow-tech/react-native 0.1.0 → 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 +114 -68
- package/app.plugin.js +13 -0
- package/babel-plugin/index.d.ts +43 -0
- package/babel-plugin/index.d.ts.map +1 -0
- package/babel-plugin/index.js +862 -0
- package/babel-plugin/index.js.map +1 -0
- package/babel-plugin.js +13 -0
- package/docs/anchoring.md +141 -13
- package/docs/deep-linking.md +20 -17
- package/docs/theme-mapping.md +44 -15
- package/docs/troubleshooting.md +37 -30
- package/expo-plugin/withUserflow.d.ts +17 -0
- package/expo-plugin/withUserflow.d.ts.map +1 -0
- package/expo-plugin/withUserflow.js +99 -0
- package/expo-plugin/withUserflow.js.map +1 -0
- package/lib/commonjs/anchors/AutoAnchorRegistry.js +125 -3
- 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/autoAnchor.js +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/hintsCodec.js +1 -1
- 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 +11 -2
- 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 +126 -3
- 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/autoAnchor.js +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/hintsCodec.js +1 -1
- 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 +10 -2
- 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 +27 -1
- 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/autoAnchor.d.ts +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/hintsCodec.d.ts +1 -1
- 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 +27 -1
- 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/autoAnchor.d.ts +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/hintsCodec.d.ts +1 -1
- 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 +32 -18
- package/src/anchors/AutoAnchorRegistry.ts +140 -3
- package/src/anchors/anchorChangeTicker.ts +10 -0
- package/src/anchors/autoAnchor.ts +1 -1
- 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/hintsCodec.ts +1 -1
- 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 +10 -2
- 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/LICENSE +76 -0
- package/vendor/core/README.md +9 -0
- package/vendor/core/dist/attributes.d.ts +15 -0
- package/vendor/core/dist/attributes.d.ts.map +1 -0
- package/vendor/core/dist/attributes.js +55 -0
- package/vendor/core/dist/attributes.js.map +1 -0
- package/vendor/core/dist/constants.d.ts +21 -0
- package/vendor/core/dist/constants.d.ts.map +1 -0
- package/vendor/core/dist/constants.js +21 -0
- package/vendor/core/dist/constants.js.map +1 -0
- package/vendor/core/dist/engine/ClientConditionEngine.d.ts +68 -0
- package/vendor/core/dist/engine/ClientConditionEngine.d.ts.map +1 -0
- package/vendor/core/dist/engine/ClientConditionEngine.js +197 -0
- package/vendor/core/dist/engine/ClientConditionEngine.js.map +1 -0
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts +160 -0
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts.map +1 -0
- package/vendor/core/dist/engine/FlowSessionEngine.js +571 -0
- package/vendor/core/dist/engine/FlowSessionEngine.js.map +1 -0
- package/vendor/core/dist/engine/PairingEngine.d.ts +135 -0
- package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -0
- package/vendor/core/dist/engine/PairingEngine.js +396 -0
- package/vendor/core/dist/engine/PairingEngine.js.map +1 -0
- package/vendor/core/dist/engine/UserflowCore.d.ts +145 -0
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -0
- package/vendor/core/dist/engine/UserflowCore.js +329 -0
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -0
- 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 +42 -0
- package/vendor/core/dist/engine/handleActions.d.ts.map +1 -0
- package/vendor/core/dist/engine/handleActions.js +198 -0
- package/vendor/core/dist/engine/handleActions.js.map +1 -0
- package/vendor/core/dist/engine/interpolateSessionData.d.ts +7 -0
- package/vendor/core/dist/engine/interpolateSessionData.d.ts.map +1 -0
- package/vendor/core/dist/engine/interpolateSessionData.js +29 -0
- package/vendor/core/dist/engine/interpolateSessionData.js.map +1 -0
- 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/errors.d.ts +9 -0
- package/vendor/core/dist/errors.d.ts.map +1 -0
- package/vendor/core/dist/errors.js +15 -0
- package/vendor/core/dist/errors.js.map +1 -0
- package/vendor/core/dist/eventAttributes.d.ts +7 -0
- package/vendor/core/dist/eventAttributes.d.ts.map +1 -0
- package/vendor/core/dist/eventAttributes.js +31 -0
- package/vendor/core/dist/eventAttributes.js.map +1 -0
- package/vendor/core/dist/index.d.ts +31 -0
- package/vendor/core/dist/index.d.ts.map +1 -0
- package/vendor/core/dist/index.js +22 -0
- package/vendor/core/dist/index.js.map +1 -0
- 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/backoff.d.ts +11 -0
- package/vendor/core/dist/transport/backoff.d.ts.map +1 -0
- package/vendor/core/dist/transport/backoff.js +17 -0
- package/vendor/core/dist/transport/backoff.js.map +1 -0
- package/vendor/core/dist/transport/pairing.d.ts +121 -0
- package/vendor/core/dist/transport/pairing.d.ts.map +1 -0
- package/vendor/core/dist/transport/pairing.js +551 -0
- package/vendor/core/dist/transport/pairing.js.map +1 -0
- package/vendor/core/dist/transport/phoenix.d.ts +228 -0
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -0
- package/vendor/core/dist/transport/phoenix.js +811 -0
- package/vendor/core/dist/transport/phoenix.js.map +1 -0
- package/vendor/core/dist/transport/rateLimiter.d.ts +17 -0
- package/vendor/core/dist/transport/rateLimiter.d.ts.map +1 -0
- package/vendor/core/dist/transport/rateLimiter.js +30 -0
- package/vendor/core/dist/transport/rateLimiter.js.map +1 -0
- package/vendor/core/dist/transport/scheduler.d.ts +12 -0
- package/vendor/core/dist/transport/scheduler.d.ts.map +1 -0
- package/vendor/core/dist/transport/scheduler.js +11 -0
- package/vendor/core/dist/transport/scheduler.js.map +1 -0
- package/vendor/core/dist/types.d.ts +60 -0
- package/vendor/core/dist/types.d.ts.map +1 -0
- package/vendor/core/dist/types.js +2 -0
- package/vendor/core/dist/types.js.map +1 -0
- package/vendor/core/dist/version.d.ts +3 -0
- package/vendor/core/dist/version.d.ts.map +1 -0
- package/vendor/core/dist/version.js +3 -0
- package/vendor/core/dist/version.js.map +1 -0
- package/vendor/core/package.json +20 -0
- package/vendor/protocol/LICENSE +76 -0
- package/vendor/protocol/README.md +8 -0
- 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 +232 -0
- package/vendor/protocol/dist/autoData.d.ts.map +1 -0
- package/vendor/protocol/dist/autoData.js +78 -0
- package/vendor/protocol/dist/autoData.js.map +1 -0
- package/vendor/protocol/dist/events.d.ts +24 -0
- package/vendor/protocol/dist/events.d.ts.map +1 -0
- package/vendor/protocol/dist/events.js +8 -0
- package/vendor/protocol/dist/events.js.map +1 -0
- package/vendor/protocol/dist/flows.d.ts +360 -0
- package/vendor/protocol/dist/flows.d.ts.map +1 -0
- package/vendor/protocol/dist/flows.js +201 -0
- package/vendor/protocol/dist/flows.js.map +1 -0
- package/vendor/protocol/dist/index.d.ts +25 -0
- package/vendor/protocol/dist/index.d.ts.map +1 -0
- package/vendor/protocol/dist/index.js +17 -0
- package/vendor/protocol/dist/index.js.map +1 -0
- package/vendor/protocol/dist/messages.d.ts +187 -0
- package/vendor/protocol/dist/messages.d.ts.map +1 -0
- package/vendor/protocol/dist/messages.js +61 -0
- package/vendor/protocol/dist/messages.js.map +1 -0
- package/vendor/protocol/dist/pairing.d.ts +82 -0
- package/vendor/protocol/dist/pairing.d.ts.map +1 -0
- package/vendor/protocol/dist/pairing.js +146 -0
- package/vendor/protocol/dist/pairing.js.map +1 -0
- package/vendor/protocol/package.json +17 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flow-rendering wire types (Phase 3, slice 1).
|
|
3
|
+
*
|
|
4
|
+
* Curated subset of the flow-related fragments and enums from the web SDK's
|
|
5
|
+
* `end-user-protocol.ts`, trimmed to the fields the mobile modal/tooltip
|
|
6
|
+
* renderer and client-condition loop need. Non-flow session surfaces (banner,
|
|
7
|
+
* checklist, resource center, site) remain out of scope for this slice.
|
|
8
|
+
*/
|
|
9
|
+
export var FlowType;
|
|
10
|
+
(function (FlowType) {
|
|
11
|
+
FlowType["FLOW"] = "FLOW";
|
|
12
|
+
FlowType["BANNER"] = "BANNER";
|
|
13
|
+
FlowType["EMBED"] = "EMBED";
|
|
14
|
+
FlowType["CHECKLIST"] = "CHECKLIST";
|
|
15
|
+
FlowType["LAUNCHER"] = "LAUNCHER";
|
|
16
|
+
FlowType["RESOURCE_CENTER"] = "RESOURCE_CENTER";
|
|
17
|
+
FlowType["SITE"] = "SITE";
|
|
18
|
+
})(FlowType || (FlowType = {}));
|
|
19
|
+
export var FlowStepAppearance;
|
|
20
|
+
(function (FlowStepAppearance) {
|
|
21
|
+
FlowStepAppearance["BUBBLE"] = "BUBBLE";
|
|
22
|
+
FlowStepAppearance["HIDDEN"] = "HIDDEN";
|
|
23
|
+
FlowStepAppearance["MODAL"] = "MODAL";
|
|
24
|
+
FlowStepAppearance["TOOLTIP"] = "TOOLTIP";
|
|
25
|
+
})(FlowStepAppearance || (FlowStepAppearance = {}));
|
|
26
|
+
export var TooltipPlacement;
|
|
27
|
+
(function (TooltipPlacement) {
|
|
28
|
+
TooltipPlacement["ABOVE"] = "ABOVE";
|
|
29
|
+
TooltipPlacement["BELOW"] = "BELOW";
|
|
30
|
+
TooltipPlacement["LEFT"] = "LEFT";
|
|
31
|
+
TooltipPlacement["RIGHT"] = "RIGHT";
|
|
32
|
+
})(TooltipPlacement || (TooltipPlacement = {}));
|
|
33
|
+
export var TooltipMissingBehavior;
|
|
34
|
+
(function (TooltipMissingBehavior) {
|
|
35
|
+
TooltipMissingBehavior["BUBBLE"] = "BUBBLE";
|
|
36
|
+
TooltipMissingBehavior["END"] = "END";
|
|
37
|
+
TooltipMissingBehavior["ERROR"] = "ERROR";
|
|
38
|
+
TooltipMissingBehavior["FLAG"] = "FLAG";
|
|
39
|
+
})(TooltipMissingBehavior || (TooltipMissingBehavior = {}));
|
|
40
|
+
export var FlowActionType;
|
|
41
|
+
(function (FlowActionType) {
|
|
42
|
+
FlowActionType["CLOSE_FLOW"] = "CLOSE_FLOW";
|
|
43
|
+
FlowActionType["EVAL_JS"] = "EVAL_JS";
|
|
44
|
+
FlowActionType["GO_TO_STEP"] = "GO_TO_STEP";
|
|
45
|
+
FlowActionType["NAVIGATE"] = "NAVIGATE";
|
|
46
|
+
FlowActionType["SET_ATTRIBUTE"] = "SET_ATTRIBUTE";
|
|
47
|
+
FlowActionType["SNOOZE"] = "SNOOZE";
|
|
48
|
+
FlowActionType["START_FLOW"] = "START_FLOW";
|
|
49
|
+
FlowActionType["TRACK_BUTTON_EVENT"] = "TRACK_BUTTON_EVENT";
|
|
50
|
+
})(FlowActionType || (FlowActionType = {}));
|
|
51
|
+
export var FlowActionNavigateTarget;
|
|
52
|
+
(function (FlowActionNavigateTarget) {
|
|
53
|
+
FlowActionNavigateTarget["NEW_TAB"] = "NEW_TAB";
|
|
54
|
+
FlowActionNavigateTarget["SAME_TAB"] = "SAME_TAB";
|
|
55
|
+
})(FlowActionNavigateTarget || (FlowActionNavigateTarget = {}));
|
|
56
|
+
export var FlowActionAttributeOperation;
|
|
57
|
+
(function (FlowActionAttributeOperation) {
|
|
58
|
+
FlowActionAttributeOperation["SET"] = "SET";
|
|
59
|
+
FlowActionAttributeOperation["SET_DATETIME"] = "SET_DATETIME";
|
|
60
|
+
FlowActionAttributeOperation["SET_DATETIME_ONCE"] = "SET_DATETIME_ONCE";
|
|
61
|
+
FlowActionAttributeOperation["SET_ONCE"] = "SET_ONCE";
|
|
62
|
+
FlowActionAttributeOperation["ADD"] = "ADD";
|
|
63
|
+
FlowActionAttributeOperation["SUBTRACT"] = "SUBTRACT";
|
|
64
|
+
FlowActionAttributeOperation["APPEND"] = "APPEND";
|
|
65
|
+
FlowActionAttributeOperation["PREPEND"] = "PREPEND";
|
|
66
|
+
FlowActionAttributeOperation["REMOVE"] = "REMOVE";
|
|
67
|
+
FlowActionAttributeOperation["UNSET"] = "UNSET";
|
|
68
|
+
})(FlowActionAttributeOperation || (FlowActionAttributeOperation = {}));
|
|
69
|
+
export var FlowTimeUnit;
|
|
70
|
+
(function (FlowTimeUnit) {
|
|
71
|
+
FlowTimeUnit["SECOND"] = "SECOND";
|
|
72
|
+
FlowTimeUnit["MINUTE"] = "MINUTE";
|
|
73
|
+
FlowTimeUnit["HOUR"] = "HOUR";
|
|
74
|
+
FlowTimeUnit["DAY"] = "DAY";
|
|
75
|
+
})(FlowTimeUnit || (FlowTimeUnit = {}));
|
|
76
|
+
export var FlowSelectorType;
|
|
77
|
+
(function (FlowSelectorType) {
|
|
78
|
+
FlowSelectorType["AUTO"] = "AUTO";
|
|
79
|
+
FlowSelectorType["MANUAL"] = "MANUAL";
|
|
80
|
+
})(FlowSelectorType || (FlowSelectorType = {}));
|
|
81
|
+
export var FlowSelectorElementType;
|
|
82
|
+
(function (FlowSelectorElementType) {
|
|
83
|
+
FlowSelectorElementType["INPUT"] = "INPUT";
|
|
84
|
+
})(FlowSelectorElementType || (FlowSelectorElementType = {}));
|
|
85
|
+
/**
|
|
86
|
+
* Condition types from the end-user protocol.
|
|
87
|
+
*
|
|
88
|
+
* Client-condition messages (`TrackClientCondition`) only ever carry ELEMENT,
|
|
89
|
+
* INPUT_VALUE, and FILLED_IN_INPUT. Step triggers evaluate ALWAYS_TRUE, TIME,
|
|
90
|
+
* ATTRIBUTE, and CLAUSE locally (web parity); remaining types are listed so an
|
|
91
|
+
* unexpected value is still representable on the wire.
|
|
92
|
+
*/
|
|
93
|
+
export var FlowConditionType;
|
|
94
|
+
(function (FlowConditionType) {
|
|
95
|
+
FlowConditionType["ALWAYS_TRUE"] = "ALWAYS_TRUE";
|
|
96
|
+
FlowConditionType["ATTRIBUTE"] = "ATTRIBUTE";
|
|
97
|
+
FlowConditionType["CHECKLIST_TASK_CLICKED"] = "CHECKLIST_TASK_CLICKED";
|
|
98
|
+
FlowConditionType["CLAUSE"] = "CLAUSE";
|
|
99
|
+
FlowConditionType["ELEMENT"] = "ELEMENT";
|
|
100
|
+
FlowConditionType["EVENT"] = "EVENT";
|
|
101
|
+
FlowConditionType["FILLED_IN_INPUT"] = "FILLED_IN_INPUT";
|
|
102
|
+
FlowConditionType["FLOW"] = "FLOW";
|
|
103
|
+
FlowConditionType["INPUT_VALUE"] = "INPUT_VALUE";
|
|
104
|
+
FlowConditionType["PAGE"] = "PAGE";
|
|
105
|
+
FlowConditionType["SEGMENT"] = "SEGMENT";
|
|
106
|
+
FlowConditionType["TIME"] = "TIME";
|
|
107
|
+
})(FlowConditionType || (FlowConditionType = {}));
|
|
108
|
+
/** Operators used by ATTRIBUTE comparisons and CLAUSE AND/OR. */
|
|
109
|
+
export var FlowConditionOperator;
|
|
110
|
+
(function (FlowConditionOperator) {
|
|
111
|
+
FlowConditionOperator["ABSOLUTE_EQ"] = "ABSOLUTE_EQ";
|
|
112
|
+
FlowConditionOperator["ABSOLUTE_GT"] = "ABSOLUTE_GT";
|
|
113
|
+
FlowConditionOperator["ABSOLUTE_LT"] = "ABSOLUTE_LT";
|
|
114
|
+
FlowConditionOperator["AND"] = "AND";
|
|
115
|
+
FlowConditionOperator["BETWEEN"] = "BETWEEN";
|
|
116
|
+
FlowConditionOperator["CONTAINS"] = "CONTAINS";
|
|
117
|
+
FlowConditionOperator["EMPTY"] = "EMPTY";
|
|
118
|
+
FlowConditionOperator["ENDS_WITH"] = "ENDS_WITH";
|
|
119
|
+
FlowConditionOperator["EQ"] = "EQ";
|
|
120
|
+
FlowConditionOperator["EXCLUDES_ALL"] = "EXCLUDES_ALL";
|
|
121
|
+
FlowConditionOperator["EXCLUDES_ANY"] = "EXCLUDES_ANY";
|
|
122
|
+
FlowConditionOperator["FALSE"] = "FALSE";
|
|
123
|
+
FlowConditionOperator["GT"] = "GT";
|
|
124
|
+
FlowConditionOperator["GTE"] = "GTE";
|
|
125
|
+
FlowConditionOperator["INCLUDES_ALL"] = "INCLUDES_ALL";
|
|
126
|
+
FlowConditionOperator["INCLUDES_ANY"] = "INCLUDES_ANY";
|
|
127
|
+
FlowConditionOperator["LT"] = "LT";
|
|
128
|
+
FlowConditionOperator["LTE"] = "LTE";
|
|
129
|
+
FlowConditionOperator["NE"] = "NE";
|
|
130
|
+
FlowConditionOperator["NOT_CONTAINS"] = "NOT_CONTAINS";
|
|
131
|
+
FlowConditionOperator["NOT_EMPTY"] = "NOT_EMPTY";
|
|
132
|
+
FlowConditionOperator["NOT_REGEX"] = "NOT_REGEX";
|
|
133
|
+
FlowConditionOperator["OR"] = "OR";
|
|
134
|
+
FlowConditionOperator["REGEX"] = "REGEX";
|
|
135
|
+
FlowConditionOperator["RELATIVE_EQ"] = "RELATIVE_EQ";
|
|
136
|
+
FlowConditionOperator["RELATIVE_GT"] = "RELATIVE_GT";
|
|
137
|
+
FlowConditionOperator["RELATIVE_LT"] = "RELATIVE_LT";
|
|
138
|
+
FlowConditionOperator["STARTS_WITH"] = "STARTS_WITH";
|
|
139
|
+
FlowConditionOperator["TRUE"] = "TRUE";
|
|
140
|
+
FlowConditionOperator["URL"] = "URL";
|
|
141
|
+
})(FlowConditionOperator || (FlowConditionOperator = {}));
|
|
142
|
+
/** Element-state predicates for ELEMENT client conditions. */
|
|
143
|
+
export var FlowConditionElementState;
|
|
144
|
+
(function (FlowConditionElementState) {
|
|
145
|
+
FlowConditionElementState["CLICK"] = "CLICK";
|
|
146
|
+
FlowConditionElementState["DISABLED"] = "DISABLED";
|
|
147
|
+
FlowConditionElementState["MOUSEDOWN"] = "MOUSEDOWN";
|
|
148
|
+
FlowConditionElementState["NOT_CLICK"] = "NOT_CLICK";
|
|
149
|
+
FlowConditionElementState["NOT_DISABLED"] = "NOT_DISABLED";
|
|
150
|
+
FlowConditionElementState["NOT_PRESENT"] = "NOT_PRESENT";
|
|
151
|
+
FlowConditionElementState["PRESENT"] = "PRESENT";
|
|
152
|
+
})(FlowConditionElementState || (FlowConditionElementState = {}));
|
|
153
|
+
export var FlowQuestionType;
|
|
154
|
+
(function (FlowQuestionType) {
|
|
155
|
+
FlowQuestionType["MULTILINE_TEXT"] = "MULTILINE_TEXT";
|
|
156
|
+
FlowQuestionType["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
157
|
+
FlowQuestionType["NPS"] = "NPS";
|
|
158
|
+
FlowQuestionType["SCALE"] = "SCALE";
|
|
159
|
+
FlowQuestionType["STARS"] = "STARS";
|
|
160
|
+
FlowQuestionType["TEXT"] = "TEXT";
|
|
161
|
+
})(FlowQuestionType || (FlowQuestionType = {}));
|
|
162
|
+
export var EndFlowReasonInput;
|
|
163
|
+
(function (EndFlowReasonInput) {
|
|
164
|
+
EndFlowReasonInput["ACTION"] = "ACTION";
|
|
165
|
+
EndFlowReasonInput["LAUNCHER_DEACTIVATED"] = "LAUNCHER_DEACTIVATED";
|
|
166
|
+
EndFlowReasonInput["REPLACED"] = "REPLACED";
|
|
167
|
+
EndFlowReasonInput["SNOOZED"] = "SNOOZED";
|
|
168
|
+
EndFlowReasonInput["TOOLTIP_TARGET_MISSING"] = "TOOLTIP_TARGET_MISSING";
|
|
169
|
+
EndFlowReasonInput["USERFLOWJS"] = "USERFLOWJS";
|
|
170
|
+
EndFlowReasonInput["USER_CLOSED"] = "USER_CLOSED";
|
|
171
|
+
})(EndFlowReasonInput || (EndFlowReasonInput = {}));
|
|
172
|
+
export var StartFlowReasonInput;
|
|
173
|
+
(function (StartFlowReasonInput) {
|
|
174
|
+
StartFlowReasonInput["ACTION"] = "ACTION";
|
|
175
|
+
StartFlowReasonInput["DRAFT"] = "DRAFT";
|
|
176
|
+
StartFlowReasonInput["LINK"] = "LINK";
|
|
177
|
+
StartFlowReasonInput["LAUNCHER_SEEN"] = "LAUNCHER_SEEN";
|
|
178
|
+
StartFlowReasonInput["RESOURCE_CENTER"] = "RESOURCE_CENTER";
|
|
179
|
+
StartFlowReasonInput["USERFLOWJS"] = "USERFLOWJS";
|
|
180
|
+
StartFlowReasonInput["ASSISTANT"] = "ASSISTANT";
|
|
181
|
+
})(StartFlowReasonInput || (StartFlowReasonInput = {}));
|
|
182
|
+
export var ModalBackdropOnclick;
|
|
183
|
+
(function (ModalBackdropOnclick) {
|
|
184
|
+
ModalBackdropOnclick["DISMISS"] = "DISMISS";
|
|
185
|
+
ModalBackdropOnclick["NONE"] = "NONE";
|
|
186
|
+
})(ModalBackdropOnclick || (ModalBackdropOnclick = {}));
|
|
187
|
+
export var ProgressBarType;
|
|
188
|
+
(function (ProgressBarType) {
|
|
189
|
+
ProgressBarType["DEFAULT"] = "DEFAULT";
|
|
190
|
+
ProgressBarType["NARROW"] = "NARROW";
|
|
191
|
+
ProgressBarType["CHAINED_SQUARED"] = "CHAINED_SQUARED";
|
|
192
|
+
ProgressBarType["CHAINED_ROUNDED"] = "CHAINED_ROUNDED";
|
|
193
|
+
ProgressBarType["DOTTED"] = "DOTTED";
|
|
194
|
+
ProgressBarType["NUMBERED"] = "NUMBERED";
|
|
195
|
+
})(ProgressBarType || (ProgressBarType = {}));
|
|
196
|
+
export var ProgressBarPosition;
|
|
197
|
+
(function (ProgressBarPosition) {
|
|
198
|
+
ProgressBarPosition["TOP"] = "TOP";
|
|
199
|
+
ProgressBarPosition["BOTTOM"] = "BOTTOM";
|
|
200
|
+
})(ProgressBarPosition || (ProgressBarPosition = {}));
|
|
201
|
+
//# sourceMappingURL=flows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,MAAM,CAAN,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,+CAAmC,CAAA;IACnC,yBAAa,CAAA;AACf,CAAC,EARW,QAAQ,KAAR,Q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AAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;AACf,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAED,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,sDAAmC,CAAA;IACnC,sDAAmC,CAAA;IACnC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,kCAAW,CAAA;IACX,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @userflow-tech/protocol — wire contracts and shared types for the Userflow RN SDK.
|
|
3
|
+
*
|
|
4
|
+
* Placeholder scaffolding. The versioned wire message types, the mobile
|
|
5
|
+
* selector envelope, and the GraphQL/codegen output will live here (see
|
|
6
|
+
* USERFLOW_RN_SDK_ARCHITECTURE.md). For now this pins the protocol version and
|
|
7
|
+
* the user-attribute contract shared by the transport and the public API.
|
|
8
|
+
*/
|
|
9
|
+
/** Protocol wire version. Bumped when the message contract changes. */
|
|
10
|
+
export declare const PROTOCOL_VERSION = "0.3.0";
|
|
11
|
+
/** Placeholder protocol surface; replaced by real wire types in a later phase. */
|
|
12
|
+
export interface ProtocolInfo {
|
|
13
|
+
version: string;
|
|
14
|
+
}
|
|
15
|
+
/** The value types a user/group attribute may take on the wire. */
|
|
16
|
+
export type UserflowAttributeValue = string | number | boolean | null;
|
|
17
|
+
/** A bag of user/group attributes sent with identify/upsert messages. */
|
|
18
|
+
export type UserflowAttributes = Record<string, UserflowAttributeValue>;
|
|
19
|
+
export * from './attributes.js';
|
|
20
|
+
export * from './autoData.js';
|
|
21
|
+
export * from './events.js';
|
|
22
|
+
export * from './flows.js';
|
|
23
|
+
export * from './messages.js';
|
|
24
|
+
export * from './pairing.js';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uEAAuE;AACvE,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,mEAAmE;AACnE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAEtE,yEAAyE;AACzE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAExE,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @userflow-tech/protocol — wire contracts and shared types for the Userflow RN SDK.
|
|
3
|
+
*
|
|
4
|
+
* Placeholder scaffolding. The versioned wire message types, the mobile
|
|
5
|
+
* selector envelope, and the GraphQL/codegen output will live here (see
|
|
6
|
+
* USERFLOW_RN_SDK_ARCHITECTURE.md). For now this pins the protocol version and
|
|
7
|
+
* the user-attribute contract shared by the transport and the public API.
|
|
8
|
+
*/
|
|
9
|
+
/** Protocol wire version. Bumped when the message contract changes. */
|
|
10
|
+
export const PROTOCOL_VERSION = '0.3.0';
|
|
11
|
+
export * from './attributes.js';
|
|
12
|
+
export * from './autoData.js';
|
|
13
|
+
export * from './events.js';
|
|
14
|
+
export * from './flows.js';
|
|
15
|
+
export * from './messages.js';
|
|
16
|
+
export * from './pairing.js';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAaxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server/client wire messages (Phase 3, slice 1).
|
|
3
|
+
*
|
|
4
|
+
* Curated subset of the message unions from the web SDK's
|
|
5
|
+
* `end-user-protocol.ts`, limited to the flow-session lifecycle,
|
|
6
|
+
* condition-wait-timer, and client-condition messages needed to render
|
|
7
|
+
* modal/tooltip flows and gate them on device-local state. The full web
|
|
8
|
+
* unions carry many more message kinds (banner/checklist/resource-center/
|
|
9
|
+
* site sessions, assistant, trackers, etc.) that are out of scope here.
|
|
10
|
+
*/
|
|
11
|
+
import type { Decimal, EndFlowReasonInput, FlowConditionFragment, FlowSessionFragment, StartFlowReasonInput } from './flows.js';
|
|
12
|
+
import type { TrackButtonEvent, TrackEvent } from './events.js';
|
|
13
|
+
export interface SetFlowSession {
|
|
14
|
+
kind: 'SetFlowSession';
|
|
15
|
+
session: FlowSessionFragment;
|
|
16
|
+
}
|
|
17
|
+
export interface UnsetFlowSession {
|
|
18
|
+
kind: 'UnsetFlowSession';
|
|
19
|
+
sessionId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ForceGoToStep {
|
|
22
|
+
kind: 'ForceGoToStep';
|
|
23
|
+
sessionId: string;
|
|
24
|
+
stepId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface StartConditionWaitTimer {
|
|
27
|
+
kind: 'StartConditionWaitTimer';
|
|
28
|
+
conditionId: string;
|
|
29
|
+
waitTime: Decimal;
|
|
30
|
+
}
|
|
31
|
+
export interface CancelConditionWaitTimer {
|
|
32
|
+
kind: 'CancelConditionWaitTimer';
|
|
33
|
+
conditionId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface TrackClientCondition {
|
|
36
|
+
kind: 'TrackClientCondition';
|
|
37
|
+
condition: FlowConditionFragment;
|
|
38
|
+
flowId: string;
|
|
39
|
+
versionId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface UntrackClientCondition {
|
|
42
|
+
kind: 'UntrackClientCondition';
|
|
43
|
+
conditionId: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The start condition being tested via {@link TestStartCondition} finally
|
|
47
|
+
* matched, so the server started the flow. Ends the waiting period.
|
|
48
|
+
*/
|
|
49
|
+
export interface TestStartConditionSuccess {
|
|
50
|
+
kind: 'TestStartConditionSuccess';
|
|
51
|
+
}
|
|
52
|
+
export type ServerMessage = SetFlowSession | UnsetFlowSession | ForceGoToStep | StartConditionWaitTimer | CancelConditionWaitTimer | TrackClientCondition | UntrackClientCondition | TestStartConditionSuccess;
|
|
53
|
+
export interface GoToStep {
|
|
54
|
+
kind: 'GoToStep';
|
|
55
|
+
sessionId: string;
|
|
56
|
+
stepId: string;
|
|
57
|
+
}
|
|
58
|
+
export interface EndFlow {
|
|
59
|
+
kind: 'EndFlow';
|
|
60
|
+
sessionId: string;
|
|
61
|
+
endReason: EndFlowReasonInput;
|
|
62
|
+
}
|
|
63
|
+
export interface ReportTooltipTargetMissing {
|
|
64
|
+
kind: 'ReportTooltipTargetMissing';
|
|
65
|
+
sessionId: string;
|
|
66
|
+
stepId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface AnswerQuestion {
|
|
69
|
+
kind: 'AnswerQuestion';
|
|
70
|
+
sessionId: string;
|
|
71
|
+
questionCvid?: string | null;
|
|
72
|
+
questionName?: string | null;
|
|
73
|
+
textAnswer: string | null;
|
|
74
|
+
numberAnswer: Decimal | null;
|
|
75
|
+
listAnswer: null | string[];
|
|
76
|
+
}
|
|
77
|
+
export interface FireConditionWaitTimer {
|
|
78
|
+
kind: 'FireConditionWaitTimer';
|
|
79
|
+
conditionId: string;
|
|
80
|
+
}
|
|
81
|
+
export interface ToggleClientCondition {
|
|
82
|
+
kind: 'ToggleClientCondition';
|
|
83
|
+
conditionId: string;
|
|
84
|
+
isTrue: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Client viewport / location context sent on join and location changes.
|
|
88
|
+
*
|
|
89
|
+
* Wire contract (backend `ClientContext`):
|
|
90
|
+
* - `pageUrl` is **required**. Mobile does not use web URLs — send `""`.
|
|
91
|
+
* - Location is reported as `screenPath` (Expo Router pathname) and/or
|
|
92
|
+
* `screenName` (React Navigation / manual route name). Do not send the
|
|
93
|
+
* legacy `path` / `screen` keys — the schema rejects unknown properties.
|
|
94
|
+
*/
|
|
95
|
+
export interface ClientContext {
|
|
96
|
+
/** Required by the backend. Use `""` on mobile (web-only URL). */
|
|
97
|
+
pageUrl: string;
|
|
98
|
+
viewportWidth: number;
|
|
99
|
+
viewportHeight: number;
|
|
100
|
+
/** Expo Router pathname (e.g. `"/settings/billing"`). */
|
|
101
|
+
screenPath?: string | null;
|
|
102
|
+
/** React Navigation / manual screen name (e.g. `"BillingSettings"`). */
|
|
103
|
+
screenName?: string | null;
|
|
104
|
+
site?: boolean | null;
|
|
105
|
+
siteId?: string;
|
|
106
|
+
localeCode?: string | null;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Location update from a mobile navigation change.
|
|
110
|
+
*
|
|
111
|
+
* Host helpers still speak `path` (Expo Router) vs `screen` (React Navigation);
|
|
112
|
+
* {@link UserflowCore.updateScreen} maps those onto `screenPath` / `screenName`
|
|
113
|
+
* on {@link ClientContext}.
|
|
114
|
+
*/
|
|
115
|
+
export type ClientLocationUpdate = {
|
|
116
|
+
path: string;
|
|
117
|
+
} | {
|
|
118
|
+
screen: string;
|
|
119
|
+
};
|
|
120
|
+
export interface UpdateClientContext {
|
|
121
|
+
kind: 'UpdateClientContext';
|
|
122
|
+
clientContext: ClientContext;
|
|
123
|
+
}
|
|
124
|
+
/** Start a published (or draft) flow by id — used by the START_FLOW button action. */
|
|
125
|
+
export interface StartFlow {
|
|
126
|
+
kind: 'StartFlow';
|
|
127
|
+
flowId: string;
|
|
128
|
+
stepCvid?: string | null;
|
|
129
|
+
startReason: StartFlowReasonInput;
|
|
130
|
+
once: boolean;
|
|
131
|
+
}
|
|
132
|
+
/** Start (or re-start) a flow from a short-lived builder/preview token. */
|
|
133
|
+
export interface StartFlowWithToken {
|
|
134
|
+
kind: 'StartFlowWithToken';
|
|
135
|
+
token: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Ask the server to wait for the flow's start condition instead of starting it
|
|
139
|
+
* immediately. Used by the builder's "when auto start conditions are triggered"
|
|
140
|
+
* preview mode; `StartFlowWithToken` force-starts and skips condition checks.
|
|
141
|
+
*/
|
|
142
|
+
export interface TestStartCondition {
|
|
143
|
+
kind: 'TestStartCondition';
|
|
144
|
+
token: string;
|
|
145
|
+
}
|
|
146
|
+
/** Stop waiting on a start condition started by {@link TestStartCondition}. */
|
|
147
|
+
export interface TestStartConditionCancel {
|
|
148
|
+
kind: 'TestStartConditionCancel';
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Open a server-side batch so `check_sessions` is deferred until {@link EndBatch}.
|
|
152
|
+
* Web sends this around EndFlow+StartFlow (so an already-running next flow is
|
|
153
|
+
* not promoted into the slot between the two) and around TrackButtonEvent
|
|
154
|
+
* (so a sibling GO_TO_STEP is not overwritten by the event's check_sessions).
|
|
155
|
+
*/
|
|
156
|
+
export interface BeginBatch {
|
|
157
|
+
kind: 'BeginBatch';
|
|
158
|
+
}
|
|
159
|
+
/** Close a batch opened by {@link BeginBatch} and run the deferred `check_sessions`. */
|
|
160
|
+
export interface EndBatch {
|
|
161
|
+
kind: 'EndBatch';
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Snapshot entry included in the end-user channel join payload so the server
|
|
165
|
+
* can seed `tracked` / `true` / `false` client-condition sets on (re)join.
|
|
166
|
+
* `isTrue` is three-state: `true`, `false`, or `null` (unknown).
|
|
167
|
+
*/
|
|
168
|
+
export interface JoinPayloadClientCondition {
|
|
169
|
+
conditionId: string;
|
|
170
|
+
isTrue: boolean | null;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Which SDK is joining the end-user channel. The server defaults a missing
|
|
174
|
+
* value to `WEB`, and `check_sessions` then drops flows built for the other
|
|
175
|
+
* platform — so the mobile client must send `REACT_NATIVE` or a Builder
|
|
176
|
+
* preview is started and immediately unset.
|
|
177
|
+
*/
|
|
178
|
+
export declare enum TargetPlatform {
|
|
179
|
+
WEB = "WEB",
|
|
180
|
+
REACT_NATIVE = "REACT_NATIVE"
|
|
181
|
+
}
|
|
182
|
+
export type ClientMessage = GoToStep | EndFlow | ReportTooltipTargetMissing | AnswerQuestion | FireConditionWaitTimer | UpdateClientContext | ToggleClientCondition | StartFlow | StartFlowWithToken | TestStartCondition | TestStartConditionCancel | TrackEvent | TrackButtonEvent | BeginBatch | EndBatch;
|
|
183
|
+
export declare const SERVER_MESSAGE_KINDS: readonly ["SetFlowSession", "UnsetFlowSession", "ForceGoToStep", "StartConditionWaitTimer", "CancelConditionWaitTimer", "TrackClientCondition", "UntrackClientCondition", "TestStartConditionSuccess"];
|
|
184
|
+
export declare const CLIENT_MESSAGE_KINDS: readonly ["GoToStep", "EndFlow", "ReportTooltipTargetMissing", "AnswerQuestion", "FireConditionWaitTimer", "UpdateClientContext", "ToggleClientCondition", "StartFlow", "StartFlowWithToken", "TestStartCondition", "TestStartConditionCancel", "TrackEvent", "TrackButtonEvent", "BeginBatch", "EndBatch"];
|
|
185
|
+
export declare function isServerMessage(value: unknown): value is ServerMessage;
|
|
186
|
+
export declare function isClientMessage(value: unknown): value is ClientMessage;
|
|
187
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,yBAAyB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,0BAA0B,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,qBAAqB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,MAAM,aAAa,GACrB,cAAc,GACd,gBAAgB,GAChB,aAAa,G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AQ;IACX,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,OAAO,GACP,0BAA0B,GAC1B,cAAc,GACd,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,SAAS,GACT,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB,GACxB,UAAU,GACV,gBAAgB,GAChB,UAAU,GACV,QAAQ,CAAC;AAEb,eAAO,MAAM,oBAAoB,wMASoB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,6SAgBoB,CAAC;AAWtD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server/client wire messages (Phase 3, slice 1).
|
|
3
|
+
*
|
|
4
|
+
* Curated subset of the message unions from the web SDK's
|
|
5
|
+
* `end-user-protocol.ts`, limited to the flow-session lifecycle,
|
|
6
|
+
* condition-wait-timer, and client-condition messages needed to render
|
|
7
|
+
* modal/tooltip flows and gate them on device-local state. The full web
|
|
8
|
+
* unions carry many more message kinds (banner/checklist/resource-center/
|
|
9
|
+
* site sessions, assistant, trackers, etc.) that are out of scope here.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Which SDK is joining the end-user channel. The server defaults a missing
|
|
13
|
+
* value to `WEB`, and `check_sessions` then drops flows built for the other
|
|
14
|
+
* platform — so the mobile client must send `REACT_NATIVE` or a Builder
|
|
15
|
+
* preview is started and immediately unset.
|
|
16
|
+
*/
|
|
17
|
+
export var TargetPlatform;
|
|
18
|
+
(function (TargetPlatform) {
|
|
19
|
+
TargetPlatform["WEB"] = "WEB";
|
|
20
|
+
TargetPlatform["REACT_NATIVE"] = "REACT_NATIVE";
|
|
21
|
+
})(TargetPlatform || (TargetPlatform = {}));
|
|
22
|
+
export const SERVER_MESSAGE_KINDS = [
|
|
23
|
+
'SetFlowSession',
|
|
24
|
+
'UnsetFlowSession',
|
|
25
|
+
'ForceGoToStep',
|
|
26
|
+
'StartConditionWaitTimer',
|
|
27
|
+
'CancelConditionWaitTimer',
|
|
28
|
+
'TrackClientCondition',
|
|
29
|
+
'UntrackClientCondition',
|
|
30
|
+
'TestStartConditionSuccess',
|
|
31
|
+
];
|
|
32
|
+
export const CLIENT_MESSAGE_KINDS = [
|
|
33
|
+
'GoToStep',
|
|
34
|
+
'EndFlow',
|
|
35
|
+
'ReportTooltipTargetMissing',
|
|
36
|
+
'AnswerQuestion',
|
|
37
|
+
'FireConditionWaitTimer',
|
|
38
|
+
'UpdateClientContext',
|
|
39
|
+
'ToggleClientCondition',
|
|
40
|
+
'StartFlow',
|
|
41
|
+
'StartFlowWithToken',
|
|
42
|
+
'TestStartCondition',
|
|
43
|
+
'TestStartConditionCancel',
|
|
44
|
+
'TrackEvent',
|
|
45
|
+
'TrackButtonEvent',
|
|
46
|
+
'BeginBatch',
|
|
47
|
+
'EndBatch',
|
|
48
|
+
];
|
|
49
|
+
function hasStringKind(value) {
|
|
50
|
+
return (typeof value === 'object' &&
|
|
51
|
+
value !== null &&
|
|
52
|
+
'kind' in value &&
|
|
53
|
+
typeof value.kind === 'string');
|
|
54
|
+
}
|
|
55
|
+
export function isServerMessage(value) {
|
|
56
|
+
return hasStringKind(value) && SERVER_MESSAGE_KINDS.includes(value.kind);
|
|
57
|
+
}
|
|
58
|
+
export function isClientMessage(value) {
|
|
59
|
+
return hasStringKind(value) && CLIENT_MESSAGE_KINDS.includes(value.kind);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuMH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+CAA6B,CAAA;AAC/B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAmBD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,yBAAyB;IACzB,0BAA0B;IAC1B,sBAAsB;IACtB,wBAAwB;IACxB,2BAA2B;CACwB,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,UAAU;IACV,SAAS;IACT,4BAA4B;IAC5B,gBAAgB;IAChB,wBAAwB;IACxB,qBAAqB;IACrB,uBAAuB;IACvB,WAAW;IACX,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,YAAY;IACZ,UAAU;CACyC,CAAC;AAEtD,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,MAAM,IAAI,KAAK;QACf,OAAQ,KAA2B,CAAC,IAAI,KAAK,QAAQ,CACtD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,aAAa,CAAC,KAAK,CAAC,IAAK,oBAA0C,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClG,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,aAAa,CAAC,KAAK,CAAC,IAAK,oBAA0C,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClG,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builder pairing wire contracts (mobile preview relay).
|
|
3
|
+
*
|
|
4
|
+
* Matches the backend `PairingChannel` allow-list and JWT claims shape.
|
|
5
|
+
* The JWT is signed, not encrypted — the SDK may decode claims client-side;
|
|
6
|
+
* the PairingSocket verifies signature + exp on connect.
|
|
7
|
+
*/
|
|
8
|
+
/** Claims the device reads from a pairing JWT payload (unsigned decode). */
|
|
9
|
+
export interface PairingJwtClaims {
|
|
10
|
+
pairing_id: string;
|
|
11
|
+
exp: number;
|
|
12
|
+
iss?: string;
|
|
13
|
+
aud?: string;
|
|
14
|
+
iat?: number;
|
|
15
|
+
}
|
|
16
|
+
/** Device join payload for `pairing:<pairing_id>`. */
|
|
17
|
+
export interface PairingJoinPayload {
|
|
18
|
+
device_id: string;
|
|
19
|
+
model?: string;
|
|
20
|
+
os?: string;
|
|
21
|
+
app_version?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Events the pairing channel relays between builder and device.
|
|
25
|
+
* Names match backend `@relayed_events` (CRX camelCase).
|
|
26
|
+
*/
|
|
27
|
+
export declare const PAIRING_RELAY_EVENTS: readonly ["selectElement", "selectElementResult", "selectElementCancel", "startFlowWithToken", "startFlowWithTokenResult", "testTracker", "testTrackerResult", "startSmartFlow", "smartFlowStep", "smartFlowStop", "screenshot", "screenshotResult"];
|
|
28
|
+
export type PairingRelayEvent = (typeof PAIRING_RELAY_EVENTS)[number];
|
|
29
|
+
/** Payload for the builder → device `startFlowWithToken` relay event. */
|
|
30
|
+
export interface StartFlowWithTokenRelayPayload {
|
|
31
|
+
token: string;
|
|
32
|
+
idempotency_key?: string;
|
|
33
|
+
flowId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When true the builder asked to *wait for* the flow's start condition rather
|
|
36
|
+
* than start it immediately. Mirrors web `userflow-client.ts`, which routes
|
|
37
|
+
* this to `TestStartCondition` instead of `StartFlowWithToken`.
|
|
38
|
+
*/
|
|
39
|
+
testStartCondition?: boolean;
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
/** Result event device → builder after handling `startFlowWithToken`. */
|
|
43
|
+
export interface StartFlowWithTokenResultPayload {
|
|
44
|
+
ok: boolean;
|
|
45
|
+
error?: string;
|
|
46
|
+
idempotency_key?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Builder → device: enter in-app element-picker mode. */
|
|
49
|
+
export interface SelectElementRelayPayload {
|
|
50
|
+
idempotency_key: string;
|
|
51
|
+
elementType?: string | null;
|
|
52
|
+
}
|
|
53
|
+
/** Device → builder after the author confirms (or the pick fails). */
|
|
54
|
+
export interface SelectElementResultPayload {
|
|
55
|
+
idempotency_key: string;
|
|
56
|
+
ok: boolean;
|
|
57
|
+
autoData?: string;
|
|
58
|
+
text?: string | null;
|
|
59
|
+
screenshot?: {
|
|
60
|
+
dataUrl: string;
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
targetX1: number;
|
|
64
|
+
targetY1: number;
|
|
65
|
+
targetX2: number;
|
|
66
|
+
targetY2: number;
|
|
67
|
+
};
|
|
68
|
+
error?: string;
|
|
69
|
+
}
|
|
70
|
+
/** Either side aborting an in-flight `selectElement`. */
|
|
71
|
+
export interface SelectElementCancelPayload {
|
|
72
|
+
idempotency_key: string;
|
|
73
|
+
}
|
|
74
|
+
export declare function isPairingRelayEvent(value: string): value is PairingRelayEvent;
|
|
75
|
+
/**
|
|
76
|
+
* Decode the payload segment of a JWT without verifying the signature.
|
|
77
|
+
* Returns null when the token is malformed or missing required claims.
|
|
78
|
+
*/
|
|
79
|
+
export declare function decodePairingJwt(jwt: string): PairingJwtClaims | null;
|
|
80
|
+
/** True when `exp` (unix seconds) is at or before `nowMs`. */
|
|
81
|
+
export declare function isPairingJwtExpired(claims: PairingJwtClaims, nowMs?: number): boolean;
|
|
82
|
+
//# sourceMappingURL=pairing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pairing.d.ts","sourceRoot":"","sources":["../src/pairing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,G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