@userflow-tech/react-native 0.2.0 → 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 +116 -77
- package/app.plugin.js +11 -3
- package/babel-plugin/index.d.ts.map +1 -1
- package/babel-plugin/index.js +53 -6
- package/babel-plugin/index.js.map +1 -1
- package/babel-plugin.js +11 -3
- package/docs/deep-linking.md +70 -33
- package/docs/isolation.md +75 -0
- package/docs/troubleshooting.md +40 -17
- 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 +14 -8
- package/expo-plugin/withUserflow.js.map +1 -1
- package/lib/commonjs/anchors/AutoAnchorRegistry.js +37 -11
- package/lib/commonjs/anchors/AutoAnchorRegistry.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/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/isInstanceOnVisibleScreen.js +51 -0
- package/lib/commonjs/anchors/isInstanceOnVisibleScreen.js.map +1 -0
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js +22 -15
- package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -1
- package/lib/commonjs/anchors/semanticMatcher.js +26 -8
- package/lib/commonjs/anchors/semanticMatcher.js.map +1 -1
- package/lib/commonjs/anonymousId.js +4 -1
- package/lib/commonjs/anonymousId.js.map +1 -1
- package/lib/commonjs/authoring/ElementPickerOverlay.js +126 -50
- package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js +32 -10
- package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js.map +1 -1
- package/lib/commonjs/authoring/chrome/ChromeButton.js +8 -3
- package/lib/commonjs/authoring/chrome/ChromeButton.js.map +1 -1
- package/lib/commonjs/authoring/chrome/ChromeIcon.js +4 -0
- package/lib/commonjs/authoring/chrome/ChromeIcon.js.map +1 -1
- package/lib/commonjs/authoring/chrome/ChromeTopBar.js +23 -10
- package/lib/commonjs/authoring/chrome/ChromeTopBar.js.map +1 -1
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js +19 -12
- package/lib/commonjs/authoring/chrome/DoubleTapBridge.js.map +1 -1
- package/lib/commonjs/authoring/chrome/doubleTapMonitor.js +10 -0
- package/lib/commonjs/authoring/chrome/doubleTapMonitor.js.map +1 -1
- 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/tokens.js +7 -6
- package/lib/commonjs/authoring/chrome/tokens.js.map +1 -1
- package/lib/commonjs/authoring/elementPickerController.js.map +1 -1
- package/lib/commonjs/authoring/fingerprintFromInstance.js +204 -4
- package/lib/commonjs/authoring/fingerprintFromInstance.js.map +1 -1
- package/lib/commonjs/authoring/hitTest.js +264 -16
- package/lib/commonjs/authoring/hitTest.js.map +1 -1
- 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/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/themeColor.js +15 -0
- package/lib/commonjs/content/themeColor.js.map +1 -1
- package/lib/commonjs/deepLinking.js +4 -4
- 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 +2 -2
- package/lib/commonjs/index.js +118 -43
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lifecycle.js.map +1 -1
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js +14 -11
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js.map +1 -1
- package/lib/commonjs/navigation/openFlowNavigateUrl.js +12 -5
- package/lib/commonjs/navigation/openFlowNavigateUrl.js.map +1 -1
- package/lib/commonjs/pairing/PairingController.js +245 -27
- package/lib/commonjs/pairing/PairingController.js.map +1 -1
- package/lib/commonjs/pairing/PreviewModeBanner.js +55 -16
- 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 +5 -4
- package/lib/commonjs/pairing/diagnostics.js.map +1 -1
- package/lib/commonjs/pairing/tokenStorage.js +47 -7
- package/lib/commonjs/pairing/tokenStorage.js.map +1 -1
- package/lib/commonjs/pairing/usePairingState.js +3 -1
- package/lib/commonjs/pairing/usePairingState.js.map +1 -1
- package/lib/commonjs/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/SdkErrorBoundary.js +61 -0
- package/lib/commonjs/runtime/SdkErrorBoundary.js.map +1 -0
- package/lib/commonjs/runtime/TargetPressBridge.js +19 -12
- 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 +135 -65
- 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/embedBannerRegistry.js +30 -0
- package/lib/commonjs/runtime/embedBannerRegistry.js.map +1 -0
- package/lib/commonjs/runtime/flowEngine.js +75 -3
- package/lib/commonjs/runtime/flowEngine.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/screenTracker.js +34 -9
- 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/MadeWithUserflow.js +12 -8
- package/lib/commonjs/surfaces/MadeWithUserflow.js.map +1 -1
- package/lib/commonjs/surfaces/ModalSurface.js +1 -1
- package/lib/commonjs/surfaces/ModalSurface.js.map +1 -1
- package/lib/commonjs/surfaces/TooltipSurface.js +17 -1
- 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/resolveBannerTheme.js +22 -0
- package/lib/commonjs/surfaces/resolveBannerTheme.js.map +1 -0
- package/lib/commonjs/surfaces/safeArea.js +23 -0
- package/lib/commonjs/surfaces/safeArea.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/anchors/AutoAnchorRegistry.js +37 -11
- package/lib/module/anchors/AutoAnchorRegistry.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/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/isInstanceOnVisibleScreen.js +46 -0
- package/lib/module/anchors/isInstanceOnVisibleScreen.js.map +1 -0
- package/lib/module/anchors/resolveAutoAnchorHost.js +22 -15
- package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -1
- package/lib/module/anchors/semanticMatcher.js +26 -9
- package/lib/module/anchors/semanticMatcher.js.map +1 -1
- package/lib/module/anonymousId.js +4 -2
- package/lib/module/anonymousId.js.map +1 -1
- package/lib/module/authoring/ElementPickerOverlay.js +128 -52
- package/lib/module/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/module/authoring/chrome/ChromeBottomSheet.js +32 -10
- package/lib/module/authoring/chrome/ChromeBottomSheet.js.map +1 -1
- package/lib/module/authoring/chrome/ChromeButton.js +8 -3
- package/lib/module/authoring/chrome/ChromeButton.js.map +1 -1
- package/lib/module/authoring/chrome/ChromeIcon.js +4 -0
- package/lib/module/authoring/chrome/ChromeIcon.js.map +1 -1
- package/lib/module/authoring/chrome/ChromeTopBar.js +23 -10
- package/lib/module/authoring/chrome/ChromeTopBar.js.map +1 -1
- package/lib/module/authoring/chrome/DoubleTapBridge.js +19 -12
- package/lib/module/authoring/chrome/DoubleTapBridge.js.map +1 -1
- package/lib/module/authoring/chrome/doubleTapMonitor.js +10 -0
- package/lib/module/authoring/chrome/doubleTapMonitor.js.map +1 -1
- 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/tokens.js +7 -6
- package/lib/module/authoring/chrome/tokens.js.map +1 -1
- package/lib/module/authoring/elementPickerController.js.map +1 -1
- package/lib/module/authoring/fingerprintFromInstance.js +198 -4
- package/lib/module/authoring/fingerprintFromInstance.js.map +1 -1
- package/lib/module/authoring/hitTest.js +264 -18
- package/lib/module/authoring/hitTest.js.map +1 -1
- 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/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/themeColor.js +14 -0
- package/lib/module/content/themeColor.js.map +1 -1
- package/lib/module/deepLinking.js +4 -4
- 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 +2 -2
- package/lib/module/index.js +114 -45
- package/lib/module/index.js.map +1 -1
- package/lib/module/lifecycle.js.map +1 -1
- package/lib/module/navigation/WithUserflowReactNavigation.js +14 -11
- package/lib/module/navigation/WithUserflowReactNavigation.js.map +1 -1
- package/lib/module/navigation/openFlowNavigateUrl.js +12 -5
- package/lib/module/navigation/openFlowNavigateUrl.js.map +1 -1
- package/lib/module/pairing/PairingController.js +245 -27
- package/lib/module/pairing/PairingController.js.map +1 -1
- package/lib/module/pairing/PreviewModeBanner.js +54 -16
- 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 +5 -4
- package/lib/module/pairing/diagnostics.js.map +1 -1
- package/lib/module/pairing/tokenStorage.js +47 -7
- package/lib/module/pairing/tokenStorage.js.map +1 -1
- package/lib/module/pairing/usePairingState.js +3 -1
- package/lib/module/pairing/usePairingState.js.map +1 -1
- package/lib/module/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/SdkErrorBoundary.js +55 -0
- package/lib/module/runtime/SdkErrorBoundary.js.map +1 -0
- package/lib/module/runtime/TargetPressBridge.js +19 -12
- 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 +136 -66
- 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/embedBannerRegistry.js +24 -0
- package/lib/module/runtime/embedBannerRegistry.js.map +1 -0
- package/lib/module/runtime/flowEngine.js +72 -3
- package/lib/module/runtime/flowEngine.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/screenTracker.js +33 -9
- 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/MadeWithUserflow.js +11 -7
- package/lib/module/surfaces/MadeWithUserflow.js.map +1 -1
- package/lib/module/surfaces/ModalSurface.js +1 -1
- package/lib/module/surfaces/ModalSurface.js.map +1 -1
- package/lib/module/surfaces/TooltipSurface.js +17 -1
- 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/resolveBannerTheme.js +16 -0
- package/lib/module/surfaces/resolveBannerTheme.js.map +1 -0
- package/lib/module/surfaces/safeArea.js +22 -0
- package/lib/module/surfaces/safeArea.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts +14 -0
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.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/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/isInstanceOnVisibleScreen.d.ts +19 -0
- package/lib/typescript/commonjs/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts +6 -4
- package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts.map +1 -1
- 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 +1 -0
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts +14 -3
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts +12 -4
- package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts +5 -0
- package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts +7 -6
- package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts +2 -3
- package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts +57 -2
- package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +47 -3
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -1
- 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/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/themeColor.d.ts +2 -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/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/index.d.ts +16 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/lifecycle.d.ts +4 -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/openFlowNavigateUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +71 -4
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts +9 -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 +3 -2
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts +14 -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/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.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 +9 -3
- 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/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/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/screenTracker.d.ts +7 -3
- 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/MadeWithUserflow.d.ts +10 -6
- package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts.map +1 -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/resolveBannerTheme.d.ts +7 -0
- package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.d.ts.map +1 -0
- 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/version.d.ts +1 -1
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts +14 -0
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.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/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/isInstanceOnVisibleScreen.d.ts +19 -0
- package/lib/typescript/module/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts +6 -4
- package/lib/typescript/module/src/anchors/semanticMatcher.d.ts.map +1 -1
- 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 +1 -0
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts +14 -3
- package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/ChromeButton.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts +1 -1
- package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts +12 -4
- package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts +5 -0
- package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/chrome/tokens.d.ts +7 -6
- package/lib/typescript/module/src/authoring/chrome/tokens.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/elementPickerController.d.ts +2 -3
- package/lib/typescript/module/src/authoring/elementPickerController.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts +57 -2
- package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/hitTest.d.ts +47 -3
- package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -1
- 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/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/themeColor.d.ts +2 -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/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/index.d.ts +16 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/lifecycle.d.ts +4 -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/openFlowNavigateUrl.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts +71 -4
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts +9 -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 +3 -2
- package/lib/typescript/module/src/pairing/diagnostics.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts +14 -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/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.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 +9 -3
- 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/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/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/screenTracker.d.ts +7 -3
- 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/MadeWithUserflow.d.ts +10 -6
- package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts.map +1 -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/resolveBannerTheme.d.ts +7 -0
- package/lib/typescript/module/src/surfaces/resolveBannerTheme.d.ts.map +1 -0
- 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/version.d.ts +1 -1
- package/package.json +4 -3
- package/src/anchors/AutoAnchorRegistry.ts +41 -11
- package/src/anchors/fiber/fiberPath.ts +117 -0
- package/src/anchors/fiber/findAnchorFiber.ts +57 -47
- 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/isInstanceOnVisibleScreen.ts +55 -0
- package/src/anchors/resolveAutoAnchorHost.ts +17 -15
- package/src/anchors/semanticMatcher.ts +38 -14
- package/src/anonymousId.ts +2 -1
- package/src/authoring/ElementPickerOverlay.tsx +168 -59
- package/src/authoring/chrome/ChromeBottomSheet.tsx +49 -8
- package/src/authoring/chrome/ChromeButton.tsx +9 -4
- package/src/authoring/chrome/ChromeIcon.tsx +10 -1
- package/src/authoring/chrome/ChromeTopBar.tsx +39 -15
- package/src/authoring/chrome/DoubleTapBridge.tsx +19 -12
- package/src/authoring/chrome/doubleTapMonitor.ts +10 -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/tokens.ts +7 -2
- package/src/authoring/elementPickerController.ts +2 -4
- package/src/authoring/fingerprintFromInstance.ts +170 -4
- package/src/authoring/hitTest.ts +324 -16
- package/src/authoring/hostAtPoint.ts +247 -0
- package/src/content/BannerStepButton.tsx +91 -0
- package/src/content/buttonAppearance.ts +16 -0
- package/src/content/resolveBannerButtonChrome.ts +49 -0
- package/src/content/themeColor.ts +15 -0
- package/src/content/types.ts +1 -0
- package/src/deepLinking.ts +4 -4
- 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 +2 -2
- package/src/index.ts +129 -45
- package/src/lifecycle.ts +4 -1
- package/src/navigation/WithUserflowReactNavigation.tsx +13 -10
- package/src/navigation/openFlowNavigateUrl.ts +12 -5
- package/src/pairing/PairingController.ts +283 -29
- package/src/pairing/PreviewModeBanner.tsx +71 -14
- package/src/pairing/deepLink.ts +23 -5
- package/src/pairing/deviceId.ts +43 -0
- package/src/pairing/diagnostics.ts +6 -4
- package/src/pairing/tokenStorage.ts +60 -7
- package/src/pairing/usePairingState.ts +2 -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/SdkErrorBoundary.tsx +77 -0
- package/src/runtime/TargetPressBridge.tsx +19 -12
- package/src/runtime/UserflowOverlay.tsx +118 -0
- package/src/runtime/UserflowProvider.tsx +139 -64
- package/src/runtime/bannerEngine.ts +55 -0
- package/src/runtime/bannerEngineContext.ts +5 -0
- package/src/runtime/bannerPlacement.ts +36 -0
- package/src/runtime/embedBannerRegistry.ts +28 -0
- package/src/runtime/flowEngine.ts +76 -3
- package/src/runtime/isolateCall.ts +53 -0
- package/src/runtime/reportSdkError.ts +12 -0
- package/src/runtime/useBannerSession.ts +35 -0
- package/src/screenTracker.ts +34 -8
- package/src/surfaces/BannerBar.tsx +176 -0
- package/src/surfaces/BannerSurface.tsx +82 -0
- package/src/surfaces/MadeWithUserflow.tsx +15 -10
- package/src/surfaces/ModalSurface.tsx +1 -1
- package/src/surfaces/TooltipSurface.tsx +17 -1
- 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/resolveBannerTheme.ts +18 -0
- package/src/surfaces/safeArea.ts +29 -0
- package/src/version.ts +1 -1
- 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 +41 -1
- package/vendor/core/dist/engine/FlowSessionEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/FlowSessionEngine.js +167 -28
- package/vendor/core/dist/engine/FlowSessionEngine.js.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.d.ts +38 -2
- package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -1
- package/vendor/core/dist/engine/PairingEngine.js +19 -2
- package/vendor/core/dist/engine/PairingEngine.js.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts +10 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +47 -27
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/engine/handleActions.d.ts +17 -3
- package/vendor/core/dist/engine/handleActions.d.ts.map +1 -1
- package/vendor/core/dist/engine/handleActions.js +17 -14
- package/vendor/core/dist/engine/handleActions.js.map +1 -1
- package/vendor/core/dist/engine/trackCondition.d.ts +2 -0
- package/vendor/core/dist/engine/trackCondition.d.ts.map +1 -1
- package/vendor/core/dist/engine/trackCondition.js +4 -2
- package/vendor/core/dist/engine/trackCondition.js.map +1 -1
- package/vendor/core/dist/engine/trackStepTriggers.d.ts +11 -1
- package/vendor/core/dist/engine/trackStepTriggers.d.ts.map +1 -1
- package/vendor/core/dist/engine/trackStepTriggers.js +42 -16
- package/vendor/core/dist/engine/trackStepTriggers.js.map +1 -1
- 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 +4 -1
- package/vendor/core/dist/index.d.ts.map +1 -1
- package/vendor/core/dist/index.js +1 -0
- package/vendor/core/dist/index.js.map +1 -1
- package/vendor/core/dist/normalizeAttributes.js +9 -7
- package/vendor/core/dist/normalizeAttributes.js.map +1 -1
- 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 +8 -0
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
- package/vendor/core/dist/transport/phoenix.js +16 -2
- package/vendor/core/dist/transport/phoenix.js.map +1 -1
- package/vendor/core/dist/version.d.ts +1 -1
- package/vendor/core/dist/version.js +1 -1
- package/vendor/core/package.json +1 -1
- package/vendor/protocol/dist/autoData.d.ts +8 -15
- package/vendor/protocol/dist/autoData.d.ts.map +1 -1
- package/vendor/protocol/dist/autoData.js.map +1 -1
- package/vendor/protocol/dist/flows.d.ts +58 -2
- package/vendor/protocol/dist/flows.d.ts.map +1 -1
- package/vendor/protocol/dist/flows.js +20 -2
- package/vendor/protocol/dist/flows.js.map +1 -1
- package/vendor/protocol/dist/messages.d.ts +22 -12
- package/vendor/protocol/dist/messages.d.ts.map +1 -1
- package/vendor/protocol/dist/messages.js +5 -2
- package/vendor/protocol/dist/messages.js.map +1 -1
- package/vendor/protocol/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_AutoAnchorRegistry","require","_fiberInternals","_measureHostFiber","_visibleScreens","_targetPressMonitor","MEASURE_TIMEOUT_MS","isMeasurableNode","value","measureInWindow","areaOf","rect","width","height","isInstanceOnVisibleScreen","inst","fiber","fiberFromPublicInstance","ref","current","isFiberOnVisibleScreen","measureWithTimeout","run","Promise","resolve","settled","timer","setTimeout","x","y","clearTimeout","measureInstanceRect","node","callback","measureHostFiber","hitTestAt","opts","filter","instanceFilter","measure","pool","instances","autoAnchorRegistry","allInstances","refreshLiveContent","measured","all","map","instance","pointInRect","area","c","sort","a","b","nextContainingIndex","candidates","currentIndex","length"],"sourceRoot":"../../../src","sources":["authoring/hitTest.ts"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAkBA,MAAMK,kBAAkB,GAAG,GAAG;AAQ9B,SAASC,gBAAgBA,CAACC,KAAc,EAA2B;EACjE,OACE,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,KAAK,IAAI,IACd,OAAQA,KAAK,CAAmCC,eAAe,KAAK,UAAU;AAElF;AAEA,SAASC,MAA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C,CACH,CAAC;EAED,OAAOkC,QAAQ,CAACR,MAAM,CAAEc,CAAC,IAAwBA,CAAC,IAAI,IAAI,CAAC,CAACC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACH,IAAI,GAAGI,CAAC,CAACJ,IAAI,CAAC;AAC7F;;AAEA;AACO,SAASK,mBAAmBA,CAACC,UAA0B,EAAEC,YAAoB,EAAU;EAC5F,IAAID,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;EACtC,OAAO,CAACD,YAAY,GAAG,CAAC,IAAID,UAAU,CAACE,MAAM;AAC/C","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_AutoAnchorRegistry","_FiberScanRoot","_fiberInternals","_indexHostFibers","_measureHostFiber","_readHostContent","_visibleRect","_visibleScreens","_walkVisibleFibers","_isInstanceOnVisibleScreen","_targetPressMonitor","_hostAtPoint","MEASURE_TIMEOUT_MS","SCROLL_HOST_TYPES","Set","MAX_DEFAULT_PRESSABLE_WINDOW_SHARE","INTERACTIVE_ROLES","isMeasurableNode","value","measureInWindow","areaOf","rect","width","height","fiberFromPublicInstanceSafe","node","lookupHostFiber","createLazyHostFiberIndex","measureWithTimeout","run","Promise","resolve","settled","timer","setTimeout","x","y","clearTimeout","measureInstanceRect","inst","ref","current","callback","fiber","measureHostFiber","stringProp","trim","undefined","hostKind","type","length","fiberTargetDescriptor","isHostFiber","props","getLiveHostProps","testID","nativeID","usableNativeID","startsWith","accessibilityLabel","kind","isScrollHost","has","a11yRole","accessibilityRole","role","interactiveRole","toLowerCase","hasPress","onPress","onClick","isPressable","childText","readHostText","roleForKind","registryMap","instances","map","Map","getIndex","set","alternate","getAlternate","targetForHost","byFiber","registered","get","source","instance","descriptor","candidateChain","host","chain","isFiberOnVisibleScreen","scanRoot","fiberScanRoot","getFiber","scanRootAlternate","seenInstances","seenFibers","depth","MAX_ANCESTOR_WALK","target","instanceId","add","push","getReturn","measureFiberRect","candidatesFromChain","measure","measured","all","area","filter","c","windowArea","Dimensions","Infinity","defaultCandidateIndex","candidates","cap","index","findIndex","candidate","pressable","clipCandidate","clipped","clipToScrollViewports","hitTestAt","opts","instanceFilter","createVisibleInstanceFilter","pool","autoAnchorRegistry","allInstances","refreshLiveContent","injected","hostAtPoint","locate","geometryHits","root","modal","topmostVisibleModalHost","scoped","fiberIsUnder","targets","walkVisibleFibers","raw","pointInRect","sort","a","b","nextContainingIndex","currentIndex"],"sourceRoot":"../../../src","sources":["authoring/hitTest.ts"],"mappings":";;;;;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAD,OAAA;AAKA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAQA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,0BAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AAEA,IAAAY,YAAA,GAAAZ,OAAA;AASA;;AAyBA,MAAMa,kBAAkB,GAAG,GAAG;;AAE9B;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAChC,eAAe,EACf,sBAAsB,EACtB,6BAA6B,EAC7B,oCAAoC,CACrC,CAAC;;AAEF;AACA,MAAMC,kCAAkC,GAAG,GAAG;AAE9C,MAAMC,iBAAiB,GAAG,IAAIF,GAAG,CAAC,CAChC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,cAAc,CACf,CAAC;AAQF,SAASG,gBAAgBA,CAACC,KAAc,EAA2B;EACjE,OACE,OAAOA,KAAK,KAAK,QAAQ,IACzBA,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M,CAACd,QAAQ,CAAC,GAC9B,MAAMmB,gBAAgB,CAACL,MAAM,CAAC3D,KAAK,CAAC;IAC1C,IAAI,CAACwG,GAAG,EAAE,OAAO,IAAI;IACrB,MAAMrB,OAAO,GAAG,MAAMD,aAAa,CAAC;MAAEvB,MAAM;MAAEjF,IAAI,EAAE8H,GAAG;MAAEnC,IAAI,EAAE5F,MAAM,CAAC+H,GAAG;IAAE,CAAC,CAAC;IAC7E,IAAI,CAACrB,OAAO,EAAE,OAAO,IAAI;IACzB,IAAI,CAAC,IAAAsB,+BAAW,EAACjH,CAAC,EAAEC,CAAC,EAAE0F,OAAO,CAACzG,IAAI,CAAC,EAAE,OAAO,IAAI;IACjD,OAAOyG,OAAO;EAChB,CAAC,CACH,CAAC;EAED,OAAOhB,QAAQ,CAACG,MAAM,CAAEC,CAAC,IAAwBA,CAAC,IAAI,IAAI,CAAC,CAACmC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACtC,IAAI,GAAGuC,CAAC,CAACvC,IAAI,CAAC;AAC7F;;AAEA;AACO,SAASwC,mBAAmBA,CAACjC,UAA0B,EAAEkC,YAAoB,EAAU;EAC5F,IAAIlC,UAAU,CAACrE,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;EACtC,OAAO,CAACuG,YAAY,GAAG,CAAC,IAAIlC,UAAU,CAACrE,MAAM;AAC/C","ignoreList":[]}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.hostAtPoint = hostAtPoint;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _FiberScanRoot = require("../anchors/fiber/FiberScanRoot.js");
|
|
9
|
+
var _fiberInternals = require("../anchors/fiber/fiberInternals.js");
|
|
10
|
+
var _findAnchorFiber = require("../anchors/fiber/findAnchorFiber.js");
|
|
11
|
+
var _indexHostFibers = require("../anchors/fiber/indexHostFibers.js");
|
|
12
|
+
var _measureHostFiber = require("../anchors/fiber/measureHostFiber.js");
|
|
13
|
+
var _visibleRect = require("../anchors/fiber/visibleRect.js");
|
|
14
|
+
var _visibleScreens = require("../anchors/fiber/visibleScreens.js");
|
|
15
|
+
/**
|
|
16
|
+
* Topmost host fiber under a window point.
|
|
17
|
+
*
|
|
18
|
+
* Spike (RN 0.86 source, not a device run):
|
|
19
|
+
* - `findNodeAtPoint` is registered unconditionally in `UIManagerBinding.cpp`,
|
|
20
|
+
* and `ReactFabric-prod.js` already calls `nativeFabricUIManager`. The DEV
|
|
21
|
+
* inspector is the only JS caller, but the native method is present in
|
|
22
|
+
* release builds. Call it directly and feature-detect.
|
|
23
|
+
* - `pointerEvents="none"` fails `canBeTouchTarget` and
|
|
24
|
+
* `canChildrenBeTouchTarget`, so a decorative backdrop is not returned
|
|
25
|
+
* (see `FindNodeAtPointTest.overlappingViewsWithParentPointerEventsNone`).
|
|
26
|
+
* - Scroll views subtract `contentOffset` in `getContentOriginOffset`, so
|
|
27
|
+
* content scrolled out of the viewport is not a hit.
|
|
28
|
+
* - Modal content lives under `ModalHostView` in the same shadow tree, but
|
|
29
|
+
* its frame is relative to the modal window. If the root hit misses the
|
|
30
|
+
* visible modal's subtree, retry rooted at that modal.
|
|
31
|
+
* - Screens a navigator covers stay laid out in the shadow tree, on top of the
|
|
32
|
+
* visible one, and react-native-screens clears their zIndex, so the
|
|
33
|
+
* last-mounted sibling wins. After visiting a later tab, a tap on an earlier
|
|
34
|
+
* one lands on the hidden tab. Retry rooted at the visible screen.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
const HIT_TIMEOUT_MS = 400;
|
|
38
|
+
|
|
39
|
+
/** Re-hits allowed while a hit keeps landing on a covered screen (one per nesting level). */
|
|
40
|
+
const MAX_COVERED_SCREEN_RETRIES = 4;
|
|
41
|
+
function fabricManager() {
|
|
42
|
+
const manager = globalThis.nativeFabricUIManager;
|
|
43
|
+
if (!manager || typeof manager.findNodeAtPoint !== 'function') return null;
|
|
44
|
+
return manager;
|
|
45
|
+
}
|
|
46
|
+
function paperManager() {
|
|
47
|
+
const manager = _reactNative.UIManager;
|
|
48
|
+
if (!manager || typeof manager.findSubviewIn !== 'function') return null;
|
|
49
|
+
return manager;
|
|
50
|
+
}
|
|
51
|
+
function shadowNodeFromHost(fiber) {
|
|
52
|
+
const stateNode = (0, _fiberInternals.getStateNode)(fiber);
|
|
53
|
+
if (!stateNode || typeof stateNode !== 'object') return null;
|
|
54
|
+
const node = stateNode;
|
|
55
|
+
return node.node ?? node.canonical?.node ?? null;
|
|
56
|
+
}
|
|
57
|
+
function fiberFromInstanceHandle(handle) {
|
|
58
|
+
if ((0, _fiberInternals.isReactFiber)(handle)) {
|
|
59
|
+
try {
|
|
60
|
+
return (0, _fiberInternals.resolveCurrentFiber)(handle);
|
|
61
|
+
} catch {
|
|
62
|
+
return handle;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const coerced = (0, _fiberInternals.coerceToFiber)(handle);
|
|
66
|
+
if (coerced) return coerced;
|
|
67
|
+
if (!handle || typeof handle !== 'object') return null;
|
|
68
|
+
const record = handle;
|
|
69
|
+
const nested = record.stateNode?.canonical?.internalInstanceHandle;
|
|
70
|
+
if ((0, _fiberInternals.isReactFiber)(nested)) return (0, _fiberInternals.resolveCurrentFiber)(nested);
|
|
71
|
+
return (0, _fiberInternals.coerceToFiber)(nested);
|
|
72
|
+
}
|
|
73
|
+
function withTimeout(run, fallback) {
|
|
74
|
+
return new Promise(resolve => {
|
|
75
|
+
let settled = false;
|
|
76
|
+
const timer = setTimeout(() => {
|
|
77
|
+
if (settled) return;
|
|
78
|
+
settled = true;
|
|
79
|
+
resolve(fallback);
|
|
80
|
+
}, HIT_TIMEOUT_MS);
|
|
81
|
+
const settle = value => {
|
|
82
|
+
if (settled) return;
|
|
83
|
+
settled = true;
|
|
84
|
+
clearTimeout(timer);
|
|
85
|
+
resolve(value);
|
|
86
|
+
};
|
|
87
|
+
try {
|
|
88
|
+
run(settle);
|
|
89
|
+
} catch {
|
|
90
|
+
settle(fallback);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function measureOrigin(fiber) {
|
|
95
|
+
return withTimeout(settle => {
|
|
96
|
+
(0, _measureHostFiber.measureHostFiber)(fiber, (x, y, width, height) => {
|
|
97
|
+
if (width <= 0 && height <= 0 && x === 0 && y === 0) {
|
|
98
|
+
settle(null);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
settle({
|
|
102
|
+
x,
|
|
103
|
+
y
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}, null);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* `node`'s origin within its parent. `findNodeAtPoint` tests the point against
|
|
111
|
+
* `node`'s own frame, which is in parent coordinates. Zero when `measure` is
|
|
112
|
+
* unavailable, which is exact for a node at its parent's origin.
|
|
113
|
+
*/
|
|
114
|
+
function originInParent(manager, node) {
|
|
115
|
+
const measure = manager.measure;
|
|
116
|
+
const none = {
|
|
117
|
+
x: 0,
|
|
118
|
+
y: 0
|
|
119
|
+
};
|
|
120
|
+
if (typeof measure !== 'function') return Promise.resolve(none);
|
|
121
|
+
return withTimeout(settle => {
|
|
122
|
+
measure.call(manager, node, (x, y) => {
|
|
123
|
+
settle(Number.isFinite(x) && Number.isFinite(y) ? {
|
|
124
|
+
x,
|
|
125
|
+
y
|
|
126
|
+
} : none);
|
|
127
|
+
});
|
|
128
|
+
}, none);
|
|
129
|
+
}
|
|
130
|
+
async function hitFabric(rootHost, x, y) {
|
|
131
|
+
const manager = fabricManager();
|
|
132
|
+
const node = shadowNodeFromHost(rootHost);
|
|
133
|
+
if (!manager || node == null) return null;
|
|
134
|
+
const origin = await measureOrigin(rootHost);
|
|
135
|
+
if (!origin) return null;
|
|
136
|
+
const inParent = await originInParent(manager, node);
|
|
137
|
+
const handle = await withTimeout(settle => {
|
|
138
|
+
manager.findNodeAtPoint(node, x - origin.x + inParent.x, y - origin.y + inParent.y, settle);
|
|
139
|
+
}, null);
|
|
140
|
+
if (!handle) return null;
|
|
141
|
+
return fiberFromInstanceHandle(handle);
|
|
142
|
+
}
|
|
143
|
+
async function hitPaper(rootHost, x, y) {
|
|
144
|
+
const manager = paperManager();
|
|
145
|
+
const tag = (0, _fiberInternals.nativeTagFromHostFiber)(rootHost);
|
|
146
|
+
if (!manager || tag === undefined) return null;
|
|
147
|
+
// `findSubviewIn` hit-tests in the view's own coordinates (iOS `hitTest:`,
|
|
148
|
+
// Android `TouchTargetHelper`). The window root sits at the window origin; a
|
|
149
|
+
// nested screen does not. Unmeasurable falls back to the window point.
|
|
150
|
+
const origin = (await measureOrigin(rootHost)) ?? {
|
|
151
|
+
x: 0,
|
|
152
|
+
y: 0
|
|
153
|
+
};
|
|
154
|
+
const nativeTag = await withTimeout(settle => {
|
|
155
|
+
manager.findSubviewIn(tag, [x - origin.x, y - origin.y], found => {
|
|
156
|
+
settle(typeof found === 'number' ? found : null);
|
|
157
|
+
});
|
|
158
|
+
}, null);
|
|
159
|
+
if (nativeTag == null) return null;
|
|
160
|
+
const index = (0, _indexHostFibers.createHostFiberIndex)(_FiberScanRoot.fiberScanRoot.getFiber());
|
|
161
|
+
return index.byNativeTag.get(nativeTag) ?? null;
|
|
162
|
+
}
|
|
163
|
+
async function hitUnder(rootHost, x, y) {
|
|
164
|
+
const fabric = await hitFabric(rootHost, x, y);
|
|
165
|
+
if (fabric) return fabric;
|
|
166
|
+
return hitPaper(rootHost, x, y);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** {@link hitUnder}, re-hit from the visible screen while the hit lands on a covered one. */
|
|
170
|
+
async function hitOnVisibleScreen(rootHost, x, y) {
|
|
171
|
+
let hit = await hitUnder(rootHost, x, y);
|
|
172
|
+
for (let attempt = 0; hit && attempt < MAX_COVERED_SCREEN_RETRIES; attempt += 1) {
|
|
173
|
+
const screens = (0, _visibleScreens.screensCoveringFiber)(hit);
|
|
174
|
+
if (screens.length === 0) return hit;
|
|
175
|
+
let next = null;
|
|
176
|
+
for (const screen of screens) {
|
|
177
|
+
next = await hitUnder(screen, x, y);
|
|
178
|
+
if (next) break;
|
|
179
|
+
}
|
|
180
|
+
hit = next;
|
|
181
|
+
}
|
|
182
|
+
// Still on a covered screen: report no hit so the caller uses geometry.
|
|
183
|
+
return hit && (0, _visibleScreens.isFiberOnVisibleScreen)(hit) ? hit : null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Host fiber drawn on top at window coordinates, or null when neither Fabric
|
|
188
|
+
* nor Paper hit-testing is available.
|
|
189
|
+
*/
|
|
190
|
+
async function hostAtPoint(x, y) {
|
|
191
|
+
const root = _FiberScanRoot.fiberScanRoot.getFiber();
|
|
192
|
+
if (!root) return null;
|
|
193
|
+
const rootHost = (0, _findAnchorFiber.nearestHostDescendant)(root);
|
|
194
|
+
if (!rootHost) return null;
|
|
195
|
+
let hit = await hitOnVisibleScreen(rootHost, x, y);
|
|
196
|
+
const modal = (0, _visibleRect.topmostVisibleModalHost)(root);
|
|
197
|
+
const modalHost = modal ? (0, _findAnchorFiber.nearestHostDescendant)(modal) : null;
|
|
198
|
+
if (modalHost && (!hit || !(0, _visibleRect.fiberIsUnder)(hit, modal))) {
|
|
199
|
+
const modalHit = await hitOnVisibleScreen(modalHost, x, y);
|
|
200
|
+
if (modalHit) hit = modalHit;
|
|
201
|
+
}
|
|
202
|
+
return hit;
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=hostAtPoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_FiberScanRoot","_fiberInternals","_findAnchorFiber","_indexHostFibers","_measureHostFiber","_visibleRect","_visibleScreens","HIT_TIMEOUT_MS","MAX_COVERED_SCREEN_RETRIES","fabricManager","manager","globalThis","nativeFabricUIManager","findNodeAtPoint","paperManager","UIManager","findSubviewIn","shadowNodeFromHost","fiber","stateNode","getStateNode","node","canonical","fiberFromInstanceHandle","handle","isReactFiber","resolveCurrentFiber","coerced","coerceToFiber","record","nested","internalInstanceHandle","withTimeout","run","fallback","Promise","resolve","settled","timer","setTimeout","settle","value","clearTimeout","measureOrigin","measureHostFiber","x","y","width","height","originInParent","measure","none","call","Number","isFinite","hitFabric","rootHost","origin","inParent","hitPaper","tag","nativeTagFromHostFiber","undefined","nativeTag","found","index","createHostFiberIndex","fiberScanRoot","getFiber","byNativeTag","get","hitUnder","fabric","hitOnVisibleScreen","hit","attempt","screens","screensCoveringFiber","length","next","screen","isFiberOnVisibleScreen","hostAtPoint","root","nearestHostDescendant","modal","topmostVisibleModalHost","modalHost","fiberIsUnder","modalHit"],"sourceRoot":"../../../src","sources":["authoring/hostAtPoint.ts"],"mappings":";;;;;;AAqBA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AApCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBA,MAAMQ,cAAc,GAAG,GAAG;;AAE1B;AACA,MAAMC,0BAA0B,GAAG,CAAC;AAoCpC,SAASC,aAAaA,CAAA,EAA4B;EAChD,MAAMC,OAAO,GAAIC,UAAU,CACxBC,qBAAqB;EACxB,IAAI,CAACF,OAAO,IAAI,OAAOA,OAAO,CAACG,eAAe,KAAK,UAAU,EAAE,OAAO,IAAI;EAC1E,OAAOH,OAAO;AAChB;AAEA,SAASI,YAAYA,CAAA,EAA2B;EAC9C,MAAMJ,OAAO,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D,IAAI2C,QAAQ,EAAEf,GAAG,GAAGe,QAAQ;EAC9B;EACA,OAAOf,GAAG;AACZ","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BannerStepButton = BannerStepButton;
|
|
7
|
+
var _core = require("@userflow-tech/core");
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _resolveBannerTheme = require("../surfaces/resolveBannerTheme.js");
|
|
11
|
+
var _resolveBannerButtonChrome = require("./resolveBannerButtonChrome.js");
|
|
12
|
+
var _resolveStepButtonChrome = require("./resolveStepButtonChrome.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
/** Step actions on the embed banner bar (Figma SDK Embed Banner). */
|
|
16
|
+
function BannerStepButton({
|
|
17
|
+
button,
|
|
18
|
+
theme,
|
|
19
|
+
sessionData,
|
|
20
|
+
onActions
|
|
21
|
+
}) {
|
|
22
|
+
const label = (0, _core.interpolateSessionData)(button.text, sessionData);
|
|
23
|
+
const bannerBackground = (0, _resolveBannerTheme.resolveBannerBackgroundColor)(theme);
|
|
24
|
+
const bannerForeground = (0, _resolveBannerTheme.resolveBannerForegroundColor)(theme);
|
|
25
|
+
const chrome = (0, _resolveBannerButtonChrome.resolveBannerButtonChrome)(theme, button.appearance, bannerBackground, bannerForeground);
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
27
|
+
testID: `userflow-button-${button.cvid}`,
|
|
28
|
+
accessibilityRole: "button",
|
|
29
|
+
accessibilityLabel: label,
|
|
30
|
+
onPress: () => onActions(button.actions),
|
|
31
|
+
style: ({
|
|
32
|
+
pressed
|
|
33
|
+
}) => [styles.button, (0, _resolveStepButtonChrome.stepButtonContainerStyle)(chrome), {
|
|
34
|
+
opacity: pressed ? 0.88 : 1
|
|
35
|
+
}],
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
37
|
+
style: [styles.label, {
|
|
38
|
+
color: chrome.fontColor,
|
|
39
|
+
fontFamily: theme.fontFamily || undefined,
|
|
40
|
+
fontSize: chrome.fontSize,
|
|
41
|
+
fontWeight: chrome.fontWeight,
|
|
42
|
+
...labelMetrics(chrome.lineHeight)
|
|
43
|
+
}],
|
|
44
|
+
children: label
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function labelMetrics(lineHeight) {
|
|
49
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
50
|
+
return {
|
|
51
|
+
includeFontPadding: false,
|
|
52
|
+
textAlignVertical: 'center'
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
lineHeight
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const styles = _reactNative.StyleSheet.create({
|
|
60
|
+
button: {
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
justifyContent: 'center'
|
|
63
|
+
},
|
|
64
|
+
label: {
|
|
65
|
+
textAlign: 'center'
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=BannerStepButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_core","require","React","_interopRequireWildcard","_reactNative","_resolveBannerTheme","_resolveBannerButtonChrome","_resolveStepButtonChrome","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BannerStepButton","button","theme","sessionData","onActions","label","interpolateSessionData","text","bannerBackground","resolveBannerBackgroundColor","bannerForeground","resolveBannerForegroundColor","chrome","resolveBannerButtonChrome","appearance","jsx","Pressable","testID","cvid","accessibilityRole","accessibilityLabel","onPress","actions","style","pressed","styles","stepButtonContainerStyle","opacity","children","Text","color","fontColor","fontFamily","undefined","fontSize","fontWeight","labelMetrics","lineHeight","Platform","OS","includeFontPadding","textAlignVertical","StyleSheet","create","alignItems","justifyContent","textAlign"],"sourceRoot":"../../../src","sources":["content/BannerStepButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAMA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;AAKA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AAAqE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CA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,CACtBC,MAAM,CAACxB,MAAM,EACb,IAAAyB,iDAAwB,EAACd,MAAM,CAAC,EAChC;MAAEe,OAAO,EAAEH,OAAO,GAAG,IAAI,GAAG;IAAE,CAAC,CAC/B;IAAAI,QAAA,eAEF,IAAAhD,WAAA,CAAAmC,GAAA,EAACvC,YAAA,CAAAqD,IAAI;MACHN,KAAK,EAAE,CACLE,MAAM,CAACpB,KAAK,EACZ;QACEyB,KAAK,EAAElB,MAAM,CAACmB,SAAS;QACvBC,UAAU,EAAE9B,KAAK,CAAC8B,UAAU,IAAIC,SAAS;QACzCC,QAAQ,EAAEtB,MAAM,CAACsB,QAAQ;QACzBC,UAAU,EAAEvB,MAAM,CAACuB,UAAU;QAC7B,GAAGC,YAAY,CAACxB,MAAM,CAACyB,UAAU;MACnC,CAAC,CACD;MAAAT,QAAA,EAEDvB;IAAK,CACF;EAAC,CACE,CAAC;AAEhB;AAEA,SAAS+B,YAAYA,CAACC,UAAkB,EAAa;EACnD,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7B,OAAO;MACLC,kBAAkB,EAAE,KAAK;MACzBC,iBAAiB,EAAE;IACrB,CAAC;EACH;EACA,OAAO;IAAEJ;EAAW,CAAC;AACvB;AAEA,MAAMZ,MAAM,GAAGiB,uBAAU,CAACC,MAAM,CAAC;EAC/B1C,MAAM,EAAE;IACN2C,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDxC,KAAK,EAAE;IACLyC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.isBannerPrimaryAppearance = isBannerPrimaryAppearance;
|
|
7
|
+
exports.isBannerSecondaryAppearance = isBannerSecondaryAppearance;
|
|
6
8
|
exports.isPrimaryButtonAppearance = isPrimaryButtonAppearance;
|
|
7
9
|
/**
|
|
8
10
|
* Web parity: DEFAULT / default map to secondary (`--default`); PRIMARY
|
|
@@ -15,4 +17,18 @@ function isPrimaryButtonAppearance(appearance) {
|
|
|
15
17
|
const normalized = appearance.toLowerCase();
|
|
16
18
|
return normalized === 'primary' || normalized === 'banner-primary';
|
|
17
19
|
}
|
|
20
|
+
|
|
21
|
+
/** Figma / web `userflowjs-bubble-button--banner-primary` (inverted CTA on the bar). */
|
|
22
|
+
function isBannerPrimaryAppearance(appearance) {
|
|
23
|
+
if (!appearance) return false;
|
|
24
|
+
const normalized = appearance.toLowerCase();
|
|
25
|
+
return normalized === 'banner-primary' || normalized === 'primary';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Figma / web `userflowjs-bubble-button--banner-secondary` (outline on the bar). */
|
|
29
|
+
function isBannerSecondaryAppearance(appearance) {
|
|
30
|
+
if (!appearance) return false;
|
|
31
|
+
const normalized = appearance.toLowerCase();
|
|
32
|
+
return normalized === 'banner-secondary' || normalized === 'default' || normalized === 'secondary';
|
|
33
|
+
}
|
|
18
34
|
//# sourceMappingURL=buttonAppearance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isPrimaryButtonAppearance","appearance","normalized","toLowerCase"],"sourceRoot":"../../../src","sources":["content/buttonAppearance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["isPrimaryButtonAppearance","appearance","normalized","toLowerCase","isBannerPrimaryAppearance","isBannerSecondaryAppearance"],"sourceRoot":"../../../src","sources":["content/buttonAppearance.ts"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,yBAAyBA,CAACC,UAAqC,EAAW;EACxF,IAAI,CAACA,UAAU,EAAE,OAAO,KAAK;EAC7B,MAAMC,UAAU,GAAGD,UAAU,CAACE,WAAW,CAAC,CAAC;EAC3C,OAAOD,UAAU,KAAK,SAAS,IAAIA,UAAU,KAAK,gBAAgB;AACpE;;AAEA;AACO,SAASE,yBAAyBA,CAACH,UAAqC,EAAW;EACxF,IAAI,CAACA,UAAU,EAAE,OAAO,KAAK;EAC7B,MAAMC,UAAU,GAAGD,UAAU,CAACE,WAAW,CAAC,CAAC;EAC3C,OAAOD,UAAU,KAAK,gBAAgB,IAAIA,UAAU,KAAK,SAAS;AACpE;;AAEA;AACO,SAASG,2BAA2BA,CAACJ,UAAqC,EAAW;EAC1F,IAAI,CAACA,UAAU,EAAE,OAAO,KAAK;EAC7B,MAAMC,UAAU,GAAGD,UAAU,CAACE,WAAW,CAAC,CAAC;EAC3C,OACED,UAAU,KAAK,kBAAkB,IAAIA,UAAU,KAAK,SAAS,IAAIA,UAAU,KAAK,WAAW;AAE/F","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveBannerButtonChrome = resolveBannerButtonChrome;
|
|
7
|
+
var _bannerBarTokens = require("../surfaces/bannerBarTokens.js");
|
|
8
|
+
var _buttonAppearance = require("./buttonAppearance.js");
|
|
9
|
+
var _resolveStepButtonChrome = require("./resolveStepButtonChrome.js");
|
|
10
|
+
/**
|
|
11
|
+
* Banner bar buttons (`userflowjs-bubble-button--banner-primary` /
|
|
12
|
+
* `--banner-secondary`). Primary is inverted on the bar; secondary is an outline.
|
|
13
|
+
*/
|
|
14
|
+
function resolveBannerButtonChrome(theme, appearance, bannerBackground, bannerForeground) {
|
|
15
|
+
const metrics = (0, _resolveStepButtonChrome.resolveStepButtonChrome)(theme, false);
|
|
16
|
+
if ((0, _buttonAppearance.isBannerPrimaryAppearance)(appearance)) {
|
|
17
|
+
const primaryMetrics = (0, _resolveStepButtonChrome.resolveStepButtonChrome)(theme, true);
|
|
18
|
+
return {
|
|
19
|
+
...primaryMetrics,
|
|
20
|
+
minWidth: 0,
|
|
21
|
+
backgroundColor: bannerForeground,
|
|
22
|
+
fontColor: bannerBackground,
|
|
23
|
+
borderColor: bannerForeground,
|
|
24
|
+
borderWidth: 0,
|
|
25
|
+
paddingHorizontal: _bannerBarTokens.BANNER_BUTTON_PADDING_HORIZONTAL
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if ((0, _buttonAppearance.isBannerSecondaryAppearance)(appearance) || appearance == null || appearance === '') {
|
|
29
|
+
return {
|
|
30
|
+
...metrics,
|
|
31
|
+
minWidth: 0,
|
|
32
|
+
backgroundColor: bannerBackground,
|
|
33
|
+
fontColor: bannerForeground,
|
|
34
|
+
borderColor: bannerForeground,
|
|
35
|
+
borderWidth: 1,
|
|
36
|
+
paddingHorizontal: _bannerBarTokens.BANNER_BUTTON_PADDING_HORIZONTAL
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
...(0, _resolveStepButtonChrome.resolveStepButtonChrome)(theme, (0, _buttonAppearance.isPrimaryButtonAppearance)(appearance)),
|
|
41
|
+
minWidth: 0
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=resolveBannerButtonChrome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bannerBarTokens","require","_buttonAppearance","_resolveStepButtonChrome","resolveBannerButtonChrome","theme","appearance","bannerBackground","bannerForeground","metrics","resolveStepButtonChrome","isBannerPrimaryAppearance","primaryMetrics","minWidth","backgroundColor","fontColor","borderColor","borderWidth","paddingHorizontal","BANNER_BUTTON_PADDING_HORIZONTAL","isBannerSecondaryAppearance","isPrimaryButtonAppearance"],"sourceRoot":"../../../src","sources":["content/resolveBannerButtonChrome.ts"],"mappings":";;;;;;AAEA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAKA,IAAAE,wBAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACO,SAASG,yBAAyBA,CACvCC,KAAoB,EACpBC,UAAqC,EACrCC,gBAAwB,EACxBC,gBAAwB,EACN;EAClB,MAAMC,OAAO,GAAG,IAAAC,gDAAuB,EAACL,KAAK,EAAE,KAAK,CAAC;EACrD,IAAI,IAAAM,2CAAyB,EAACL,UAAU,CAAC,EAAE;IACzC,MAAMM,cAAc,GAAG,IAAAF,gDAAuB,EAACL,KAAK,EAAE,IAAI,CAAC;IAC3D,OAAO;MACL,GAAGO,cAAc;MACjBC,QAAQ,EAAE,CAAC;MACXC,eAAe,EAAEN,gBAAgB;MACjCO,SAAS,EAAER,gBAAgB;MAC3BS,WAAW,EAAER,gBAAgB;MAC7BS,WAAW,EAAE,CAAC;MACdC,iBAAiB,EAAEC;IACrB,CAAC;EACH;EAEA,IAAI,IAAAC,6CAA2B,EAACd,UAAU,CAAC,IAAIA,UAAU,IAAI,IAAI,IAAIA,UAAU,KAAK,EAAE,EAAE;IACtF,OAAO;MACL,GAAGG,OAAO;MACVI,QAAQ,EAAE,CAAC;MACXC,eAAe,EAAEP,gBAAgB;MACjCQ,SAAS,EAAEP,gBAAgB;MAC3BQ,WAAW,EAAER,gBAAgB;MAC7BS,WAAW,EAAE,CAAC;MACdC,iBAAiB,EAAEC;IACrB,CAAC;EACH;EAEA,OAAO;IAAE,GAAG,IAAAT,gDAAuB,EAACL,KAAK,EAAE,IAAAgB,2CAAyB,EAACf,UAAU,CAAC,CAAC;IAAEO,QAAQ,EAAE;EAAE,CAAC;AAClG","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ exports.WEB_QUOTE_BORDER_ALPHA = exports.WEB_PADDING_8 = exports.WEB_PADDING_4 =
|
|
|
7
7
|
exports.blockMarginBelow = blockMarginBelow;
|
|
8
8
|
exports.foregroundAlpha = foregroundAlpha;
|
|
9
9
|
exports.isNearWhite = isNearWhite;
|
|
10
|
+
exports.mixThemeColors = mixThemeColors;
|
|
10
11
|
exports.parseThemeRgb = parseThemeRgb;
|
|
11
12
|
/**
|
|
12
13
|
* Color helpers for TreeDoc chrome that mirrors userflowjs bubble-frame.styl.
|
|
@@ -95,6 +96,20 @@ function foregroundAlpha(color, alpha) {
|
|
|
95
96
|
const rgb = parseThemeRgb(color) ?? FALLBACK_FG;
|
|
96
97
|
return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alpha})`;
|
|
97
98
|
}
|
|
99
|
+
function byteToHex(n) {
|
|
100
|
+
return clampByte(n).toString(16).padStart(2, '0');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Linear blend between two theme colors (web hover/active approximations). */
|
|
104
|
+
function mixThemeColors(base, overlay, overlayWeight) {
|
|
105
|
+
const b = parseThemeRgb(base) ?? FALLBACK_FG;
|
|
106
|
+
const o = parseThemeRgb(overlay) ?? FALLBACK_FG;
|
|
107
|
+
const w = Math.max(0, Math.min(1, overlayWeight));
|
|
108
|
+
const r = clampByte(b.r + (o.r - b.r) * w);
|
|
109
|
+
const g = clampByte(b.g + (o.g - b.g) * w);
|
|
110
|
+
const bCh = clampByte(b.b + (o.b - b.b) * w);
|
|
111
|
+
return `#${byteToHex(r)}${byteToHex(g)}${byteToHex(bCh)}`;
|
|
112
|
+
}
|
|
98
113
|
|
|
99
114
|
/**
|
|
100
115
|
* Web's default `backdropHighlightColor` is `#ffffff`. An opaque white stroke
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WEB_QUOTE_BORDER_ALPHA","exports","WEB_CODE_BG_ALPHA","WEB_PADDING_2","WEB_PADDING_4","WEB_PADDING_8","WEB_PADDING_16","ROOT_CONTENT_GAP","WEB_CODE_FONT_SCALE","WEB_CODE_RADIUS_SCALE","WEB_LINE_HEIGHT_FALLBACK","FALLBACK_FG","r","g","b","clampByte","n","Number","isNaN","Math","max","min","round","parseThemeRgb","color","trimmed","trim","short","exec","chars","split","parseInt","long","hex","slice","rgb","foregroundAlpha","alpha","isNearWhite","blockMarginBelow","isLast"],"sourceRoot":"../../../src","sources":["content/themeColor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["WEB_QUOTE_BORDER_ALPHA","exports","WEB_CODE_BG_ALPHA","WEB_PADDING_2","WEB_PADDING_4","WEB_PADDING_8","WEB_PADDING_16","ROOT_CONTENT_GAP","WEB_CODE_FONT_SCALE","WEB_CODE_RADIUS_SCALE","WEB_LINE_HEIGHT_FALLBACK","FALLBACK_FG","r","g","b","clampByte","n","Number","isNaN","Math","max","min","round","parseThemeRgb","color","trimmed","trim","short","exec","chars","split","parseInt","long","hex","slice","rgb","foregroundAlpha","alpha","byteToHex","toString","padStart","mixThemeColors","base","overlay","overlayWeight","o","w","bCh","isNearWhite","blockMarginBelow","isLast"],"sourceRoot":"../../../src","sources":["content/themeColor.ts"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;;AAEA;AACO,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,IAAI;;AAE1C;AACO,MAAME,iBAAiB,GAAAD,OAAA,CAAAC,iBAAA,GAAG,IAAI;;AAErC;AACO,MAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG,CAAC;AACvB,MAAMC,aAAa,GAAAH,OAAA,CAAAG,aAAA,GAAG,CAAC;AACvB,MAAMC,aAAa,GAAAJ,OAAA,CAAAI,aAAA,GAAG,CAAC;AACvB,MAAMC,cAAc,GAAAL,OAAA,CAAAK,cAAA,GAAG,EAAE;;AAEhC;AACA;AACA;AACA;AACO,MAAMC,gBAAgB,GAAAN,OAAA,CAAAM,gBAAA,GAAG,CAAC;;AAEjC;AACO,MAAMC,mBAAmB,GAAAP,OAAA,CAAAO,mBAAA,GAAG,KAAK;;AAExC;AACO,MAAMC,qBAAqB,GAAAR,OAAA,CAAAQ,qBAAA,GAAG,IAAI;;AAEzC;AACO,MAAMC,wBAAwB,GAAAT,OAAA,CAAAS,wBAAA,GAAG,EAAE;;AAE1C;AACA,MAAMC,WAAW,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE;AAAI,CAAC;AAI9C,SAASC,SAASA,CAACC,CAAS,EAAU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@@ -15,10 +15,10 @@ var _reactNative = require("react-native");
|
|
|
15
15
|
/**
|
|
16
16
|
* Inbound deep-link handling for builder preview.
|
|
17
17
|
*
|
|
18
|
-
* Host apps register their environment's `scheme_id` (e.g.
|
|
19
|
-
* a URL scheme at build time. The SDK
|
|
20
|
-
* query (no init config) and starts a
|
|
21
|
-
* a user is identified.
|
|
18
|
+
* Host apps register their environment's `scheme_id` (e.g.
|
|
19
|
+
* `userflow-v7twv2fw2ja2jaco7kesvowmem`) as a URL scheme at build time. The SDK
|
|
20
|
+
* matches inbound URLs by prefix + root query (no init config) and starts a
|
|
21
|
+
* draft flow via `StartFlowWithToken` once a user is identified.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/** Scheme prefix required for Userflow deep links (build-time registration). */
|