@userflow-tech/react-native 0.1.1 → 0.3.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 +154 -79
- package/app.plugin.js +19 -1
- package/babel-plugin/index.d.ts +8 -8
- package/babel-plugin/index.d.ts.map +1 -1
- package/babel-plugin/index.js +70 -15
- package/babel-plugin/index.js.map +1 -1
- package/babel-plugin.js +21 -0
- package/docs/anchoring.md +141 -13
- package/docs/deep-linking.md +83 -43
- package/docs/isolation.md +75 -0
- package/docs/theme-mapping.md +44 -15
- package/docs/troubleshooting.md +73 -43
- package/docs/webview-custom-banner-poc.md +64 -0
- package/expo-plugin/withUserflow.d.ts +3 -2
- package/expo-plugin/withUserflow.d.ts.map +1 -1
- package/expo-plugin/withUserflow.js +15 -9
- package/expo-plugin/withUserflow.js.map +1 -1
- package/lib/commonjs/anchors/AutoAnchorRegistry.js +150 -2
- package/lib/commonjs/anchors/AutoAnchorRegistry.js.map +1 -1
- package/lib/commonjs/anchors/anchorChangeTicker.js +10 -0
- package/lib/commonjs/anchors/anchorChangeTicker.js.map +1 -1
- package/lib/commonjs/anchors/elementConditionEvaluator.js +25 -12
- package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js +11 -47
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js.map +1 -1
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +50 -0
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -0
- package/lib/commonjs/anchors/fiber/fiberInternals.js +145 -3
- package/lib/commonjs/anchors/fiber/fiberInternals.js.map +1 -1
- package/lib/commonjs/anchors/fiber/fiberPath.js +122 -0
- package/lib/commonjs/anchors/fiber/fiberPath.js.map +1 -0
- package/lib/commonjs/anchors/fiber/findAnchorFiber.js +60 -50
- package/lib/commonjs/anchors/fiber/findAnchorFiber.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/fiber/resolveFiberPath.js +220 -0
- package/lib/commonjs/anchors/fiber/resolveFiberPath.js.map +1 -0
- package/lib/commonjs/anchors/fiber/visibleRect.js +147 -0
- package/lib/commonjs/anchors/fiber/visibleRect.js.map +1 -0
- package/lib/commonjs/anchors/fiber/visibleScreens.js +73 -36
- package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -1
- package/lib/commonjs/anchors/fiber/walkVisibleFibers.js +66 -0
- package/lib/commonjs/anchors/fiber/walkVisibleFibers.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/isInstanceOnVisibleScreen.js +51 -0
- package/lib/commonjs/anchors/isInstanceOnVisibleScreen.js.map +1 -0
- package/lib/commonjs/anchors/resolveAnchorHost.js +15 -21
- package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js +178 -0
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -0
- package/lib/commonjs/anchors/semanticMatcher.js +303 -0
- package/lib/commonjs/anchors/semanticMatcher.js.map +1 -0
- package/lib/commonjs/anonymousId.js +4 -1
- package/lib/commonjs/anonymousId.js.map +1 -1
- package/lib/commonjs/authoring/ElementPickerOverlay.js +566 -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 +86 -0
- package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js.map +1 -0
- package/lib/commonjs/authoring/chrome/ChromeButton.js +99 -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 +43 -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 +123 -0
- package/lib/commonjs/authoring/chrome/ChromeTopBar.js.map +1 -0
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js +64 -0
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js.map +1 -0
- package/lib/commonjs/authoring/chrome/doubleTapMonitor.js +90 -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/circle-exclamation.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/triangle-exclamation.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
- package/lib/commonjs/authoring/chrome/icons/triangle-exclamation@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 +151 -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 +395 -0
- package/lib/commonjs/authoring/fingerprintFromInstance.js.map +1 -0
- package/lib/commonjs/authoring/hitTest.js +354 -0
- package/lib/commonjs/authoring/hitTest.js.map +1 -0
- package/lib/commonjs/authoring/hostAtPoint.js +204 -0
- package/lib/commonjs/authoring/hostAtPoint.js.map +1 -0
- package/lib/commonjs/content/BannerStepButton.js +68 -0
- package/lib/commonjs/content/BannerStepButton.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/buttonAppearance.js +16 -0
- package/lib/commonjs/content/buttonAppearance.js.map +1 -1
- package/lib/commonjs/content/resolveBannerButtonChrome.js +44 -0
- package/lib/commonjs/content/resolveBannerButtonChrome.js.map +1 -0
- package/lib/commonjs/content/resolveStepButtonChrome.js +8 -6
- package/lib/commonjs/content/resolveStepButtonChrome.js.map +1 -1
- package/lib/commonjs/content/themeColor.js +26 -0
- package/lib/commonjs/content/themeColor.js.map +1 -1
- package/lib/commonjs/deepLinking.js +4 -4
- package/lib/commonjs/deviceContext.js +158 -0
- package/lib/commonjs/deviceContext.js.map +1 -0
- package/lib/commonjs/evalJs/EvalJsHost.js +244 -0
- package/lib/commonjs/evalJs/EvalJsHost.js.map +1 -0
- package/lib/commonjs/evalJs/bootstrap.js +84 -0
- package/lib/commonjs/evalJs/bootstrap.js.map +1 -0
- package/lib/commonjs/evalJs/bridgeMessages.js +143 -0
- package/lib/commonjs/evalJs/bridgeMessages.js.map +1 -0
- package/lib/commonjs/evalJs/evalJsBridge.js +31 -0
- package/lib/commonjs/evalJs/evalJsBridge.js.map +1 -0
- package/lib/commonjs/evalJs/evalJsController.js +124 -0
- package/lib/commonjs/evalJs/evalJsController.js.map +1 -0
- package/lib/commonjs/evalJs/getWebView.js +81 -0
- package/lib/commonjs/evalJs/getWebView.js.map +1 -0
- package/lib/commonjs/evalJs/injectEvalPending.js +19 -0
- package/lib/commonjs/evalJs/injectEvalPending.js.map +1 -0
- package/lib/commonjs/evalJs/types.js +2 -0
- package/lib/commonjs/evalJs/types.js.map +1 -0
- package/lib/commonjs/evalJs/useEvalJsWebViewInjection.js +40 -0
- package/lib/commonjs/evalJs/useEvalJsWebViewInjection.js.map +1 -0
- package/lib/commonjs/expo-router/index.js +19 -0
- package/lib/commonjs/expo-router/index.js.map +1 -1
- package/lib/commonjs/expo-router/redirectSystemPath.js +75 -0
- package/lib/commonjs/expo-router/redirectSystemPath.js.map +1 -0
- package/lib/commonjs/expo-router/useUserflowExpoRouter.js +42 -6
- 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 +214 -26
- 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 +22 -10
- 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/navigation/openFlowNavigateUrl.js +12 -5
- package/lib/commonjs/navigation/openFlowNavigateUrl.js.map +1 -1
- package/lib/commonjs/pairing/PairingController.js +272 -27
- package/lib/commonjs/pairing/PairingController.js.map +1 -1
- package/lib/commonjs/pairing/PreviewModeBanner.js +250 -84
- package/lib/commonjs/pairing/PreviewModeBanner.js.map +1 -1
- package/lib/commonjs/pairing/deepLink.js +22 -5
- package/lib/commonjs/pairing/deepLink.js.map +1 -1
- package/lib/commonjs/pairing/deviceId.js +47 -0
- package/lib/commonjs/pairing/deviceId.js.map +1 -0
- package/lib/commonjs/pairing/diagnostics.js +14 -4
- 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 +72 -9
- package/lib/commonjs/pairing/tokenStorage.js.map +1 -1
- package/lib/commonjs/pairing/usePairingState.js +5 -1
- package/lib/commonjs/pairing/usePairingState.js.map +1 -1
- package/lib/commonjs/pairing/usePreviewBarHold.js +139 -0
- package/lib/commonjs/pairing/usePreviewBarHold.js.map +1 -0
- package/lib/commonjs/runtime/BannerHost.js +96 -0
- package/lib/commonjs/runtime/BannerHost.js.map +1 -0
- package/lib/commonjs/runtime/EmbedBannerPlaceholder.js +99 -0
- package/lib/commonjs/runtime/EmbedBannerPlaceholder.js.map +1 -0
- 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/SdkErrorBoundary.js +61 -0
- package/lib/commonjs/runtime/SdkErrorBoundary.js.map +1 -0
- package/lib/commonjs/runtime/TargetPressBridge.js +27 -51
- package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -1
- package/lib/commonjs/runtime/UserflowOverlay.js +97 -0
- package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -0
- package/lib/commonjs/runtime/UserflowProvider.js +154 -30
- package/lib/commonjs/runtime/UserflowProvider.js.map +1 -1
- package/lib/commonjs/runtime/bannerEngine.js +63 -0
- package/lib/commonjs/runtime/bannerEngine.js.map +1 -0
- package/lib/commonjs/runtime/bannerEngineContext.js +11 -0
- package/lib/commonjs/runtime/bannerEngineContext.js.map +1 -0
- package/lib/commonjs/runtime/bannerPlacement.js +37 -0
- package/lib/commonjs/runtime/bannerPlacement.js.map +1 -0
- package/lib/commonjs/runtime/changedTouchPoints.js +48 -0
- package/lib/commonjs/runtime/changedTouchPoints.js.map +1 -0
- package/lib/commonjs/runtime/embedBannerRegistry.js +30 -0
- package/lib/commonjs/runtime/embedBannerRegistry.js.map +1 -0
- package/lib/commonjs/runtime/flowEngine.js +78 -4
- 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/isolateCall.js +48 -0
- package/lib/commonjs/runtime/isolateCall.js.map +1 -0
- package/lib/commonjs/runtime/reportSdkError.js +19 -0
- package/lib/commonjs/runtime/reportSdkError.js.map +1 -0
- package/lib/commonjs/runtime/useBannerSession.js +37 -0
- package/lib/commonjs/runtime/useBannerSession.js.map +1 -0
- package/lib/commonjs/runtime/useFlowSessionState.js +2 -1
- package/lib/commonjs/runtime/useFlowSessionState.js.map +1 -1
- package/lib/commonjs/screenTracker.js +72 -5
- package/lib/commonjs/screenTracker.js.map +1 -1
- package/lib/commonjs/surfaces/BannerBar.js +160 -0
- package/lib/commonjs/surfaces/BannerBar.js.map +1 -0
- package/lib/commonjs/surfaces/BannerSurface.js +78 -0
- package/lib/commonjs/surfaces/BannerSurface.js.map +1 -0
- 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/MadeWithUserflow.js +12 -8
- package/lib/commonjs/surfaces/MadeWithUserflow.js.map +1 -1
- package/lib/commonjs/surfaces/ModalSurface.js +51 -35
- package/lib/commonjs/surfaces/ModalSurface.js.map +1 -1
- package/lib/commonjs/surfaces/TooltipSurface.js +383 -88
- package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
- package/lib/commonjs/surfaces/bannerBarLayout.js +88 -0
- package/lib/commonjs/surfaces/bannerBarLayout.js.map +1 -0
- package/lib/commonjs/surfaces/bannerBarTokens.js +42 -0
- package/lib/commonjs/surfaces/bannerBarTokens.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js +277 -0
- package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunEvalJs.js +46 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunEvalJs.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunSession.js +26 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunSession.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js +41 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js +74 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerWebFrameCss.js +152 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerWebFrameCss.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js +148 -0
- package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/buttonClassName.js +13 -0
- package/lib/commonjs/surfaces/bannerWebView/buttonClassName.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/resolveCdnHost.js +49 -0
- package/lib/commonjs/surfaces/bannerWebView/resolveCdnHost.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/richContentDocToHtml.js +83 -0
- package/lib/commonjs/surfaces/bannerWebView/richContentDocToHtml.js.map +1 -0
- package/lib/commonjs/surfaces/cardTransition.js +70 -0
- package/lib/commonjs/surfaces/cardTransition.js.map +1 -0
- package/lib/commonjs/surfaces/resolveBannerTheme.js +22 -0
- package/lib/commonjs/surfaces/resolveBannerTheme.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/safeArea.js +23 -0
- package/lib/commonjs/surfaces/safeArea.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 +151 -2
- package/lib/module/anchors/AutoAnchorRegistry.js.map +1 -1
- package/lib/module/anchors/anchorChangeTicker.js +10 -0
- package/lib/module/anchors/anchorChangeTicker.js.map +1 -1
- package/lib/module/anchors/elementConditionEvaluator.js +25 -12
- package/lib/module/anchors/elementConditionEvaluator.js.map +1 -1
- package/lib/module/anchors/fiber/FiberScanRoot.js +2 -43
- package/lib/module/anchors/fiber/FiberScanRoot.js.map +1 -1
- package/lib/module/anchors/fiber/FiberScanRootStore.js +46 -0
- package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -0
- package/lib/module/anchors/fiber/fiberInternals.js +139 -3
- package/lib/module/anchors/fiber/fiberInternals.js.map +1 -1
- package/lib/module/anchors/fiber/fiberPath.js +118 -0
- package/lib/module/anchors/fiber/fiberPath.js.map +1 -0
- package/lib/module/anchors/fiber/findAnchorFiber.js +60 -50
- package/lib/module/anchors/fiber/findAnchorFiber.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/fiber/resolveFiberPath.js +215 -0
- package/lib/module/anchors/fiber/resolveFiberPath.js.map +1 -0
- package/lib/module/anchors/fiber/visibleRect.js +139 -0
- package/lib/module/anchors/fiber/visibleRect.js.map +1 -0
- package/lib/module/anchors/fiber/visibleScreens.js +73 -37
- package/lib/module/anchors/fiber/visibleScreens.js.map +1 -1
- package/lib/module/anchors/fiber/walkVisibleFibers.js +61 -0
- package/lib/module/anchors/fiber/walkVisibleFibers.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/isInstanceOnVisibleScreen.js +46 -0
- package/lib/module/anchors/isInstanceOnVisibleScreen.js.map +1 -0
- package/lib/module/anchors/resolveAnchorHost.js +15 -21
- package/lib/module/anchors/resolveAnchorHost.js.map +1 -1
- package/lib/module/anchors/resolveAutoAnchorHost.js +174 -0
- package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -0
- package/lib/module/anchors/semanticMatcher.js +297 -0
- package/lib/module/anchors/semanticMatcher.js.map +1 -0
- package/lib/module/anonymousId.js +4 -2
- package/lib/module/anonymousId.js.map +1 -1
- package/lib/module/authoring/ElementPickerOverlay.js +561 -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 +81 -0
- package/lib/module/authoring/chrome/ChromeBottomSheet.js.map +1 -0
- package/lib/module/authoring/chrome/ChromeButton.js +94 -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 +37 -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 +117 -0
- package/lib/module/authoring/chrome/ChromeTopBar.js.map +1 -0
- package/lib/module/authoring/chrome/DoubleTapBridge.js +59 -0
- package/lib/module/authoring/chrome/DoubleTapBridge.js.map +1 -0
- package/lib/module/authoring/chrome/doubleTapMonitor.js +85 -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/circle-exclamation.png +0 -0
- package/lib/module/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
- package/lib/module/authoring/chrome/icons/triangle-exclamation.png +0 -0
- package/lib/module/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
- package/lib/module/authoring/chrome/icons/triangle-exclamation@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 +147 -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 +381 -0
- package/lib/module/authoring/fingerprintFromInstance.js.map +1 -0
- package/lib/module/authoring/hitTest.js +346 -0
- package/lib/module/authoring/hitTest.js.map +1 -0
- package/lib/module/authoring/hostAtPoint.js +199 -0
- package/lib/module/authoring/hostAtPoint.js.map +1 -0
- package/lib/module/content/BannerStepButton.js +63 -0
- package/lib/module/content/BannerStepButton.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/buttonAppearance.js +14 -0
- package/lib/module/content/buttonAppearance.js.map +1 -1
- package/lib/module/content/resolveBannerButtonChrome.js +41 -0
- package/lib/module/content/resolveBannerButtonChrome.js.map +1 -0
- package/lib/module/content/resolveStepButtonChrome.js +8 -6
- package/lib/module/content/resolveStepButtonChrome.js.map +1 -1
- package/lib/module/content/themeColor.js +24 -0
- package/lib/module/content/themeColor.js.map +1 -1
- package/lib/module/deepLinking.js +4 -4
- package/lib/module/deviceContext.js +142 -0
- package/lib/module/deviceContext.js.map +1 -0
- package/lib/module/evalJs/EvalJsHost.js +239 -0
- package/lib/module/evalJs/EvalJsHost.js.map +1 -0
- package/lib/module/evalJs/bootstrap.js +76 -0
- package/lib/module/evalJs/bootstrap.js.map +1 -0
- package/lib/module/evalJs/bridgeMessages.js +139 -0
- package/lib/module/evalJs/bridgeMessages.js.map +1 -0
- package/lib/module/evalJs/evalJsBridge.js +25 -0
- package/lib/module/evalJs/evalJsBridge.js.map +1 -0
- package/lib/module/evalJs/evalJsController.js +119 -0
- package/lib/module/evalJs/evalJsController.js.map +1 -0
- package/lib/module/evalJs/getWebView.js +76 -0
- package/lib/module/evalJs/getWebView.js.map +1 -0
- package/lib/module/evalJs/injectEvalPending.js +15 -0
- package/lib/module/evalJs/injectEvalPending.js.map +1 -0
- package/lib/module/evalJs/types.js +2 -0
- package/lib/module/evalJs/types.js.map +1 -0
- package/lib/module/evalJs/useEvalJsWebViewInjection.js +35 -0
- package/lib/module/evalJs/useEvalJsWebViewInjection.js.map +1 -0
- package/lib/module/expo-router/index.js +1 -0
- package/lib/module/expo-router/index.js.map +1 -1
- package/lib/module/expo-router/redirectSystemPath.js +70 -0
- package/lib/module/expo-router/redirectSystemPath.js.map +1 -0
- package/lib/module/expo-router/useUserflowExpoRouter.js +44 -8
- 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 +211 -29
- 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 +23 -11
- 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/navigation/openFlowNavigateUrl.js +12 -5
- package/lib/module/navigation/openFlowNavigateUrl.js.map +1 -1
- package/lib/module/pairing/PairingController.js +273 -28
- package/lib/module/pairing/PairingController.js.map +1 -1
- package/lib/module/pairing/PreviewModeBanner.js +250 -85
- package/lib/module/pairing/PreviewModeBanner.js.map +1 -1
- package/lib/module/pairing/deepLink.js +21 -5
- package/lib/module/pairing/deepLink.js.map +1 -1
- package/lib/module/pairing/deviceId.js +41 -0
- package/lib/module/pairing/deviceId.js.map +1 -0
- package/lib/module/pairing/diagnostics.js +13 -4
- 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 +71 -9
- package/lib/module/pairing/tokenStorage.js.map +1 -1
- package/lib/module/pairing/usePairingState.js +5 -1
- package/lib/module/pairing/usePairingState.js.map +1 -1
- package/lib/module/pairing/usePreviewBarHold.js +134 -0
- package/lib/module/pairing/usePreviewBarHold.js.map +1 -0
- package/lib/module/runtime/BannerHost.js +92 -0
- package/lib/module/runtime/BannerHost.js.map +1 -0
- package/lib/module/runtime/EmbedBannerPlaceholder.js +94 -0
- package/lib/module/runtime/EmbedBannerPlaceholder.js.map +1 -0
- 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/SdkErrorBoundary.js +55 -0
- package/lib/module/runtime/SdkErrorBoundary.js.map +1 -0
- package/lib/module/runtime/TargetPressBridge.js +27 -51
- package/lib/module/runtime/TargetPressBridge.js.map +1 -1
- package/lib/module/runtime/UserflowOverlay.js +92 -0
- package/lib/module/runtime/UserflowOverlay.js.map +1 -0
- package/lib/module/runtime/UserflowProvider.js +155 -31
- package/lib/module/runtime/UserflowProvider.js.map +1 -1
- package/lib/module/runtime/bannerEngine.js +55 -0
- package/lib/module/runtime/bannerEngine.js.map +1 -0
- package/lib/module/runtime/bannerEngineContext.js +7 -0
- package/lib/module/runtime/bannerEngineContext.js.map +1 -0
- package/lib/module/runtime/bannerPlacement.js +30 -0
- package/lib/module/runtime/bannerPlacement.js.map +1 -0
- package/lib/module/runtime/changedTouchPoints.js +43 -0
- package/lib/module/runtime/changedTouchPoints.js.map +1 -0
- package/lib/module/runtime/embedBannerRegistry.js +24 -0
- package/lib/module/runtime/embedBannerRegistry.js.map +1 -0
- package/lib/module/runtime/flowEngine.js +75 -4
- 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/isolateCall.js +43 -0
- package/lib/module/runtime/isolateCall.js.map +1 -0
- package/lib/module/runtime/reportSdkError.js +15 -0
- package/lib/module/runtime/reportSdkError.js.map +1 -0
- package/lib/module/runtime/useBannerSession.js +33 -0
- package/lib/module/runtime/useBannerSession.js.map +1 -0
- package/lib/module/runtime/useFlowSessionState.js +2 -1
- package/lib/module/runtime/useFlowSessionState.js.map +1 -1
- package/lib/module/screenTracker.js +67 -5
- package/lib/module/screenTracker.js.map +1 -1
- package/lib/module/surfaces/BannerBar.js +155 -0
- package/lib/module/surfaces/BannerBar.js.map +1 -0
- package/lib/module/surfaces/BannerSurface.js +72 -0
- package/lib/module/surfaces/BannerSurface.js.map +1 -0
- 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/MadeWithUserflow.js +11 -7
- package/lib/module/surfaces/MadeWithUserflow.js.map +1 -1
- package/lib/module/surfaces/ModalSurface.js +53 -37
- package/lib/module/surfaces/ModalSurface.js.map +1 -1
- package/lib/module/surfaces/TooltipSurface.js +385 -91
- package/lib/module/surfaces/TooltipSurface.js.map +1 -1
- package/lib/module/surfaces/bannerBarLayout.js +69 -0
- package/lib/module/surfaces/bannerBarLayout.js.map +1 -0
- package/lib/module/surfaces/bannerBarTokens.js +37 -0
- package/lib/module/surfaces/bannerBarTokens.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js +272 -0
- package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/bannerAutoRunEvalJs.js +42 -0
- package/lib/module/surfaces/bannerWebView/bannerAutoRunEvalJs.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/bannerAutoRunSession.js +19 -0
- package/lib/module/surfaces/bannerWebView/bannerAutoRunSession.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js +35 -0
- package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js +69 -0
- package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/bannerWebFrameCss.js +148 -0
- package/lib/module/surfaces/bannerWebView/bannerWebFrameCss.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js +143 -0
- package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/buttonClassName.js +9 -0
- package/lib/module/surfaces/bannerWebView/buttonClassName.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/resolveCdnHost.js +42 -0
- package/lib/module/surfaces/bannerWebView/resolveCdnHost.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/richContentDocToHtml.js +79 -0
- package/lib/module/surfaces/bannerWebView/richContentDocToHtml.js.map +1 -0
- package/lib/module/surfaces/cardTransition.js +64 -0
- package/lib/module/surfaces/cardTransition.js.map +1 -0
- package/lib/module/surfaces/resolveBannerTheme.js +16 -0
- package/lib/module/surfaces/resolveBannerTheme.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/safeArea.js +22 -0
- package/lib/module/surfaces/safeArea.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 +40 -0
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts +2 -0
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts +14 -10
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts +42 -1
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/fiberPath.d.ts +12 -0
- package/lib/typescript/commonjs/src/anchors/fiber/fiberPath.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts +5 -4
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.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/fiber/resolveFiberPath.d.ts +24 -0
- package/lib/typescript/commonjs/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts +32 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +6 -1
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/walkVisibleFibers.d.ts +20 -0
- package/lib/typescript/commonjs/src/anchors/fiber/walkVisibleFibers.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/isInstanceOnVisibleScreen.d.ts +19 -0
- package/lib/typescript/commonjs/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +5 -5
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts +50 -0
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anonymousId.d.ts +1 -0
- package/lib/typescript/commonjs/src/anonymousId.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +8 -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 +24 -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 +33 -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 +31 -0
- package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts +142 -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 +58 -0
- package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts +81 -0
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +75 -0
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts +7 -0
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts +14 -0
- package/lib/typescript/commonjs/src/content/BannerStepButton.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/buttonAppearance.d.ts +4 -0
- package/lib/typescript/commonjs/src/content/buttonAppearance.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/resolveBannerButtonChrome.d.ts +8 -0
- package/lib/typescript/commonjs/src/content/resolveBannerButtonChrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/resolveStepButtonChrome.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/themeColor.d.ts +7 -0
- package/lib/typescript/commonjs/src/content/themeColor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/types.d.ts +1 -0
- package/lib/typescript/commonjs/src/content/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/deepLinking.d.ts +4 -4
- 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/evalJs/EvalJsHost.d.ts +14 -0
- package/lib/typescript/commonjs/src/evalJs/EvalJsHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/bootstrap.d.ts +18 -0
- package/lib/typescript/commonjs/src/evalJs/bootstrap.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/bridgeMessages.d.ts +37 -0
- package/lib/typescript/commonjs/src/evalJs/bridgeMessages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/evalJsBridge.d.ts +16 -0
- package/lib/typescript/commonjs/src/evalJs/evalJsBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/evalJsController.d.ts +24 -0
- package/lib/typescript/commonjs/src/evalJs/evalJsController.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts +64 -0
- package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/injectEvalPending.d.ts +4 -0
- package/lib/typescript/commonjs/src/evalJs/injectEvalPending.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/types.d.ts +53 -0
- package/lib/typescript/commonjs/src/evalJs/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/evalJs/useEvalJsWebViewInjection.d.ts +12 -0
- package/lib/typescript/commonjs/src/evalJs/useEvalJsWebViewInjection.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/expo-router/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/expo-router/redirectSystemPath.d.ts +50 -0
- package/lib/typescript/commonjs/src/expo-router/redirectSystemPath.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts +2 -2
- 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 +69 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/lifecycle.d.ts +10 -1
- 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/navigation/openFlowNavigateUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +78 -4
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts +14 -1
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/deepLink.d.ts +6 -2
- package/lib/typescript/commonjs/src/pairing/deepLink.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/deviceId.d.ts +12 -0
- package/lib/typescript/commonjs/src/pairing/deviceId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts +8 -2
- 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 +16 -2
- 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/pairing/usePreviewBarHold.d.ts +19 -0
- package/lib/typescript/commonjs/src/pairing/usePreviewBarHold.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/BannerHost.d.ts +16 -0
- package/lib/typescript/commonjs/src/runtime/BannerHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/EmbedBannerPlaceholder.d.ts +18 -0
- package/lib/typescript/commonjs/src/runtime/EmbedBannerPlaceholder.d.ts.map +1 -0
- 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/SdkErrorBoundary.d.ts +34 -0
- package/lib/typescript/commonjs/src/runtime/SdkErrorBoundary.d.ts.map +1 -0
- 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/UserflowOverlay.d.ts +15 -0
- package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts +15 -7
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts +12 -0
- package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/bannerEngineContext.d.ts +5 -0
- package/lib/typescript/commonjs/src/runtime/bannerEngineContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/bannerPlacement.d.ts +12 -0
- package/lib/typescript/commonjs/src/runtime/bannerPlacement.d.ts.map +1 -0
- 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/embedBannerRegistry.d.ts +5 -0
- package/lib/typescript/commonjs/src/runtime/embedBannerRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts +25 -1
- 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/isolateCall.d.ts +20 -0
- package/lib/typescript/commonjs/src/runtime/isolateCall.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/reportSdkError.d.ts +10 -0
- package/lib/typescript/commonjs/src/runtime/reportSdkError.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/useBannerSession.d.ts +5 -0
- package/lib/typescript/commonjs/src/runtime/useBannerSession.d.ts.map +1 -0
- 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 +26 -4
- package/lib/typescript/commonjs/src/screenTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts +14 -0
- package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts +15 -0
- package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -0
- 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 +10 -6
- package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts.map +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/bannerBarLayout.d.ts +15 -0
- package/lib/typescript/commonjs/src/surfaces/bannerBarLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerBarTokens.d.ts +20 -0
- package/lib/typescript/commonjs/src/surfaces/bannerBarTokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +10 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts +7 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts +6 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +13 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts +5 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts +6 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts +9 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/buttonClassName.d.ts +3 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/buttonClassName.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/resolveCdnHost.d.ts +10 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/resolveCdnHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/richContentDocToHtml.d.ts +3 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/richContentDocToHtml.d.ts.map +1 -0
- 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/resolveBannerTheme.d.ts +7 -0
- package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.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/safeArea.d.ts +6 -0
- package/lib/typescript/commonjs/src/surfaces/safeArea.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 +40 -0
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts +2 -0
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts +14 -10
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts +42 -1
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/fiberPath.d.ts +12 -0
- package/lib/typescript/module/src/anchors/fiber/fiberPath.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts +5 -4
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.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/fiber/resolveFiberPath.d.ts +24 -0
- package/lib/typescript/module/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts +32 -0
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +6 -1
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/walkVisibleFibers.d.ts +20 -0
- package/lib/typescript/module/src/anchors/fiber/walkVisibleFibers.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/isInstanceOnVisibleScreen.d.ts +19 -0
- package/lib/typescript/module/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +5 -5
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts +50 -0
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts.map +1 -0
- package/lib/typescript/module/src/anonymousId.d.ts +1 -0
- package/lib/typescript/module/src/anonymousId.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +8 -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 +24 -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 +33 -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 +31 -0
- package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/chrome/tokens.d.ts +142 -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 +58 -0
- package/lib/typescript/module/src/authoring/elementPickerController.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts +81 -0
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/hitTest.d.ts +75 -0
- package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -0
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts +7 -0
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts.map +1 -0
- package/lib/typescript/module/src/content/BannerStepButton.d.ts +14 -0
- package/lib/typescript/module/src/content/BannerStepButton.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/buttonAppearance.d.ts +4 -0
- package/lib/typescript/module/src/content/buttonAppearance.d.ts.map +1 -1
- package/lib/typescript/module/src/content/resolveBannerButtonChrome.d.ts +8 -0
- package/lib/typescript/module/src/content/resolveBannerButtonChrome.d.ts.map +1 -0
- package/lib/typescript/module/src/content/resolveStepButtonChrome.d.ts.map +1 -1
- package/lib/typescript/module/src/content/themeColor.d.ts +7 -0
- package/lib/typescript/module/src/content/themeColor.d.ts.map +1 -1
- package/lib/typescript/module/src/content/types.d.ts +1 -0
- package/lib/typescript/module/src/content/types.d.ts.map +1 -1
- package/lib/typescript/module/src/deepLinking.d.ts +4 -4
- 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/evalJs/EvalJsHost.d.ts +14 -0
- package/lib/typescript/module/src/evalJs/EvalJsHost.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/bootstrap.d.ts +18 -0
- package/lib/typescript/module/src/evalJs/bootstrap.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/bridgeMessages.d.ts +37 -0
- package/lib/typescript/module/src/evalJs/bridgeMessages.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/evalJsBridge.d.ts +16 -0
- package/lib/typescript/module/src/evalJs/evalJsBridge.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/evalJsController.d.ts +24 -0
- package/lib/typescript/module/src/evalJs/evalJsController.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/getWebView.d.ts +64 -0
- package/lib/typescript/module/src/evalJs/getWebView.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/injectEvalPending.d.ts +4 -0
- package/lib/typescript/module/src/evalJs/injectEvalPending.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/types.d.ts +53 -0
- package/lib/typescript/module/src/evalJs/types.d.ts.map +1 -0
- package/lib/typescript/module/src/evalJs/useEvalJsWebViewInjection.d.ts +12 -0
- package/lib/typescript/module/src/evalJs/useEvalJsWebViewInjection.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/index.d.ts +1 -0
- package/lib/typescript/module/src/expo-router/index.d.ts.map +1 -1
- package/lib/typescript/module/src/expo-router/redirectSystemPath.d.ts +50 -0
- package/lib/typescript/module/src/expo-router/redirectSystemPath.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts +2 -2
- 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 +69 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/lifecycle.d.ts +10 -1
- 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/navigation/openFlowNavigateUrl.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts +78 -4
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts +14 -1
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/deepLink.d.ts +6 -2
- package/lib/typescript/module/src/pairing/deepLink.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/deviceId.d.ts +12 -0
- package/lib/typescript/module/src/pairing/deviceId.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/diagnostics.d.ts +8 -2
- 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 +16 -2
- 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/pairing/usePreviewBarHold.d.ts +19 -0
- package/lib/typescript/module/src/pairing/usePreviewBarHold.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/BannerHost.d.ts +16 -0
- package/lib/typescript/module/src/runtime/BannerHost.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/EmbedBannerPlaceholder.d.ts +18 -0
- package/lib/typescript/module/src/runtime/EmbedBannerPlaceholder.d.ts.map +1 -0
- 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/SdkErrorBoundary.d.ts +34 -0
- package/lib/typescript/module/src/runtime/SdkErrorBoundary.d.ts.map +1 -0
- 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/UserflowOverlay.d.ts +15 -0
- package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts +15 -7
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/bannerEngine.d.ts +12 -0
- package/lib/typescript/module/src/runtime/bannerEngine.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/bannerEngineContext.d.ts +5 -0
- package/lib/typescript/module/src/runtime/bannerEngineContext.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/bannerPlacement.d.ts +12 -0
- package/lib/typescript/module/src/runtime/bannerPlacement.d.ts.map +1 -0
- 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/embedBannerRegistry.d.ts +5 -0
- package/lib/typescript/module/src/runtime/embedBannerRegistry.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/flowEngine.d.ts +25 -1
- 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/isolateCall.d.ts +20 -0
- package/lib/typescript/module/src/runtime/isolateCall.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/reportSdkError.d.ts +10 -0
- package/lib/typescript/module/src/runtime/reportSdkError.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/useBannerSession.d.ts +5 -0
- package/lib/typescript/module/src/runtime/useBannerSession.d.ts.map +1 -0
- 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 +26 -4
- package/lib/typescript/module/src/screenTracker.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/BannerBar.d.ts +14 -0
- package/lib/typescript/module/src/surfaces/BannerBar.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/BannerSurface.d.ts +15 -0
- package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -0
- 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 +10 -6
- package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts.map +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/bannerBarLayout.d.ts +15 -0
- package/lib/typescript/module/src/surfaces/bannerBarLayout.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerBarTokens.d.ts +20 -0
- package/lib/typescript/module/src/surfaces/bannerBarTokens.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +10 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts +7 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts +6 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +13 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts +5 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts +6 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts +9 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/buttonClassName.d.ts +3 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/buttonClassName.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/resolveCdnHost.d.ts +10 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/resolveCdnHost.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/richContentDocToHtml.d.ts +3 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/richContentDocToHtml.d.ts.map +1 -0
- 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/resolveBannerTheme.d.ts +7 -0
- package/lib/typescript/module/src/surfaces/resolveBannerTheme.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/safeArea.d.ts +6 -0
- package/lib/typescript/module/src/surfaces/safeArea.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 +24 -17
- package/src/anchors/AutoAnchorRegistry.ts +169 -2
- package/src/anchors/anchorChangeTicker.ts +10 -0
- package/src/anchors/elementConditionEvaluator.ts +29 -16
- package/src/anchors/fiber/FiberScanRoot.tsx +2 -50
- package/src/anchors/fiber/FiberScanRootStore.ts +51 -0
- package/src/anchors/fiber/fiberInternals.ts +166 -3
- package/src/anchors/fiber/fiberPath.ts +117 -0
- package/src/anchors/fiber/findAnchorFiber.ts +57 -47
- package/src/anchors/fiber/indexHostFibers.ts +136 -0
- package/src/anchors/fiber/readHostContent.ts +146 -0
- package/src/anchors/fiber/resolveFiberPath.ts +215 -0
- package/src/anchors/fiber/visibleRect.ts +153 -0
- package/src/anchors/fiber/visibleScreens.ts +74 -36
- package/src/anchors/fiber/walkVisibleFibers.ts +65 -0
- package/src/anchors/fiberAnchorCache.ts +45 -0
- package/src/anchors/isInstanceOnVisibleScreen.ts +55 -0
- package/src/anchors/resolveAnchorHost.ts +23 -23
- package/src/anchors/resolveAutoAnchorHost.ts +182 -0
- package/src/anchors/semanticMatcher.ts +385 -0
- package/src/anonymousId.ts +2 -1
- package/src/authoring/ElementPickerOverlay.tsx +662 -0
- package/src/authoring/capturePickerScreenshot.ts +90 -0
- package/src/authoring/chrome/ChromeBarTransition.tsx +106 -0
- package/src/authoring/chrome/ChromeBottomSheet.tsx +110 -0
- package/src/authoring/chrome/ChromeButton.tsx +108 -0
- package/src/authoring/chrome/ChromeDialog.tsx +121 -0
- package/src/authoring/chrome/ChromeIcon.tsx +49 -0
- package/src/authoring/chrome/ChromeTooltip.tsx +89 -0
- package/src/authoring/chrome/ChromeTopBar.tsx +150 -0
- package/src/authoring/chrome/DoubleTapBridge.tsx +67 -0
- package/src/authoring/chrome/doubleTapMonitor.ts +90 -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/circle-exclamation.png +0 -0
- package/src/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
- package/src/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
- package/src/authoring/chrome/icons/triangle-exclamation.png +0 -0
- package/src/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
- package/src/authoring/chrome/icons/triangle-exclamation@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 +111 -0
- package/src/authoring/doubleTap.ts +27 -0
- package/src/authoring/elementPickerController.ts +133 -0
- package/src/authoring/fingerprintFromInstance.ts +318 -0
- package/src/authoring/hitTest.ts +441 -0
- package/src/authoring/hostAtPoint.ts +247 -0
- package/src/content/BannerStepButton.tsx +91 -0
- package/src/content/RichContentRenderer.tsx +22 -1
- package/src/content/StepButton.tsx +17 -2
- package/src/content/buttonAppearance.ts +16 -0
- package/src/content/resolveBannerButtonChrome.ts +49 -0
- package/src/content/resolveStepButtonChrome.ts +12 -6
- package/src/content/themeColor.ts +25 -0
- package/src/content/types.ts +1 -0
- package/src/deepLinking.ts +4 -4
- package/src/deviceContext.ts +168 -0
- package/src/evalJs/EvalJsHost.tsx +255 -0
- package/src/evalJs/bootstrap.ts +83 -0
- package/src/evalJs/bridgeMessages.ts +134 -0
- package/src/evalJs/evalJsBridge.ts +42 -0
- package/src/evalJs/evalJsController.ts +127 -0
- package/src/evalJs/getWebView.ts +124 -0
- package/src/evalJs/injectEvalPending.ts +14 -0
- package/src/evalJs/types.ts +56 -0
- package/src/evalJs/useEvalJsWebViewInjection.ts +37 -0
- package/src/expo-router/index.ts +8 -0
- package/src/expo-router/redirectSystemPath.ts +86 -0
- package/src/expo-router/useUserflowExpoRouter.ts +49 -6
- package/src/hostAppVersion.ts +258 -0
- package/src/index.ts +255 -27
- package/src/lifecycle.ts +12 -1
- package/src/navigation/WithUserflowReactNavigation.tsx +26 -7
- package/src/navigation/isOverlayPresentation.ts +76 -0
- package/src/navigation/openFlowNavigateUrl.ts +12 -5
- package/src/pairing/PairingController.ts +311 -28
- package/src/pairing/PreviewModeBanner.tsx +307 -94
- package/src/pairing/deepLink.ts +23 -5
- package/src/pairing/deviceId.ts +43 -0
- package/src/pairing/diagnostics.ts +14 -4
- package/src/pairing/elementPickerRelay.ts +100 -0
- package/src/pairing/resolvePreviewChrome.ts +57 -0
- package/src/pairing/tokenStorage.ts +91 -9
- package/src/pairing/usePairingState.ts +4 -0
- package/src/pairing/usePreviewBarHold.ts +160 -0
- package/src/runtime/BannerHost.tsx +102 -0
- package/src/runtime/EmbedBannerPlaceholder.tsx +115 -0
- package/src/runtime/FlowRenderer.tsx +55 -27
- package/src/runtime/FlowSurfaceFade.tsx +51 -30
- package/src/runtime/SdkErrorBoundary.tsx +77 -0
- package/src/runtime/TargetPressBridge.tsx +29 -40
- package/src/runtime/UserflowOverlay.tsx +118 -0
- package/src/runtime/UserflowProvider.tsx +162 -24
- package/src/runtime/bannerEngine.ts +55 -0
- package/src/runtime/bannerEngineContext.ts +5 -0
- package/src/runtime/bannerPlacement.ts +36 -0
- package/src/runtime/changedTouchPoints.ts +34 -0
- package/src/runtime/embedBannerRegistry.ts +28 -0
- package/src/runtime/flowEngine.ts +78 -3
- package/src/runtime/flowSessionViewState.ts +42 -4
- package/src/runtime/isolateCall.ts +53 -0
- package/src/runtime/reportSdkError.ts +12 -0
- package/src/runtime/useBannerSession.ts +35 -0
- package/src/runtime/useFlowSessionState.ts +2 -0
- package/src/screenTracker.ts +73 -5
- package/src/surfaces/BannerBar.tsx +176 -0
- package/src/surfaces/BannerSurface.tsx +82 -0
- package/src/surfaces/CardFade.tsx +18 -0
- package/src/surfaces/CloseButton.tsx +17 -7
- package/src/surfaces/MadeWithUserflow.tsx +15 -10
- package/src/surfaces/ModalSurface.tsx +49 -36
- package/src/surfaces/TooltipSurface.tsx +423 -87
- package/src/surfaces/bannerBarLayout.ts +74 -0
- package/src/surfaces/bannerBarTokens.ts +34 -0
- package/src/surfaces/bannerWebView/BannerWebViewBar.tsx +312 -0
- package/src/surfaces/bannerWebView/bannerAutoRunEvalJs.ts +44 -0
- package/src/surfaces/bannerWebView/bannerAutoRunSession.ts +19 -0
- package/src/surfaces/bannerWebView/bannerNeedsWebView.ts +38 -0
- package/src/surfaces/bannerWebView/bannerThemeStyles.ts +91 -0
- package/src/surfaces/bannerWebView/bannerWebFrameCss.ts +145 -0
- package/src/surfaces/bannerWebView/buildCustomBannerHtml.ts +178 -0
- package/src/surfaces/bannerWebView/buttonClassName.ts +15 -0
- package/src/surfaces/bannerWebView/resolveCdnHost.ts +47 -0
- package/src/surfaces/bannerWebView/richContentDocToHtml.ts +99 -0
- package/src/surfaces/cardTransition.ts +67 -0
- package/src/surfaces/resolveBannerTheme.ts +18 -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/safeArea.ts +29 -0
- package/src/surfaces/surfaceInteractionConfig.ts +25 -0
- package/src/surfaces/surfaceLayoutInsets.tsx +135 -0
- package/src/surfaces/themeChrome.ts +5 -3
- package/src/surfaces/tooltip/TooltipBubble.tsx +154 -19
- package/src/surfaces/tooltip/TooltipCutout.tsx +106 -49
- package/src/surfaces/tooltip/TooltipHighlight.tsx +144 -0
- package/src/surfaces/tooltip/computeTooltipPosition.ts +98 -12
- package/src/surfaces/tooltip/inferTooltipPlacement.ts +107 -18
- package/src/surfaces/tooltip/placementDiagnostics.ts +70 -0
- package/src/surfaces/tooltip/rect.ts +11 -0
- package/src/surfaces/tooltip/resolveSideCardWidth.ts +121 -0
- package/src/version.ts +1 -1
- package/vendor/core/dist/attributes.d.ts +1 -2
- package/vendor/core/dist/attributes.d.ts.map +1 -1
- package/vendor/core/dist/attributes.js +4 -4
- package/vendor/core/dist/attributes.js.map +1 -1
- package/vendor/core/dist/engine/BannerSessionEngine.d.ts +73 -0
- package/vendor/core/dist/engine/BannerSessionEngine.d.ts.map +1 -0
- package/vendor/core/dist/engine/BannerSessionEngine.js +236 -0
- package/vendor/core/dist/engine/BannerSessionEngine.js.map +1 -0
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts +109 -1
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/FlowSessionEngine.js +417 -17
- package/vendor/core/dist/engine/FlowSessionEngine.js.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.d.ts +82 -3
- package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.js +122 -11
- package/vendor/core/dist/engine/PairingEngine.js.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts +33 -5
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +107 -24
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/engine/conditionOperators.d.ts +16 -0
- package/vendor/core/dist/engine/conditionOperators.d.ts.map +1 -0
- package/vendor/core/dist/engine/conditionOperators.js +168 -0
- package/vendor/core/dist/engine/conditionOperators.js.map +1 -0
- package/vendor/core/dist/engine/handleActions.d.ts +43 -6
- package/vendor/core/dist/engine/handleActions.d.ts.map +1 -1
- package/vendor/core/dist/engine/handleActions.js +145 -15
- package/vendor/core/dist/engine/handleActions.js.map +1 -1
- package/vendor/core/dist/engine/simpleObservable.d.ts +13 -0
- package/vendor/core/dist/engine/simpleObservable.d.ts.map +1 -0
- package/vendor/core/dist/engine/simpleObservable.js +29 -0
- package/vendor/core/dist/engine/simpleObservable.js.map +1 -0
- package/vendor/core/dist/engine/trackCondition.d.ts +27 -0
- package/vendor/core/dist/engine/trackCondition.d.ts.map +1 -0
- package/vendor/core/dist/engine/trackCondition.js +179 -0
- package/vendor/core/dist/engine/trackCondition.js.map +1 -0
- package/vendor/core/dist/engine/trackStepTriggers.d.ts +31 -0
- package/vendor/core/dist/engine/trackStepTriggers.d.ts.map +1 -0
- package/vendor/core/dist/engine/trackStepTriggers.js +75 -0
- package/vendor/core/dist/engine/trackStepTriggers.js.map +1 -0
- package/vendor/core/dist/errors.d.ts +11 -1
- package/vendor/core/dist/errors.d.ts.map +1 -1
- package/vendor/core/dist/errors.js +2 -1
- package/vendor/core/dist/errors.js.map +1 -1
- package/vendor/core/dist/eventAttributes.d.ts.map +1 -1
- package/vendor/core/dist/eventAttributes.js +4 -2
- package/vendor/core/dist/eventAttributes.js.map +1 -1
- package/vendor/core/dist/index.d.ts +7 -3
- package/vendor/core/dist/index.d.ts.map +1 -1
- package/vendor/core/dist/index.js +3 -1
- package/vendor/core/dist/index.js.map +1 -1
- package/vendor/core/dist/normalizeAttributes.d.ts +8 -0
- package/vendor/core/dist/normalizeAttributes.d.ts.map +1 -0
- package/vendor/core/dist/normalizeAttributes.js +129 -0
- package/vendor/core/dist/normalizeAttributes.js.map +1 -0
- package/vendor/core/dist/transport/pairing.d.ts +5 -0
- package/vendor/core/dist/transport/pairing.d.ts.map +1 -1
- package/vendor/core/dist/transport/pairing.js +69 -2
- package/vendor/core/dist/transport/pairing.js.map +1 -1
- package/vendor/core/dist/transport/phoenix.d.ts +19 -6
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
- package/vendor/core/dist/transport/phoenix.js +75 -7
- package/vendor/core/dist/transport/phoenix.js.map +1 -1
- package/vendor/core/dist/types.d.ts +26 -1
- package/vendor/core/dist/types.d.ts.map +1 -1
- package/vendor/core/dist/version.d.ts +1 -1
- package/vendor/core/dist/version.js +1 -1
- package/vendor/core/package.json +1 -1
- package/vendor/protocol/dist/attributes.d.ts +43 -0
- package/vendor/protocol/dist/attributes.d.ts.map +1 -0
- package/vendor/protocol/dist/attributes.js +15 -0
- package/vendor/protocol/dist/attributes.js.map +1 -0
- package/vendor/protocol/dist/autoData.d.ts +10 -17
- package/vendor/protocol/dist/autoData.d.ts.map +1 -1
- package/vendor/protocol/dist/autoData.js +2 -2
- package/vendor/protocol/dist/autoData.js.map +1 -1
- package/vendor/protocol/dist/events.d.ts +8 -0
- package/vendor/protocol/dist/events.d.ts.map +1 -1
- package/vendor/protocol/dist/flows.d.ts +124 -6
- package/vendor/protocol/dist/flows.d.ts.map +1 -1
- package/vendor/protocol/dist/flows.js +70 -5
- package/vendor/protocol/dist/flows.js.map +1 -1
- package/vendor/protocol/dist/index.d.ts +1 -0
- package/vendor/protocol/dist/index.d.ts.map +1 -1
- package/vendor/protocol/dist/index.js +1 -0
- package/vendor/protocol/dist/index.js.map +1 -1
- package/vendor/protocol/dist/messages.d.ts +46 -15
- package/vendor/protocol/dist/messages.d.ts.map +1 -1
- package/vendor/protocol/dist/messages.js +9 -2
- package/vendor/protocol/dist/messages.js.map +1 -1
- package/vendor/protocol/dist/pairing.d.ts +26 -0
- package/vendor/protocol/dist/pairing.d.ts.map +1 -1
- package/vendor/protocol/dist/pairing.js.map +1 -1
- package/vendor/protocol/package.json +1 -1
|
@@ -18,10 +18,17 @@ import {
|
|
|
18
18
|
} from 'react-native';
|
|
19
19
|
|
|
20
20
|
import { anchorRegistry } from '../anchors/AnchorRegistry';
|
|
21
|
+
import { autoAnchorRegistry } from '../anchors/AutoAnchorRegistry';
|
|
21
22
|
import { addAnimationFrameCallback, removeAnimationFrameCallback } from '../anchors/animationFrame';
|
|
22
23
|
import { fiberScanRoot } from '../anchors/fiber/FiberScanRoot';
|
|
23
24
|
import type { AnyFiber } from '../anchors/fiber/fiberInternals';
|
|
24
|
-
import {
|
|
25
|
+
import { clipToScrollViewports } from '../anchors/fiber/visibleRect';
|
|
26
|
+
import {
|
|
27
|
+
clearFiberAnchorCache,
|
|
28
|
+
invalidateFiberAnchor,
|
|
29
|
+
resolveAnchorHost,
|
|
30
|
+
} from '../anchors/resolveAnchorHost';
|
|
31
|
+
import { resolveAutoAnchorHost } from '../anchors/resolveAutoAnchorHost';
|
|
25
32
|
import { resolveManualAnchorId } from '../anchors/resolveManualAnchorId';
|
|
26
33
|
import { scrollAnchorIntoView } from '../anchors/scrollAnchorIntoView';
|
|
27
34
|
import { getScrollPadding } from '../anchors/scrollConfig';
|
|
@@ -29,31 +36,47 @@ import { targetPressMonitor } from '../anchors/targetPressMonitor';
|
|
|
29
36
|
import { RichContentRenderer } from '../content/RichContentRenderer';
|
|
30
37
|
import type { LookupAttribute } from '../content/types';
|
|
31
38
|
|
|
39
|
+
import { CardFade } from './CardFade';
|
|
32
40
|
import { CloseButton } from './CloseButton';
|
|
33
|
-
import { resolveCloseButtonColor } from './resolveCloseButtonColor';
|
|
34
41
|
import { MADE_WITH_USERFLOW_GAP, MadeWithUserflow } from './MadeWithUserflow';
|
|
35
42
|
import { ProgressBar } from './ProgressBar';
|
|
36
43
|
import { ABSOLUTE_FILL } from './absoluteFill';
|
|
44
|
+
import { useCardTransitionPhase } from './cardTransition';
|
|
37
45
|
import { parseBackdropOpacity } from './parseBackdropOpacity';
|
|
38
46
|
import { resolveStepProgress } from './progress';
|
|
39
|
-
import {
|
|
47
|
+
import { resolveCloseButtonColor } from './resolveCloseButtonColor';
|
|
48
|
+
import { outsideHighlightOutset, resolveHighlightChrome } from './resolveHighlightChrome';
|
|
49
|
+
import { resolveModalCardMaxHeight } from './resolveModalLayout';
|
|
50
|
+
import {
|
|
51
|
+
resolveTooltipButtonsAlign,
|
|
52
|
+
resolveTooltipCardLayout,
|
|
53
|
+
resolveTooltipCardMaxWidth,
|
|
54
|
+
} from './resolveTooltipLayout';
|
|
55
|
+
import { paddingAsEdgeInsets, useSurfaceLayoutInsets } from './surfaceLayoutInsets';
|
|
40
56
|
import { resolveBubbleChrome } from './themeChrome';
|
|
41
57
|
import { TooltipBubble } from './tooltip/TooltipBubble';
|
|
42
58
|
import { TooltipCutout } from './tooltip/TooltipCutout';
|
|
59
|
+
import { TooltipHighlight } from './tooltip/TooltipHighlight';
|
|
43
60
|
import { computeTooltipPosition } from './tooltip/computeTooltipPosition';
|
|
44
61
|
import {
|
|
45
62
|
inferTooltipPlacement,
|
|
63
|
+
tooltipPlacementFits,
|
|
46
64
|
type Rect,
|
|
47
65
|
type TooltipPlacementSide,
|
|
48
66
|
} from './tooltip/inferTooltipPlacement';
|
|
49
67
|
import { parseBackdropPadding } from './tooltip/parseBackdropPadding';
|
|
50
|
-
import { buildEffectiveViewport, isRectFullyVisible, rectsEqual } from './tooltip/rect';
|
|
51
68
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
warnTooltipPlacementUnanchored,
|
|
70
|
+
warnTooltipSidePlacementDropped,
|
|
71
|
+
} from './tooltip/placementDiagnostics';
|
|
72
|
+
import { buildEffectiveViewport, expandRect, isRectFullyVisible, rectsEqual } from './tooltip/rect';
|
|
73
|
+
import {
|
|
74
|
+
resolveTooltipSideCardWidth,
|
|
75
|
+
tooltipMinCardHeight,
|
|
76
|
+
tooltipMinSideCardWidth,
|
|
77
|
+
tooltipSideGap,
|
|
78
|
+
tooltipVerticalGap,
|
|
79
|
+
} from './tooltip/resolveSideCardWidth';
|
|
57
80
|
|
|
58
81
|
export interface TooltipSurfaceProps {
|
|
59
82
|
engine: FlowSessionEngine;
|
|
@@ -61,6 +84,12 @@ export interface TooltipSurfaceProps {
|
|
|
61
84
|
currentStep: FlowStepFragment;
|
|
62
85
|
theme: ThemeFragment;
|
|
63
86
|
lookupAttribute: LookupAttribute;
|
|
87
|
+
/**
|
|
88
|
+
* Bumped on preview restart and every goToStep, including a ForceGoToStep
|
|
89
|
+
* back to the current step, so targeting re-bootstraps when session/step
|
|
90
|
+
* identity is unchanged.
|
|
91
|
+
*/
|
|
92
|
+
resetNonce?: number;
|
|
64
93
|
}
|
|
65
94
|
|
|
66
95
|
type MissingMode = 'waiting' | 'reported';
|
|
@@ -69,6 +98,11 @@ type MissingMode = 'waiting' | 'reported';
|
|
|
69
98
|
const RESOLVE_MS = 250;
|
|
70
99
|
/** Slower resolve poll after FLAG/ERROR report so a late-mounting target can recover. */
|
|
71
100
|
const RESOLVE_SLOW_MS = 1000;
|
|
101
|
+
/**
|
|
102
|
+
* One-frame delay before the first resolve after a step/reset so dialog
|
|
103
|
+
* teardown cannot arm the missing-target timer with a 0-size measure.
|
|
104
|
+
*/
|
|
105
|
+
export const FIRST_RESOLVE_DELAY_MS = 16;
|
|
72
106
|
/**
|
|
73
107
|
* Max scroll-into-view attempts per step while the target stays partially
|
|
74
108
|
* clipped. Only a safety net for targets that can never become fully visible —
|
|
@@ -95,6 +129,18 @@ function missingBehavior(theme: ThemeFragment): string {
|
|
|
95
129
|
return String(theme.tooltipMissingBehavior ?? 'FLAG').toUpperCase();
|
|
96
130
|
}
|
|
97
131
|
|
|
132
|
+
/** Dim with no card yet, for the frames between mount and the first measure. */
|
|
133
|
+
function backdropOnly(blocker: React.ReactNode): React.ReactElement | null {
|
|
134
|
+
if (blocker == null) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return (
|
|
138
|
+
<View style={styles.root} testID="userflow-tooltip-surface" pointerEvents="box-none">
|
|
139
|
+
{blocker}
|
|
140
|
+
</View>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
98
144
|
/**
|
|
99
145
|
* Anchored tooltip chrome: measure manual / fiber anchor, place with web flip/shift,
|
|
100
146
|
* optional cutout backdrop, missing-target report + theme fallbacks.
|
|
@@ -105,6 +151,7 @@ export function TooltipSurface({
|
|
|
105
151
|
currentStep,
|
|
106
152
|
theme,
|
|
107
153
|
lookupAttribute,
|
|
154
|
+
resetNonce = 0,
|
|
108
155
|
}: TooltipSurfaceProps): React.ReactElement | null {
|
|
109
156
|
const version = session.version;
|
|
110
157
|
const chrome = resolveBubbleChrome(theme, 'tooltip');
|
|
@@ -112,14 +159,33 @@ export function TooltipSurface({
|
|
|
112
159
|
const showClose = !version.closeDisabled;
|
|
113
160
|
const backdropOpacity = parseBackdropOpacity(theme.backdropOpacity);
|
|
114
161
|
const backdropPadding = parseBackdropPadding(currentStep.backdropPadding);
|
|
115
|
-
const
|
|
162
|
+
const selector = currentStep.selector;
|
|
163
|
+
const isAuto = (selector?.type as string | null) === 'AUTO';
|
|
164
|
+
const autoData = selector?.autoData ?? null;
|
|
165
|
+
const anchorId = isAuto ? null : resolveManualAnchorId(selector?.css);
|
|
166
|
+
const targetKey = isAuto ? `auto:${autoData ?? ''}` : (anchorId ?? '');
|
|
167
|
+
const highlight = currentStep.backdrop ? resolveHighlightChrome(theme, backdropPadding) : null;
|
|
168
|
+
const outsideHighlightSpread = highlight ? outsideHighlightOutset(highlight) : 0;
|
|
116
169
|
const desiredPlacement = normalizePlacement(currentStep.tooltipPlacement);
|
|
117
170
|
const behavior = missingBehavior(theme);
|
|
118
|
-
|
|
119
|
-
|
|
171
|
+
/**
|
|
172
|
+
* An exiting card stays mounted for the fade, so anything it fires belongs to
|
|
173
|
+
* a step the user already left. Mirrored into a ref for the callbacks that run
|
|
174
|
+
* outside render (native touches, measure callbacks, timers).
|
|
175
|
+
*/
|
|
176
|
+
const isExiting = useCardTransitionPhase() === 'exiting';
|
|
177
|
+
const exitingRef = React.useRef(isExiting);
|
|
178
|
+
exitingRef.current = isExiting;
|
|
179
|
+
const layoutInsets = useSurfaceLayoutInsets();
|
|
180
|
+
const centerPaddingStyle = layoutInsets;
|
|
120
181
|
|
|
121
182
|
const [keyboardBottomInset, setKeyboardBottomInset] = React.useState(0);
|
|
122
183
|
const [target, setTarget] = React.useState<Rect | null>(null);
|
|
184
|
+
/**
|
|
185
|
+
* Placeholder until the card's first `onLayout`. A narrowed LEFT/RIGHT can
|
|
186
|
+
* leave a 2–3× smaller/taller measurement here; that must not leak into the
|
|
187
|
+
* next step's `fits()` (see the reset on `currentStep.id`).
|
|
188
|
+
*/
|
|
123
189
|
const [bubbleSize, setBubbleSize] = React.useState({ width: 280, height: 160 });
|
|
124
190
|
const [placement, setPlacement] = React.useState<TooltipPlacementSide>(
|
|
125
191
|
desiredPlacement ?? 'BELOW',
|
|
@@ -128,10 +194,22 @@ export function TooltipSurface({
|
|
|
128
194
|
const [registryTick, setRegistryTick] = React.useState(0);
|
|
129
195
|
/** True after at least one *failed* measure for the current step/anchor. */
|
|
130
196
|
const [measureAttempted, setMeasureAttempted] = React.useState(false);
|
|
197
|
+
/**
|
|
198
|
+
* False only after a same-step `resetNonce` bump (preview restart) until one
|
|
199
|
+
* frame has passed, so dialog teardown cannot 0-size FLAG.
|
|
200
|
+
*/
|
|
201
|
+
const [resolveArmed, setResolveArmed] = React.useState(true);
|
|
202
|
+
const targetingIdentityRef = React.useRef({
|
|
203
|
+
stepId: currentStep.id,
|
|
204
|
+
targetKey,
|
|
205
|
+
resetNonce,
|
|
206
|
+
});
|
|
131
207
|
|
|
132
208
|
const reportedRef = React.useRef(false);
|
|
133
209
|
const placementRef = React.useRef(placement);
|
|
134
210
|
placementRef.current = placement;
|
|
211
|
+
const desiredPlacementRef = React.useRef(desiredPlacement);
|
|
212
|
+
desiredPlacementRef.current = desiredPlacement;
|
|
135
213
|
const mountedRef = React.useRef(true);
|
|
136
214
|
const targetRef = React.useRef<Rect | null>(null);
|
|
137
215
|
/** Bounded scroll-into-view attempts for the current step. */
|
|
@@ -144,16 +222,38 @@ export function TooltipSurface({
|
|
|
144
222
|
const scrollSettledRef = React.useRef(false);
|
|
145
223
|
/** In-flight measureInWindow guard for the rAF loop. */
|
|
146
224
|
const measureInFlightRef = React.useRef(false);
|
|
225
|
+
/**
|
|
226
|
+
* Bumped whenever the resolved host is dropped. `measureInWindow` is async, so
|
|
227
|
+
* a measurement dispatched before the drop can still land after it — without
|
|
228
|
+
* this guard it re-anchors a target the resolver has already rejected, and the
|
|
229
|
+
* tooltip flip-flops between anchored and "looking for target".
|
|
230
|
+
*/
|
|
231
|
+
const resolveEpochRef = React.useRef(0);
|
|
147
232
|
/** Latest resolved host fiber (for scroll-ancestor walk + rAF remeasure). */
|
|
148
233
|
const hostFiberRef = React.useRef<AnyFiber | null>(null);
|
|
234
|
+
/** Target rect clipped to scroll viewports, for tap detection only. */
|
|
235
|
+
const clippedPressRef = React.useRef<Rect | null>(null);
|
|
236
|
+
const clipGenRef = React.useRef(0);
|
|
149
237
|
const hostMeasureRef = React.useRef<
|
|
150
238
|
((callback: (x: number, y: number, width: number, height: number) => void) => void) | null
|
|
151
239
|
>(null);
|
|
152
240
|
const hostScrollIntoViewRef = React.useRef<(() => void) | undefined>(undefined);
|
|
241
|
+
/** Fiber-cache key for the current host; AUTO exact-id path sets this even when `anchorId` is null. */
|
|
242
|
+
const fiberCacheIdRef = React.useRef<string | null>(null);
|
|
243
|
+
/** Step id we already warned about for a dropped LEFT/RIGHT placement. */
|
|
244
|
+
const warnedSidePlacementStepRef = React.useRef<string | null>(null);
|
|
245
|
+
const currentStepIdRef = React.useRef(currentStep.id);
|
|
246
|
+
currentStepIdRef.current = currentStep.id;
|
|
247
|
+
/**
|
|
248
|
+
* Step the current `target` rect was measured for. A step advance re-renders
|
|
249
|
+
* with the new step before the reset effect clears `target`, so for one commit
|
|
250
|
+
* the new step's placement is evaluated against the previous target.
|
|
251
|
+
*/
|
|
252
|
+
const targetStepIdRef = React.useRef<string | null>(null);
|
|
153
253
|
const keyboardBottomInsetRef = React.useRef(keyboardBottomInset);
|
|
154
254
|
keyboardBottomInsetRef.current = keyboardBottomInset;
|
|
155
|
-
const insetsRef = React.useRef(
|
|
156
|
-
insetsRef.current =
|
|
255
|
+
const insetsRef = React.useRef(layoutInsets);
|
|
256
|
+
insetsRef.current = layoutInsets;
|
|
157
257
|
const missingModeRef = React.useRef(missingMode);
|
|
158
258
|
missingModeRef.current = missingMode;
|
|
159
259
|
const behaviorRef = React.useRef(behavior);
|
|
@@ -175,9 +275,11 @@ export function TooltipSurface({
|
|
|
175
275
|
React.useEffect(() => {
|
|
176
276
|
const bump = () => setRegistryTick((n) => n + 1);
|
|
177
277
|
const unsubRegistry = anchorRegistry.subscribe(bump);
|
|
278
|
+
const unsubAuto = autoAnchorRegistry.subscribe(bump);
|
|
178
279
|
const unsubScan = fiberScanRoot.subscribe(bump);
|
|
179
280
|
return () => {
|
|
180
281
|
unsubRegistry();
|
|
282
|
+
unsubAuto();
|
|
181
283
|
unsubScan();
|
|
182
284
|
};
|
|
183
285
|
}, []);
|
|
@@ -187,17 +289,44 @@ export function TooltipSurface({
|
|
|
187
289
|
scrollAttemptsRef.current = 0;
|
|
188
290
|
scrollSettledRef.current = false;
|
|
189
291
|
measureInFlightRef.current = false;
|
|
292
|
+
resolveEpochRef.current += 1;
|
|
190
293
|
hostFiberRef.current = null;
|
|
191
294
|
hostMeasureRef.current = null;
|
|
192
295
|
hostScrollIntoViewRef.current = undefined;
|
|
296
|
+
fiberCacheIdRef.current = null;
|
|
297
|
+
warnedSidePlacementStepRef.current = null;
|
|
298
|
+
targetStepIdRef.current = null;
|
|
193
299
|
targetRef.current = null;
|
|
300
|
+
// Drop the previous card's measured size and side so the next step does not
|
|
301
|
+
// inherit a wrapped 115×400 LEFT into `fits(currentPlacement)`.
|
|
302
|
+
const nextPlacement = desiredPlacementRef.current ?? 'BELOW';
|
|
303
|
+
placementRef.current = nextPlacement;
|
|
304
|
+
setPlacement(nextPlacement);
|
|
305
|
+
setBubbleSize({ width: 280, height: 160 });
|
|
194
306
|
setMissingMode('waiting');
|
|
195
307
|
setMeasureAttempted(false);
|
|
196
308
|
setTarget(null);
|
|
197
|
-
|
|
309
|
+
const prev = targetingIdentityRef.current;
|
|
310
|
+
const sameIdentity = prev.stepId === currentStep.id && prev.targetKey === targetKey;
|
|
311
|
+
const nonceBumped = prev.resetNonce !== resetNonce;
|
|
312
|
+
targetingIdentityRef.current = { stepId: currentStep.id, targetKey, resetNonce };
|
|
313
|
+
// Defer only a same-step restart bootstrap. A real step/target change
|
|
314
|
+
// should resolve on the first paint.
|
|
315
|
+
setResolveArmed(!(sameIdentity && nonceBumped));
|
|
316
|
+
clearFiberAnchorCache();
|
|
317
|
+
}, [currentStep.id, targetKey, resetNonce]);
|
|
318
|
+
|
|
319
|
+
React.useEffect(() => {
|
|
320
|
+
if (resolveArmed) return;
|
|
321
|
+
const handle = setTimeout(() => {
|
|
322
|
+
if (mountedRef.current) setResolveArmed(true);
|
|
323
|
+
}, FIRST_RESOLVE_DELAY_MS);
|
|
324
|
+
return () => clearTimeout(handle);
|
|
325
|
+
}, [resolveArmed]);
|
|
198
326
|
|
|
199
327
|
const applyTarget = React.useCallback((next: Rect | null) => {
|
|
200
328
|
if (!mountedRef.current) return;
|
|
329
|
+
targetStepIdRef.current = next == null ? null : currentStepIdRef.current;
|
|
201
330
|
if (rectsEqual(targetRef.current, next)) return;
|
|
202
331
|
if (next == null) {
|
|
203
332
|
// The anchor went away (unmount / navigation), so whatever scroll position
|
|
@@ -208,6 +337,18 @@ export function TooltipSurface({
|
|
|
208
337
|
}
|
|
209
338
|
targetRef.current = next;
|
|
210
339
|
setTarget(next);
|
|
340
|
+
if (next == null) {
|
|
341
|
+
clippedPressRef.current = null;
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
clippedPressRef.current = next;
|
|
345
|
+
const fiber = hostFiberRef.current;
|
|
346
|
+
const gen = (clipGenRef.current += 1);
|
|
347
|
+
if (!fiber) return;
|
|
348
|
+
void clipToScrollViewports(fiber, next).then((clipped) => {
|
|
349
|
+
if (clipGenRef.current !== gen) return;
|
|
350
|
+
clippedPressRef.current = clipped;
|
|
351
|
+
});
|
|
211
352
|
}, []);
|
|
212
353
|
|
|
213
354
|
const markMeasureAttempted = React.useCallback(() => {
|
|
@@ -215,25 +356,45 @@ export function TooltipSurface({
|
|
|
215
356
|
setMeasureAttempted((prev) => (prev ? prev : true));
|
|
216
357
|
}, []);
|
|
217
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Forget the resolved host and report the target as gone. Bumping the epoch
|
|
361
|
+
* voids any measurement still in flight for it, and releasing the in-flight
|
|
362
|
+
* guard lets the next resolve measure immediately instead of waiting on a
|
|
363
|
+
* callback that no longer means anything.
|
|
364
|
+
*/
|
|
365
|
+
const dropHost = React.useCallback(() => {
|
|
366
|
+
resolveEpochRef.current += 1;
|
|
367
|
+
measureInFlightRef.current = false;
|
|
368
|
+
hostFiberRef.current = null;
|
|
369
|
+
hostMeasureRef.current = null;
|
|
370
|
+
hostScrollIntoViewRef.current = undefined;
|
|
371
|
+
fiberCacheIdRef.current = null;
|
|
372
|
+
markMeasureAttempted();
|
|
373
|
+
applyTarget(null);
|
|
374
|
+
}, [applyTarget, markMeasureAttempted]);
|
|
375
|
+
|
|
218
376
|
const effectiveViewport = React.useCallback(() => {
|
|
219
377
|
const windowSize = Dimensions.get('window');
|
|
220
378
|
const scrollPadding = getScrollPadding();
|
|
379
|
+
const layoutPad = paddingAsEdgeInsets(insetsRef.current);
|
|
221
380
|
return buildEffectiveViewport(
|
|
222
381
|
{
|
|
223
382
|
width: windowSize.width,
|
|
224
383
|
height: Math.max(0, windowSize.height - keyboardBottomInsetRef.current),
|
|
225
384
|
},
|
|
226
385
|
{
|
|
227
|
-
top:
|
|
228
|
-
right:
|
|
229
|
-
bottom:
|
|
230
|
-
left:
|
|
386
|
+
top: layoutPad.top + (scrollPadding?.top ?? 0),
|
|
387
|
+
right: layoutPad.right + (scrollPadding?.right ?? 0),
|
|
388
|
+
bottom: layoutPad.bottom + (scrollPadding?.bottom ?? 0),
|
|
389
|
+
left: layoutPad.left + (scrollPadding?.left ?? 0),
|
|
231
390
|
},
|
|
232
391
|
);
|
|
233
392
|
}, []);
|
|
234
393
|
|
|
235
394
|
const maybeScrollIntoView = React.useCallback(
|
|
236
395
|
(rect: Rect) => {
|
|
396
|
+
// Scrolling the app to reveal a target we are fading away from is visible.
|
|
397
|
+
if (exitingRef.current) return;
|
|
237
398
|
if (scrollSettledRef.current) return;
|
|
238
399
|
if (isRectFullyVisible(rect, effectiveViewport())) {
|
|
239
400
|
scrollSettledRef.current = true;
|
|
@@ -271,43 +432,41 @@ export function TooltipSurface({
|
|
|
271
432
|
const resolveTarget = React.useCallback(() => {
|
|
272
433
|
if (!mountedRef.current) return;
|
|
273
434
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
const resolution = resolveAnchorHost(anchorId);
|
|
284
|
-
if (resolution.status !== 'found') {
|
|
285
|
-
hostFiberRef.current = null;
|
|
286
|
-
hostMeasureRef.current = null;
|
|
287
|
-
hostScrollIntoViewRef.current = undefined;
|
|
288
|
-
markMeasureAttempted();
|
|
289
|
-
applyTarget(null);
|
|
435
|
+
const resolution = isAuto
|
|
436
|
+
? resolveAutoAnchorHost(autoData)
|
|
437
|
+
: anchorId
|
|
438
|
+
? resolveAnchorHost(anchorId)
|
|
439
|
+
: null;
|
|
440
|
+
if (!resolution || resolution.status !== 'found') {
|
|
441
|
+
dropHost();
|
|
290
442
|
return;
|
|
291
443
|
}
|
|
292
444
|
|
|
293
445
|
hostFiberRef.current = resolution.fiber ?? null;
|
|
294
446
|
hostMeasureRef.current = resolution.host.measureInWindow;
|
|
295
447
|
hostScrollIntoViewRef.current = resolution.host.scrollIntoView;
|
|
448
|
+
fiberCacheIdRef.current =
|
|
449
|
+
'fiberCacheId' in resolution && typeof resolution.fiberCacheId === 'string'
|
|
450
|
+
? resolution.fiberCacheId
|
|
451
|
+
: (anchorId ?? null);
|
|
296
452
|
|
|
297
453
|
// Kick an immediate measure after resolve so the first paint isn't waiting
|
|
298
454
|
// on the next rAF (and so missing targets still mark attempted).
|
|
299
455
|
if (measureInFlightRef.current) return;
|
|
456
|
+
const epoch = resolveEpochRef.current;
|
|
300
457
|
measureInFlightRef.current = true;
|
|
301
458
|
resolution.host.measureInWindow((x, y, width, height) => {
|
|
459
|
+
if (resolveEpochRef.current !== epoch) {
|
|
460
|
+
measureInFlightRef.current = false;
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
302
463
|
measureInFlightRef.current = false;
|
|
303
464
|
if (!mountedRef.current) return;
|
|
304
465
|
|
|
305
466
|
if (width <= 0 || height <= 0) {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
markMeasureAttempted();
|
|
310
|
-
applyTarget(null);
|
|
467
|
+
const cacheId = fiberCacheIdRef.current;
|
|
468
|
+
if (cacheId) invalidateFiberAnchor(cacheId);
|
|
469
|
+
dropHost();
|
|
311
470
|
return;
|
|
312
471
|
}
|
|
313
472
|
|
|
@@ -315,7 +474,7 @@ export function TooltipSurface({
|
|
|
315
474
|
maybeScrollIntoView(rect);
|
|
316
475
|
applyTarget(rect);
|
|
317
476
|
});
|
|
318
|
-
}, [anchorId, applyTarget,
|
|
477
|
+
}, [anchorId, applyTarget, autoData, dropHost, isAuto, maybeScrollIntoView]);
|
|
319
478
|
|
|
320
479
|
/**
|
|
321
480
|
* Live re-measure of an already-resolved host. Driven by the shared rAF hub
|
|
@@ -327,17 +486,20 @@ export function TooltipSurface({
|
|
|
327
486
|
const measure = hostMeasureRef.current;
|
|
328
487
|
if (!measure) return;
|
|
329
488
|
|
|
489
|
+
const epoch = resolveEpochRef.current;
|
|
330
490
|
measureInFlightRef.current = true;
|
|
331
491
|
measure((x, y, width, height) => {
|
|
492
|
+
if (resolveEpochRef.current !== epoch) {
|
|
493
|
+
measureInFlightRef.current = false;
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
332
496
|
measureInFlightRef.current = false;
|
|
333
497
|
if (!mountedRef.current) return;
|
|
334
498
|
|
|
335
499
|
if (width <= 0 || height <= 0) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
markMeasureAttempted();
|
|
340
|
-
applyTarget(null);
|
|
500
|
+
const cacheId = fiberCacheIdRef.current;
|
|
501
|
+
if (cacheId) invalidateFiberAnchor(cacheId);
|
|
502
|
+
dropHost();
|
|
341
503
|
return;
|
|
342
504
|
}
|
|
343
505
|
|
|
@@ -345,14 +507,18 @@ export function TooltipSurface({
|
|
|
345
507
|
maybeScrollIntoView(rect);
|
|
346
508
|
applyTarget(rect);
|
|
347
509
|
});
|
|
348
|
-
}, [
|
|
510
|
+
}, [applyTarget, dropHost, maybeScrollIntoView]);
|
|
349
511
|
|
|
350
512
|
React.useEffect(() => {
|
|
513
|
+
if (!resolveArmed) return;
|
|
351
514
|
resolveTarget();
|
|
352
|
-
}, [resolveTarget, registryTick]);
|
|
515
|
+
}, [resolveTarget, registryTick, resolveArmed]);
|
|
353
516
|
|
|
354
517
|
// Resolve poll: recover missing / remounted anchors. Live measurement is on rAF.
|
|
355
518
|
React.useEffect(() => {
|
|
519
|
+
if (!resolveArmed) {
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
356
522
|
const allowsRecovery =
|
|
357
523
|
behavior === 'FLAG' || behavior === 'ERROR' || (behavior === 'END' && session.draftMode);
|
|
358
524
|
const pauseAfterReport = missingMode === 'reported' && !allowsRecovery;
|
|
@@ -381,7 +547,7 @@ export function TooltipSurface({
|
|
|
381
547
|
kbShow.remove();
|
|
382
548
|
kbHide.remove();
|
|
383
549
|
};
|
|
384
|
-
}, [resolveTarget, missingMode, behavior, session.draftMode]);
|
|
550
|
+
}, [resolveTarget, missingMode, behavior, session.draftMode, resolveArmed]);
|
|
385
551
|
|
|
386
552
|
// rAF tracking while a host is resolved (and we are not paused after report).
|
|
387
553
|
React.useEffect(() => {
|
|
@@ -422,7 +588,7 @@ export function TooltipSurface({
|
|
|
422
588
|
|
|
423
589
|
const ms = parseToleranceMs(theme.tooltipMissingToleranceSeconds);
|
|
424
590
|
const timer = setTimeout(() => {
|
|
425
|
-
if (!mountedRef.current || reportedRef.current) return;
|
|
591
|
+
if (!mountedRef.current || exitingRef.current || reportedRef.current) return;
|
|
426
592
|
reportedRef.current = true;
|
|
427
593
|
setMissingMode('reported');
|
|
428
594
|
void engine.reportTooltipTargetMissing(currentStep.id);
|
|
@@ -458,7 +624,40 @@ export function TooltipSurface({
|
|
|
458
624
|
[windowDims.width, windowDims.height, keyboardBottomInset],
|
|
459
625
|
);
|
|
460
626
|
const cardMaxWidth = resolveTooltipCardMaxWidth(theme, currentStep.width, windowSize.width);
|
|
461
|
-
const
|
|
627
|
+
const viewportMaxHeight = resolveModalCardMaxHeight(windowSize.height, layoutInsets);
|
|
628
|
+
const minCardHeight = tooltipMinCardHeight({
|
|
629
|
+
contentPadding: chrome.contentPadding,
|
|
630
|
+
borderWidth: chrome.borderWidth,
|
|
631
|
+
cardMaxHeight: viewportMaxHeight,
|
|
632
|
+
});
|
|
633
|
+
const minSideCardWidth = tooltipMinSideCardWidth({
|
|
634
|
+
contentPadding: chrome.contentPadding,
|
|
635
|
+
borderWidth: chrome.borderWidth,
|
|
636
|
+
cardMaxWidth,
|
|
637
|
+
});
|
|
638
|
+
const sideCardWidth = React.useMemo(() => {
|
|
639
|
+
if (!target) return null;
|
|
640
|
+
if (desiredPlacement !== 'LEFT' && desiredPlacement !== 'RIGHT') return null;
|
|
641
|
+
const placementTarget = expandRect(target, backdropPadding + outsideHighlightSpread);
|
|
642
|
+
return resolveTooltipSideCardWidth({
|
|
643
|
+
placement: desiredPlacement,
|
|
644
|
+
target: placementTarget,
|
|
645
|
+
windowWidth: windowSize.width,
|
|
646
|
+
notchSize: chrome.notchSize,
|
|
647
|
+
cardMaxWidth,
|
|
648
|
+
minWidth: minSideCardWidth,
|
|
649
|
+
});
|
|
650
|
+
}, [
|
|
651
|
+
target,
|
|
652
|
+
desiredPlacement,
|
|
653
|
+
backdropPadding,
|
|
654
|
+
outsideHighlightSpread,
|
|
655
|
+
windowSize.width,
|
|
656
|
+
chrome.notchSize,
|
|
657
|
+
cardMaxWidth,
|
|
658
|
+
minSideCardWidth,
|
|
659
|
+
]);
|
|
660
|
+
const defaultCardLayoutStyle = resolveTooltipCardLayout(cardMaxWidth, windowSize.width);
|
|
462
661
|
const buttonsAlign = resolveTooltipButtonsAlign(theme);
|
|
463
662
|
const progressBarProps = {
|
|
464
663
|
enabled: theme.progressBarEnabled,
|
|
@@ -480,37 +679,94 @@ export function TooltipSurface({
|
|
|
480
679
|
|
|
481
680
|
const layout = React.useMemo(() => {
|
|
482
681
|
if (!target) return null;
|
|
682
|
+
// A target left over from the previous step belongs to that step's
|
|
683
|
+
// measurement; placing against it would also reuse that step's card size.
|
|
684
|
+
if (targetStepIdRef.current !== currentStep.id) return null;
|
|
685
|
+
const placementTarget = expandRect(target, backdropPadding + outsideHighlightSpread);
|
|
686
|
+
const viewportInsets = paddingAsEdgeInsets(layoutInsets);
|
|
687
|
+
const height = Math.min(bubbleSize.height, viewportMaxHeight);
|
|
688
|
+
const inferSize =
|
|
689
|
+
sideCardWidth != null ? { width: sideCardWidth, height } : { width: cardMaxWidth, height };
|
|
483
690
|
const nextPlacement = inferTooltipPlacement({
|
|
484
|
-
target,
|
|
485
|
-
bubbleSize,
|
|
691
|
+
target: placementTarget,
|
|
692
|
+
bubbleSize: inferSize,
|
|
486
693
|
notchSize: chrome.notchSize,
|
|
487
694
|
windowSize,
|
|
488
695
|
currentPlacement: placementRef.current,
|
|
489
696
|
desiredPlacement,
|
|
697
|
+
viewportInsets,
|
|
698
|
+
minHeight: minCardHeight,
|
|
490
699
|
});
|
|
700
|
+
const honorSide =
|
|
701
|
+
sideCardWidth != null &&
|
|
702
|
+
nextPlacement === desiredPlacement &&
|
|
703
|
+
(nextPlacement === 'LEFT' || nextPlacement === 'RIGHT');
|
|
704
|
+
const fitted = tooltipPlacementFits({
|
|
705
|
+
target: placementTarget,
|
|
706
|
+
bubbleSize: inferSize,
|
|
707
|
+
notchSize: chrome.notchSize,
|
|
708
|
+
windowSize,
|
|
709
|
+
placement: nextPlacement,
|
|
710
|
+
viewportInsets,
|
|
711
|
+
minHeight: minCardHeight,
|
|
712
|
+
});
|
|
713
|
+
let maxCardHeight = viewportMaxHeight;
|
|
714
|
+
if (nextPlacement === 'ABOVE' || nextPlacement === 'BELOW') {
|
|
715
|
+
const gap = tooltipVerticalGap({
|
|
716
|
+
placement: nextPlacement,
|
|
717
|
+
target: placementTarget,
|
|
718
|
+
windowHeight: windowSize.height,
|
|
719
|
+
notchSize: chrome.notchSize,
|
|
720
|
+
viewportInsets,
|
|
721
|
+
});
|
|
722
|
+
const budget = Math.floor(gap);
|
|
723
|
+
if (Number.isFinite(budget) && budget > 0) {
|
|
724
|
+
maxCardHeight = Math.max(minCardHeight, Math.min(viewportMaxHeight, budget));
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
const positionHeight = Math.min(height, maxCardHeight);
|
|
728
|
+
const positionSize = honorSide
|
|
729
|
+
? { width: sideCardWidth, height: positionHeight }
|
|
730
|
+
: { width: cardMaxWidth, height: positionHeight };
|
|
491
731
|
return {
|
|
492
732
|
placement: nextPlacement,
|
|
733
|
+
honorSide,
|
|
734
|
+
fitted,
|
|
735
|
+
maxCardHeight,
|
|
493
736
|
...computeTooltipPosition({
|
|
494
737
|
target,
|
|
495
|
-
bubbleSize,
|
|
738
|
+
bubbleSize: positionSize,
|
|
496
739
|
placement: nextPlacement,
|
|
497
740
|
notchSize: chrome.notchSize,
|
|
498
741
|
backdropPadding,
|
|
742
|
+
outsideHighlightSpread,
|
|
499
743
|
windowSize,
|
|
500
744
|
bubbleBorderRadius: chrome.borderRadius,
|
|
501
745
|
bubbleBorderWidth: chrome.borderWidth,
|
|
746
|
+
viewportInsets,
|
|
502
747
|
}),
|
|
503
748
|
};
|
|
504
749
|
}, [
|
|
505
750
|
target,
|
|
506
751
|
bubbleSize,
|
|
752
|
+
sideCardWidth,
|
|
753
|
+
cardMaxWidth,
|
|
754
|
+
viewportMaxHeight,
|
|
755
|
+
minCardHeight,
|
|
756
|
+
currentStep.id,
|
|
507
757
|
chrome.notchSize,
|
|
508
758
|
chrome.borderRadius,
|
|
509
759
|
chrome.borderWidth,
|
|
510
760
|
windowSize,
|
|
511
761
|
desiredPlacement,
|
|
512
762
|
backdropPadding,
|
|
763
|
+
outsideHighlightSpread,
|
|
764
|
+
layoutInsets,
|
|
513
765
|
]);
|
|
766
|
+
const cardLayoutStyle =
|
|
767
|
+
layout?.honorSide && sideCardWidth != null
|
|
768
|
+
? { width: sideCardWidth, maxWidth: sideCardWidth }
|
|
769
|
+
: defaultCardLayoutStyle;
|
|
514
770
|
|
|
515
771
|
React.useEffect(() => {
|
|
516
772
|
if (layout && layout.placement !== placement) {
|
|
@@ -518,19 +774,67 @@ export function TooltipSurface({
|
|
|
518
774
|
}
|
|
519
775
|
}, [layout, placement]);
|
|
520
776
|
|
|
777
|
+
React.useEffect(() => {
|
|
778
|
+
if (!layout || !target) return;
|
|
779
|
+
if (desiredPlacement !== 'LEFT' && desiredPlacement !== 'RIGHT') return;
|
|
780
|
+
// A target left over from the previous step says nothing about this one.
|
|
781
|
+
if (targetStepIdRef.current !== currentStep.id) return;
|
|
782
|
+
if (!(session.draftMode || __DEV__)) return;
|
|
783
|
+
if (warnedSidePlacementStepRef.current === currentStep.id) return;
|
|
784
|
+
if (layout.placement === desiredPlacement) {
|
|
785
|
+
// Last-resort return of the authored side: nothing actually fit.
|
|
786
|
+
if (layout.fitted) return;
|
|
787
|
+
warnedSidePlacementStepRef.current = currentStep.id;
|
|
788
|
+
warnTooltipPlacementUnanchored({ requested: desiredPlacement });
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
// Only the structural floor — not keyboard / off-screen flips. A resolved
|
|
792
|
+
// width means the room was there and something else moved the card.
|
|
793
|
+
if (sideCardWidth != null) return;
|
|
794
|
+
warnedSidePlacementStepRef.current = currentStep.id;
|
|
795
|
+
const placementTarget = expandRect(target, backdropPadding + outsideHighlightSpread);
|
|
796
|
+
warnTooltipSidePlacementDropped({
|
|
797
|
+
requested: desiredPlacement,
|
|
798
|
+
used: layout.placement,
|
|
799
|
+
availableGap: tooltipSideGap({
|
|
800
|
+
placement: desiredPlacement,
|
|
801
|
+
target: placementTarget,
|
|
802
|
+
windowWidth: windowSize.width,
|
|
803
|
+
notchSize: chrome.notchSize,
|
|
804
|
+
}),
|
|
805
|
+
minWidth: minSideCardWidth,
|
|
806
|
+
});
|
|
807
|
+
}, [
|
|
808
|
+
layout,
|
|
809
|
+
target,
|
|
810
|
+
desiredPlacement,
|
|
811
|
+
sideCardWidth,
|
|
812
|
+
session.draftMode,
|
|
813
|
+
currentStep.id,
|
|
814
|
+
backdropPadding,
|
|
815
|
+
outsideHighlightSpread,
|
|
816
|
+
windowSize.width,
|
|
817
|
+
chrome.notchSize,
|
|
818
|
+
minSideCardWidth,
|
|
819
|
+
]);
|
|
820
|
+
|
|
521
821
|
// Web parity: "When target element is clicked" → step.actions.
|
|
522
822
|
// Observe taps via TargetPressBridge (pass-through); do not steal the press.
|
|
523
823
|
const hasTarget = target != null;
|
|
524
824
|
const targetActions = currentStep.actions;
|
|
525
825
|
React.useEffect(() => {
|
|
526
|
-
|
|
826
|
+
// Release the monitor while exiting: it is a singleton, and a tap landing on
|
|
827
|
+
// the old target would run the departing step's actions.
|
|
828
|
+
if (isExiting || !hasTarget || currentStep.tooltipTargetBlocked || targetActions.length === 0) {
|
|
527
829
|
targetPressMonitor.clear();
|
|
528
830
|
return;
|
|
529
831
|
}
|
|
530
832
|
|
|
531
833
|
targetPressMonitor.set({
|
|
532
|
-
getRect: () =>
|
|
834
|
+
getRect: () => clippedPressRef.current,
|
|
533
835
|
onPress: () => {
|
|
836
|
+
// Native touches are async relative to commits, so re-check the phase.
|
|
837
|
+
if (exitingRef.current) return;
|
|
534
838
|
void engine.handleActions(targetActions);
|
|
535
839
|
},
|
|
536
840
|
});
|
|
@@ -538,22 +842,40 @@ export function TooltipSurface({
|
|
|
538
842
|
return () => {
|
|
539
843
|
targetPressMonitor.clear();
|
|
540
844
|
};
|
|
541
|
-
}, [hasTarget, currentStep.tooltipTargetBlocked, targetActions, engine]);
|
|
845
|
+
}, [hasTarget, currentStep.tooltipTargetBlocked, targetActions, engine, isExiting]);
|
|
846
|
+
|
|
847
|
+
// Painted from mount rather than once the target lands, so a modal → tooltip
|
|
848
|
+
// swap keeps the dim continuous instead of blinking it off for the frames the
|
|
849
|
+
// anchor takes to measure. The hole opens when `layout` arrives.
|
|
850
|
+
// Always mount the cutout: when `backdrop` is off the dim opacity is 0 but
|
|
851
|
+
// the bands still block host taps (unless interaction blocking is disabled).
|
|
852
|
+
const interactionBlocker = (
|
|
853
|
+
<TooltipCutout
|
|
854
|
+
targetRect={layout?.targetHighlightRect ?? null}
|
|
855
|
+
backdropColor={theme.backdropColor}
|
|
856
|
+
backdropOpacity={currentStep.backdrop ? backdropOpacity : 0}
|
|
857
|
+
targetBlocked={currentStep.tooltipTargetBlocked}
|
|
858
|
+
/>
|
|
859
|
+
);
|
|
542
860
|
|
|
543
861
|
if (hideAfterEnd) {
|
|
544
862
|
return null;
|
|
545
863
|
}
|
|
546
864
|
|
|
547
|
-
|
|
865
|
+
const showBranding = session.flow.company.flowBranding;
|
|
866
|
+
const contentPadding = chrome.contentPadding;
|
|
867
|
+
|
|
868
|
+
// Still pending the first measure attempt — only the blocker shows.
|
|
548
869
|
if (isMissing && missingMode === 'waiting' && !measureAttempted) {
|
|
549
|
-
return
|
|
870
|
+
return backdropOnly(interactionBlocker);
|
|
550
871
|
}
|
|
551
872
|
|
|
552
873
|
if (showWaitingUi) {
|
|
553
874
|
return (
|
|
554
875
|
<View style={styles.root} testID="userflow-tooltip-surface" pointerEvents="box-none">
|
|
876
|
+
{interactionBlocker}
|
|
555
877
|
<View style={[styles.center, centerPaddingStyle]} pointerEvents="box-none">
|
|
556
|
-
<
|
|
878
|
+
<CardFade
|
|
557
879
|
testID="userflow-tooltip-waiting"
|
|
558
880
|
accessibilityViewIsModal
|
|
559
881
|
pointerEvents="auto"
|
|
@@ -564,26 +886,39 @@ export function TooltipSurface({
|
|
|
564
886
|
{
|
|
565
887
|
borderRadius: chrome.borderRadius,
|
|
566
888
|
backgroundColor: chrome.backgroundColor,
|
|
889
|
+
maxHeight: viewportMaxHeight,
|
|
567
890
|
},
|
|
568
891
|
]}
|
|
569
892
|
>
|
|
570
893
|
{/* Shadow on the outer shell — fill clips and iOS would clip the shadow. */}
|
|
571
|
-
<View
|
|
572
|
-
|
|
573
|
-
>
|
|
574
|
-
<ActivityIndicator color={theme.fontColor} />
|
|
575
|
-
<Text
|
|
894
|
+
<View style={[chrome.fillStyle, { maxHeight: viewportMaxHeight, minHeight: 0 }]}>
|
|
895
|
+
<View
|
|
576
896
|
style={{
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
897
|
+
paddingHorizontal: contentPadding,
|
|
898
|
+
paddingTop: contentPadding,
|
|
899
|
+
paddingBottom: showBranding ? MADE_WITH_USERFLOW_GAP : contentPadding,
|
|
900
|
+
alignItems: 'center',
|
|
581
901
|
}}
|
|
582
902
|
>
|
|
583
|
-
|
|
584
|
-
|
|
903
|
+
<ActivityIndicator color={theme.fontColor} />
|
|
904
|
+
<Text
|
|
905
|
+
style={{
|
|
906
|
+
color: theme.fontColor,
|
|
907
|
+
fontSize: theme.fontSize,
|
|
908
|
+
marginTop: 12,
|
|
909
|
+
textAlign: 'center',
|
|
910
|
+
}}
|
|
911
|
+
>
|
|
912
|
+
Looking for target…
|
|
913
|
+
</Text>
|
|
914
|
+
</View>
|
|
915
|
+
<MadeWithUserflow
|
|
916
|
+
company={session.flow.company}
|
|
917
|
+
color={theme.fontColor}
|
|
918
|
+
contentPadding={contentPadding}
|
|
919
|
+
/>
|
|
585
920
|
</View>
|
|
586
|
-
</
|
|
921
|
+
</CardFade>
|
|
587
922
|
</View>
|
|
588
923
|
</View>
|
|
589
924
|
);
|
|
@@ -591,8 +926,6 @@ export function TooltipSurface({
|
|
|
591
926
|
|
|
592
927
|
const progressTop = theme.progressBarEnabled && theme.progressBarPosition === 'TOP';
|
|
593
928
|
const progressBottom = theme.progressBarEnabled && theme.progressBarPosition === 'BOTTOM';
|
|
594
|
-
const showBranding = session.flow.company.flowBranding;
|
|
595
|
-
const contentPadding = chrome.contentPadding;
|
|
596
929
|
|
|
597
930
|
const cardBody = (
|
|
598
931
|
<>
|
|
@@ -653,8 +986,9 @@ export function TooltipSurface({
|
|
|
653
986
|
if (showAsBubbleFallback || showMissingUi) {
|
|
654
987
|
return (
|
|
655
988
|
<View style={styles.root} testID="userflow-tooltip-surface" pointerEvents="box-none">
|
|
989
|
+
{interactionBlocker}
|
|
656
990
|
<View style={[styles.center, centerPaddingStyle]} pointerEvents="box-none">
|
|
657
|
-
<
|
|
991
|
+
<CardFade
|
|
658
992
|
testID="userflow-tooltip-card"
|
|
659
993
|
accessibilityViewIsModal
|
|
660
994
|
pointerEvents="auto"
|
|
@@ -666,37 +1000,38 @@ export function TooltipSurface({
|
|
|
666
1000
|
{
|
|
667
1001
|
borderRadius: chrome.borderRadius,
|
|
668
1002
|
backgroundColor: chrome.backgroundColor,
|
|
1003
|
+
maxHeight: viewportMaxHeight,
|
|
669
1004
|
},
|
|
670
1005
|
]}
|
|
671
1006
|
>
|
|
672
1007
|
{/* Shadow lives on the outer layer: the fill clips its content and
|
|
673
1008
|
iOS clips the shadow with it. */}
|
|
674
|
-
<View style={[chrome.fillStyle, styles.fallbackFill]}>
|
|
675
|
-
|
|
1009
|
+
<View style={[chrome.fillStyle, styles.fallbackFill, { maxHeight: viewportMaxHeight }]}>
|
|
1010
|
+
{cardBody}
|
|
1011
|
+
</View>
|
|
1012
|
+
</CardFade>
|
|
676
1013
|
</View>
|
|
677
1014
|
</View>
|
|
678
1015
|
);
|
|
679
1016
|
}
|
|
680
1017
|
|
|
681
1018
|
if (!layout || !target) {
|
|
682
|
-
return
|
|
1019
|
+
return backdropOnly(interactionBlocker);
|
|
683
1020
|
}
|
|
684
1021
|
|
|
685
1022
|
return (
|
|
686
1023
|
<View style={styles.root} testID="userflow-tooltip-surface" pointerEvents="box-none">
|
|
687
|
-
{
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
backdropColor={theme.backdropColor}
|
|
691
|
-
backdropOpacity={backdropOpacity}
|
|
692
|
-
targetBlocked={currentStep.tooltipTargetBlocked}
|
|
693
|
-
/>
|
|
1024
|
+
{interactionBlocker}
|
|
1025
|
+
{highlight ? (
|
|
1026
|
+
<TooltipHighlight targetRect={layout.targetHighlightRect} chrome={highlight} />
|
|
694
1027
|
) : null}
|
|
695
1028
|
|
|
696
1029
|
<TooltipBubble
|
|
697
1030
|
chrome={chrome}
|
|
698
1031
|
notchPosition={layout.notchPosition}
|
|
699
1032
|
onLayout={onCardLayout}
|
|
1033
|
+
maxHeight={layout.maxCardHeight}
|
|
1034
|
+
showNotch={layout.showNotch}
|
|
700
1035
|
style={{
|
|
701
1036
|
position: 'absolute',
|
|
702
1037
|
left: layout.cardPosition.x,
|
|
@@ -720,18 +1055,19 @@ const styles = StyleSheet.create({
|
|
|
720
1055
|
alignItems: 'center',
|
|
721
1056
|
},
|
|
722
1057
|
fallbackCard: {
|
|
723
|
-
maxHeight: '80%',
|
|
724
1058
|
flexShrink: 1,
|
|
725
1059
|
},
|
|
726
1060
|
fallbackFill: {
|
|
727
1061
|
flexShrink: 1,
|
|
1062
|
+
minHeight: 0,
|
|
728
1063
|
},
|
|
729
1064
|
waitingCard: {
|
|
730
1065
|
width: '100%',
|
|
731
1066
|
},
|
|
732
1067
|
scroll: {
|
|
733
|
-
flexGrow:
|
|
1068
|
+
flexGrow: 1,
|
|
734
1069
|
flexShrink: 1,
|
|
1070
|
+
minHeight: 0,
|
|
735
1071
|
},
|
|
736
1072
|
scrollContent: {
|
|
737
1073
|
flexGrow: 1,
|