@userflow-tech/react-native 0.5.0 → 0.7.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 +65 -33
- package/docs/custom-fonts.md +36 -0
- package/docs/troubleshooting.md +45 -44
- package/expo-plugin/hostDependencyWarnings.d.ts +5 -5
- package/expo-plugin/hostDependencyWarnings.js +7 -7
- package/expo-plugin/hostDependencyWarnings.js.map +1 -1
- package/lib/commonjs/anchors/AnchorRegistry.js +5 -0
- package/lib/commonjs/anchors/AnchorRegistry.js.map +1 -1
- package/lib/commonjs/anchors/ScrollContainerRegistry.js +8 -0
- package/lib/commonjs/anchors/ScrollContainerRegistry.js.map +1 -1
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +8 -0
- package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -1
- package/lib/commonjs/anchors/fiber/detectAppFontFamily.js +341 -0
- package/lib/commonjs/anchors/fiber/detectAppFontFamily.js.map +1 -0
- package/lib/commonjs/anchors/fiber/presentedModal.js +215 -0
- package/lib/commonjs/anchors/fiber/presentedModal.js.map +1 -0
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js +1 -0
- package/lib/commonjs/anchors/fiber/touchTargetFiber.js.map +1 -1
- package/lib/commonjs/anchors/fiber/visibleRect.js +12 -3
- package/lib/commonjs/anchors/fiber/visibleRect.js.map +1 -1
- package/lib/commonjs/anchors/fiber/visibleScreens.js +6 -0
- package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -1
- package/lib/commonjs/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/commonjs/anchors/useUserflowScrollContainer.js.map +1 -1
- package/lib/commonjs/authoring/ElementPickerOverlay.js +197 -138
- package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/commonjs/authoring/hitTest.js +67 -10
- package/lib/commonjs/authoring/hitTest.js.map +1 -1
- package/lib/commonjs/authoring/hostAtPoint.js +45 -21
- package/lib/commonjs/authoring/hostAtPoint.js.map +1 -1
- package/lib/commonjs/content/BannerStepButton.js +2 -1
- package/lib/commonjs/content/BannerStepButton.js.map +1 -1
- package/lib/commonjs/content/RichContentRenderer.js +27 -9
- package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
- package/lib/commonjs/content/StepButton.js +2 -1
- package/lib/commonjs/content/StepButton.js.map +1 -1
- package/lib/commonjs/content/resolveContentFontFamily.js +96 -0
- package/lib/commonjs/content/resolveContentFontFamily.js.map +1 -0
- package/lib/commonjs/deepLinking.js.map +1 -1
- package/lib/commonjs/deviceContext.js +39 -19
- package/lib/commonjs/deviceContext.js.map +1 -1
- package/lib/commonjs/index.js +13 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/installCheck.js +3 -3
- package/lib/commonjs/installCheck.js.map +1 -1
- package/lib/commonjs/lifecycle.js +2 -0
- package/lib/commonjs/lifecycle.js.map +1 -1
- package/lib/commonjs/pairing/PairingController.js.map +1 -1
- package/lib/commonjs/runtime/BannerHost.js +3 -3
- package/lib/commonjs/runtime/BannerHost.js.map +1 -1
- package/lib/commonjs/runtime/UserflowOverlay.js +17 -13
- package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -1
- package/lib/commonjs/runtime/WindowOverlayHost.js +83 -0
- package/lib/commonjs/runtime/WindowOverlayHost.js.map +1 -0
- package/lib/commonjs/runtime/pushBannerLayoutContext.js +11 -8
- package/lib/commonjs/runtime/pushBannerLayoutContext.js.map +1 -1
- package/lib/commonjs/runtime/userflowCore.js +9 -2
- package/lib/commonjs/runtime/userflowCore.js.map +1 -1
- package/lib/commonjs/surfaces/BannerSurface.js +2 -6
- package/lib/commonjs/surfaces/BannerSurface.js.map +1 -1
- package/lib/commonjs/surfaces/ProgressBar.js +2 -1
- package/lib/commonjs/surfaces/ProgressBar.js.map +1 -1
- package/lib/commonjs/surfaces/TooltipSurface.js +114 -51
- package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
- package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js +6 -4
- package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
- package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js +3 -33
- package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
- package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
- package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
- package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js +33 -0
- package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
- package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js +45 -12
- package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js +6 -6
- package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js.map +1 -1
- package/lib/commonjs/surfaces/tooltip/targetOrigin.js +74 -0
- package/lib/commonjs/surfaces/tooltip/targetOrigin.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/anchors/AnchorRegistry.js +5 -0
- package/lib/module/anchors/AnchorRegistry.js.map +1 -1
- package/lib/module/anchors/ScrollContainerRegistry.js +8 -0
- package/lib/module/anchors/ScrollContainerRegistry.js.map +1 -1
- package/lib/module/anchors/fiber/FiberScanRootStore.js +8 -0
- package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -1
- package/lib/module/anchors/fiber/detectAppFontFamily.js +330 -0
- package/lib/module/anchors/fiber/detectAppFontFamily.js.map +1 -0
- package/lib/module/anchors/fiber/presentedModal.js +206 -0
- package/lib/module/anchors/fiber/presentedModal.js.map +1 -0
- package/lib/module/anchors/fiber/touchTargetFiber.js +1 -0
- package/lib/module/anchors/fiber/touchTargetFiber.js.map +1 -1
- package/lib/module/anchors/fiber/visibleRect.js +12 -3
- package/lib/module/anchors/fiber/visibleRect.js.map +1 -1
- package/lib/module/anchors/fiber/visibleScreens.js +5 -0
- package/lib/module/anchors/fiber/visibleScreens.js.map +1 -1
- package/lib/module/anchors/useUserflowAnchor.js.map +1 -1
- package/lib/module/anchors/useUserflowScrollContainer.js.map +1 -1
- package/lib/module/authoring/ElementPickerOverlay.js +199 -140
- package/lib/module/authoring/ElementPickerOverlay.js.map +1 -1
- package/lib/module/authoring/hitTest.js +67 -11
- package/lib/module/authoring/hitTest.js.map +1 -1
- package/lib/module/authoring/hostAtPoint.js +45 -21
- package/lib/module/authoring/hostAtPoint.js.map +1 -1
- package/lib/module/content/BannerStepButton.js +2 -1
- package/lib/module/content/BannerStepButton.js.map +1 -1
- package/lib/module/content/RichContentRenderer.js +27 -9
- package/lib/module/content/RichContentRenderer.js.map +1 -1
- package/lib/module/content/StepButton.js +2 -1
- package/lib/module/content/StepButton.js.map +1 -1
- package/lib/module/content/resolveContentFontFamily.js +89 -0
- package/lib/module/content/resolveContentFontFamily.js.map +1 -0
- package/lib/module/deepLinking.js.map +1 -1
- package/lib/module/deviceContext.js +38 -17
- package/lib/module/deviceContext.js.map +1 -1
- package/lib/module/index.js +13 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/installCheck.js +3 -3
- package/lib/module/installCheck.js.map +1 -1
- package/lib/module/lifecycle.js +2 -0
- package/lib/module/lifecycle.js.map +1 -1
- package/lib/module/pairing/PairingController.js.map +1 -1
- package/lib/module/runtime/BannerHost.js +3 -3
- package/lib/module/runtime/BannerHost.js.map +1 -1
- package/lib/module/runtime/UserflowOverlay.js +18 -14
- package/lib/module/runtime/UserflowOverlay.js.map +1 -1
- package/lib/module/runtime/WindowOverlayHost.js +76 -0
- package/lib/module/runtime/WindowOverlayHost.js.map +1 -0
- package/lib/module/runtime/pushBannerLayoutContext.js +11 -8
- package/lib/module/runtime/pushBannerLayoutContext.js.map +1 -1
- package/lib/module/runtime/userflowCore.js +9 -2
- package/lib/module/runtime/userflowCore.js.map +1 -1
- package/lib/module/surfaces/BannerSurface.js +2 -6
- package/lib/module/surfaces/BannerSurface.js.map +1 -1
- package/lib/module/surfaces/ProgressBar.js +2 -1
- package/lib/module/surfaces/ProgressBar.js.map +1 -1
- package/lib/module/surfaces/TooltipSurface.js +114 -51
- package/lib/module/surfaces/TooltipSurface.js.map +1 -1
- package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js +6 -4
- package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
- package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js +3 -31
- package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
- package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
- package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
- package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js +29 -0
- package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
- package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js +45 -12
- package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
- package/lib/module/surfaces/tooltip/TooltipHighlight.js +6 -6
- package/lib/module/surfaces/tooltip/TooltipHighlight.js.map +1 -1
- package/lib/module/surfaces/tooltip/targetOrigin.js +67 -0
- package/lib/module/surfaces/tooltip/targetOrigin.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts +7 -0
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts +11 -2
- package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
- package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts +45 -0
- package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts +5 -2
- package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +2 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts +2 -2
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts +3 -2
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +4 -0
- package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +25 -2
- package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts +6 -1
- package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts +35 -0
- package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/deepLinking.d.ts +1 -1
- package/lib/typescript/commonjs/src/deepLinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/deviceContext.d.ts +14 -5
- package/lib/typescript/commonjs/src/deviceContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +11 -5
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/installCheck.d.ts +2 -2
- package/lib/typescript/commonjs/src/installCheck.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/lifecycle.d.ts +1 -0
- package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +1 -1
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts +34 -0
- package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts +5 -0
- package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/runtime/userflowCore.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts +1 -4
- package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/ProgressBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/version.d.ts +1 -1
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts +7 -0
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts +11 -2
- package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
- package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
- package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts +45 -0
- package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts +5 -2
- package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +2 -0
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts +2 -2
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts.map +1 -1
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts +3 -2
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +4 -0
- package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/hitTest.d.ts +25 -2
- package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -1
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts +6 -1
- package/lib/typescript/module/src/authoring/hostAtPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/content/BannerStepButton.d.ts.map +1 -1
- package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -1
- package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -1
- package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts +35 -0
- package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts.map +1 -0
- package/lib/typescript/module/src/deepLinking.d.ts +1 -1
- package/lib/typescript/module/src/deepLinking.d.ts.map +1 -1
- package/lib/typescript/module/src/deviceContext.d.ts +14 -5
- package/lib/typescript/module/src/deviceContext.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +11 -5
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/installCheck.d.ts +2 -2
- package/lib/typescript/module/src/installCheck.d.ts.map +1 -1
- package/lib/typescript/module/src/lifecycle.d.ts +1 -0
- package/lib/typescript/module/src/lifecycle.d.ts.map +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts +1 -1
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts +34 -0
- package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts +5 -0
- package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts.map +1 -1
- package/lib/typescript/module/src/runtime/userflowCore.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/BannerSurface.d.ts +1 -4
- package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/ProgressBar.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
- package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
- package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +5 -4
- package/src/anchors/AnchorRegistry.ts +8 -0
- package/src/anchors/ScrollContainerRegistry.ts +15 -3
- package/src/anchors/fiber/FiberScanRootStore.ts +8 -0
- package/src/anchors/fiber/detectAppFontFamily.ts +400 -0
- package/src/anchors/fiber/presentedModal.ts +203 -0
- package/src/anchors/fiber/touchTargetFiber.ts +2 -1
- package/src/anchors/fiber/visibleRect.ts +12 -3
- package/src/anchors/fiber/visibleScreens.ts +5 -0
- package/src/anchors/useUserflowAnchor.ts +4 -5
- package/src/anchors/useUserflowScrollContainer.ts +5 -4
- package/src/authoring/ElementPickerOverlay.tsx +242 -166
- package/src/authoring/hitTest.ts +88 -13
- package/src/authoring/hostAtPoint.ts +67 -21
- package/src/content/BannerStepButton.tsx +2 -1
- package/src/content/RichContentRenderer.tsx +16 -9
- package/src/content/StepButton.tsx +2 -1
- package/src/content/resolveContentFontFamily.ts +119 -0
- package/src/deepLinking.ts +2 -1
- package/src/deviceContext.ts +50 -14
- package/src/index.ts +13 -5
- package/src/installCheck.ts +3 -3
- package/src/lifecycle.ts +2 -1
- package/src/pairing/PairingController.ts +2 -1
- package/src/runtime/BannerHost.tsx +3 -3
- package/src/runtime/UserflowOverlay.tsx +29 -21
- package/src/runtime/WindowOverlayHost.tsx +95 -0
- package/src/runtime/pushBannerLayoutContext.tsx +14 -9
- package/src/runtime/userflowCore.ts +8 -2
- package/src/surfaces/BannerSurface.tsx +2 -6
- package/src/surfaces/ProgressBar.tsx +2 -1
- package/src/surfaces/TooltipSurface.tsx +118 -47
- package/src/surfaces/bannerWebView/BannerWebViewBar.tsx +6 -4
- package/src/surfaces/bannerWebView/bannerNeedsWebView.ts +4 -36
- package/src/surfaces/bannerWebView/bannerThemeStyles.ts +2 -1
- package/src/surfaces/bannerWebView/bannerWebViewHeight.ts +32 -0
- package/src/surfaces/bannerWebView/buildCustomBannerHtml.ts +48 -12
- package/src/surfaces/tooltip/TooltipHighlight.tsx +3 -5
- package/src/surfaces/tooltip/targetOrigin.ts +74 -0
- package/src/version.ts +1 -1
- package/vendor/core/dist/engine/UserflowCore.d.ts +7 -0
- package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
- package/vendor/core/dist/engine/UserflowCore.js +3 -2
- package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
- package/vendor/core/dist/transport/phoenix.d.ts +12 -2
- package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
- package/vendor/core/dist/transport/phoenix.js +7 -6
- 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/flows.d.ts +2 -0
- package/vendor/protocol/dist/flows.d.ts.map +1 -1
- package/vendor/protocol/package.json +1 -1
|
@@ -38,14 +38,14 @@ export function BannerHost({
|
|
|
38
38
|
if (hidden || !session || !banner || !edge) return null;
|
|
39
39
|
if (edgeFilter && edge !== edgeFilter) return null;
|
|
40
40
|
const floats = banner.overlay !== false;
|
|
41
|
-
const usesWebView = bannerNeedsWebView(banner
|
|
42
|
-
// Custom
|
|
41
|
+
const usesWebView = bannerNeedsWebView(banner);
|
|
42
|
+
// Custom banner WebViews paint in the overlay host (same as userflow.js). A second
|
|
43
43
|
// WKWebView in the flow slot often fails to load after the first banner dismisses.
|
|
44
44
|
const hostAsOverlay = floats || usesWebView;
|
|
45
45
|
if (placement === 'overlay' !== hostAsOverlay) return null;
|
|
46
46
|
const pushLayoutEdge = placement === 'flow' && !hostAsOverlay ? edge : null;
|
|
47
47
|
// Builder overlay:true floats below the status bar. Push-layout WebViews in the overlay
|
|
48
|
-
// host still paint safe-area chrome (overlay:false + custom
|
|
48
|
+
// host still paint safe-area chrome (overlay:false + custom banner).
|
|
49
49
|
const overlaySafeEdge = hostAsOverlay && !floats ? edge : null;
|
|
50
50
|
const surface = /*#__PURE__*/_jsx(BannerSurface, {
|
|
51
51
|
session: session,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","BannerSurface","bannerOverlayHostPadding","bannerNeedsWebView","useUserflowSafeAreaInsets","SdkErrorBoundary","bannerEdge","embedBannerPlaceholderId","warnBannerOnce","hasEmbedBannerPlaceholder","useBannerSession","jsx","_jsx","BannerHost","engine","hidden","placement","edge","edgeFilter","session","banner","version","embedMode","insets","useEffect","placeholderId","message","id","floats","overlay","usesWebView","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","BannerSurface","bannerOverlayHostPadding","bannerNeedsWebView","useUserflowSafeAreaInsets","SdkErrorBoundary","bannerEdge","embedBannerPlaceholderId","warnBannerOnce","hasEmbedBannerPlaceholder","useBannerSession","jsx","_jsx","BannerHost","engine","hidden","placement","edge","edgeFilter","session","banner","version","embedMode","insets","useEffect","placeholderId","message","id","floats","overlay","usesWebView","hostAsOverlay","pushLayoutEdge","overlaySafeEdge","surface","onActions","actions","handleActions","onDismiss","endReason","endBanner","bar","scope","resetKey","children","testID","style","styles","flow","edgeStyle","top","bottom","pointerEvents","pin","pinInteractive","create","position","left","right","zIndex","elevation","alignSelf"],"sourceRoot":"../../../src","sources":["runtime/BannerHost.tsx"],"mappings":";;AACA,OAAO,K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,IAAK;MAAAJ,QAAA,EACpDV;IAAO,CACJ,CAAC,GAEPA;EACD,CACe,CACnB;EAED,IAAIlB,SAAS,KAAK,MAAM,EAAE;IACxB,OAAOyB,GAAG;EACZ;EAEA,MAAMQ,SAAS,GACbhC,IAAI,KAAK,KAAK,GAAG;IAAEiC,GAAG,EAAEtB,MAAM,GAAGL,MAAM,CAAC2B,GAAG,GAAG;EAAE,CAAC,GAAG;IAAEC,MAAM,EAAEvB,MAAM,GAAGL,MAAM,CAAC4B,MAAM,GAAG;EAAE,CAAC;EAE5F,oBACEvC,IAAA,CAACZ,IAAI;IACHoD,aAAa,EAAC,UAAU;IACxBN,KAAK,EAAE,CAACC,MAAM,CAACM,GAAG,EAAEJ,SAAS,EAAE/C,wBAAwB,CAACqB,MAAM,CAAC,CAAE;IAAAqB,QAAA,eAEjEhC,IAAA,CAACZ,IAAI;MAACoD,aAAa,EAAC,MAAM;MAACN,KAAK,EAAEC,MAAM,CAACO,cAAe;MAAAV,QAAA,EACrDH;IAAG,CACA;EAAC,CACH,CAAC;AAEX;AAEA,MAAMM,MAAM,GAAGhD,UAAU,CAACwD,MAAM,CAAC;EAC/BF,GAAG,EAAE;IACHG,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,EAAE;IACVC,SAAS,EAAE;EACb,CAAC;EACDZ,IAAI,EAAE;IACJa,SAAS,EAAE;EACb,CAAC;EACDP,cAAc,EAAE;IACdO,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,9 +11,10 @@ import { usePreviewBarHold } from "../pairing/usePreviewBarHold.js";
|
|
|
11
11
|
import { stepTrapsHostAccessibility } from "../surfaces/hostAccessibilityTrap.js";
|
|
12
12
|
import { BannerHost } from "./BannerHost.js";
|
|
13
13
|
import { FlowRenderer } from "./FlowRenderer.js";
|
|
14
|
+
import { WindowOverlayHost } from "./WindowOverlayHost.js";
|
|
14
15
|
import { useFlowSessionState } from "./useFlowSessionState.js";
|
|
15
16
|
import { getUserflowCore } from "./userflowCore.js";
|
|
16
|
-
import { jsx as _jsx,
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
18
|
/**
|
|
18
19
|
* SDK overlay chrome: preview banner, active flow surface, element picker.
|
|
19
20
|
* Mounted inside {@link SdkErrorBoundary} so a render throw here cannot
|
|
@@ -67,19 +68,22 @@ export function UserflowOverlay({
|
|
|
67
68
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
68
69
|
children: [/*#__PURE__*/_jsx(EvalJsHost, {
|
|
69
70
|
suppressed: pickerActive
|
|
70
|
-
}), /*#__PURE__*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
}), /*#__PURE__*/_jsxs(WindowOverlayHost, {
|
|
72
|
+
accessibilityModal: trapHostAccessibility,
|
|
73
|
+
children: [/*#__PURE__*/_jsx(PreviewModeBanner, {
|
|
74
|
+
onConfirmingChange: setPreviewConfirming,
|
|
75
|
+
onExit: onExitPreview,
|
|
76
|
+
held: previewHeld,
|
|
77
|
+
onRestart: onRestartPreview,
|
|
78
|
+
state: pairingState,
|
|
79
|
+
suppressed: pickerActive
|
|
80
|
+
}), pickerActive ? null : /*#__PURE__*/_jsx(FlowRenderer, {
|
|
81
|
+
engine: engine,
|
|
82
|
+
previewRestartGeneration: pairingState.previewRestartGeneration
|
|
83
|
+
}), /*#__PURE__*/_jsx(BannerHost, {
|
|
84
|
+
engine: bannerEngine,
|
|
85
|
+
hidden: pickerActive
|
|
86
|
+
})]
|
|
83
87
|
}), /*#__PURE__*/_jsx(ElementPickerOverlay, {})]
|
|
84
88
|
});
|
|
85
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ElementPickerOverlay","elementPickerController","EvalJsHost","PreviewModeBanner","getPairingController","usePairingState","usePreviewBarHold","stepTrapsHostAccessibility","BannerHost","FlowRenderer","useFlowSessionState","getUserflowCore","jsx","_jsx","
|
|
1
|
+
{"version":3,"names":["React","ElementPickerOverlay","elementPickerController","EvalJsHost","PreviewModeBanner","getPairingController","usePairingState","usePreviewBarHold","stepTrapsHostAccessibility","BannerHost","FlowRenderer","WindowOverlayHost","useFlowSessionState","getUserflowCore","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","UserflowOverlay","engine","bannerEngine","onTrapChange","pairingState","session","currentStep","previewConfirming","setPreviewConfirming","useState","pickerActive","setPickerActive","getState","active","useEffect","subscribe","next","previewHeld","trapHostAccessibility","useMemo","useLayoutEffect","onExitPreview","useCallback","exitPreview","onRestartPreview","restartPreview","children","suppressed","accessibilityModal","onConfirmingChange","onExit","held","onRestart","state","previewRestartGeneration","hidden"],"sourceRoot":"../../../src","sources":["runtime/UserflowOverlay.tsx"],"mappings":";;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,oBAAoB,QAAQ,sCAAmC;AACxE,SAASC,uBAAuB,QAAQ,yCAAsC;AAC9E,SAASC,UAAU,QAAQ,yBAAsB;AACjD,SAASC,iBAAiB,QAAQ,iCAA8B;AAChE,SAASC,oBAAoB,QAAQ,8BAA2B;AAChE,SAASC,eAAe,QAAQ,+BAA4B;AAC5D,SAASC,iBAAiB,QAAQ,iCAA8B;AAChE,SAASC,0BAA0B,QAAQ,sCAAmC;AAE9E,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,eAAe,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;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import { Platform } from 'react-native';
|
|
5
|
+
import { isNativeModuleLinked } from "../nativeModules.js";
|
|
6
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Native module in every react-native-screens 3.x and 4.x build. Rendering
|
|
9
|
+
* `FullWindowOverlay` without the native half would mount an unregistered
|
|
10
|
+
* component, so the package is not required until this is linked.
|
|
11
|
+
*/
|
|
12
|
+
const SCREENS_NATIVE_MODULE = 'RNSModule';
|
|
13
|
+
let cached;
|
|
14
|
+
|
|
15
|
+
/** react-native-screens' `FullWindowOverlay`, or null when it cannot host chrome here. */
|
|
16
|
+
function getFullWindowOverlay() {
|
|
17
|
+
if (cached !== undefined) return cached;
|
|
18
|
+
cached = null;
|
|
19
|
+
|
|
20
|
+
// FullWindowOverlay is iOS-only; elsewhere it renders a plain View.
|
|
21
|
+
if (Platform.OS !== 'ios' || typeof require !== 'function') return cached;
|
|
22
|
+
if (!isNativeModuleLinked(SCREENS_NATIVE_MODULE)) return cached;
|
|
23
|
+
try {
|
|
24
|
+
// Not a peer: apps that present native modals already have it, through
|
|
25
|
+
// Expo Router or React Navigation's native stack.
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -- optional package probe
|
|
27
|
+
const mod = require('react-native-screens');
|
|
28
|
+
cached = mod?.FullWindowOverlay ?? null;
|
|
29
|
+
} catch {
|
|
30
|
+
cached = null;
|
|
31
|
+
}
|
|
32
|
+
return cached;
|
|
33
|
+
}
|
|
34
|
+
/** True when {@link WindowOverlayHost} draws above natively presented modals. */
|
|
35
|
+
export function hasWindowOverlayHost() {
|
|
36
|
+
return getFullWindowOverlay() != null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Hosts SDK chrome above everything else in the app window.
|
|
41
|
+
*
|
|
42
|
+
* On iOS, react-native-screens presents `modal`, `transparentModal`,
|
|
43
|
+
* `formSheet` and `fullScreenModal` screens, and React Native presents
|
|
44
|
+
* `<Modal>`, as view controllers above the React Native root view, so chrome
|
|
45
|
+
* rendered in `UserflowProvider`'s overlay is drawn beneath them and never
|
|
46
|
+
* receives touches there. `FullWindowOverlay` moves its children into a
|
|
47
|
+
* container on the window itself. Measured on iOS 17.4 and 26.5 with
|
|
48
|
+
* react-native-screens 4.16, that container stays above sheets whether they are
|
|
49
|
+
* presented before or after it mounts.
|
|
50
|
+
*
|
|
51
|
+
* Each host is its own container, stacked by when it was attached rather than
|
|
52
|
+
* by React order, so chrome that has to keep a paint order shares one host.
|
|
53
|
+
*
|
|
54
|
+
* Touches inside the host arrive in window coordinates, as they do in the root
|
|
55
|
+
* view. Children render in place when the overlay is unavailable: on Android,
|
|
56
|
+
* and in apps without react-native-screens.
|
|
57
|
+
*/
|
|
58
|
+
export function WindowOverlayHost({
|
|
59
|
+
children,
|
|
60
|
+
accessibilityModal = false
|
|
61
|
+
}) {
|
|
62
|
+
const FullWindowOverlay = getFullWindowOverlay();
|
|
63
|
+
if (!FullWindowOverlay) return /*#__PURE__*/_jsx(_Fragment, {
|
|
64
|
+
children: children
|
|
65
|
+
});
|
|
66
|
+
return /*#__PURE__*/_jsx(FullWindowOverlay, {
|
|
67
|
+
unstable_accessibilityContainerViewIsModal: accessibilityModal,
|
|
68
|
+
children: children
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** @internal Clears the cached `FullWindowOverlay` lookup between tests. */
|
|
73
|
+
export function resetWindowOverlayHostForTests() {
|
|
74
|
+
cached = undefined;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=WindowOverlayHost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Platform","isNativeModuleLinked","Fragment","_Fragment","jsx","_jsx","SCREENS_NATIVE_MODULE","cached","getFullWindowOverlay","undefined","OS","require","mod","FullWindowOverlay","hasWindowOverlayHost","WindowOverlayHost","children","accessibilityModal","unstable_accessibilityContainerViewIsModal","resetWindowOverlayHostForTests"],"sourceRoot":"../../../src","sources":["runtime/WindowOverlayHost.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,oBAAoB,QAAQ,qBAAkB;AAAC,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA;AAUxD;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,GAAG,WAAW;AAEzC,IAAIC,MAAqD;;AAEzD;AACA,SAASC,oBAAoBA,CAAA,EAAsC;EACjE,IAAID,MAAM,KAAKE,SAAS,EAAE,OAAOF,MAAM;EACvCA,MAAM,GAAG,IAAI;;EAEb;EACA,IAAIP,QAAQ,CAACU,EAAE,KAAK,KAAK,IAAI,OAAOC,OAAO,KAAK,UAAU,EAAE,OAAOJ,MAAM;EACzE,IAAI,CAACN,oBAAoB,CAACK,qBAAqB,CAAC,EAAE,OAAOC,MAAM;EAE/D,IAAI;IACF;IACA;IACA;IACA,MAAMK,GAAG,GAAGD,OAAO,CAAC,sBAAsB,CAEzC;IACDJ,MAAM,GAAGK,GAAG,EAAEC,iBAAiB,IAAI,IAAI;EACzC,CAAC,CAAC,MAAM;IACNN,MAAM,GAAG,IAAI;EACf;EACA,OAAOA,MAAM;AACf;AAWA;AACA,OAAO,SAASO,oBAAoBA,CAAA,EAAY;EAC9C,OAAON,oBAAoB,CAAC,CAAC,IAAI,IAAI;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASO,iBAAiBA,CAAC;EAChCC,QAAQ;EACRC,kBAAkB,GAAG;AACC,CAAC,EAAsB;EAC7C,MAAMJ,iBAAiB,GAAGL,oBAAoB,CAAC,CAAC;EAChD,IAAI,CAACK,iBAAiB,EAAE,oBAAOR,IAAA,CAAAF,SAAA;IAAAa,QAAA,EAAGA;EAAQ,CAAG,CAAC;EAC9C,oBACEX,IAAA,CAACQ,iBAAiB;IAACK,0CAA0C,EAAED,kBAAmB;IAAAD,QAAA,EAC/EA;EAAQ,CACQ,CAAC;AAExB;;AAEA;AACA,OAAO,SAASG,8BAA8BA,CAAA,EAAS;EACrDZ,MAAM,GAAGE,SAAS;AACpB","ignoreList":[]}
|
|
@@ -71,21 +71,24 @@ export function usePushBannerLayoutRegistration(edge, sessionId) {
|
|
|
71
71
|
* Clears the host top/bottom safe-area override only after push-layout chrome
|
|
72
72
|
* has laid out, so a session without visible chrome cannot leave a white strip.
|
|
73
73
|
*
|
|
74
|
+
* Remembers which edge laid out instead of resetting a flag in an effect: on
|
|
75
|
+
* Fabric the chrome's first onLayout can run before the mount's passive effects
|
|
76
|
+
* flush, and a reset there would discard it until the banner happened to
|
|
77
|
+
* re-layout, leaving already-mounted host screens on the old inset.
|
|
78
|
+
*
|
|
74
79
|
* @internal
|
|
75
80
|
*/
|
|
76
81
|
export function usePushBannerHostInsetRegistration(edge, sessionId, enabled) {
|
|
77
|
-
const
|
|
78
|
-
React.
|
|
79
|
-
|
|
80
|
-
}, [edge, enabled]);
|
|
81
|
-
usePushBannerLayoutRegistration(enabled && laidOut && edge ? edge : null, sessionId);
|
|
82
|
+
const activeEdge = enabled && edge ? edge : null;
|
|
83
|
+
const [laidOutEdge, setLaidOutEdge] = React.useState(null);
|
|
84
|
+
usePushBannerLayoutRegistration(activeEdge && laidOutEdge === activeEdge ? activeEdge : null, sessionId);
|
|
82
85
|
return React.useCallback(event => {
|
|
83
|
-
if (!
|
|
86
|
+
if (!activeEdge) {
|
|
84
87
|
return;
|
|
85
88
|
}
|
|
86
89
|
if (event.nativeEvent.layout.height > 0) {
|
|
87
|
-
|
|
90
|
+
setLaidOutEdge(activeEdge);
|
|
88
91
|
}
|
|
89
|
-
}, [
|
|
92
|
+
}, [activeEdge]);
|
|
90
93
|
}
|
|
91
94
|
//# sourceMappingURL=pushBannerLayoutContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","jsx","_jsx","PushBannerLayoutContext","createContext","pickEdge","registrations","top","bottom","edge","values","PushBannerLayoutProvider","children","onActiveEdgeChange","useRef","Map","onActiveEdgeChangeRef","current","sync","useCallback","value","useMemo","register","token","set","unregister","delete","useLayoutEffect","Provider","usePushBannerLayoutRegistration","sessionId","ctx","useContext","usePushBannerHostInsetRegistration","enabled","
|
|
1
|
+
{"version":3,"names":["React","jsx","_jsx","PushBannerLayoutContext","createContext","pickEdge","registrations","top","bottom","edge","values","PushBannerLayoutProvider","children","onActiveEdgeChange","useRef","Map","onActiveEdgeChangeRef","current","sync","useCallback","value","useMemo","register","token","set","unregister","delete","useLayoutEffect","Provider","usePushBannerLayoutRegistration","sessionId","ctx","useContext","usePushBannerHostInsetRegistration","enabled","activeEdge","laidOutEdge","setLaidOutEdge","useState","event","nativeEvent","layout","height"],"sourceRoot":"../../../src","sources":["runtime/pushBannerLayoutContext.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW/B,MAAMC,uBAAuB,gBAAGH,KAAK,CAACI,aAAa,CAAsC,IAAI,CAAC;AAE9F,SAASC,QAAQA,CAACC,aAAgD,EAA+B;EAC/F,IAAIC,GAAG,GAAG,KAAK;EACf,IAAIC,MAAM,GAAG,KAAK;EAClB,KAAK,MAAMC,IAAI,IAAIH,aAAa,CAACI,MAAM,CAAC,CAAC,EAAE;IACzC,IAAID,IAAI,KAAK,KAAK,EAAE;MAClBF,GAAG,GAAG,IAAI;IACZ;IACA,IAAIE,IAAI,KAAK,QAAQ,EAAE;MACrBD,MAAM,GAAG,IAAI;IACf;EACF;EACA,IAAID,GAAG,EAAE;IACP,OAAO,KAAK;EACd;EACA,IAAIC,MAAM,EAAE;IACV,OAAO,QAAQ;EACjB;EACA,OAAO,IAAI;AACb;AAEA,OAAO,SAASG,wBAAwBA,CAAC;EACvCC,QAAQ;EAC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ACtB,IAAI,IAAI,CAACqB,SAAS,EAAE;MAC/B;IACF;IACA,MAAMP,KAAK,GAAG,GAAGO,SAAS,IAAIrB,IAAI,EAAE;IACpCsB,GAAG,CAACT,QAAQ,CAACb,IAAI,EAAEc,KAAK,CAAC;IACzB,OAAO,MAAM;MACXQ,GAAG,CAACN,UAAU,CAACF,KAAK,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACQ,GAAG,EAAEtB,IAAI,EAAEqB,SAAS,CAAC,CAAC;AAC5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,kCAAkCA,CAChDxB,IAA6C,EAC7CqB,SAAiB,EACjBI,OAAgB,EACoB;EACpC,MAAMC,UAAU,GAAGD,OAAO,IAAIzB,IAAI,GAAGA,IAAI,GAAG,IAAI;EAChD,MAAM,CAAC2B,WAAW,EAAEC,cAAc,CAAC,GAAGrC,KAAK,CAACsC,QAAQ,CAA8B,IAAI,CAAC;EAEvFT,+BAA+B,CAC7BM,UAAU,IAAIC,WAAW,KAAKD,UAAU,GAAGA,UAAU,GAAG,IAAI,EAC5DL,SACF,CAAC;EAED,OAAO9B,KAAK,CAACmB,WAAW,CACrBoB,KAAwB,IAAK;IAC5B,IAAI,CAACJ,UAAU,EAAE;MACf;IACF;IACA,IAAII,KAAK,CAACC,WAAW,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,EAAE;MACvCL,cAAc,CAACF,UAAU,CAAC;IAC5B;EACF,CAAC,EACD,CAACA,UAAU,CACb,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { UserflowCore } from '@userflow-tech/core';
|
|
4
|
+
import { SDK_VERSION } from "../version.js";
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Shared {@link UserflowCore} singleton for the RN package facade + provider.
|
|
8
|
+
* Joins report the published SDK version (not the internal core version) as
|
|
9
|
+
* `userflowClientBuild`.
|
|
10
|
+
*/
|
|
11
|
+
const core = new UserflowCore({
|
|
12
|
+
clientBuild: `react-native-${SDK_VERSION}`
|
|
13
|
+
});
|
|
7
14
|
export function getUserflowCore() {
|
|
8
15
|
return core;
|
|
9
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UserflowCore","core","getUserflowCore"],"sourceRoot":"../../../src","sources":["runtime/userflowCore.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,qBAAqB;;
|
|
1
|
+
{"version":3,"names":["UserflowCore","SDK_VERSION","core","clientBuild","getUserflowCore"],"sourceRoot":"../../../src","sources":["runtime/userflowCore.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,qBAAqB;AAElD,SAASC,WAAW,QAAQ,eAAY;;AAExC;AACA;AACA;AACA;AACA;AACA,MAAMC,IAAI,GAAG,IAAIF,YAAY,CAAC;EAAEG,WAAW,EAAE,gBAAgBF,WAAW;AAAG,CAAC,CAAC;AAE7E,OAAO,SAASG,eAAeA,CAAA,EAAiB;EAC9C,OAAOF,IAAI;AACb","ignoreList":[]}
|
|
@@ -10,10 +10,7 @@ import { bannerNeedsWebView } from "./bannerWebView/bannerNeedsWebView.js";
|
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
let warnedMissingWebView = false;
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Native banner bar, or a WebView when a button runs Evaluate JavaScript or the
|
|
15
|
-
* theme has published custom CSS (same CDN stylesheet as userflow.js iframes).
|
|
16
|
-
*/
|
|
13
|
+
/** Native banner bar, or a WebView when `customBannerEnabled` is set on the banner. */
|
|
17
14
|
export function BannerSurface({
|
|
18
15
|
session,
|
|
19
16
|
pushLayoutEdge = null,
|
|
@@ -22,8 +19,7 @@ export function BannerSurface({
|
|
|
22
19
|
onDismiss
|
|
23
20
|
}) {
|
|
24
21
|
const banner = session.version.banner;
|
|
25
|
-
const
|
|
26
|
-
const needsWebView = banner != null && bannerNeedsWebView(banner, theme);
|
|
22
|
+
const needsWebView = banner != null && bannerNeedsWebView(banner);
|
|
27
23
|
const webView = needsWebView ? getEvalJsWebView() : null;
|
|
28
24
|
React.useEffect(() => {
|
|
29
25
|
if (!banner || !__DEV__) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","evalJsController","getEvalJsWebView","BannerBar","BannerWebViewBar","clearBannerAutoRunEvalSession","bannerNeedsWebView","jsx","_jsx","warnedMissingWebView","BannerSurface","session","pushLayoutEdge","overlaySafeEdge","onActions","onDismiss","banner","version","
|
|
1
|
+
{"version":3,"names":["React","evalJsController","getEvalJsWebView","BannerBar","BannerWebViewBar","clearBannerAutoRunEvalSession","bannerNeedsWebView","jsx","_jsx","warnedMissingWebView","BannerSurface","session","pushLayoutEdge","overlaySafeEdge","onActions","onDismiss","banner","version","needsWebView","webView","useEffect","__DEV__","console","log","flowId","flow","id","flowName","name","bannerSessionId","versionId","embedMode","overlay","hostAsOverlay","useLayoutEffect","setBannerOwnsWebView","dismissWebViewBanner","useCallback","endReason","reset","warn","resetBannerSurfaceWarningsForTests"],"sourceRoot":"../../../src","sources":["surfaces/BannerSurface.tsx"],"mappings":";;AAKA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,gBAAgB,QAAQ,+BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,yBAAsB;AAEvD,SAASC,SAAS,QAAQ,gBAAa;AACvC,SAASC,gBAAgB,QAAQ,qCAAkC;AACnE,SAASC,6BAA6B,QAAQ,yCAAsC;AACpF,SAASC,kBAAkB,QAAQ,uCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYxE,IAAIC,oBAAoB,GAAG,KAAK;;AAEhC;AACA,OAAO,SAASC,aAAaA,CAAC;EAC5BC,OAAO;EACPC,cAAc,GAAG,IAAI;EACrBC,eAAe,GAAG,IAAI;EACtBC,SAAS;EACTC;AACk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;;AAEA;AACA,OAAO,SAAS0B,kCAAkCA,CAAA,EAAS;EACzDhC,oBAAoB,GAAG,KAAK;AAC9B","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
+
import { resolveContentFontFamily } from "../content/resolveContentFontFamily.js";
|
|
5
6
|
import { foregroundAlpha } from "../content/themeColor.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
const PROGRESS_BAR_NUMBERED = 'NUMBERED';
|
|
@@ -47,7 +48,7 @@ export function ProgressBar({
|
|
|
47
48
|
testID: "userflow-progress-numbered",
|
|
48
49
|
style: [styles.numberedLabel, {
|
|
49
50
|
color: foregroundAlpha(theme.fontColor, 0.55),
|
|
50
|
-
fontFamily: theme
|
|
51
|
+
fontFamily: resolveContentFontFamily(theme),
|
|
51
52
|
fontSize: Math.max(12, Math.round(theme.fontSize * 0.875))
|
|
52
53
|
}],
|
|
53
54
|
children: label
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","foregroundAlpha","jsx","_jsx","PROGRESS_BAR_NUMBERED","progressBarType","theme","String","toUpperCase","numberedStepLabel","fraction","totalSteps","maxSteps","Math","max","selected","min","floor","ProgressBar","enabled","position","contentPadding","clamped","type","testId","label","testID","style","styles","numberedTrack","top","bottomNumbered","paddingHorizontal","alignItems","numberedCentered","accessibilityRole","accessibilityLabel","pointerEvents","children","numberedLabel","color","fontColor","fontFamily","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","resolveContentFontFamily","foregroundAlpha","jsx","_jsx","PROGRESS_BAR_NUMBERED","progressBarType","theme","String","toUpperCase","numberedStepLabel","fraction","totalSteps","maxSteps","Math","max","selected","min","floor","ProgressBar","enabled","position","contentPadding","clamped","type","testId","label","testID","style","styles","numberedTrack","top","bottomNumbered","paddingHorizontal","alignItems","numberedCentered","accessibilityRole","accessibilityLabel","pointerEvents","children","numberedLabel","color","fontColor","fontFamily","fontSize","round","track","bottom","accessibilityValue","now","fill","width","backgroundColor","defaultButtonBackgroundColor","create","left","right","height","overflow","zIndex","fontWeight"],"sourceRoot":"../../../src","sources":["surfaces/ProgressBar.tsx"],"mappings":";;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,wBAAwB,QAAQ,wCAAqC;AAC9E,SAASC,eAAe,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIxD,MAAMC,qBAAqB,GAAG,UAAU;AAaxC,SAASC,eAAeA,CAACC,KAAoB,EAAU;EACrD,OAAOC,MAAM,CAACD,KAAK,CAACD,eAAe,IAAI,SAAS,CAAC,CAACG,WAAW,CAAC,CAAC;AACjE;AAEA,SAASC,iBAAiBA,CAACC,QAAgB,EAAEC,UAAkB,EAAU;EACvE,MAAMC,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,UAAU,CAAC;EACxC,IAAIC,QAAQ,KAAK,CAAC,EAAE,OAAO,EAAE;EAC7B,MAAMG,QAAQ,GAAGF,IAAI,CAACG,GAAG,CAACH,IAAI,CAACI,KAAK,CAACP,QAAQ,GAAGE,QAAQ,CAAC,EAAEA,QAAQ,CAAC;EACpE,OAAO,GAAGG,QAAQ,OAAOH,QAAQ,EAAE;AACrC;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASM,WAAWA,CAAC;EAC1BC,OAAO;EACPT,QAAQ;EACRU,QAAQ;EACRd,KAAK;EACLK,UAAU,GAAG,CAAC;EACdU,cAAc,GAAG;AACD,CAAC,EAA6B;EAC9C,IAAI,CAACF,OAAO,EAAE,OAAO,IAAI;EAEzB,MAAMG,OAAO,GAAGT,IAAI,CAACG,GAAG,CAAC,CAAC,EAAEH,IAAI,CAACC,GAAG,CAAC,CAAC,EA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