@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":["chromeColors","exports","primaryText","invertedText","blue500","overlay","focusRing","bgMiddle","danger","white","shadowButton","chromeOverlay","color","opacity","chromeSpace","chromeRadius","md","lg","fullyRounded","chromeText","
|
|
1
|
+
{"version":3,"names":["chromeColors","exports","primaryText","invertedText","blue500","overlay","focusRing","bgMiddle","danger","warningAccent","dangerAccent","disabledFill","white","shadowButton","chromeOverlay","color","opacity","chromeSpace","chromeRadius","md","lg","fullyRounded","chromeText","buttonLabel","fontSize","fontWeight","lineHeight","labelSmBold","dialogTitle","dialogBody","tooltip","chromeShadows","button","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","buttonSubtle","card","dialog"],"sourceRoot":"../../../../src","sources":["authoring/chrome/tokens.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,WAAW,EAAE,SAAS;EACtBC,YAAY,EAAE,SAAS;EACvBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,oBAAoB;EAC7B;EACAC,SAAS,EAAE,0BAA0B;EACrCC,QAAQ,EAAE,SAAS;EACnBC,MAAM,EAAE,SAAS;EACjB;EACAC,aAAa,EAAE,SAAS;EACxB;EACAC,YAAY,EAAE,SAAS;EAC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,EAAE;IACNC,WAAW,EAAEjC,YAAY,CAACa,YAAY;IACtCqB,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACD;EACAC,YAAY,EAAE;IACZP,WAAW,EAAEjC,YAAY,CAACa,YAAY;IACtCqB,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACD;EACAE,IAAI,EAAE;IACJR,WAAW,EAAEjC,YAAY,CAACE,WAAW;IACrCgC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACD;EACAT,OAAO,EAAE;IACPG,WAAW,EAAEjC,YAAY,CAACE,WAAW;IACrCgC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACD;AACF;AACA;AACA;AACA;EACEG,MAAM,EAAE;IACNT,WAAW,EAAEjC,YAAY,CAACE,WAAW;IACrCgC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb;AACF,CAA8C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IDLE","active","ElementPickerController","request","nextId","listeners","Set","getState","requestId","elementType","subscribe","listener","add","delete","beginSelection","onCancel","emit","commit","result","expectedId","req","onResult","cancel","resetForTests","clear","state","exports","elementPickerController"],"sourceRoot":"../../../src","sources":["authoring/elementPickerController.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["IDLE","active","ElementPickerController","request","nextId","listeners","Set","getState","requestId","elementType","subscribe","listener","add","delete","beginSelection","onCancel","emit","commit","result","expectedId","req","onResult","cancel","resetForTests","clear","state","exports","elementPickerController"],"sourceRoot":"../../../src","sources":["authoring/elementPickerController.ts"],"mappings":";;;;;;AAoCA,MAAMA,IAAwB,GAAG;EAAEC,MAAM,EAAE;AAAM,CAAC;AAMlD;AACA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,CAAC;EAC3BC,OAAO,GAAyB,IAAI;EACpCC,MAAM,GAAG,CAAC;EACDC,SAAS,GAAG,IAAIC,GAAG,CAAwB,CAAC;EAE7DC,QAAQA,CAAA,EAAuB;IAC7B,IAAI,CAAC,IAAI,CAACJ,OAAO,EAAE,OAAO;MAAE,GAAGH;IAAK,CAAC;IACrC,OAAO;MACLC,MAAM,EAAE,IAAI;MACZO,SAAS,EAAE,IAAI,CAACL,OAAO,CAACK,SAAS;MACjC,IAAI,IAAI,CAACL,OAAO,CAACM,WAAW,IAAI,IAAI,GAAG;QAAEA,WAAW,EAAE,IAAI,CAACN,OAAO,CAACM;MAAY,CAAC,GAAG,CAAC,CAAC;IACvF,CAAC;EACH;EAEAC,SAASA,CAACC,QAA+B,EAAc;IACrD,IAAI,CAACN,SAAS,CAACO,GAAG,CAACD,QAAQ,CAAC;IAC5BA,QAAQ,CAAC,IAAI,CAACJ,QAAQ,CAAC,CAAC,CAAC;IACzB,OAAO,MAAM;MACX,IAAI,CAACF,SAAS,CAACQ,MAAM,CAACF,QAAQ,CAAC;IACjC,CAAC;EACH;EAEAG,cAAcA,CAACX,OAA6B,EAAQ;IAClD,IAAI,IAAI,CAACA,OAAO,EAAE;MAChB,IAAI,CAACA,OAAO,CAACY,QAAQ,GAAG,CAAC;IAC3B;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EAAS;IACnB,MAAMS,KAAK,GAAG,IAAI,CAAClB,QAAQ,CAAC,CAAC;IAC7B,KAAK,MAAMI,QAAQ,IAAI,IAAI,CAACN,SAAS,EAAE;MACrC,IAAI;QACFM,QAAQ,CAACc,KAAK,CAAC;MACjB,CAAC,CAAC,MAAM;QACN;MAAA;IAEJ;EACF;AACF;AAACC,OAAA,CAAAxB,uBAAA,GAAAA,uBAAA;AAEM,MAAMyB,uBAAuB,GAAAD,OAAA,CAAAC,uBAAA,GAAG,IAAIzB,uBAAuB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.assessPickerSelection = assessPickerSelection;
|
|
7
|
+
exports.assessPickerTarget = assessPickerTarget;
|
|
8
|
+
exports.autoDataFromFiberTarget = autoDataFromFiberTarget;
|
|
6
9
|
exports.autoDataFromInstance = autoDataFromInstance;
|
|
10
|
+
exports.encodeFiberTargetAutoData = encodeFiberTargetAutoData;
|
|
7
11
|
exports.encodeInstanceAutoData = encodeInstanceAutoData;
|
|
12
|
+
exports.fiberTargetNeedsIdAdvice = fiberTargetNeedsIdAdvice;
|
|
8
13
|
exports.fingerprintFromInstance = fingerprintFromInstance;
|
|
9
14
|
exports.validatePickerFingerprint = validatePickerFingerprint;
|
|
15
|
+
exports.validatePickerTarget = validatePickerTarget;
|
|
10
16
|
var _protocol = require("@userflow-tech/protocol");
|
|
11
17
|
var _reactNative = require("react-native");
|
|
12
18
|
var _AutoAnchorRegistry = require("../anchors/AutoAnchorRegistry.js");
|
|
19
|
+
var _fiberPath = require("../anchors/fiber/fiberPath.js");
|
|
20
|
+
var _resolveFiberPath = require("../anchors/fiber/resolveFiberPath.js");
|
|
21
|
+
var _isInstanceOnVisibleScreen = require("../anchors/isInstanceOnVisibleScreen.js");
|
|
13
22
|
var semanticMatcher = _interopRequireWildcard(require("../anchors/semanticMatcher.js"));
|
|
14
23
|
var _screenTracker = require("../screenTracker.js");
|
|
15
24
|
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); }
|
|
@@ -102,7 +111,7 @@ function fingerprintFromInstance(inst) {
|
|
|
102
111
|
siblingIndex: inst.siblingIndex
|
|
103
112
|
} : {}),
|
|
104
113
|
isPressable: inst.isPressable,
|
|
105
|
-
ambiguous: inst.
|
|
114
|
+
ambiguous: _AutoAnchorRegistry.autoAnchorRegistry.isAmbiguousAmong(inst, (0, _isInstanceOnVisibleScreen.createVisibleInstanceFilter)()),
|
|
106
115
|
identityStrength: deriveIdentityStrength(inst)
|
|
107
116
|
};
|
|
108
117
|
}
|
|
@@ -169,12 +178,16 @@ function encodeInstanceAutoData(inst) {
|
|
|
169
178
|
return (0, _protocol.encodeMobileAutoData)(autoDataFromInstance(inst));
|
|
170
179
|
}
|
|
171
180
|
/**
|
|
172
|
-
* Encode `inst` and run the play-time matcher
|
|
173
|
-
*
|
|
181
|
+
* Encode `inst` and run the play-time matcher over visible screens only — the
|
|
182
|
+
* same pool as the visible pass in `resolveAutoAnchorHost`. Confirm may proceed
|
|
183
|
+
* only on a unique hit of this same instance. A copy still mounted on a covered
|
|
184
|
+
* screen does not count.
|
|
174
185
|
*/
|
|
175
186
|
function validatePickerFingerprint(inst) {
|
|
176
187
|
const autoData = encodeInstanceAutoData(inst);
|
|
177
|
-
const match = semanticMatcher.matchAutoData(autoData
|
|
188
|
+
const match = semanticMatcher.matchAutoData(autoData, {
|
|
189
|
+
instanceFilter: (0, _isInstanceOnVisibleScreen.createVisibleInstanceFilter)()
|
|
190
|
+
});
|
|
178
191
|
if (!match.instance) {
|
|
179
192
|
return {
|
|
180
193
|
ok: false,
|
|
@@ -192,4 +205,191 @@ function validatePickerFingerprint(inst) {
|
|
|
192
205
|
autoData
|
|
193
206
|
};
|
|
194
207
|
}
|
|
208
|
+
function fiberIdentityStrength(descriptor) {
|
|
209
|
+
if (descriptor.testID || descriptor.nativeID) return 'id';
|
|
210
|
+
if (descriptor.childText || descriptor.accessibilityLabel) return 'content';
|
|
211
|
+
return 'structural';
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Envelope for a host the Babel plugin never registered. The minimal
|
|
216
|
+
* fingerprint lets an older SDK replay a `testID` through the exact-id path.
|
|
217
|
+
* `resolver: 'fiber'` is what current builds use for everything else.
|
|
218
|
+
*/
|
|
219
|
+
function autoDataFromFiberTarget(fiber, descriptor) {
|
|
220
|
+
const path = (0, _fiberPath.fiberPathFromHost)(fiber);
|
|
221
|
+
const selector = descriptor.testID ? descriptor.testID : path?.segments.map(segment => segment.hostKind ?? segment.displayName).join(' > ') ?? descriptor.kind;
|
|
222
|
+
const strength = fiberIdentityStrength(descriptor);
|
|
223
|
+
const {
|
|
224
|
+
screenId,
|
|
225
|
+
screenName
|
|
226
|
+
} = screenFromLocation();
|
|
227
|
+
const device = deviceMetadata();
|
|
228
|
+
const manualId = descriptor.testID ?? descriptor.nativeID;
|
|
229
|
+
return {
|
|
230
|
+
version: _protocol.MOBILE_AUTODATA_VERSION,
|
|
231
|
+
platform: 'react-native',
|
|
232
|
+
selector,
|
|
233
|
+
displayName: descriptor.kind,
|
|
234
|
+
...(manualId ? {
|
|
235
|
+
anchorId: manualId,
|
|
236
|
+
manualId
|
|
237
|
+
} : {}),
|
|
238
|
+
resolver: 'fiber',
|
|
239
|
+
...(path ? {
|
|
240
|
+
fiberPath: path
|
|
241
|
+
} : {}),
|
|
242
|
+
fingerprint: {
|
|
243
|
+
version: _protocol.MOBILE_FINGERPRINT_VERSION,
|
|
244
|
+
structuralPath: selector,
|
|
245
|
+
templatePath: selector,
|
|
246
|
+
kind: descriptor.kind,
|
|
247
|
+
role: descriptor.role,
|
|
248
|
+
...(manualId ? {
|
|
249
|
+
manualId
|
|
250
|
+
} : {}),
|
|
251
|
+
...(descriptor.testID ? {
|
|
252
|
+
testID: descriptor.testID
|
|
253
|
+
} : {}),
|
|
254
|
+
...(descriptor.nativeID ? {
|
|
255
|
+
nativeID: descriptor.nativeID
|
|
256
|
+
} : {}),
|
|
257
|
+
...(descriptor.childText ? {
|
|
258
|
+
childText: descriptor.childText
|
|
259
|
+
} : {}),
|
|
260
|
+
...(descriptor.accessibilityLabel ? {
|
|
261
|
+
accessibilityLabel: descriptor.accessibilityLabel
|
|
262
|
+
} : {}),
|
|
263
|
+
ancestors: [],
|
|
264
|
+
previousSiblings: [],
|
|
265
|
+
nextSiblings: [],
|
|
266
|
+
isPressable: descriptor.isPressable,
|
|
267
|
+
identityStrength: strength
|
|
268
|
+
},
|
|
269
|
+
screenId,
|
|
270
|
+
...(screenName ? {
|
|
271
|
+
screenName
|
|
272
|
+
} : {}),
|
|
273
|
+
platformData: {
|
|
274
|
+
...(descriptor.testID ? {
|
|
275
|
+
testID: descriptor.testID
|
|
276
|
+
} : {}),
|
|
277
|
+
...(descriptor.accessibilityLabel ? {
|
|
278
|
+
accessibilityLabel: descriptor.accessibilityLabel
|
|
279
|
+
} : {}),
|
|
280
|
+
...(descriptor.childText ? {
|
|
281
|
+
childText: descriptor.childText
|
|
282
|
+
} : {}),
|
|
283
|
+
isPressable: descriptor.isPressable
|
|
284
|
+
},
|
|
285
|
+
...(device ? {
|
|
286
|
+
device
|
|
287
|
+
} : {})
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function encodeFiberTargetAutoData(fiber, descriptor) {
|
|
291
|
+
return (0, _protocol.encodeMobileAutoData)(autoDataFromFiberTarget(fiber, descriptor));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Confirm may proceed only when replaying the pick hits this same host.
|
|
296
|
+
* Registry targets use the scored matcher; fiber targets use the fiber path.
|
|
297
|
+
*/
|
|
298
|
+
function validatePickerTarget(target) {
|
|
299
|
+
if (target.source === 'registry') return validatePickerFingerprint(target.instance);
|
|
300
|
+
const autoData = encodeFiberTargetAutoData(target.fiber, target.descriptor);
|
|
301
|
+
const decoded = autoDataFromFiberTarget(target.fiber, target.descriptor);
|
|
302
|
+
if (!decoded.fiberPath) return {
|
|
303
|
+
ok: false,
|
|
304
|
+
reason: 'no-fingerprint'
|
|
305
|
+
};
|
|
306
|
+
const match = (0, _resolveFiberPath.resolveFiberPath)(decoded.fiberPath);
|
|
307
|
+
if (match.status === 'ambiguous') return {
|
|
308
|
+
ok: false,
|
|
309
|
+
reason: 'not-unique'
|
|
310
|
+
};
|
|
311
|
+
if (match.status !== 'found') return {
|
|
312
|
+
ok: false,
|
|
313
|
+
reason: 'no-candidates'
|
|
314
|
+
};
|
|
315
|
+
if (!(0, _resolveFiberPath.fibersMatch)(match.fiber, target.fiber)) return {
|
|
316
|
+
ok: false,
|
|
317
|
+
reason: 'wrong-instance'
|
|
318
|
+
};
|
|
319
|
+
return {
|
|
320
|
+
ok: true,
|
|
321
|
+
autoData
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** True when a fiber pick has no id and no content — Confirm still works, with advice. */
|
|
326
|
+
function fiberTargetNeedsIdAdvice(target) {
|
|
327
|
+
if (target.source !== 'fiber') return false;
|
|
328
|
+
const strength = fiberIdentityStrength(target.descriptor);
|
|
329
|
+
return strength === 'structural';
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Classify a stamped element for the picker chrome.
|
|
333
|
+
*
|
|
334
|
+
* A unique play-time hit can still be a warning: look-alike twins the matcher
|
|
335
|
+
* can still tell apart (`ambiguous`), or a structural-only identity that may
|
|
336
|
+
* break if the layout changes. Twins on a covered screen do not count. Any
|
|
337
|
+
* miss, including twins the matcher cannot separate, blocks confirm.
|
|
338
|
+
*
|
|
339
|
+
* Not-unique wins when both warnings apply. Call after live content is current;
|
|
340
|
+
* this refreshes it via {@link validatePickerFingerprint}.
|
|
341
|
+
*/
|
|
342
|
+
function assessPickerSelection(inst) {
|
|
343
|
+
const validated = validatePickerFingerprint(inst);
|
|
344
|
+
if (!validated.ok) {
|
|
345
|
+
return {
|
|
346
|
+
kind: 'error',
|
|
347
|
+
reason: 'unresolvable'
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
if (_AutoAnchorRegistry.autoAnchorRegistry.isAmbiguousAmong(inst, (0, _isInstanceOnVisibleScreen.createVisibleInstanceFilter)())) {
|
|
351
|
+
return {
|
|
352
|
+
kind: 'warning',
|
|
353
|
+
reason: 'not-unique',
|
|
354
|
+
autoData: validated.autoData
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
if (deriveIdentityStrength(inst) === 'structural') {
|
|
358
|
+
return {
|
|
359
|
+
kind: 'warning',
|
|
360
|
+
reason: 'low-confidence',
|
|
361
|
+
autoData: validated.autoData
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
return {
|
|
365
|
+
kind: 'ok',
|
|
366
|
+
autoData: validated.autoData
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* {@link assessPickerSelection} for any pick. Fiber picks resolve fail-closed,
|
|
372
|
+
* so twins the fiber path cannot separate are errors, never warnings.
|
|
373
|
+
*/
|
|
374
|
+
function assessPickerTarget(target) {
|
|
375
|
+
if (target.source === 'registry') return assessPickerSelection(target.instance);
|
|
376
|
+
const validated = validatePickerTarget(target);
|
|
377
|
+
if (!validated.ok) {
|
|
378
|
+
return {
|
|
379
|
+
kind: 'error',
|
|
380
|
+
reason: 'unresolvable'
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
if (fiberTargetNeedsIdAdvice(target)) {
|
|
384
|
+
return {
|
|
385
|
+
kind: 'warning',
|
|
386
|
+
reason: 'low-confidence',
|
|
387
|
+
autoData: validated.autoData
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
return {
|
|
391
|
+
kind: 'ok',
|
|
392
|
+
autoData: validated.autoData
|
|
393
|
+
};
|
|
394
|
+
}
|
|
195
395
|
//# sourceMappingURL=fingerprintFromInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_protocol","require","_reactNative","_AutoAnchorRegistry","semanticMatcher","_interopRequireWildcard","_screenTracker","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","deriveIdentityStrength","inst","hasId","userflowId","testID","manualId","nativeID","startsWith","childText","accessibilityLabel","iconName","imageSrc","screenFromLocation","location","getCurrentScreenLocation","screenId","path","screenName","screen","deviceMetadata","window","Dimensions","screenWidth","width","screenHeight","height","scale","platform","Platform","OS","undefined","fingerprintFromInstance","autoAnchorRegistry","refreshLiveContent","orderedSiblingsIncludingSelf","instanceId","siblingWindow","version","MOBILE_FINGERPRINT_VERSION","structuralPath","templatePath","instanceScope","kind","role","childShape","ancestors","previousSiblings","previous","nextSiblings","next","ordinal","siblingIndex","isPressable","ambiguous","identityStrength","autoDataFromInstance","fingerprint","device","selector","registryKey","MOBILE_AUTODATA_VERSION","displayName","anchorId","primary","ufid","nativeId","platformData","encodeInstanceAutoData","encodeMobileAutoData","validatePickerFingerprint","autoData","match","matchAutoData","instance","ok","reason"],"sourceRoot":"../../../src","sources":["authoring/fingerprintFromInstance.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAA4D,S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,CAAC;AACH;AAEO,SAASU,sBAAsBA,CAAClE,IAAwB,EAAU;EACvE,OAAO,IAAAmE,8BAAoB,EAACb,oBAAoB,CAACtD,IAAI,CAAC,CAAC;AACzD;AAcA;AACA;AACA;AACA;AACO,SAASoE,yBAAyBA,CAACpE,IAAwB,EAA+B;EAC/F,MAAMqE,QAAQ,GAAGH,sBAAsB,CAAClE,IAAI,CAAC;EAC7C,MAAMsE,KAAK,GAAG7F,eAAe,CAAC8F,aAAa,CAACF,QAAQ,CAAC;EACrD,IAAI,CAACC,KAAK,CAACE,QAAQ,EAAE;IACnB,OAAO;MAAEC,EAAE,EAAE,KAAK;MAAEC,MAAM,EAAEJ,KAAK,CAACI,MAAM,IAAI;IAAgB,CAAC;EAC/D;EACA,IAAIJ,KAAK,CAACE,QAAQ,CAACtC,UAAU,KAAKlC,IAAI,CAACkC,UAAU,EAAE;IACjD,OAAO;MAAEuC,EAAE,EAAE,KAAK;MAAEC,MAAM,EAAE;IAAiB,CAAC;EAChD;EACA,OAAO;IAAED,EAAE,EAAE,IAAI;IAAEJ;EAAS,CAAC;AAC/B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_protocol","require","_reactNative","_AutoAnchorRegistry","_fiberPath","_resolveFiberPath","_isInstanceOnVisibleScreen","semanticMatcher","_interopRequireWildcard","_screenTracker","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","deriveIdentityStrength","inst","hasId","userflowId","testID","manualId","nativeID","startsWith","childText","accessibilityLabel","iconName","imageSrc","screenFromLocation","location","getCurrentScreenLocation","screenId","path","screenName","screen","deviceMetadata","window","Dimensions","screenWidth","width","screenHeight","height","scale","platform","Platform","OS","undefined","fingerprintFromInstance","autoAnchorRegistry","refreshLiveContent","orderedSiblingsIncludingSelf","instanceId","siblingWindow","version","MOBILE_FINGERPRINT_VERSION","structuralPath","templatePath","instanceScope","kind","role","childShape","ancestors","previousSiblings","previous","nextSiblings","next","ordinal","siblingIndex","isPressable","ambiguous","isAmbiguousAmong","createVisibleInstanceFilter","identityStrength","autoDataFromInstance","fingerprint","device","selector","registryKey","MOBILE_AUTODATA_VERSION","displayName","anchorId","primary","ufid","nativeId","platformData","encodeInstanceAutoData","encodeMobileAutoData","validatePickerFingerprint","autoData","match","matchAutoData","instanceFilter","instance","ok","reason","fiberIdentityStrength","descriptor","autoDataFromFiberTarget","fiber","fiberPathFromHost","segments","map","segment","hostKind","join","strength","resolver","fiberPath","encodeFiberTargetAutoData","validatePickerTarget","target","source","decoded","resolveFiberPath","status","fibersMatch","fiberTargetNeedsIdAdvice","assessPickerSelection","validated","assessPickerTarget"],"sourceRoot":"../../../src","sources":["authoring/fingerprintFromInstance.ts"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,cAAA,GAAAR,OAAA;AAA4D,SAAAO,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,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,CAAA,UAAAM,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C,IAAI,EAAE,SAAS;MAAEoC,MAAM,EAAE,gBAAgB;MAAEN,QAAQ,EAAE8B,SAAS,CAAC9B;IAAS,CAAC;EACpF;EACA,OAAO;IAAE9B,IAAI,EAAE,IAAI;IAAE8B,QAAQ,EAAE8B,SAAS,CAAC9B;EAAS,CAAC;AACrD;;AAEA;AACA;AACA;AACA;AACO,SAAS+B,kBAAkBA,CAACT,MAAkB,EAA6B;EAChF,IAAIA,MAAM,CAACC,MAAM,KAAK,UAAU,EAAE,OAAOM,qBAAqB,CAACP,MAAM,CAAClB,QAAQ,CAAC;EAC/E,MAAM0B,SAAS,GAAGT,oBAAoB,CAACC,MAAM,CAAC;EAC9C,IAAI,CAACQ,SAAS,CAACzB,EAAE,EAAE;IACjB,OAAO;MAAEnC,IAAI,EAAE,OAAO;MAAEoC,MAAM,EAAE;IAAe,CAAC;EAClD;EACA,IAAIsB,wBAAwB,CAACN,MAAM,CAAC,EAAE;IACpC,OAAO;MAAEpD,IAAI,EAAE,SAAS;MAAEoC,MAAM,EAAE,gBAAgB;MAAEN,QAAQ,EAAE8B,SAAS,CAAC9B;IAAS,CAAC;EACpF;EACA,OAAO;IAAE9B,IAAI,EAAE,IAAI;IAAE8B,QAAQ,EAAE8B,SAAS,CAAC9B;EAAS,CAAC;AACrD","ignoreList":[]}
|
|
@@ -3,25 +3,50 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.candidateChain = candidateChain;
|
|
7
|
+
exports.defaultCandidateIndex = defaultCandidateIndex;
|
|
8
|
+
exports.fiberTargetDescriptor = fiberTargetDescriptor;
|
|
6
9
|
exports.hitTestAt = hitTestAt;
|
|
7
10
|
exports.measureInstanceRect = measureInstanceRect;
|
|
8
11
|
exports.nextContainingIndex = nextContainingIndex;
|
|
12
|
+
var _reactNative = require("react-native");
|
|
9
13
|
var _AutoAnchorRegistry = require("../anchors/AutoAnchorRegistry.js");
|
|
14
|
+
var _FiberScanRoot = require("../anchors/fiber/FiberScanRoot.js");
|
|
10
15
|
var _fiberInternals = require("../anchors/fiber/fiberInternals.js");
|
|
16
|
+
var _indexHostFibers = require("../anchors/fiber/indexHostFibers.js");
|
|
11
17
|
var _measureHostFiber = require("../anchors/fiber/measureHostFiber.js");
|
|
18
|
+
var _readHostContent = require("../anchors/fiber/readHostContent.js");
|
|
19
|
+
var _visibleRect = require("../anchors/fiber/visibleRect.js");
|
|
12
20
|
var _visibleScreens = require("../anchors/fiber/visibleScreens.js");
|
|
21
|
+
var _walkVisibleFibers = require("../anchors/fiber/walkVisibleFibers.js");
|
|
22
|
+
var _isInstanceOnVisibleScreen = require("../anchors/isInstanceOnVisibleScreen.js");
|
|
13
23
|
var _targetPressMonitor = require("../anchors/targetPressMonitor.js");
|
|
24
|
+
var _hostAtPoint = require("./hostAtPoint.js");
|
|
25
|
+
/** What the picker knows about a host the Babel plugin never registered. */
|
|
26
|
+
|
|
14
27
|
const MEASURE_TIMEOUT_MS = 400;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Scroll hosts carry responder handlers (`onResponderRelease`, …) for drag
|
|
31
|
+
* tracking. They are containers, never the thing a tap means to pick.
|
|
32
|
+
*/
|
|
33
|
+
const SCROLL_HOST_TYPES = new Set(['RCTScrollView', 'RCTScrollContentView', 'AndroidHorizontalScrollView', 'AndroidHorizontalScrollContentView']);
|
|
34
|
+
|
|
35
|
+
/** A pressable ancestor bigger than this share of the window is a container, not a control. */
|
|
36
|
+
const MAX_DEFAULT_PRESSABLE_WINDOW_SHARE = 0.5;
|
|
37
|
+
const INTERACTIVE_ROLES = new Set(['button', 'tab', 'link', 'switch', 'checkbox', 'menuitem', 'radio', 'togglebutton']);
|
|
15
38
|
function isMeasurableNode(value) {
|
|
16
39
|
return typeof value === 'object' && value !== null && typeof value.measureInWindow === 'function';
|
|
17
40
|
}
|
|
18
41
|
function areaOf(rect) {
|
|
19
42
|
return rect.width * rect.height;
|
|
20
43
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
function fiberFromPublicInstanceSafe(node) {
|
|
45
|
+
try {
|
|
46
|
+
return (0, _indexHostFibers.lookupHostFiber)((0, _indexHostFibers.createLazyHostFiberIndex)(), node);
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
25
50
|
}
|
|
26
51
|
function measureWithTimeout(run) {
|
|
27
52
|
return new Promise(resolve => {
|
|
@@ -67,7 +92,7 @@ function measureInstanceRect(inst) {
|
|
|
67
92
|
node.measureInWindow(callback);
|
|
68
93
|
});
|
|
69
94
|
}
|
|
70
|
-
const fiber = (
|
|
95
|
+
const fiber = fiberFromPublicInstanceSafe(node);
|
|
71
96
|
if (fiber) {
|
|
72
97
|
return measureWithTimeout(callback => {
|
|
73
98
|
(0, _measureHostFiber.measureHostFiber)(fiber, callback);
|
|
@@ -75,26 +100,249 @@ function measureInstanceRect(inst) {
|
|
|
75
100
|
}
|
|
76
101
|
return Promise.resolve(null);
|
|
77
102
|
}
|
|
103
|
+
function stringProp(value) {
|
|
104
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
105
|
+
}
|
|
106
|
+
function hostKind(fiber) {
|
|
107
|
+
const type = fiber?.type;
|
|
108
|
+
if (typeof type === 'string' && type.length > 0) return type;
|
|
109
|
+
return 'View';
|
|
110
|
+
}
|
|
78
111
|
|
|
79
112
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
113
|
+
* A library-rendered host worth offering as a pick: it has a developer id, a
|
|
114
|
+
* label, an interactive role, or a press handler. Plain layout views are not.
|
|
82
115
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
116
|
+
function fiberTargetDescriptor(fiber) {
|
|
117
|
+
if (!(0, _fiberInternals.isHostFiber)(fiber)) return null;
|
|
118
|
+
let props;
|
|
119
|
+
try {
|
|
120
|
+
props = (0, _fiberInternals.getLiveHostProps)(fiber);
|
|
121
|
+
} catch {
|
|
122
|
+
props = undefined;
|
|
123
|
+
}
|
|
124
|
+
if (!props) return null;
|
|
125
|
+
const testID = stringProp(props.testID);
|
|
126
|
+
const nativeID = stringProp(props.nativeID);
|
|
127
|
+
const usableNativeID = nativeID && !nativeID.startsWith('uf_') ? nativeID : undefined;
|
|
128
|
+
const accessibilityLabel = stringProp(props.accessibilityLabel) ?? stringProp(props['aria-label']);
|
|
129
|
+
const kind = hostKind(fiber);
|
|
130
|
+
const isScrollHost = SCROLL_HOST_TYPES.has(kind);
|
|
131
|
+
const a11yRole = stringProp(props.accessibilityRole) ?? stringProp(props.role);
|
|
132
|
+
const interactiveRole = a11yRole !== undefined && INTERACTIVE_ROLES.has(a11yRole.toLowerCase());
|
|
133
|
+
// Pressability puts `onClick` on the host for every Pressable / Touchable.
|
|
134
|
+
// Responder handlers alone are not a press signal: scroll views have them.
|
|
135
|
+
const hasPress = !isScrollHost && (typeof props.onPress === 'function' || typeof props.onClick === 'function');
|
|
136
|
+
if (!testID && !usableNativeID && !accessibilityLabel && !interactiveRole && !hasPress) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
const isPressable = !isScrollHost && (interactiveRole || hasPress);
|
|
140
|
+
let childText;
|
|
141
|
+
try {
|
|
142
|
+
childText = (0, _readHostContent.readHostText)(fiber);
|
|
143
|
+
} catch {
|
|
144
|
+
childText = undefined;
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
kind,
|
|
148
|
+
role: isPressable ? 'Action' : (0, _AutoAnchorRegistry.roleForKind)(kind),
|
|
149
|
+
isPressable,
|
|
150
|
+
...(testID ? {
|
|
151
|
+
testID
|
|
152
|
+
} : {}),
|
|
153
|
+
...(usableNativeID ? {
|
|
154
|
+
nativeID: usableNativeID
|
|
155
|
+
} : {}),
|
|
156
|
+
...(accessibilityLabel ? {
|
|
157
|
+
accessibilityLabel
|
|
158
|
+
} : {}),
|
|
159
|
+
...(childText ? {
|
|
160
|
+
childText
|
|
161
|
+
} : {})
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function registryMap(instances) {
|
|
165
|
+
const map = new Map();
|
|
166
|
+
const getIndex = (0, _indexHostFibers.createLazyHostFiberIndex)();
|
|
167
|
+
for (const inst of instances) {
|
|
168
|
+
let fiber = null;
|
|
169
|
+
try {
|
|
170
|
+
fiber = (0, _indexHostFibers.lookupHostFiber)(getIndex, inst.ref.current);
|
|
171
|
+
} catch {
|
|
172
|
+
fiber = null;
|
|
173
|
+
}
|
|
174
|
+
if (!fiber) continue;
|
|
175
|
+
map.set(fiber, inst);
|
|
176
|
+
const alternate = (0, _fiberInternals.getAlternate)(fiber);
|
|
177
|
+
if (alternate) map.set(alternate, inst);
|
|
178
|
+
}
|
|
179
|
+
return map;
|
|
180
|
+
}
|
|
181
|
+
function targetForHost(fiber, byFiber) {
|
|
182
|
+
const registered = byFiber.get(fiber) ?? byFiber.get((0, _fiberInternals.getAlternate)(fiber));
|
|
183
|
+
if (registered) return {
|
|
184
|
+
source: 'registry',
|
|
185
|
+
instance: registered
|
|
186
|
+
};
|
|
187
|
+
const descriptor = fiberTargetDescriptor(fiber);
|
|
188
|
+
if (!descriptor) return null;
|
|
189
|
+
return {
|
|
190
|
+
source: 'fiber',
|
|
191
|
+
fiber,
|
|
192
|
+
descriptor
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Innermost host first, then each identifiable ancestor up to the
|
|
198
|
+
* {@link FiberScanRoot}. Hosts above it (the provider's own wrappers) are never
|
|
199
|
+
* resolvable at play time. Empty when `host` is on a covered screen: its
|
|
200
|
+
* ancestors above the navigator are not what was tapped.
|
|
201
|
+
*/
|
|
202
|
+
function candidateChain(host, byFiber) {
|
|
203
|
+
const chain = [];
|
|
204
|
+
if (!(0, _visibleScreens.isFiberOnVisibleScreen)(host)) return chain;
|
|
205
|
+
const scanRoot = _FiberScanRoot.fiberScanRoot.getFiber();
|
|
206
|
+
const scanRootAlternate = scanRoot ? (0, _fiberInternals.getAlternate)(scanRoot) : null;
|
|
207
|
+
const seenInstances = new Set();
|
|
208
|
+
const seenFibers = new Set();
|
|
209
|
+
let current = host;
|
|
210
|
+
for (let depth = 0; current && depth < _fiberInternals.MAX_ANCESTOR_WALK; depth += 1) {
|
|
211
|
+
if (scanRoot && (current === scanRoot || current === scanRootAlternate)) break;
|
|
212
|
+
const target = (0, _fiberInternals.isHostFiber)(current) ? targetForHost(current, byFiber) : null;
|
|
213
|
+
if (target?.source === 'registry' && !seenInstances.has(target.instance.instanceId)) {
|
|
214
|
+
seenInstances.add(target.instance.instanceId);
|
|
215
|
+
chain.push(target);
|
|
216
|
+
} else if (target?.source === 'fiber' && !seenFibers.has(target.fiber)) {
|
|
217
|
+
seenFibers.add(target.fiber);
|
|
218
|
+
chain.push(target);
|
|
219
|
+
}
|
|
220
|
+
current = (0, _fiberInternals.getReturn)(current);
|
|
221
|
+
}
|
|
222
|
+
return chain;
|
|
223
|
+
}
|
|
224
|
+
function measureFiberRect(fiber) {
|
|
225
|
+
return measureWithTimeout(callback => {
|
|
226
|
+
(0, _measureHostFiber.measureHostFiber)(fiber, callback);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
async function candidatesFromChain(chain, measure) {
|
|
230
|
+
const measured = await Promise.all(chain.map(async target => {
|
|
231
|
+
const rect = target.source === 'registry' ? await measure(target.instance) : await measureFiberRect(target.fiber);
|
|
90
232
|
if (!rect) return null;
|
|
91
|
-
if (!(0, _targetPressMonitor.pointInRect)(x, y, rect)) return null;
|
|
92
233
|
return {
|
|
93
|
-
|
|
234
|
+
target,
|
|
94
235
|
rect,
|
|
95
236
|
area: areaOf(rect)
|
|
96
237
|
};
|
|
97
238
|
}));
|
|
239
|
+
return measured.filter(c => c != null);
|
|
240
|
+
}
|
|
241
|
+
function windowArea() {
|
|
242
|
+
try {
|
|
243
|
+
const {
|
|
244
|
+
width,
|
|
245
|
+
height
|
|
246
|
+
} = _reactNative.Dimensions.get('window');
|
|
247
|
+
if (width > 0 && height > 0) return width * height;
|
|
248
|
+
} catch {
|
|
249
|
+
// Tests and odd hosts: no cap.
|
|
250
|
+
}
|
|
251
|
+
return Infinity;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* First control-sized pressable in an innermost-first list, else 0. A
|
|
256
|
+
* screen-sized pressable ancestor would select an invisible full-screen rect.
|
|
257
|
+
*/
|
|
258
|
+
function defaultCandidateIndex(candidates) {
|
|
259
|
+
const cap = windowArea() * MAX_DEFAULT_PRESSABLE_WINDOW_SHARE;
|
|
260
|
+
const index = candidates.findIndex(candidate => {
|
|
261
|
+
const pressable = candidate.target.source === 'registry' ? candidate.target.instance.isPressable : candidate.target.descriptor.isPressable;
|
|
262
|
+
return pressable && candidate.area <= cap;
|
|
263
|
+
});
|
|
264
|
+
return index >= 0 ? index : 0;
|
|
265
|
+
}
|
|
266
|
+
async function clipCandidate(candidate) {
|
|
267
|
+
const fiber = candidate.target.source === 'fiber' ? candidate.target.fiber : fiberFromPublicInstanceSafe(candidate.target.instance.ref.current);
|
|
268
|
+
const clipped = await (0, _visibleRect.clipToScrollViewports)(fiber, candidate.rect);
|
|
269
|
+
if (!clipped) return null;
|
|
270
|
+
return {
|
|
271
|
+
...candidate,
|
|
272
|
+
rect: clipped,
|
|
273
|
+
area: areaOf(clipped)
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Hit-test window coordinates.
|
|
279
|
+
*
|
|
280
|
+
* Prefers the native topmost host and walks out to identifiable ancestors.
|
|
281
|
+
* Falls back to clipped geometry when native hit-testing is unavailable or
|
|
282
|
+
* lands on a covered screen. A visible native hit with no identifiable
|
|
283
|
+
* ancestor returns no candidates: geometry ignores stacking order and would
|
|
284
|
+
* offer whatever lies underneath the tap.
|
|
285
|
+
*/
|
|
286
|
+
async function hitTestAt(x, y, opts) {
|
|
287
|
+
const filter = opts?.instanceFilter ?? (0, _isInstanceOnVisibleScreen.createVisibleInstanceFilter)();
|
|
288
|
+
const measure = opts?.measure ?? measureInstanceRect;
|
|
289
|
+
const pool = (opts?.instances ?? _AutoAnchorRegistry.autoAnchorRegistry.allInstances()).filter(filter);
|
|
290
|
+
_AutoAnchorRegistry.autoAnchorRegistry.refreshLiveContent(pool);
|
|
291
|
+
const injected = opts?.hostAtPoint;
|
|
292
|
+
const locate = injected ?? (opts?.measure === undefined ? _hostAtPoint.hostAtPoint : null);
|
|
293
|
+
if (locate) {
|
|
294
|
+
try {
|
|
295
|
+
const host = await locate(x, y);
|
|
296
|
+
if (host && (0, _visibleScreens.isFiberOnVisibleScreen)(host)) {
|
|
297
|
+
const chain = candidateChain(host, registryMap(pool));
|
|
298
|
+
return chain.length > 0 ? candidatesFromChain(chain, measure) : [];
|
|
299
|
+
}
|
|
300
|
+
} catch {
|
|
301
|
+
// Native hit-testing is optional; geometry still runs.
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return geometryHits(x, y, pool, measure);
|
|
305
|
+
}
|
|
306
|
+
async function geometryHits(x, y, pool, measure) {
|
|
307
|
+
const root = _FiberScanRoot.fiberScanRoot.getFiber();
|
|
308
|
+
const modal = root ? (0, _visibleRect.topmostVisibleModalHost)(root) : null;
|
|
309
|
+
const byFiber = registryMap(pool);
|
|
310
|
+
const scoped = modal ? pool.filter(inst => {
|
|
311
|
+
const fiber = fiberFromPublicInstanceSafe(inst.ref.current);
|
|
312
|
+
if (!fiber) return true;
|
|
313
|
+
return (0, _visibleRect.fiberIsUnder)(fiber, modal);
|
|
314
|
+
}) : pool;
|
|
315
|
+
const targets = scoped.map(instance => ({
|
|
316
|
+
source: 'registry',
|
|
317
|
+
instance
|
|
318
|
+
}));
|
|
319
|
+
if (root) {
|
|
320
|
+
const scanRoot = modal ?? root;
|
|
321
|
+
(0, _walkVisibleFibers.walkVisibleFibers)(scanRoot, fiber => {
|
|
322
|
+
if (!(0, _fiberInternals.isHostFiber)(fiber)) return;
|
|
323
|
+
if (byFiber.has(fiber)) return;
|
|
324
|
+
const descriptor = fiberTargetDescriptor(fiber);
|
|
325
|
+
if (!descriptor) return;
|
|
326
|
+
if (modal && !(0, _visibleRect.fiberIsUnder)(fiber, modal)) return;
|
|
327
|
+
targets.push({
|
|
328
|
+
source: 'fiber',
|
|
329
|
+
fiber,
|
|
330
|
+
descriptor
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
const measured = await Promise.all(targets.map(async target => {
|
|
335
|
+
const raw = target.source === 'registry' ? await measure(target.instance) : await measureFiberRect(target.fiber);
|
|
336
|
+
if (!raw) return null;
|
|
337
|
+
const clipped = await clipCandidate({
|
|
338
|
+
target,
|
|
339
|
+
rect: raw,
|
|
340
|
+
area: areaOf(raw)
|
|
341
|
+
});
|
|
342
|
+
if (!clipped) return null;
|
|
343
|
+
if (!(0, _targetPressMonitor.pointInRect)(x, y, clipped.rect)) return null;
|
|
344
|
+
return clipped;
|
|
345
|
+
}));
|
|
98
346
|
return measured.filter(c => c != null).sort((a, b) => a.area - b.area);
|
|
99
347
|
}
|
|
100
348
|
|