@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,490 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ElementPickerOverlay = ElementPickerOverlay;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _targetPressMonitor = require("../anchors/targetPressMonitor.js");
|
|
10
|
+
var _absoluteFill = require("../surfaces/absoluteFill.js");
|
|
11
|
+
var _surfaceLayoutInsets = require("../surfaces/surfaceLayoutInsets.js");
|
|
12
|
+
var _TooltipCutout = require("../surfaces/tooltip/TooltipCutout.js");
|
|
13
|
+
var _capturePickerScreenshot = require("./capturePickerScreenshot.js");
|
|
14
|
+
var _ChromeBarTransition = require("./chrome/ChromeBarTransition.js");
|
|
15
|
+
var _ChromeBottomSheet = require("./chrome/ChromeBottomSheet.js");
|
|
16
|
+
var _ChromeButton = require("./chrome/ChromeButton.js");
|
|
17
|
+
var _ChromeTooltip = require("./chrome/ChromeTooltip.js");
|
|
18
|
+
var _ChromeTopBar = require("./chrome/ChromeTopBar.js");
|
|
19
|
+
var _tokens = require("./chrome/tokens.js");
|
|
20
|
+
var _doubleTap = require("./doubleTap.js");
|
|
21
|
+
var _elementPickerController = require("./elementPickerController.js");
|
|
22
|
+
var _fingerprintFromInstance = require("./fingerprintFromInstance.js");
|
|
23
|
+
var _hitTest = require("./hitTest.js");
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
26
|
+
function statusForValidationFailure(reason) {
|
|
27
|
+
if (reason === 'not-unique' || reason === 'ambiguous-explicit-id') {
|
|
28
|
+
return 'This element is not uniquely identifiable — add a testID or userflowId, or it may match the wrong item at play time.';
|
|
29
|
+
}
|
|
30
|
+
if (reason === 'wrong-instance') {
|
|
31
|
+
return 'That fingerprint matches a different element — pick again or add a testID.';
|
|
32
|
+
}
|
|
33
|
+
return 'Could not uniquely match that element at play time.';
|
|
34
|
+
}
|
|
35
|
+
const CONFIRM_HELPER = 'Navigate back to the Userflow app after confirming';
|
|
36
|
+
const ONBOARDING_COPY = 'Double tap anywhere to access the menu';
|
|
37
|
+
|
|
38
|
+
/** Yield until chrome has left the native tree so captureScreen cannot include it. */
|
|
39
|
+
function waitForCapturePaint() {
|
|
40
|
+
return new Promise(resolve => {
|
|
41
|
+
const raf = globalThis.requestAnimationFrame;
|
|
42
|
+
if (typeof raf === 'function') {
|
|
43
|
+
raf.call(globalThis, () => {
|
|
44
|
+
raf.call(globalThis, () => resolve());
|
|
45
|
+
});
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
setTimeout(resolve, 0);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function ringStyle(rect, inset) {
|
|
52
|
+
return {
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
left: rect.x - inset,
|
|
55
|
+
top: rect.y - inset,
|
|
56
|
+
width: rect.width + inset * 2,
|
|
57
|
+
height: rect.height + inset * 2,
|
|
58
|
+
borderRadius: _tokens.chromeRadius.lg
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Overlay chrome for in-app element picking. Mounted by UserflowProvider;
|
|
64
|
+
* renders nothing until {@link elementPickerController.beginSelection}.
|
|
65
|
+
*/
|
|
66
|
+
function ElementPickerOverlay() {
|
|
67
|
+
const [state, setState] = React.useState(() => _elementPickerController.elementPickerController.getState());
|
|
68
|
+
const [mode, setMode] = React.useState('select');
|
|
69
|
+
const [candidates, setCandidates] = React.useState([]);
|
|
70
|
+
const [index, setIndex] = React.useState(0);
|
|
71
|
+
const [busy, setBusy] = React.useState(false);
|
|
72
|
+
const [status, setStatus] = React.useState(null);
|
|
73
|
+
const [chromeVisible, setChromeVisible] = React.useState(true);
|
|
74
|
+
const [hidingForCapture, setHidingForCapture] = React.useState(false);
|
|
75
|
+
const [showOnboarding, setShowOnboarding] = React.useState(false);
|
|
76
|
+
const [barHeight, setBarHeight] = React.useState(0);
|
|
77
|
+
const [sheetHeight, setSheetHeight] = React.useState(0);
|
|
78
|
+
const tapStartRef = React.useRef(null);
|
|
79
|
+
const lastTapRef = React.useRef(null);
|
|
80
|
+
const tapGenRef = React.useRef(0);
|
|
81
|
+
const applyTimerRef = React.useRef(null);
|
|
82
|
+
const applyResolveRef = React.useRef(null);
|
|
83
|
+
const modeRef = React.useRef('select');
|
|
84
|
+
const armedRequestIdRef = React.useRef(undefined);
|
|
85
|
+
const setBannerHeight = (0, _surfaceLayoutInsets.useReportPreviewBannerHeight)('picker');
|
|
86
|
+
const setBottomHeight = (0, _surfaceLayoutInsets.useReportAuthoringBottomHeight)('picker');
|
|
87
|
+
const cancelPendingSelection = React.useCallback(() => {
|
|
88
|
+
tapGenRef.current += 1;
|
|
89
|
+
if (applyTimerRef.current != null) {
|
|
90
|
+
clearTimeout(applyTimerRef.current);
|
|
91
|
+
applyTimerRef.current = null;
|
|
92
|
+
}
|
|
93
|
+
const resolveWait = applyResolveRef.current;
|
|
94
|
+
applyResolveRef.current = null;
|
|
95
|
+
resolveWait?.();
|
|
96
|
+
setBusy(false);
|
|
97
|
+
}, []);
|
|
98
|
+
const resetTransient = React.useCallback(options => {
|
|
99
|
+
cancelPendingSelection();
|
|
100
|
+
lastTapRef.current = null;
|
|
101
|
+
setMode('select');
|
|
102
|
+
setCandidates([]);
|
|
103
|
+
setIndex(0);
|
|
104
|
+
setBusy(false);
|
|
105
|
+
setStatus(null);
|
|
106
|
+
setChromeVisible(true);
|
|
107
|
+
setBarHeight(0);
|
|
108
|
+
setSheetHeight(0);
|
|
109
|
+
modeRef.current = 'select';
|
|
110
|
+
if (options?.resetCaptureHide !== false) {
|
|
111
|
+
setHidingForCapture(false);
|
|
112
|
+
}
|
|
113
|
+
}, [cancelPendingSelection]);
|
|
114
|
+
React.useEffect(() => {
|
|
115
|
+
return _elementPickerController.elementPickerController.subscribe(next => {
|
|
116
|
+
setState(next);
|
|
117
|
+
if (!next.active) {
|
|
118
|
+
armedRequestIdRef.current = undefined;
|
|
119
|
+
resetTransient({
|
|
120
|
+
resetCaptureHide: false
|
|
121
|
+
});
|
|
122
|
+
setShowOnboarding(false);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
// Successful confirm leaves hidingForCapture true so chrome does not
|
|
126
|
+
// flash back during teardown. Clear it with the new session's setState
|
|
127
|
+
// so the first paint of this pick has bars.
|
|
128
|
+
if (armedRequestIdRef.current !== next.requestId) {
|
|
129
|
+
setHidingForCapture(false);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}, [resetTransient]);
|
|
133
|
+
React.useEffect(() => {
|
|
134
|
+
if (!state.active || state.requestId == null) return;
|
|
135
|
+
if (armedRequestIdRef.current === state.requestId) return;
|
|
136
|
+
armedRequestIdRef.current = state.requestId;
|
|
137
|
+
resetTransient();
|
|
138
|
+
setShowOnboarding(true);
|
|
139
|
+
}, [resetTransient, state.active, state.requestId]);
|
|
140
|
+
React.useEffect(() => {
|
|
141
|
+
return () => {
|
|
142
|
+
cancelPendingSelection();
|
|
143
|
+
};
|
|
144
|
+
}, [cancelPendingSelection]);
|
|
145
|
+
React.useEffect(() => {
|
|
146
|
+
if (!state.active) {
|
|
147
|
+
setBannerHeight(0);
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
if (hidingForCapture) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (!chromeVisible) {
|
|
154
|
+
setBannerHeight(0);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (barHeight > 0) {
|
|
158
|
+
setBannerHeight(barHeight);
|
|
159
|
+
}
|
|
160
|
+
}, [barHeight, chromeVisible, hidingForCapture, setBannerHeight, state.active]);
|
|
161
|
+
React.useEffect(() => {
|
|
162
|
+
if (!state.active) {
|
|
163
|
+
setBottomHeight(0);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
if (hidingForCapture) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (!chromeVisible) {
|
|
170
|
+
setBottomHeight(0);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (sheetHeight > 0) {
|
|
174
|
+
setBottomHeight(sheetHeight);
|
|
175
|
+
}
|
|
176
|
+
}, [chromeVisible, hidingForCapture, setBottomHeight, sheetHeight, state.active]);
|
|
177
|
+
const onMeasureHeight = React.useCallback(height => {
|
|
178
|
+
setBarHeight(Math.max(0, height));
|
|
179
|
+
}, []);
|
|
180
|
+
const onMeasureSheetHeight = React.useCallback(height => {
|
|
181
|
+
setSheetHeight(Math.max(0, height));
|
|
182
|
+
}, []);
|
|
183
|
+
const selected = candidates[index] ?? null;
|
|
184
|
+
const phase = selected ? 'selected' : mode === 'select' ? 'selecting' : 'navigating';
|
|
185
|
+
modeRef.current = mode;
|
|
186
|
+
|
|
187
|
+
// Bars slide/fade in with the picker, out on double-tap hide, and out again
|
|
188
|
+
// on teardown. Keep them mounted through the exit even after the picker goes
|
|
189
|
+
// inactive; the dim, capture, and spotlight below drop immediately instead.
|
|
190
|
+
const chromeBarsVisible = state.active && chromeVisible && !hidingForCapture;
|
|
191
|
+
const chromeBarsMounted = (0, _ChromeBarTransition.useChromeBarMounted)(chromeBarsVisible);
|
|
192
|
+
const showChromeBars = hidingForCapture ? false : chromeBarsMounted;
|
|
193
|
+
React.useEffect(() => {
|
|
194
|
+
if (phase !== 'selecting') {
|
|
195
|
+
setShowOnboarding(false);
|
|
196
|
+
}
|
|
197
|
+
}, [phase]);
|
|
198
|
+
const applyHits = React.useCallback(hits => {
|
|
199
|
+
if (modeRef.current !== 'select') return;
|
|
200
|
+
lastTapRef.current = null;
|
|
201
|
+
setChromeVisible(true);
|
|
202
|
+
if (hits.length === 0) {
|
|
203
|
+
setCandidates([]);
|
|
204
|
+
setIndex(0);
|
|
205
|
+
setStatus('No stamped element under that tap.');
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
setCandidates(hits);
|
|
209
|
+
setIndex(0);
|
|
210
|
+
setStatus(null);
|
|
211
|
+
}, []);
|
|
212
|
+
const scheduleSelection = React.useCallback((pageX, pageY) => {
|
|
213
|
+
cancelPendingSelection();
|
|
214
|
+
const gen = tapGenRef.current;
|
|
215
|
+
setBusy(true);
|
|
216
|
+
setStatus(null);
|
|
217
|
+
const hitsPromise = (0, _hitTest.hitTestAt)(pageX, pageY);
|
|
218
|
+
const wait = new Promise(resolve => {
|
|
219
|
+
applyResolveRef.current = resolve;
|
|
220
|
+
applyTimerRef.current = setTimeout(() => {
|
|
221
|
+
applyTimerRef.current = null;
|
|
222
|
+
applyResolveRef.current = null;
|
|
223
|
+
resolve();
|
|
224
|
+
}, _doubleTap.DOUBLE_TAP_WINDOW_MS);
|
|
225
|
+
});
|
|
226
|
+
void (async () => {
|
|
227
|
+
try {
|
|
228
|
+
const [hits] = await Promise.all([hitsPromise, wait]);
|
|
229
|
+
if (tapGenRef.current !== gen) return;
|
|
230
|
+
applyHits(hits);
|
|
231
|
+
} finally {
|
|
232
|
+
if (tapGenRef.current === gen) setBusy(false);
|
|
233
|
+
}
|
|
234
|
+
})();
|
|
235
|
+
}, [applyHits, cancelPendingSelection]);
|
|
236
|
+
const onTap = React.useCallback(async (pageX, pageY) => {
|
|
237
|
+
if (selected && candidates.length > 1 && (0, _targetPressMonitor.pointInRect)(pageX, pageY, selected.rect)) {
|
|
238
|
+
setIndex(current => (0, _hitTest.nextContainingIndex)(candidates, current));
|
|
239
|
+
setStatus(null);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
setBusy(true);
|
|
243
|
+
setStatus(null);
|
|
244
|
+
try {
|
|
245
|
+
const hits = await (0, _hitTest.hitTestAt)(pageX, pageY);
|
|
246
|
+
if (hits.length === 0) {
|
|
247
|
+
setCandidates([]);
|
|
248
|
+
setIndex(0);
|
|
249
|
+
setStatus('No stamped element under that tap.');
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
setCandidates(hits);
|
|
253
|
+
setIndex(0);
|
|
254
|
+
} finally {
|
|
255
|
+
setBusy(false);
|
|
256
|
+
}
|
|
257
|
+
}, [candidates, selected]);
|
|
258
|
+
const onGrant = React.useCallback(event => {
|
|
259
|
+
const {
|
|
260
|
+
pageX,
|
|
261
|
+
pageY
|
|
262
|
+
} = event.nativeEvent;
|
|
263
|
+
tapStartRef.current = {
|
|
264
|
+
pageX,
|
|
265
|
+
pageY
|
|
266
|
+
};
|
|
267
|
+
}, []);
|
|
268
|
+
const onRelease = React.useCallback(event => {
|
|
269
|
+
const start = tapStartRef.current;
|
|
270
|
+
tapStartRef.current = null;
|
|
271
|
+
if (!start) return;
|
|
272
|
+
const {
|
|
273
|
+
pageX,
|
|
274
|
+
pageY
|
|
275
|
+
} = event.nativeEvent;
|
|
276
|
+
const dx = pageX - start.pageX;
|
|
277
|
+
const dy = pageY - start.pageY;
|
|
278
|
+
if (dx * dx + dy * dy > _targetPressMonitor.TARGET_PRESS_TAP_SLOP * _targetPressMonitor.TARGET_PRESS_TAP_SLOP) return;
|
|
279
|
+
const sample = {
|
|
280
|
+
pageX,
|
|
281
|
+
pageY,
|
|
282
|
+
timestamp: Date.now()
|
|
283
|
+
};
|
|
284
|
+
if (!selected && (0, _doubleTap.isDoubleTap)(lastTapRef.current, sample)) {
|
|
285
|
+
cancelPendingSelection();
|
|
286
|
+
lastTapRef.current = null;
|
|
287
|
+
setShowOnboarding(false);
|
|
288
|
+
setChromeVisible(visible => !visible);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
lastTapRef.current = sample;
|
|
292
|
+
if (selected) {
|
|
293
|
+
void onTap(pageX, pageY);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
scheduleSelection(pageX, pageY);
|
|
297
|
+
}, [cancelPendingSelection, onTap, scheduleSelection, selected]);
|
|
298
|
+
const deselect = React.useCallback(() => {
|
|
299
|
+
setCandidates([]);
|
|
300
|
+
setIndex(0);
|
|
301
|
+
setStatus(null);
|
|
302
|
+
setChromeVisible(true);
|
|
303
|
+
}, []);
|
|
304
|
+
const confirm = React.useCallback(async () => {
|
|
305
|
+
if (!selected) return;
|
|
306
|
+
const requestId = _elementPickerController.elementPickerController.getState().requestId;
|
|
307
|
+
if (!requestId) return;
|
|
308
|
+
setBusy(true);
|
|
309
|
+
setStatus(null);
|
|
310
|
+
try {
|
|
311
|
+
const validated = (0, _fingerprintFromInstance.validatePickerFingerprint)(selected.instance);
|
|
312
|
+
if (!validated.ok) {
|
|
313
|
+
setStatus(statusForValidationFailure(validated.reason));
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
setHidingForCapture(true);
|
|
317
|
+
await waitForCapturePaint();
|
|
318
|
+
const screenshot = await (0, _capturePickerScreenshot.capturePickerScreenshot)(selected.rect);
|
|
319
|
+
const delivered = await _elementPickerController.elementPickerController.commit({
|
|
320
|
+
instance: selected.instance,
|
|
321
|
+
autoData: validated.autoData,
|
|
322
|
+
text: selected.instance.childText ?? selected.instance.accessibilityLabel ?? null,
|
|
323
|
+
rect: selected.rect,
|
|
324
|
+
...(screenshot ? {
|
|
325
|
+
screenshot
|
|
326
|
+
} : {})
|
|
327
|
+
}, requestId);
|
|
328
|
+
if (!delivered && _elementPickerController.elementPickerController.getState().requestId === requestId) {
|
|
329
|
+
setHidingForCapture(false);
|
|
330
|
+
setStatus("Couldn't send to Builder");
|
|
331
|
+
}
|
|
332
|
+
} catch {
|
|
333
|
+
setHidingForCapture(false);
|
|
334
|
+
setStatus('Could not serialize that element.');
|
|
335
|
+
} finally {
|
|
336
|
+
setBusy(false);
|
|
337
|
+
}
|
|
338
|
+
}, [selected]);
|
|
339
|
+
if (!state.active && !chromeBarsMounted) return null;
|
|
340
|
+
const barLabel = phase === 'selected' ? 'Confirm selected element' : phase === 'selecting' ? 'Tap an element to select it' : 'Navigate screens';
|
|
341
|
+
const helperText = status ?? (phase === 'selected' ? CONFIRM_HELPER : undefined);
|
|
342
|
+
const tooltipVisible = state.active && showOnboarding && chromeVisible && phase === 'selecting';
|
|
343
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
344
|
+
pointerEvents: "box-none",
|
|
345
|
+
style: styles.root,
|
|
346
|
+
testID: "userflow-element-picker",
|
|
347
|
+
children: [state.active && phase === 'selecting' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
348
|
+
pointerEvents: "none",
|
|
349
|
+
style: styles.dim,
|
|
350
|
+
testID: "userflow-element-picker-dim"
|
|
351
|
+
}) : null, state.active && selected ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
352
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TooltipCutout.TooltipCutout, {
|
|
353
|
+
backdropColor: _tokens.chromeOverlay.color,
|
|
354
|
+
backdropOpacity: _tokens.chromeOverlay.opacity,
|
|
355
|
+
targetBlocked: false,
|
|
356
|
+
targetRect: {
|
|
357
|
+
top: selected.rect.y,
|
|
358
|
+
left: selected.rect.x,
|
|
359
|
+
width: selected.rect.width,
|
|
360
|
+
height: selected.rect.height
|
|
361
|
+
}
|
|
362
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
363
|
+
pointerEvents: "none",
|
|
364
|
+
style: [ringStyle(selected.rect, 5), {
|
|
365
|
+
borderWidth: 4,
|
|
366
|
+
borderColor: _tokens.chromeColors.focusRing
|
|
367
|
+
}],
|
|
368
|
+
testID: "userflow-element-picker-focus-ring"
|
|
369
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
370
|
+
pointerEvents: "none",
|
|
371
|
+
style: [ringStyle(selected.rect, 1), {
|
|
372
|
+
borderWidth: 1,
|
|
373
|
+
borderColor: _tokens.chromeColors.white
|
|
374
|
+
}],
|
|
375
|
+
testID: "userflow-element-picker-focus-ring-inner"
|
|
376
|
+
})]
|
|
377
|
+
}) : null, state.active && mode === 'select' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
378
|
+
testID: "userflow-element-picker-capture",
|
|
379
|
+
style: styles.capture,
|
|
380
|
+
onStartShouldSetResponder: () => true,
|
|
381
|
+
onResponderGrant: onGrant,
|
|
382
|
+
onResponderRelease: onRelease
|
|
383
|
+
}) : null, showChromeBars ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeBarTransition.ChromeBarTransition, {
|
|
384
|
+
edge: "top",
|
|
385
|
+
pointerEvents: "box-none",
|
|
386
|
+
style: styles.top,
|
|
387
|
+
visible: chromeBarsVisible,
|
|
388
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeTopBar.ChromeTopBar, {
|
|
389
|
+
label: barLabel,
|
|
390
|
+
onMeasureHeight: onMeasureHeight
|
|
391
|
+
})
|
|
392
|
+
}) : null, tooltipVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
393
|
+
pointerEvents: "none",
|
|
394
|
+
style: [styles.tooltip, {
|
|
395
|
+
top: barHeight
|
|
396
|
+
}],
|
|
397
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeTooltip.ChromeTooltip, {
|
|
398
|
+
onDismiss: () => {
|
|
399
|
+
setShowOnboarding(false);
|
|
400
|
+
},
|
|
401
|
+
children: ONBOARDING_COPY
|
|
402
|
+
})
|
|
403
|
+
}) : null, showChromeBars ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeBarTransition.ChromeBarTransition, {
|
|
404
|
+
edge: "bottom",
|
|
405
|
+
pointerEvents: "box-none",
|
|
406
|
+
style: styles.bottom,
|
|
407
|
+
visible: chromeBarsVisible,
|
|
408
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeBottomSheet.ChromeBottomSheet, {
|
|
409
|
+
helperText: helperText,
|
|
410
|
+
onMeasureHeight: onMeasureSheetHeight,
|
|
411
|
+
children: phase === 'selected' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
412
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeButton.ChromeButton, {
|
|
413
|
+
accessibilityLabel: "Deselect",
|
|
414
|
+
label: "Deselect",
|
|
415
|
+
onPress: deselect,
|
|
416
|
+
testID: "userflow-element-picker-deselect",
|
|
417
|
+
variant: "secondary"
|
|
418
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeButton.ChromeButton, {
|
|
419
|
+
accessibilityLabel: "Confirm element",
|
|
420
|
+
disabled: busy,
|
|
421
|
+
label: "Confirm element",
|
|
422
|
+
onPress: () => {
|
|
423
|
+
void confirm();
|
|
424
|
+
},
|
|
425
|
+
testID: "userflow-element-picker-confirm"
|
|
426
|
+
})]
|
|
427
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
428
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeButton.ChromeButton, {
|
|
429
|
+
accessibilityLabel: "Cancel element selection",
|
|
430
|
+
label: "Cancel",
|
|
431
|
+
onPress: () => _elementPickerController.elementPickerController.cancel(),
|
|
432
|
+
testID: "userflow-element-picker-cancel",
|
|
433
|
+
variant: "secondary"
|
|
434
|
+
}), phase === 'selecting' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeButton.ChromeButton, {
|
|
435
|
+
accessibilityLabel: "Navigate screens",
|
|
436
|
+
label: "Navigate screens",
|
|
437
|
+
onPress: () => {
|
|
438
|
+
cancelPendingSelection();
|
|
439
|
+
lastTapRef.current = null;
|
|
440
|
+
setStatus(null);
|
|
441
|
+
setMode('navigate');
|
|
442
|
+
},
|
|
443
|
+
testID: "userflow-element-picker-navigate"
|
|
444
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChromeButton.ChromeButton, {
|
|
445
|
+
accessibilityLabel: "Select element here",
|
|
446
|
+
label: "Select element here",
|
|
447
|
+
onPress: () => {
|
|
448
|
+
setStatus(null);
|
|
449
|
+
setMode('select');
|
|
450
|
+
},
|
|
451
|
+
testID: "userflow-element-picker-select-here"
|
|
452
|
+
})]
|
|
453
|
+
})
|
|
454
|
+
})
|
|
455
|
+
}) : null]
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
const styles = _reactNative.StyleSheet.create({
|
|
459
|
+
root: {
|
|
460
|
+
..._absoluteFill.ABSOLUTE_FILL,
|
|
461
|
+
zIndex: 1100
|
|
462
|
+
},
|
|
463
|
+
dim: {
|
|
464
|
+
..._absoluteFill.ABSOLUTE_FILL,
|
|
465
|
+
backgroundColor: _tokens.chromeOverlay.color,
|
|
466
|
+
opacity: _tokens.chromeOverlay.opacity
|
|
467
|
+
},
|
|
468
|
+
capture: {
|
|
469
|
+
..._absoluteFill.ABSOLUTE_FILL
|
|
470
|
+
},
|
|
471
|
+
top: {
|
|
472
|
+
position: 'absolute',
|
|
473
|
+
top: 0,
|
|
474
|
+
left: 0,
|
|
475
|
+
right: 0
|
|
476
|
+
},
|
|
477
|
+
tooltip: {
|
|
478
|
+
position: 'absolute',
|
|
479
|
+
left: 0,
|
|
480
|
+
right: 0,
|
|
481
|
+
alignItems: 'center'
|
|
482
|
+
},
|
|
483
|
+
bottom: {
|
|
484
|
+
position: 'absolute',
|
|
485
|
+
bottom: 0,
|
|
486
|
+
left: 0,
|
|
487
|
+
right: 0
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
//# sourceMappingURL=ElementPickerOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_targetPressMonitor","_absoluteFill","_surfaceLayoutInsets","_TooltipCutout","_capturePickerScreenshot","_ChromeBarTransition","_ChromeBottomSheet","_ChromeButton","_ChromeTooltip","_ChromeTopBar","_tokens","_doubleTap","_elementPickerController","_fingerprintFromInstance","_hitTest","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","statusForValidationFailure","reason","CONFIRM_HELPER","ONBOARDING_COPY","waitForCapturePaint","Promise","resolve","raf","globalThis","requestAnimationFrame","setTimeout","ringStyle","rect","inset","position","left","x","top","y","width","height","borderRadius","chromeRadius","lg","ElementPickerOverlay","state","setState","useState","elementPickerController","getState","mode","setMode","candidates","setCandidates","index","setIndex","busy","setBusy","status","setStatus","chromeVisible","setChromeVisible","hidingForCapture","setHidingForCapture","showOnboarding","setShowOnboarding","barHeight","setBarHeight","sheetHeight","setSheetHeight","tapStartRef","useRef","lastTapRef","tapGenRef","applyTimerRef","applyResolveRef","modeRef","armedRequestIdRef","undefined","setBannerHeight","useReportPreviewBannerHeight","setBottomHeight","useReportAuthoringBottomHeight","cancelPendingSelection","useCallback","current","clearTimeout","resolveWait","resetTransient","options","resetCaptureHide","useEffect","subscribe","next","active","requestId","onMeasureHeight","Math","max","onMeasureSheetHeight","selected","phase","chromeBarsVisible","chromeBarsMounted","useChromeBarMounted","showChromeBars","applyHits","hits","length","scheduleSelection","pageX","pageY","gen","hitsPromise","hitTestAt","wait","DOUBLE_TAP_WINDOW_MS","all","onTap","pointInRect","nextContainingIndex","onGrant","event","nativeEvent","onRelease","start","dx","dy","TARGET_PRESS_TAP_SLOP","sample","timestamp","Date","now","isDoubleTap","visible","deselect","confirm","validated","validatePickerFingerprint","instance","ok","screenshot","capturePickerScreenshot","delivered","commit","autoData","text","childText","accessibilityLabel","barLabel","helperText","tooltipVisible","jsxs","View","pointerEvents","style","styles","root","testID","children","jsx","dim","Fragment","TooltipCutout","backdropColor","chromeOverlay","color","backdropOpacity","opacity","targetBlocked","targetRect","borderWidth","borderColor","chromeColors","focusRing","white","capture","onStartShouldSetResponder","onResponderGrant","onResponderRelease","ChromeBarTransition","edge","ChromeTopBar","label","tooltip","ChromeTooltip","onDismiss","bottom","ChromeBottomSheet","ChromeButton","onPress","variant","disabled","cancel","StyleSheet","create","ABSOLUTE_FILL","zIndex","backgroundColor","right","alignItems"],"sourceRoot":"../../../src","sources":["authoring/ElementPickerOverlay.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,cAAA,GAAAL,OAAA;AAEA,IAAAM,wBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,wBAAA,GAAAd,OAAA;AACA,IAAAe,wBAAA,GAAAf,OAAA;AAIA,IAAAgB,QAAA,GAAAhB,OAAA;AAA4F,IAAAiB,WAAA,GAAAjB,OAAA;AAAA,SAAAD,wBAAAmB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAArB,uBAAA,YAAAA,CAAAmB,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SA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,CAAC,gBAEF,IAAA9J,WAAA,CAAAgK,GAAA,EAACxK,aAAA,CAAAqM,YAAY;YACXzC,kBAAkB,EAAC,qBAAqB;YACxCmC,KAAK,EAAC,qBAAqB;YAC3BO,OAAO,EAAEA,CAAA,KAAM;cACbnI,SAAS,CAAC,IAAI,CAAC;cACfR,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAE;YACF2G,MAAM,EAAC;UAAqC,CAC7C,CACF;QAAA,CACD;MACH,CACgB;IAAC,CACD,CAAC,GACpB,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,MAAMF,MAAM,GAAGsC,uBAAU,CAACC,MAAM,CAAC;EAC/BtC,IAAI,EAAE;IACJ,GAAGuC,2BAAa;IAChBC,MAAM,EAAE;EACV,CAAC;EACDpC,GAAG,EAAE;IACH,GAAGmC,2BAAa;IAChBE,eAAe,EAAEjC,qBAAa,CAACC,KAAK;IACpCE,OAAO,EAAEH,qBAAa,CAACG;EACzB,CAAC;EACDQ,OAAO,EAAE;IACP,GAAGoB;EACL,CAAC;EACD/J,GAAG,EAAE;IACHH,QAAQ,EAAE,UAAU;IACpBG,GAAG,EAAE,CAAC;IACNF,IAAI,EAAE,CAAC;IACPoK,KAAK,EAAE;EACT,CAAC;EACDf,OAAO,EAAE;IACPtJ,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPoK,KAAK,EAAE,CAAC;IACRC,UAAU,EAAE;EACd,CAAC;EACDb,MAAM,EAAE;IACNzJ,QAAQ,EAAE,UAAU;IACpByJ,MAAM,EAAE,CAAC;IACTxJ,IAAI,EAAE,CAAC;IACPoK,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.capturePickerScreenshot = capturePickerScreenshot;
|
|
7
|
+
exports.resetViewShotWarningForTests = resetViewShotWarningForTests;
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
const MAX_CAPTURE_WIDTH = 480;
|
|
10
|
+
const MISSING_VIEW_SHOT_WARNING = '[Userflow] Required peer react-native-view-shot is not installed; ' + 'skipping picker screenshot. Install react-native-view-shot (>=5.0.0) and rebuild native.';
|
|
11
|
+
let didWarnMissingViewShot = false;
|
|
12
|
+
function warnMissingViewShot() {
|
|
13
|
+
if (didWarnMissingViewShot) return;
|
|
14
|
+
didWarnMissingViewShot = true;
|
|
15
|
+
if (__DEV__) {
|
|
16
|
+
// eslint-disable-next-line no-console -- intentional missing-required-peer diagnostic
|
|
17
|
+
console.warn(MISSING_VIEW_SHOT_WARNING);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function loadViewShot() {
|
|
21
|
+
try {
|
|
22
|
+
// Required peer; degrade if unlinked or the JS package is missing.
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
|
|
24
|
+
return require('react-native-view-shot');
|
|
25
|
+
} catch {
|
|
26
|
+
warnMissingViewShot();
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Capture a downscaled JPEG of the current screen and map `rect` (window DIP)
|
|
33
|
+
* onto the captured pixel grid. Returns null when the native module is missing
|
|
34
|
+
* or capture fails.
|
|
35
|
+
*/
|
|
36
|
+
async function capturePickerScreenshot(rect) {
|
|
37
|
+
const viewShot = loadViewShot();
|
|
38
|
+
if (!viewShot?.captureScreen) return null;
|
|
39
|
+
try {
|
|
40
|
+
const window = _reactNative.Dimensions.get('window');
|
|
41
|
+
const winW = window.width || 1;
|
|
42
|
+
const winH = window.height || 1;
|
|
43
|
+
const captureWidth = Math.min(Math.round(winW), MAX_CAPTURE_WIDTH);
|
|
44
|
+
const captureHeight = Math.max(1, Math.round(winH * (captureWidth / winW)));
|
|
45
|
+
const dataUrl = await viewShot.captureScreen({
|
|
46
|
+
format: 'jpg',
|
|
47
|
+
quality: 0.55,
|
|
48
|
+
result: 'data-uri',
|
|
49
|
+
width: captureWidth,
|
|
50
|
+
height: captureHeight
|
|
51
|
+
});
|
|
52
|
+
if (typeof dataUrl !== 'string' || dataUrl.length === 0) return null;
|
|
53
|
+
const sx = captureWidth / winW;
|
|
54
|
+
const sy = captureHeight / winH;
|
|
55
|
+
return {
|
|
56
|
+
dataUrl,
|
|
57
|
+
width: captureWidth,
|
|
58
|
+
height: captureHeight,
|
|
59
|
+
targetX1: Math.round(rect.x * sx),
|
|
60
|
+
targetY1: Math.round(rect.y * sy),
|
|
61
|
+
targetX2: Math.round((rect.x + rect.width) * sx),
|
|
62
|
+
targetY2: Math.round((rect.y + rect.height) * sy)
|
|
63
|
+
};
|
|
64
|
+
} catch {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
function resetViewShotWarningForTests() {
|
|
71
|
+
didWarnMissingViewShot = false;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=capturePickerScreenshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","MAX_CAPTURE_WIDTH","MISSING_VIEW_SHOT_WARNING","didWarnMissingViewShot","warnMissingViewShot","__DEV__","console","warn","loadViewShot","capturePickerScreenshot","rect","viewShot","captureScreen","window","Dimensions","get","winW","width","winH","height","captureWidth","Math","min","round","captureHeight","max","dataUrl","format","quality","result","length","sx","sy","targetX1","x","targetY1","y","targetX2","targetY2","resetViewShotWarningForTests"],"sourceRoot":"../../../src","sources":["authoring/capturePickerScreenshot.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,iBAAiB,GAAG,GAAG;AAE7B,MAAMC,yBAAyB,GAC7B,oEAAoE,GACpE,0FAA0F;AAY5F,IAAIC,sBAAsB,GAAG,KA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