@userflow-tech/react-native 0.1.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/LICENSE +76 -0
- package/README.md +337 -0
- package/docs/anchoring.md +264 -0
- package/docs/deep-linking.md +271 -0
- package/docs/identity-verification.md +95 -0
- package/docs/theme-mapping.md +101 -0
- package/docs/troubleshooting.md +107 -0
- package/lib/commonjs/anchors/AnchorRegistry.js +72 -0
- package/lib/commonjs/anchors/AnchorRegistry.js.map +1 -0
- package/lib/commonjs/anchors/AutoAnchorRegistry.js +315 -0
- package/lib/commonjs/anchors/AutoAnchorRegistry.js.map +1 -0
- package/lib/commonjs/anchors/ScrollContainerRegistry.js +93 -0
- package/lib/commonjs/anchors/ScrollContainerRegistry.js.map +1 -0
- package/lib/commonjs/anchors/anchorChangeTicker.js +83 -0
- package/lib/commonjs/anchors/anchorChangeTicker.js.map +1 -0
- package/lib/commonjs/anchors/animationFrame.js +90 -0
- package/lib/commonjs/anchors/animationFrame.js.map +1 -0
- package/lib/commonjs/anchors/autoAnchor.js +253 -0
- package/lib/commonjs/anchors/autoAnchor.js.map +1 -0
- package/lib/commonjs/anchors/elementConditionEvaluator.js +82 -0
- package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -0
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js +90 -0
- package/lib/commonjs/anchors/fiber/FiberScanRoot.js.map +1 -0
- package/lib/commonjs/anchors/fiber/fiberInternals.js +180 -0
- package/lib/commonjs/anchors/fiber/fiberInternals.js.map +1 -0
- package/lib/commonjs/anchors/fiber/findAnchorFiber.js +214 -0
- package/lib/commonjs/anchors/fiber/findAnchorFiber.js.map +1 -0
- package/lib/commonjs/anchors/fiber/findScrollAncestors.js +176 -0
- package/lib/commonjs/anchors/fiber/findScrollAncestors.js.map +1 -0
- package/lib/commonjs/anchors/fiber/measureHostFiber.js +75 -0
- package/lib/commonjs/anchors/fiber/measureHostFiber.js.map +1 -0
- package/lib/commonjs/anchors/fiber/visibleScreens.js +165 -0
- package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -0
- package/lib/commonjs/anchors/hintsCodec.js +120 -0
- package/lib/commonjs/anchors/hintsCodec.js.map +1 -0
- package/lib/commonjs/anchors/resolveAnchorHost.js +112 -0
- package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -0
- package/lib/commonjs/anchors/resolveManualAnchorId.js +17 -0
- package/lib/commonjs/anchors/resolveManualAnchorId.js.map +1 -0
- package/lib/commonjs/anchors/scrollAnchorIntoView.js +227 -0
- package/lib/commonjs/anchors/scrollAnchorIntoView.js.map +1 -0
- package/lib/commonjs/anchors/scrollConfig.js +48 -0
- package/lib/commonjs/anchors/scrollConfig.js.map +1 -0
- package/lib/commonjs/anchors/targetPressMonitor.js +113 -0
- package/lib/commonjs/anchors/targetPressMonitor.js.map +1 -0
- package/lib/commonjs/anchors/useUserflowAnchor.js +91 -0
- package/lib/commonjs/anchors/useUserflowAnchor.js.map +1 -0
- package/lib/commonjs/anchors/useUserflowScrollContainer.js +76 -0
- package/lib/commonjs/anchors/useUserflowScrollContainer.js.map +1 -0
- package/lib/commonjs/anonymousId.js +42 -0
- package/lib/commonjs/anonymousId.js.map +1 -0
- package/lib/commonjs/content/RichContentRenderer.js +675 -0
- package/lib/commonjs/content/RichContentRenderer.js.map +1 -0
- package/lib/commonjs/content/StepButton.js +57 -0
- package/lib/commonjs/content/StepButton.js.map +1 -0
- package/lib/commonjs/content/buttonAppearance.js +18 -0
- package/lib/commonjs/content/buttonAppearance.js.map +1 -0
- package/lib/commonjs/content/deserialize.js +129 -0
- package/lib/commonjs/content/deserialize.js.map +1 -0
- package/lib/commonjs/content/imageLayout.js +24 -0
- package/lib/commonjs/content/imageLayout.js.map +1 -0
- package/lib/commonjs/content/migrateFlowBlocks.js +39 -0
- package/lib/commonjs/content/migrateFlowBlocks.js.map +1 -0
- package/lib/commonjs/content/openSafeUrl.js +37 -0
- package/lib/commonjs/content/openSafeUrl.js.map +1 -0
- package/lib/commonjs/content/resolveStepButtonChrome.js +95 -0
- package/lib/commonjs/content/resolveStepButtonChrome.js.map +1 -0
- package/lib/commonjs/content/themeColor.js +106 -0
- package/lib/commonjs/content/themeColor.js.map +1 -0
- package/lib/commonjs/content/types.js +2 -0
- package/lib/commonjs/content/types.js.map +1 -0
- package/lib/commonjs/deepLinking.js +162 -0
- package/lib/commonjs/deepLinking.js.map +1 -0
- package/lib/commonjs/expo-router/UserflowExpoRouterScreenTracker.js +13 -0
- package/lib/commonjs/expo-router/UserflowExpoRouterScreenTracker.js.map +1 -0
- package/lib/commonjs/expo-router/getExpoRouterScreenTracker.js +44 -0
- package/lib/commonjs/expo-router/getExpoRouterScreenTracker.js.map +1 -0
- package/lib/commonjs/expo-router/index.js +20 -0
- package/lib/commonjs/expo-router/index.js.map +1 -0
- package/lib/commonjs/expo-router/useUserflowExpoRouter.js +45 -0
- package/lib/commonjs/expo-router/useUserflowExpoRouter.js.map +1 -0
- package/lib/commonjs/index.js +356 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lifecycle.js +200 -0
- package/lib/commonjs/lifecycle.js.map +1 -0
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js +69 -0
- package/lib/commonjs/navigation/WithUserflowReactNavigation.js.map +1 -0
- package/lib/commonjs/navigation/chainCallbacks.js +16 -0
- package/lib/commonjs/navigation/chainCallbacks.js.map +1 -0
- package/lib/commonjs/navigation/getActiveRouteName.js +18 -0
- package/lib/commonjs/navigation/getActiveRouteName.js.map +1 -0
- package/lib/commonjs/navigation/index.js +50 -0
- package/lib/commonjs/navigation/index.js.map +1 -0
- package/lib/commonjs/navigation/openFlowNavigateUrl.js +110 -0
- package/lib/commonjs/navigation/openFlowNavigateUrl.js.map +1 -0
- package/lib/commonjs/network.js +90 -0
- package/lib/commonjs/network.js.map +1 -0
- package/lib/commonjs/pairing/PairingController.js +290 -0
- package/lib/commonjs/pairing/PairingController.js.map +1 -0
- package/lib/commonjs/pairing/PreviewModeBanner.js +118 -0
- package/lib/commonjs/pairing/PreviewModeBanner.js.map +1 -0
- package/lib/commonjs/pairing/deepLink.js +141 -0
- package/lib/commonjs/pairing/deepLink.js.map +1 -0
- package/lib/commonjs/pairing/diagnostics.js +115 -0
- package/lib/commonjs/pairing/diagnostics.js.map +1 -0
- package/lib/commonjs/pairing/index.js +58 -0
- package/lib/commonjs/pairing/index.js.map +1 -0
- package/lib/commonjs/pairing/pairingRuntime.js +85 -0
- package/lib/commonjs/pairing/pairingRuntime.js.map +1 -0
- package/lib/commonjs/pairing/tokenStorage.js +70 -0
- package/lib/commonjs/pairing/tokenStorage.js.map +1 -0
- package/lib/commonjs/pairing/usePairingState.js +40 -0
- package/lib/commonjs/pairing/usePairingState.js.map +1 -0
- package/lib/commonjs/runtime/FlowRenderer.js +57 -0
- package/lib/commonjs/runtime/FlowRenderer.js.map +1 -0
- package/lib/commonjs/runtime/FlowSurfaceFade.js +53 -0
- package/lib/commonjs/runtime/FlowSurfaceFade.js.map +1 -0
- package/lib/commonjs/runtime/TargetPressBridge.js +96 -0
- package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -0
- package/lib/commonjs/runtime/UserflowProvider.js +91 -0
- package/lib/commonjs/runtime/UserflowProvider.js.map +1 -0
- package/lib/commonjs/runtime/clientConditions.js +50 -0
- package/lib/commonjs/runtime/clientConditions.js.map +1 -0
- package/lib/commonjs/runtime/flowEngine.js +63 -0
- package/lib/commonjs/runtime/flowEngine.js.map +1 -0
- package/lib/commonjs/runtime/flowSessionViewState.js +48 -0
- package/lib/commonjs/runtime/flowSessionViewState.js.map +1 -0
- package/lib/commonjs/runtime/useFlowSessionState.js +25 -0
- package/lib/commonjs/runtime/useFlowSessionState.js.map +1 -0
- package/lib/commonjs/runtime/userflowCore.js +13 -0
- package/lib/commonjs/runtime/userflowCore.js.map +1 -0
- package/lib/commonjs/screenTracker.js +87 -0
- package/lib/commonjs/screenTracker.js.map +1 -0
- package/lib/commonjs/surfaces/CloseButton.js +52 -0
- package/lib/commonjs/surfaces/CloseButton.js.map +1 -0
- package/lib/commonjs/surfaces/MadeWithUserflow.js +90 -0
- package/lib/commonjs/surfaces/MadeWithUserflow.js.map +1 -0
- package/lib/commonjs/surfaces/ModalSurface.js +170 -0
- package/lib/commonjs/surfaces/ModalSurface.js.map +1 -0
- package/lib/commonjs/surfaces/ProgressBar.js +116 -0
- package/lib/commonjs/surfaces/ProgressBar.js.map +1 -0
- package/lib/commonjs/surfaces/TooltipSurface.js +638 -0
- package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -0
- package/lib/commonjs/surfaces/absoluteFill.js +29 -0
- package/lib/commonjs/surfaces/absoluteFill.js.map +1 -0
- package/lib/commonjs/surfaces/assets/png.d.js +2 -0
- package/lib/commonjs/surfaces/assets/png.d.js.map +1 -0
- package/lib/commonjs/surfaces/assets/userflow-logomark.png +0 -0
- package/lib/commonjs/surfaces/parseBackdropOpacity.js +20 -0
- package/lib/commonjs/surfaces/parseBackdropOpacity.js.map +1 -0
- package/lib/commonjs/surfaces/progress.js +35 -0
- package/lib/commonjs/surfaces/progress.js.map +1 -0
- package/lib/commonjs/surfaces/resolveCloseButtonColor.js +24 -0
- package/lib/commonjs/surfaces/resolveCloseButtonColor.js.map +1 -0
- package/lib/commonjs/surfaces/resolveModalLayout.js +67 -0
- package/lib/commonjs/surfaces/resolveModalLayout.js.map +1 -0
- package/lib/commonjs/surfaces/resolveTooltipLayout.js +64 -0
- package/lib/commonjs/surfaces/resolveTooltipLayout.js.map +1 -0
- package/lib/commonjs/surfaces/safeArea.js +46 -0
- package/lib/commonjs/surfaces/safeArea.js.map +1 -0
- package/lib/commonjs/surfaces/themeChrome.js +90 -0
- package/lib/commonjs/surfaces/themeChrome.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/TooltipBubble.js +108 -0
- package/lib/commonjs/surfaces/tooltip/TooltipBubble.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/TooltipCutout.js +103 -0
- package/lib/commonjs/surfaces/tooltip/TooltipCutout.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/TooltipNotch.js +64 -0
- package/lib/commonjs/surfaces/tooltip/TooltipNotch.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js +102 -0
- package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js +100 -0
- package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/parseBackdropPadding.js +15 -0
- package/lib/commonjs/surfaces/tooltip/parseBackdropPadding.js.map +1 -0
- package/lib/commonjs/surfaces/tooltip/rect.js +51 -0
- package/lib/commonjs/surfaces/tooltip/rect.js.map +1 -0
- package/lib/commonjs/useUserflowScreen.js +24 -0
- package/lib/commonjs/useUserflowScreen.js.map +1 -0
- package/lib/commonjs/version.js +9 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/anchors/AnchorRegistry.js +67 -0
- package/lib/module/anchors/AnchorRegistry.js.map +1 -0
- package/lib/module/anchors/AutoAnchorRegistry.js +309 -0
- package/lib/module/anchors/AutoAnchorRegistry.js.map +1 -0
- package/lib/module/anchors/ScrollContainerRegistry.js +86 -0
- package/lib/module/anchors/ScrollContainerRegistry.js.map +1 -0
- package/lib/module/anchors/anchorChangeTicker.js +79 -0
- package/lib/module/anchors/anchorChangeTicker.js.map +1 -0
- package/lib/module/anchors/animationFrame.js +83 -0
- package/lib/module/anchors/animationFrame.js.map +1 -0
- package/lib/module/anchors/autoAnchor.js +248 -0
- package/lib/module/anchors/autoAnchor.js.map +1 -0
- package/lib/module/anchors/elementConditionEvaluator.js +79 -0
- package/lib/module/anchors/elementConditionEvaluator.js.map +1 -0
- package/lib/module/anchors/fiber/FiberScanRoot.js +84 -0
- package/lib/module/anchors/fiber/FiberScanRoot.js.map +1 -0
- package/lib/module/anchors/fiber/fiberInternals.js +164 -0
- package/lib/module/anchors/fiber/fiberInternals.js.map +1 -0
- package/lib/module/anchors/fiber/findAnchorFiber.js +210 -0
- package/lib/module/anchors/fiber/findAnchorFiber.js.map +1 -0
- package/lib/module/anchors/fiber/findScrollAncestors.js +172 -0
- package/lib/module/anchors/fiber/findScrollAncestors.js.map +1 -0
- package/lib/module/anchors/fiber/measureHostFiber.js +70 -0
- package/lib/module/anchors/fiber/measureHostFiber.js.map +1 -0
- package/lib/module/anchors/fiber/visibleScreens.js +159 -0
- package/lib/module/anchors/fiber/visibleScreens.js.map +1 -0
- package/lib/module/anchors/hintsCodec.js +111 -0
- package/lib/module/anchors/hintsCodec.js.map +1 -0
- package/lib/module/anchors/resolveAnchorHost.js +105 -0
- package/lib/module/anchors/resolveAnchorHost.js.map +1 -0
- package/lib/module/anchors/resolveManualAnchorId.js +13 -0
- package/lib/module/anchors/resolveManualAnchorId.js.map +1 -0
- package/lib/module/anchors/scrollAnchorIntoView.js +222 -0
- package/lib/module/anchors/scrollAnchorIntoView.js.map +1 -0
- package/lib/module/anchors/scrollConfig.js +40 -0
- package/lib/module/anchors/scrollConfig.js.map +1 -0
- package/lib/module/anchors/targetPressMonitor.js +105 -0
- package/lib/module/anchors/targetPressMonitor.js.map +1 -0
- package/lib/module/anchors/useUserflowAnchor.js +87 -0
- package/lib/module/anchors/useUserflowAnchor.js.map +1 -0
- package/lib/module/anchors/useUserflowScrollContainer.js +71 -0
- package/lib/module/anchors/useUserflowScrollContainer.js.map +1 -0
- package/lib/module/anonymousId.js +36 -0
- package/lib/module/anonymousId.js.map +1 -0
- package/lib/module/content/RichContentRenderer.js +670 -0
- package/lib/module/content/RichContentRenderer.js.map +1 -0
- package/lib/module/content/StepButton.js +52 -0
- package/lib/module/content/StepButton.js.map +1 -0
- package/lib/module/content/buttonAppearance.js +14 -0
- package/lib/module/content/buttonAppearance.js.map +1 -0
- package/lib/module/content/deserialize.js +116 -0
- package/lib/module/content/deserialize.js.map +1 -0
- package/lib/module/content/imageLayout.js +20 -0
- package/lib/module/content/imageLayout.js.map +1 -0
- package/lib/module/content/migrateFlowBlocks.js +35 -0
- package/lib/module/content/migrateFlowBlocks.js.map +1 -0
- package/lib/module/content/openSafeUrl.js +32 -0
- package/lib/module/content/openSafeUrl.js.map +1 -0
- package/lib/module/content/resolveStepButtonChrome.js +90 -0
- package/lib/module/content/resolveStepButtonChrome.js.map +1 -0
- package/lib/module/content/themeColor.js +99 -0
- package/lib/module/content/themeColor.js.map +1 -0
- package/lib/module/content/types.js +2 -0
- package/lib/module/content/types.js.map +1 -0
- package/lib/module/deepLinking.js +152 -0
- package/lib/module/deepLinking.js.map +1 -0
- package/lib/module/expo-router/UserflowExpoRouterScreenTracker.js +10 -0
- package/lib/module/expo-router/UserflowExpoRouterScreenTracker.js.map +1 -0
- package/lib/module/expo-router/getExpoRouterScreenTracker.js +39 -0
- package/lib/module/expo-router/getExpoRouterScreenTracker.js.map +1 -0
- package/lib/module/expo-router/index.js +5 -0
- package/lib/module/expo-router/index.js.map +1 -0
- package/lib/module/expo-router/useUserflowExpoRouter.js +42 -0
- package/lib/module/expo-router/useUserflowExpoRouter.js.map +1 -0
- package/lib/module/index.js +259 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lifecycle.js +195 -0
- package/lib/module/lifecycle.js.map +1 -0
- package/lib/module/navigation/WithUserflowReactNavigation.js +65 -0
- package/lib/module/navigation/WithUserflowReactNavigation.js.map +1 -0
- package/lib/module/navigation/chainCallbacks.js +12 -0
- package/lib/module/navigation/chainCallbacks.js.map +1 -0
- package/lib/module/navigation/getActiveRouteName.js +14 -0
- package/lib/module/navigation/getActiveRouteName.js.map +1 -0
- package/lib/module/navigation/index.js +5 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/openFlowNavigateUrl.js +100 -0
- package/lib/module/navigation/openFlowNavigateUrl.js.map +1 -0
- package/lib/module/network.js +85 -0
- package/lib/module/network.js.map +1 -0
- package/lib/module/pairing/PairingController.js +286 -0
- package/lib/module/pairing/PairingController.js.map +1 -0
- package/lib/module/pairing/PreviewModeBanner.js +113 -0
- package/lib/module/pairing/PreviewModeBanner.js.map +1 -0
- package/lib/module/pairing/deepLink.js +134 -0
- package/lib/module/pairing/deepLink.js.map +1 -0
- package/lib/module/pairing/diagnostics.js +101 -0
- package/lib/module/pairing/diagnostics.js.map +1 -0
- package/lib/module/pairing/index.js +7 -0
- package/lib/module/pairing/index.js.map +1 -0
- package/lib/module/pairing/pairingRuntime.js +77 -0
- package/lib/module/pairing/pairingRuntime.js.map +1 -0
- package/lib/module/pairing/tokenStorage.js +65 -0
- package/lib/module/pairing/tokenStorage.js.map +1 -0
- package/lib/module/pairing/usePairingState.js +35 -0
- package/lib/module/pairing/usePairingState.js.map +1 -0
- package/lib/module/runtime/FlowRenderer.js +52 -0
- package/lib/module/runtime/FlowRenderer.js.map +1 -0
- package/lib/module/runtime/FlowSurfaceFade.js +48 -0
- package/lib/module/runtime/FlowSurfaceFade.js.map +1 -0
- package/lib/module/runtime/TargetPressBridge.js +91 -0
- package/lib/module/runtime/TargetPressBridge.js.map +1 -0
- package/lib/module/runtime/UserflowProvider.js +85 -0
- package/lib/module/runtime/UserflowProvider.js.map +1 -0
- package/lib/module/runtime/clientConditions.js +43 -0
- package/lib/module/runtime/clientConditions.js.map +1 -0
- package/lib/module/runtime/flowEngine.js +54 -0
- package/lib/module/runtime/flowEngine.js.map +1 -0
- package/lib/module/runtime/flowSessionViewState.js +42 -0
- package/lib/module/runtime/flowSessionViewState.js.map +1 -0
- package/lib/module/runtime/useFlowSessionState.js +21 -0
- package/lib/module/runtime/useFlowSessionState.js.map +1 -0
- package/lib/module/runtime/userflowCore.js +10 -0
- package/lib/module/runtime/userflowCore.js.map +1 -0
- package/lib/module/screenTracker.js +79 -0
- package/lib/module/screenTracker.js.map +1 -0
- package/lib/module/surfaces/CloseButton.js +47 -0
- package/lib/module/surfaces/CloseButton.js.map +1 -0
- package/lib/module/surfaces/MadeWithUserflow.js +83 -0
- package/lib/module/surfaces/MadeWithUserflow.js.map +1 -0
- package/lib/module/surfaces/ModalSurface.js +165 -0
- package/lib/module/surfaces/ModalSurface.js.map +1 -0
- package/lib/module/surfaces/ProgressBar.js +111 -0
- package/lib/module/surfaces/ProgressBar.js.map +1 -0
- package/lib/module/surfaces/TooltipSurface.js +633 -0
- package/lib/module/surfaces/TooltipSurface.js.map +1 -0
- package/lib/module/surfaces/absoluteFill.js +25 -0
- package/lib/module/surfaces/absoluteFill.js.map +1 -0
- package/lib/module/surfaces/assets/png.d.js +2 -0
- package/lib/module/surfaces/assets/png.d.js.map +1 -0
- package/lib/module/surfaces/assets/userflow-logomark.png +0 -0
- package/lib/module/surfaces/parseBackdropOpacity.js +16 -0
- package/lib/module/surfaces/parseBackdropOpacity.js.map +1 -0
- package/lib/module/surfaces/progress.js +31 -0
- package/lib/module/surfaces/progress.js.map +1 -0
- package/lib/module/surfaces/resolveCloseButtonColor.js +20 -0
- package/lib/module/surfaces/resolveCloseButtonColor.js.map +1 -0
- package/lib/module/surfaces/resolveModalLayout.js +59 -0
- package/lib/module/surfaces/resolveModalLayout.js.map +1 -0
- package/lib/module/surfaces/resolveTooltipLayout.js +57 -0
- package/lib/module/surfaces/resolveTooltipLayout.js.map +1 -0
- package/lib/module/surfaces/safeArea.js +41 -0
- package/lib/module/surfaces/safeArea.js.map +1 -0
- package/lib/module/surfaces/themeChrome.js +86 -0
- package/lib/module/surfaces/themeChrome.js.map +1 -0
- package/lib/module/surfaces/tooltip/TooltipBubble.js +103 -0
- package/lib/module/surfaces/tooltip/TooltipBubble.js.map +1 -0
- package/lib/module/surfaces/tooltip/TooltipCutout.js +98 -0
- package/lib/module/surfaces/tooltip/TooltipCutout.js.map +1 -0
- package/lib/module/surfaces/tooltip/TooltipNotch.js +55 -0
- package/lib/module/surfaces/tooltip/TooltipNotch.js.map +1 -0
- package/lib/module/surfaces/tooltip/computeTooltipPosition.js +97 -0
- package/lib/module/surfaces/tooltip/computeTooltipPosition.js.map +1 -0
- package/lib/module/surfaces/tooltip/inferTooltipPlacement.js +95 -0
- package/lib/module/surfaces/tooltip/inferTooltipPlacement.js.map +1 -0
- package/lib/module/surfaces/tooltip/parseBackdropPadding.js +11 -0
- package/lib/module/surfaces/tooltip/parseBackdropPadding.js.map +1 -0
- package/lib/module/surfaces/tooltip/rect.js +44 -0
- package/lib/module/surfaces/tooltip/rect.js.map +1 -0
- package/lib/module/useUserflowScreen.js +21 -0
- package/lib/module/useUserflowScreen.js.map +1 -0
- package/lib/module/version.js +5 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts +32 -0
- package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts +113 -0
- package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts +46 -0
- package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts +30 -0
- package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/animationFrame.d.ts +21 -0
- package/lib/typescript/commonjs/src/anchors/animationFrame.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/autoAnchor.d.ts +31 -0
- package/lib/typescript/commonjs/src/anchors/autoAnchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts +21 -0
- package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts +41 -0
- package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts +48 -0
- package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts +33 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findScrollAncestors.d.ts +47 -0
- package/lib/typescript/commonjs/src/anchors/fiber/findScrollAncestors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/measureHostFiber.d.ts +20 -0
- package/lib/typescript/commonjs/src/anchors/fiber/measureHostFiber.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +42 -0
- package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/hintsCodec.d.ts +40 -0
- package/lib/typescript/commonjs/src/anchors/hintsCodec.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +32 -0
- package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/resolveManualAnchorId.d.ts +6 -0
- package/lib/typescript/commonjs/src/anchors/resolveManualAnchorId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/scrollAnchorIntoView.d.ts +59 -0
- package/lib/typescript/commonjs/src/anchors/scrollAnchorIntoView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/scrollConfig.d.ts +30 -0
- package/lib/typescript/commonjs/src/anchors/scrollConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts +64 -0
- package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts +30 -0
- package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts +34 -0
- package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/anonymousId.d.ts +5 -0
- package/lib/typescript/commonjs/src/anonymousId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts +21 -0
- package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/StepButton.d.ts +13 -0
- package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/buttonAppearance.d.ts +8 -0
- package/lib/typescript/commonjs/src/content/buttonAppearance.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/deserialize.d.ts +27 -0
- package/lib/typescript/commonjs/src/content/deserialize.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/imageLayout.d.ts +13 -0
- package/lib/typescript/commonjs/src/content/imageLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/migrateFlowBlocks.d.ts +12 -0
- package/lib/typescript/commonjs/src/content/migrateFlowBlocks.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/openSafeUrl.d.ts +12 -0
- package/lib/typescript/commonjs/src/content/openSafeUrl.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/resolveStepButtonChrome.d.ts +24 -0
- package/lib/typescript/commonjs/src/content/resolveStepButtonChrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/themeColor.d.ts +43 -0
- package/lib/typescript/commonjs/src/content/themeColor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/content/types.d.ts +144 -0
- package/lib/typescript/commonjs/src/content/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/deepLinking.d.ts +54 -0
- package/lib/typescript/commonjs/src/deepLinking.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/UserflowExpoRouterScreenTracker.d.ts +3 -0
- package/lib/typescript/commonjs/src/expo-router/UserflowExpoRouterScreenTracker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/getExpoRouterScreenTracker.d.ts +13 -0
- package/lib/typescript/commonjs/src/expo-router/getExpoRouterScreenTracker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/expo-router/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts +17 -0
- package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +112 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lifecycle.d.ts +96 -0
- package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/navigation/WithUserflowReactNavigation.d.ts +21 -0
- package/lib/typescript/commonjs/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/navigation/chainCallbacks.d.ts +3 -0
- package/lib/typescript/commonjs/src/navigation/chainCallbacks.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/navigation/getActiveRouteName.d.ts +6 -0
- package/lib/typescript/commonjs/src/navigation/getActiveRouteName.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/navigation/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/navigation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/navigation/openFlowNavigateUrl.d.ts +33 -0
- package/lib/typescript/commonjs/src/navigation/openFlowNavigateUrl.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/network.d.ts +42 -0
- package/lib/typescript/commonjs/src/network.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +104 -0
- package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts +11 -0
- package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/deepLink.d.ts +53 -0
- package/lib/typescript/commonjs/src/pairing/deepLink.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts +52 -0
- package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/pairing/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/pairingRuntime.d.ts +24 -0
- package/lib/typescript/commonjs/src/pairing/pairingRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts +16 -0
- package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/pairing/usePairingState.d.ts +4 -0
- package/lib/typescript/commonjs/src/pairing/usePairingState.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts +13 -0
- package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts +13 -0
- package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts +16 -0
- package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts +32 -0
- package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/clientConditions.d.ts +10 -0
- package/lib/typescript/commonjs/src/runtime/clientConditions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts +17 -0
- package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts +18 -0
- package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts +10 -0
- package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/runtime/userflowCore.d.ts +3 -0
- package/lib/typescript/commonjs/src/runtime/userflowCore.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/screenTracker.d.ts +28 -0
- package/lib/typescript/commonjs/src/screenTracker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts +8 -0
- package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts +28 -0
- package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts +23 -0
- package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/ProgressBar.d.ts +19 -0
- package/lib/typescript/commonjs/src/surfaces/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts +17 -0
- package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/absoluteFill.d.ts +18 -0
- package/lib/typescript/commonjs/src/surfaces/absoluteFill.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/parseBackdropOpacity.d.ts +5 -0
- package/lib/typescript/commonjs/src/surfaces/parseBackdropOpacity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/progress.d.ts +14 -0
- package/lib/typescript/commonjs/src/surfaces/progress.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/resolveCloseButtonColor.d.ts +9 -0
- package/lib/typescript/commonjs/src/surfaces/resolveCloseButtonColor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts +36 -0
- package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts +24 -0
- package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts +11 -0
- package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts +36 -0
- package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts +23 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts +31 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipNotch.d.ts +29 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipNotch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts +43 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts +34 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/parseBackdropPadding.d.ts +3 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/parseBackdropPadding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts +29 -0
- package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useUserflowScreen.d.ts +10 -0
- package/lib/typescript/commonjs/src/useUserflowScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/version.d.ts +3 -0
- package/lib/typescript/commonjs/src/version.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts +32 -0
- package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts +113 -0
- package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts +46 -0
- package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts +30 -0
- package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/animationFrame.d.ts +21 -0
- package/lib/typescript/module/src/anchors/animationFrame.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/autoAnchor.d.ts +31 -0
- package/lib/typescript/module/src/anchors/autoAnchor.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts +21 -0
- package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts +41 -0
- package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts +48 -0
- package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts +33 -0
- package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/findScrollAncestors.d.ts +47 -0
- package/lib/typescript/module/src/anchors/fiber/findScrollAncestors.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/measureHostFiber.d.ts +20 -0
- package/lib/typescript/module/src/anchors/fiber/measureHostFiber.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +42 -0
- package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/hintsCodec.d.ts +40 -0
- package/lib/typescript/module/src/anchors/hintsCodec.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +32 -0
- package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/resolveManualAnchorId.d.ts +6 -0
- package/lib/typescript/module/src/anchors/resolveManualAnchorId.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/scrollAnchorIntoView.d.ts +59 -0
- package/lib/typescript/module/src/anchors/scrollAnchorIntoView.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/scrollConfig.d.ts +30 -0
- package/lib/typescript/module/src/anchors/scrollConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts +64 -0
- package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts +30 -0
- package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts.map +1 -0
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts +34 -0
- package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts.map +1 -0
- package/lib/typescript/module/src/anonymousId.d.ts +5 -0
- package/lib/typescript/module/src/anonymousId.d.ts.map +1 -0
- package/lib/typescript/module/src/content/RichContentRenderer.d.ts +21 -0
- package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -0
- package/lib/typescript/module/src/content/StepButton.d.ts +13 -0
- package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -0
- package/lib/typescript/module/src/content/buttonAppearance.d.ts +8 -0
- package/lib/typescript/module/src/content/buttonAppearance.d.ts.map +1 -0
- package/lib/typescript/module/src/content/deserialize.d.ts +27 -0
- package/lib/typescript/module/src/content/deserialize.d.ts.map +1 -0
- package/lib/typescript/module/src/content/imageLayout.d.ts +13 -0
- package/lib/typescript/module/src/content/imageLayout.d.ts.map +1 -0
- package/lib/typescript/module/src/content/migrateFlowBlocks.d.ts +12 -0
- package/lib/typescript/module/src/content/migrateFlowBlocks.d.ts.map +1 -0
- package/lib/typescript/module/src/content/openSafeUrl.d.ts +12 -0
- package/lib/typescript/module/src/content/openSafeUrl.d.ts.map +1 -0
- package/lib/typescript/module/src/content/resolveStepButtonChrome.d.ts +24 -0
- package/lib/typescript/module/src/content/resolveStepButtonChrome.d.ts.map +1 -0
- package/lib/typescript/module/src/content/themeColor.d.ts +43 -0
- package/lib/typescript/module/src/content/themeColor.d.ts.map +1 -0
- package/lib/typescript/module/src/content/types.d.ts +144 -0
- package/lib/typescript/module/src/content/types.d.ts.map +1 -0
- package/lib/typescript/module/src/deepLinking.d.ts +54 -0
- package/lib/typescript/module/src/deepLinking.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/UserflowExpoRouterScreenTracker.d.ts +3 -0
- package/lib/typescript/module/src/expo-router/UserflowExpoRouterScreenTracker.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/getExpoRouterScreenTracker.d.ts +13 -0
- package/lib/typescript/module/src/expo-router/getExpoRouterScreenTracker.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/index.d.ts +3 -0
- package/lib/typescript/module/src/expo-router/index.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts +17 -0
- package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +112 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/lifecycle.d.ts +96 -0
- package/lib/typescript/module/src/lifecycle.d.ts.map +1 -0
- package/lib/typescript/module/src/navigation/WithUserflowReactNavigation.d.ts +21 -0
- package/lib/typescript/module/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -0
- package/lib/typescript/module/src/navigation/chainCallbacks.d.ts +3 -0
- package/lib/typescript/module/src/navigation/chainCallbacks.d.ts.map +1 -0
- package/lib/typescript/module/src/navigation/getActiveRouteName.d.ts +6 -0
- package/lib/typescript/module/src/navigation/getActiveRouteName.d.ts.map +1 -0
- package/lib/typescript/module/src/navigation/index.d.ts +5 -0
- package/lib/typescript/module/src/navigation/index.d.ts.map +1 -0
- package/lib/typescript/module/src/navigation/openFlowNavigateUrl.d.ts +33 -0
- package/lib/typescript/module/src/navigation/openFlowNavigateUrl.d.ts.map +1 -0
- package/lib/typescript/module/src/network.d.ts +42 -0
- package/lib/typescript/module/src/network.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/PairingController.d.ts +104 -0
- package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts +11 -0
- package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/deepLink.d.ts +53 -0
- package/lib/typescript/module/src/pairing/deepLink.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/diagnostics.d.ts +52 -0
- package/lib/typescript/module/src/pairing/diagnostics.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/index.d.ts +10 -0
- package/lib/typescript/module/src/pairing/index.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/pairingRuntime.d.ts +24 -0
- package/lib/typescript/module/src/pairing/pairingRuntime.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts +16 -0
- package/lib/typescript/module/src/pairing/tokenStorage.d.ts.map +1 -0
- package/lib/typescript/module/src/pairing/usePairingState.d.ts +4 -0
- package/lib/typescript/module/src/pairing/usePairingState.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/FlowRenderer.d.ts +13 -0
- package/lib/typescript/module/src/runtime/FlowRenderer.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts +13 -0
- package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts +16 -0
- package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts +32 -0
- package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/clientConditions.d.ts +10 -0
- package/lib/typescript/module/src/runtime/clientConditions.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/flowEngine.d.ts +17 -0
- package/lib/typescript/module/src/runtime/flowEngine.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts +18 -0
- package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts +10 -0
- package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts.map +1 -0
- package/lib/typescript/module/src/runtime/userflowCore.d.ts +3 -0
- package/lib/typescript/module/src/runtime/userflowCore.d.ts.map +1 -0
- package/lib/typescript/module/src/screenTracker.d.ts +28 -0
- package/lib/typescript/module/src/screenTracker.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/CloseButton.d.ts +8 -0
- package/lib/typescript/module/src/surfaces/CloseButton.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts +28 -0
- package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/ModalSurface.d.ts +23 -0
- package/lib/typescript/module/src/surfaces/ModalSurface.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/ProgressBar.d.ts +19 -0
- package/lib/typescript/module/src/surfaces/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts +17 -0
- package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/absoluteFill.d.ts +18 -0
- package/lib/typescript/module/src/surfaces/absoluteFill.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/parseBackdropOpacity.d.ts +5 -0
- package/lib/typescript/module/src/surfaces/parseBackdropOpacity.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/progress.d.ts +14 -0
- package/lib/typescript/module/src/surfaces/progress.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/resolveCloseButtonColor.d.ts +9 -0
- package/lib/typescript/module/src/surfaces/resolveCloseButtonColor.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts +36 -0
- package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts +24 -0
- package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/safeArea.d.ts +11 -0
- package/lib/typescript/module/src/surfaces/safeArea.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/themeChrome.d.ts +36 -0
- package/lib/typescript/module/src/surfaces/themeChrome.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts +23 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts +31 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipNotch.d.ts +29 -0
- package/lib/typescript/module/src/surfaces/tooltip/TooltipNotch.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts +43 -0
- package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts +34 -0
- package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/parseBackdropPadding.d.ts +3 -0
- package/lib/typescript/module/src/surfaces/tooltip/parseBackdropPadding.d.ts.map +1 -0
- package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts +29 -0
- package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts.map +1 -0
- package/lib/typescript/module/src/useUserflowScreen.d.ts +10 -0
- package/lib/typescript/module/src/useUserflowScreen.d.ts.map +1 -0
- package/lib/typescript/module/src/version.d.ts +3 -0
- package/lib/typescript/module/src/version.d.ts.map +1 -0
- package/package.json +144 -0
- package/src/anchors/AnchorRegistry.ts +81 -0
- package/src/anchors/AutoAnchorRegistry.ts +439 -0
- package/src/anchors/ScrollContainerRegistry.ts +108 -0
- package/src/anchors/anchorChangeTicker.ts +84 -0
- package/src/anchors/animationFrame.ts +88 -0
- package/src/anchors/autoAnchor.ts +310 -0
- package/src/anchors/elementConditionEvaluator.ts +108 -0
- package/src/anchors/fiber/FiberScanRoot.tsx +98 -0
- package/src/anchors/fiber/fiberInternals.ts +181 -0
- package/src/anchors/fiber/findAnchorFiber.ts +225 -0
- package/src/anchors/fiber/findScrollAncestors.ts +229 -0
- package/src/anchors/fiber/measureHostFiber.ts +85 -0
- package/src/anchors/fiber/visibleScreens.ts +173 -0
- package/src/anchors/hintsCodec.ts +125 -0
- package/src/anchors/resolveAnchorHost.ts +102 -0
- package/src/anchors/resolveManualAnchorId.ts +10 -0
- package/src/anchors/scrollAnchorIntoView.ts +251 -0
- package/src/anchors/scrollConfig.ts +61 -0
- package/src/anchors/targetPressMonitor.ts +127 -0
- package/src/anchors/useUserflowAnchor.ts +88 -0
- package/src/anchors/useUserflowScrollContainer.ts +86 -0
- package/src/anonymousId.ts +38 -0
- package/src/content/RichContentRenderer.tsx +721 -0
- package/src/content/StepButton.tsx +70 -0
- package/src/content/buttonAppearance.ts +11 -0
- package/src/content/deserialize.ts +147 -0
- package/src/content/imageLayout.ts +29 -0
- package/src/content/migrateFlowBlocks.ts +39 -0
- package/src/content/openSafeUrl.ts +30 -0
- package/src/content/resolveStepButtonChrome.ts +122 -0
- package/src/content/themeColor.ts +98 -0
- package/src/content/types.ts +189 -0
- package/src/deepLinking.ts +182 -0
- package/src/expo-router/UserflowExpoRouterScreenTracker.tsx +7 -0
- package/src/expo-router/getExpoRouterScreenTracker.ts +49 -0
- package/src/expo-router/index.ts +2 -0
- package/src/expo-router/useUserflowExpoRouter.ts +40 -0
- package/src/index.ts +362 -0
- package/src/lifecycle.ts +253 -0
- package/src/navigation/WithUserflowReactNavigation.tsx +87 -0
- package/src/navigation/chainCallbacks.ts +12 -0
- package/src/navigation/getActiveRouteName.ts +18 -0
- package/src/navigation/index.ts +11 -0
- package/src/navigation/openFlowNavigateUrl.ts +113 -0
- package/src/network.ts +113 -0
- package/src/pairing/PairingController.ts +356 -0
- package/src/pairing/PreviewModeBanner.tsx +130 -0
- package/src/pairing/deepLink.ts +128 -0
- package/src/pairing/diagnostics.ts +135 -0
- package/src/pairing/index.ts +19 -0
- package/src/pairing/pairingRuntime.ts +76 -0
- package/src/pairing/tokenStorage.ts +76 -0
- package/src/pairing/usePairingState.ts +43 -0
- package/src/runtime/FlowRenderer.tsx +60 -0
- package/src/runtime/FlowSurfaceFade.tsx +55 -0
- package/src/runtime/TargetPressBridge.tsx +86 -0
- package/src/runtime/UserflowProvider.tsx +89 -0
- package/src/runtime/clientConditions.ts +42 -0
- package/src/runtime/flowEngine.ts +53 -0
- package/src/runtime/flowSessionViewState.ts +55 -0
- package/src/runtime/useFlowSessionState.ts +36 -0
- package/src/runtime/userflowCore.ts +8 -0
- package/src/screenTracker.ts +83 -0
- package/src/surfaces/CloseButton.tsx +41 -0
- package/src/surfaces/MadeWithUserflow.tsx +103 -0
- package/src/surfaces/ModalSurface.tsx +215 -0
- package/src/surfaces/ProgressBar.tsx +142 -0
- package/src/surfaces/TooltipSurface.tsx +743 -0
- package/src/surfaces/absoluteFill.ts +24 -0
- package/src/surfaces/assets/png.d.ts +4 -0
- package/src/surfaces/assets/userflow-logomark.png +0 -0
- package/src/surfaces/parseBackdropOpacity.ts +13 -0
- package/src/surfaces/progress.ts +37 -0
- package/src/surfaces/resolveCloseButtonColor.ts +23 -0
- package/src/surfaces/resolveModalLayout.ts +85 -0
- package/src/surfaces/resolveTooltipLayout.ts +73 -0
- package/src/surfaces/safeArea.ts +48 -0
- package/src/surfaces/themeChrome.ts +126 -0
- package/src/surfaces/tooltip/TooltipBubble.tsx +123 -0
- package/src/surfaces/tooltip/TooltipCutout.tsx +110 -0
- package/src/surfaces/tooltip/TooltipNotch.tsx +67 -0
- package/src/surfaces/tooltip/computeTooltipPosition.ts +125 -0
- package/src/surfaces/tooltip/inferTooltipPlacement.ts +109 -0
- package/src/surfaces/tooltip/parseBackdropPadding.ts +8 -0
- package/src/surfaces/tooltip/rect.ts +62 -0
- package/src/useUserflowScreen.ts +17 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,721 @@
|
|
|
1
|
+
import { interpolateVariables } from '@userflow-tech/core';
|
|
2
|
+
import type {
|
|
3
|
+
FlowActionFragment,
|
|
4
|
+
FlowButtonFragment,
|
|
5
|
+
ThemeFragment,
|
|
6
|
+
} from '@userflow-tech/protocol';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
9
|
+
import { Image, Platform, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
10
|
+
|
|
11
|
+
import { StepButton } from './StepButton';
|
|
12
|
+
import {
|
|
13
|
+
deserializeRichContentDoc,
|
|
14
|
+
getAttributeNodeValue,
|
|
15
|
+
isText,
|
|
16
|
+
stringifyPlaintextDoc,
|
|
17
|
+
} from './deserialize';
|
|
18
|
+
import { resolveImageFrame } from './imageLayout';
|
|
19
|
+
import { migrateFlowBlocksIntoContent } from './migrateFlowBlocks';
|
|
20
|
+
import { openSafeUrl } from './openSafeUrl';
|
|
21
|
+
import {
|
|
22
|
+
ROOT_CONTENT_GAP,
|
|
23
|
+
WEB_CODE_BG_ALPHA,
|
|
24
|
+
WEB_CODE_FONT_SCALE,
|
|
25
|
+
WEB_CODE_RADIUS_SCALE,
|
|
26
|
+
WEB_LINE_HEIGHT_FALLBACK,
|
|
27
|
+
WEB_PADDING_2,
|
|
28
|
+
WEB_PADDING_4,
|
|
29
|
+
WEB_PADDING_8,
|
|
30
|
+
WEB_PADDING_16,
|
|
31
|
+
WEB_QUOTE_BORDER_ALPHA,
|
|
32
|
+
blockMarginBelow,
|
|
33
|
+
foregroundAlpha,
|
|
34
|
+
} from './themeColor';
|
|
35
|
+
import type {
|
|
36
|
+
AbstractRichContentTextFormatting,
|
|
37
|
+
AttributeElement,
|
|
38
|
+
ButtonElement,
|
|
39
|
+
ButtonGroupElement,
|
|
40
|
+
CodeBlockElement,
|
|
41
|
+
Heading1Element,
|
|
42
|
+
Heading2Element,
|
|
43
|
+
ImageElement,
|
|
44
|
+
JustifyContent,
|
|
45
|
+
LinkElement,
|
|
46
|
+
ListItemElement,
|
|
47
|
+
LookupAttribute,
|
|
48
|
+
OrderedListElement,
|
|
49
|
+
ParagraphElement,
|
|
50
|
+
QuoteElement,
|
|
51
|
+
RichContentDescendant,
|
|
52
|
+
RichContentDoc,
|
|
53
|
+
RichContentElement,
|
|
54
|
+
RichContentInlineNode,
|
|
55
|
+
TextAlign,
|
|
56
|
+
UnorderedListElement,
|
|
57
|
+
} from './types';
|
|
58
|
+
|
|
59
|
+
export interface RichContentRendererProps {
|
|
60
|
+
content: string | RichContentDoc | null | undefined;
|
|
61
|
+
buttons: FlowButtonFragment[];
|
|
62
|
+
theme: ThemeFragment;
|
|
63
|
+
sessionData: { name: string; value: string | string[] }[];
|
|
64
|
+
lookupAttribute: LookupAttribute;
|
|
65
|
+
onActions: (actions: FlowActionFragment[]) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Default justify for button-groups when `align` is unset.
|
|
68
|
+
* Web: modal → center, tooltip/bubble → end.
|
|
69
|
+
*/
|
|
70
|
+
defaultButtonsAlign?: JustifyContent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RichContentRenderer({
|
|
74
|
+
content,
|
|
75
|
+
buttons,
|
|
76
|
+
theme,
|
|
77
|
+
sessionData,
|
|
78
|
+
lookupAttribute,
|
|
79
|
+
onActions,
|
|
80
|
+
defaultButtonsAlign,
|
|
81
|
+
}: RichContentRendererProps): React.ReactElement {
|
|
82
|
+
const doc = React.useMemo(() => {
|
|
83
|
+
const raw =
|
|
84
|
+
typeof content === 'string' || content == null ? deserializeRichContentDoc(content) : content;
|
|
85
|
+
return migrateFlowBlocksIntoContent(raw, { buttons });
|
|
86
|
+
}, [content, buttons]);
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<View testID="userflow-rich-content" style={styles.root}>
|
|
90
|
+
<RenderedNodeList
|
|
91
|
+
nodes={doc.children}
|
|
92
|
+
buttons={buttons}
|
|
93
|
+
theme={theme}
|
|
94
|
+
sessionData={sessionData}
|
|
95
|
+
lookupAttribute={lookupAttribute}
|
|
96
|
+
onActions={onActions}
|
|
97
|
+
{...(defaultButtonsAlign !== undefined ? { defaultButtonsAlign } : {})}
|
|
98
|
+
/>
|
|
99
|
+
</View>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface RenderContext {
|
|
104
|
+
buttons: FlowButtonFragment[];
|
|
105
|
+
theme: ThemeFragment;
|
|
106
|
+
sessionData: { name: string; value: string | string[] }[];
|
|
107
|
+
lookupAttribute: LookupAttribute;
|
|
108
|
+
onActions: (actions: FlowActionFragment[]) => void;
|
|
109
|
+
defaultButtonsAlign?: JustifyContent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function RenderedNodeList({
|
|
113
|
+
nodes,
|
|
114
|
+
...ctx
|
|
115
|
+
}: RenderContext & { nodes: RichContentDescendant[] }): React.ReactElement {
|
|
116
|
+
return (
|
|
117
|
+
<>
|
|
118
|
+
{nodes.map((node, idx) =>
|
|
119
|
+
isText(node) ? (
|
|
120
|
+
<RenderedText key={idx} node={node} theme={ctx.theme} />
|
|
121
|
+
) : (
|
|
122
|
+
<RenderedElement
|
|
123
|
+
key={idx}
|
|
124
|
+
node={node as RichContentElement}
|
|
125
|
+
isLast={isLastPaintedSibling(nodes, idx)}
|
|
126
|
+
{...ctx}
|
|
127
|
+
/>
|
|
128
|
+
),
|
|
129
|
+
)}
|
|
130
|
+
</>
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Nodes that paint nothing still occupy the children array — skip them for last-sibling margin. */
|
|
135
|
+
function paintsAsBlock(node: RichContentDescendant): boolean {
|
|
136
|
+
if (isText(node)) return Boolean(node.text);
|
|
137
|
+
const type = (node as RichContentElement).type;
|
|
138
|
+
return type !== 'video' && type !== 'question';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function isLastPaintedSibling(nodes: RichContentDescendant[], idx: number): boolean {
|
|
142
|
+
for (let i = idx + 1; i < nodes.length; i++) {
|
|
143
|
+
const next = nodes[i];
|
|
144
|
+
if (next != null && paintsAsBlock(next)) return false;
|
|
145
|
+
}
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function RenderedElement({
|
|
150
|
+
node,
|
|
151
|
+
isLast,
|
|
152
|
+
...ctx
|
|
153
|
+
}: RenderContext & { node: RichContentElement; isLast: boolean }): React.ReactElement | null {
|
|
154
|
+
switch (node.type) {
|
|
155
|
+
case 'paragraph':
|
|
156
|
+
return <TextBlock node={node} style={styles.paragraph} {...ctx} />;
|
|
157
|
+
case 'heading1':
|
|
158
|
+
return <TextBlock node={node} style={styles.heading1} accessibilityRole="header" {...ctx} />;
|
|
159
|
+
case 'heading2':
|
|
160
|
+
return <TextBlock node={node} style={styles.heading2} accessibilityRole="header" {...ctx} />;
|
|
161
|
+
case 'quote':
|
|
162
|
+
return <RenderedQuote node={node} isLast={isLast} {...ctx} />;
|
|
163
|
+
case 'code-block':
|
|
164
|
+
return <RenderedCodeBlock node={node} isLast={isLast} {...ctx} />;
|
|
165
|
+
case 'unordered-list':
|
|
166
|
+
return <UnorderedList node={node} {...ctx} />;
|
|
167
|
+
case 'ordered-list':
|
|
168
|
+
return <OrderedList node={node} {...ctx} />;
|
|
169
|
+
case 'list-item':
|
|
170
|
+
return <InlineChildren nodes={node.children} {...ctx} />;
|
|
171
|
+
case 'link':
|
|
172
|
+
return <RenderedLink node={node} {...ctx} />;
|
|
173
|
+
case 'attribute':
|
|
174
|
+
return (
|
|
175
|
+
<RenderedAttribute node={node} theme={ctx.theme} lookupAttribute={ctx.lookupAttribute} />
|
|
176
|
+
);
|
|
177
|
+
case 'image':
|
|
178
|
+
return <RenderedImage node={node} {...ctx} />;
|
|
179
|
+
case 'button-group':
|
|
180
|
+
return <RenderedButtonGroup node={node} {...ctx} />;
|
|
181
|
+
case 'button':
|
|
182
|
+
return <RenderedButton node={node} {...ctx} />;
|
|
183
|
+
case 'video':
|
|
184
|
+
case 'question':
|
|
185
|
+
return null;
|
|
186
|
+
case 'column':
|
|
187
|
+
case 'column-group':
|
|
188
|
+
case 'container':
|
|
189
|
+
return (
|
|
190
|
+
<View style={styles.block}>
|
|
191
|
+
<RenderedNodeList nodes={node.children as RichContentDescendant[]} {...ctx} />
|
|
192
|
+
</View>
|
|
193
|
+
);
|
|
194
|
+
default:
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** mirrors userflowjs bubble-frame.styl blockquote */
|
|
200
|
+
function RenderedQuote({
|
|
201
|
+
node,
|
|
202
|
+
isLast,
|
|
203
|
+
...ctx
|
|
204
|
+
}: RenderContext & { node: QuoteElement; isLast: boolean }): React.ReactElement {
|
|
205
|
+
return (
|
|
206
|
+
<View
|
|
207
|
+
testID="userflow-quote"
|
|
208
|
+
style={[
|
|
209
|
+
styles.quote,
|
|
210
|
+
{
|
|
211
|
+
borderStartColor: foregroundAlpha(ctx.theme.fontColor, WEB_QUOTE_BORDER_ALPHA),
|
|
212
|
+
marginBottom: blockMarginBelow(isLast),
|
|
213
|
+
},
|
|
214
|
+
]}
|
|
215
|
+
>
|
|
216
|
+
<Text style={[baseText(ctx.theme), alignStyle(node.align)]}>
|
|
217
|
+
<InlineChildren nodes={node.children} {...ctx} />
|
|
218
|
+
</Text>
|
|
219
|
+
</View>
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** mirrors userflowjs bubble-frame.styl pre > code */
|
|
224
|
+
function RenderedCodeBlock({
|
|
225
|
+
node,
|
|
226
|
+
isLast,
|
|
227
|
+
...ctx
|
|
228
|
+
}: RenderContext & { node: CodeBlockElement; isLast: boolean }): React.ReactElement {
|
|
229
|
+
const fontSize = (ctx.theme.fontSize ?? 14) * WEB_CODE_FONT_SCALE;
|
|
230
|
+
const codeTextStyle: TextStyle = {
|
|
231
|
+
color: ctx.theme.fontColor,
|
|
232
|
+
fontFamily: monoFontFamily(),
|
|
233
|
+
fontSize,
|
|
234
|
+
};
|
|
235
|
+
return (
|
|
236
|
+
<View
|
|
237
|
+
testID="userflow-code-block"
|
|
238
|
+
style={[
|
|
239
|
+
styles.codeBlock,
|
|
240
|
+
{
|
|
241
|
+
backgroundColor: foregroundAlpha(ctx.theme.fontColor, WEB_CODE_BG_ALPHA),
|
|
242
|
+
borderRadius: (ctx.theme.fontSize ?? 14) * WEB_CODE_RADIUS_SCALE,
|
|
243
|
+
marginBottom: blockMarginBelow(isLast),
|
|
244
|
+
},
|
|
245
|
+
]}
|
|
246
|
+
>
|
|
247
|
+
<ScrollView
|
|
248
|
+
horizontal
|
|
249
|
+
nestedScrollEnabled
|
|
250
|
+
directionalLockEnabled
|
|
251
|
+
bounces={false}
|
|
252
|
+
showsHorizontalScrollIndicator
|
|
253
|
+
>
|
|
254
|
+
<Text selectable style={codeTextStyle}>
|
|
255
|
+
<InlineChildren nodes={node.children} textStyle={codeTextStyle} {...ctx} />
|
|
256
|
+
</Text>
|
|
257
|
+
</ScrollView>
|
|
258
|
+
</View>
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function TextBlock({
|
|
263
|
+
node,
|
|
264
|
+
style,
|
|
265
|
+
accessibilityRole,
|
|
266
|
+
...ctx
|
|
267
|
+
}: RenderContext & {
|
|
268
|
+
node:
|
|
269
|
+
| ParagraphElement
|
|
270
|
+
| Heading1Element
|
|
271
|
+
| Heading2Element
|
|
272
|
+
| { align?: TextAlign | null; children: RichContentInlineNode[] };
|
|
273
|
+
style: TextStyle;
|
|
274
|
+
accessibilityRole?: 'header' | 'text';
|
|
275
|
+
}): React.ReactElement {
|
|
276
|
+
return (
|
|
277
|
+
<Text
|
|
278
|
+
style={[baseText(ctx.theme), style, alignStyle(node.align)]}
|
|
279
|
+
testID="userflow-text-block"
|
|
280
|
+
accessibilityRole={accessibilityRole}
|
|
281
|
+
>
|
|
282
|
+
<InlineChildren nodes={node.children} {...ctx} />
|
|
283
|
+
</Text>
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function InlineChildren({
|
|
288
|
+
nodes,
|
|
289
|
+
textStyle,
|
|
290
|
+
...ctx
|
|
291
|
+
}: RenderContext & {
|
|
292
|
+
nodes: RichContentInlineNode[];
|
|
293
|
+
textStyle?: TextStyle;
|
|
294
|
+
}): React.ReactElement {
|
|
295
|
+
return (
|
|
296
|
+
<>
|
|
297
|
+
{nodes.map((node, idx) =>
|
|
298
|
+
isText(node) ? (
|
|
299
|
+
<RenderedText
|
|
300
|
+
key={idx}
|
|
301
|
+
node={node}
|
|
302
|
+
theme={ctx.theme}
|
|
303
|
+
{...(textStyle !== undefined ? { textStyle } : {})}
|
|
304
|
+
/>
|
|
305
|
+
) : node.type === 'link' ? (
|
|
306
|
+
<RenderedLink
|
|
307
|
+
key={idx}
|
|
308
|
+
node={node}
|
|
309
|
+
{...(textStyle !== undefined ? { textStyle } : {})}
|
|
310
|
+
{...ctx}
|
|
311
|
+
/>
|
|
312
|
+
) : node.type === 'attribute' ? (
|
|
313
|
+
<RenderedAttribute
|
|
314
|
+
key={idx}
|
|
315
|
+
node={node}
|
|
316
|
+
theme={ctx.theme}
|
|
317
|
+
lookupAttribute={ctx.lookupAttribute}
|
|
318
|
+
{...(textStyle !== undefined ? { textStyle } : {})}
|
|
319
|
+
/>
|
|
320
|
+
) : null,
|
|
321
|
+
)}
|
|
322
|
+
</>
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function RenderedText({
|
|
327
|
+
node,
|
|
328
|
+
theme,
|
|
329
|
+
textStyle,
|
|
330
|
+
}: {
|
|
331
|
+
node: AbstractRichContentTextFormatting & { text: string };
|
|
332
|
+
theme: ThemeFragment;
|
|
333
|
+
textStyle?: TextStyle;
|
|
334
|
+
}): React.ReactElement | null {
|
|
335
|
+
if (!node.text) return null;
|
|
336
|
+
if (node.code) {
|
|
337
|
+
return (
|
|
338
|
+
<View style={inlineCodeChrome(theme)} testID="userflow-inline-code">
|
|
339
|
+
<Text style={[baseText(theme), textStyle, inlineCodeTextStyle(node, theme)]}>
|
|
340
|
+
{node.text}
|
|
341
|
+
</Text>
|
|
342
|
+
</View>
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
return <Text style={[baseText(theme), textStyle, markStyle(node)]}>{node.text}</Text>;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function RenderedAttribute({
|
|
349
|
+
node,
|
|
350
|
+
theme,
|
|
351
|
+
lookupAttribute,
|
|
352
|
+
textStyle,
|
|
353
|
+
}: {
|
|
354
|
+
node: AttributeElement;
|
|
355
|
+
theme: ThemeFragment;
|
|
356
|
+
lookupAttribute: LookupAttribute;
|
|
357
|
+
textStyle?: TextStyle;
|
|
358
|
+
}): React.ReactElement | null {
|
|
359
|
+
const value = getAttributeNodeValue(node, lookupAttribute);
|
|
360
|
+
if (!value) return null;
|
|
361
|
+
if (node.code) {
|
|
362
|
+
return (
|
|
363
|
+
<View style={inlineCodeChrome(theme)} testID="userflow-inline-code">
|
|
364
|
+
<Text style={[baseText(theme), textStyle, inlineCodeTextStyle(node, theme)]}>{value}</Text>
|
|
365
|
+
</View>
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
return <Text style={[baseText(theme), textStyle, markStyle(node)]}>{value}</Text>;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
function RenderedLink({
|
|
372
|
+
node,
|
|
373
|
+
textStyle,
|
|
374
|
+
...ctx
|
|
375
|
+
}: RenderContext & { node: LinkElement; textStyle?: TextStyle }): React.ReactElement {
|
|
376
|
+
const href = stringifyPlaintextDoc(node.href, { lookupAttribute: ctx.lookupAttribute });
|
|
377
|
+
return (
|
|
378
|
+
<Text
|
|
379
|
+
style={[baseText(ctx.theme), textStyle, styles.link]}
|
|
380
|
+
accessibilityRole="link"
|
|
381
|
+
accessibilityHint={href || undefined}
|
|
382
|
+
onPress={() => {
|
|
383
|
+
void openSafeUrl(href);
|
|
384
|
+
}}
|
|
385
|
+
>
|
|
386
|
+
<InlineChildren
|
|
387
|
+
nodes={node.children}
|
|
388
|
+
{...(textStyle !== undefined ? { textStyle } : {})}
|
|
389
|
+
{...ctx}
|
|
390
|
+
/>
|
|
391
|
+
</Text>
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function RenderedImage({
|
|
396
|
+
node,
|
|
397
|
+
...ctx
|
|
398
|
+
}: RenderContext & { node: ImageElement }): React.ReactElement | null {
|
|
399
|
+
const [status, setStatus] = React.useState<'loading' | 'loaded' | 'error'>('loading');
|
|
400
|
+
const rawSrc =
|
|
401
|
+
typeof node.src === 'string'
|
|
402
|
+
? node.src
|
|
403
|
+
: stringifyPlaintextDoc(node.src, { lookupAttribute: ctx.lookupAttribute });
|
|
404
|
+
const src = interpolateVariables(rawSrc, (fqn: string) =>
|
|
405
|
+
encodeURIComponent(ctx.lookupAttribute(fqn) || ''),
|
|
406
|
+
);
|
|
407
|
+
if (!src) return null;
|
|
408
|
+
|
|
409
|
+
const { wrapperWidth, aspectRatio } = resolveImageFrame(node);
|
|
410
|
+
|
|
411
|
+
const framed = (
|
|
412
|
+
<View
|
|
413
|
+
style={[styles.imageFrame, { width: wrapperWidth }, alignSelf(node.align)]}
|
|
414
|
+
testID="userflow-image-frame"
|
|
415
|
+
>
|
|
416
|
+
{status === 'loading' ? (
|
|
417
|
+
<View
|
|
418
|
+
testID="userflow-image-placeholder"
|
|
419
|
+
style={[
|
|
420
|
+
styles.imagePlaceholder,
|
|
421
|
+
aspectRatio != null ? { aspectRatio } : styles.imagePlaceholderFallback,
|
|
422
|
+
]}
|
|
423
|
+
/>
|
|
424
|
+
) : null}
|
|
425
|
+
{status === 'error' ? (
|
|
426
|
+
<View
|
|
427
|
+
testID="userflow-image-error"
|
|
428
|
+
style={[
|
|
429
|
+
styles.imageError,
|
|
430
|
+
aspectRatio != null ? { aspectRatio } : styles.imagePlaceholderFallback,
|
|
431
|
+
]}
|
|
432
|
+
>
|
|
433
|
+
<Text style={styles.imageErrorText}>Image unavailable</Text>
|
|
434
|
+
</View>
|
|
435
|
+
) : (
|
|
436
|
+
<Image
|
|
437
|
+
source={{ uri: src, cache: 'force-cache' as const }}
|
|
438
|
+
style={[
|
|
439
|
+
styles.image,
|
|
440
|
+
aspectRatio != null ? { aspectRatio } : null,
|
|
441
|
+
status === 'loading' ? styles.imageHiddenWhileLoading : null,
|
|
442
|
+
]}
|
|
443
|
+
resizeMode="contain"
|
|
444
|
+
accessibilityRole="image"
|
|
445
|
+
accessibilityLabel="Image"
|
|
446
|
+
accessibilityIgnoresInvertColors
|
|
447
|
+
testID="userflow-image"
|
|
448
|
+
onLoad={() => setStatus('loaded')}
|
|
449
|
+
onError={() => setStatus('error')}
|
|
450
|
+
/>
|
|
451
|
+
)}
|
|
452
|
+
</View>
|
|
453
|
+
);
|
|
454
|
+
|
|
455
|
+
if (node.hasLink && node.href) {
|
|
456
|
+
const href = stringifyPlaintextDoc(node.href, { lookupAttribute: ctx.lookupAttribute });
|
|
457
|
+
return (
|
|
458
|
+
<Pressable
|
|
459
|
+
accessibilityRole="link"
|
|
460
|
+
accessibilityLabel="Image link"
|
|
461
|
+
onPress={() => {
|
|
462
|
+
void openSafeUrl(href);
|
|
463
|
+
}}
|
|
464
|
+
>
|
|
465
|
+
{framed}
|
|
466
|
+
</Pressable>
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
return framed;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function UnorderedList({
|
|
474
|
+
node,
|
|
475
|
+
...ctx
|
|
476
|
+
}: RenderContext & { node: UnorderedListElement }): React.ReactElement {
|
|
477
|
+
return (
|
|
478
|
+
<View style={styles.list}>
|
|
479
|
+
{node.children.map((item, idx) => (
|
|
480
|
+
<ListRow key={idx} marker="•" item={item} {...ctx} />
|
|
481
|
+
))}
|
|
482
|
+
</View>
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function OrderedList({
|
|
487
|
+
node,
|
|
488
|
+
...ctx
|
|
489
|
+
}: RenderContext & { node: OrderedListElement }): React.ReactElement {
|
|
490
|
+
return (
|
|
491
|
+
<View style={styles.list}>
|
|
492
|
+
{node.children.map((item, idx) => (
|
|
493
|
+
<ListRow key={idx} marker={`${idx + 1}.`} item={item} {...ctx} />
|
|
494
|
+
))}
|
|
495
|
+
</View>
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
function ListRow({
|
|
500
|
+
marker,
|
|
501
|
+
item,
|
|
502
|
+
...ctx
|
|
503
|
+
}: RenderContext & { marker: string; item: ListItemElement }): React.ReactElement {
|
|
504
|
+
return (
|
|
505
|
+
<View style={styles.listItem}>
|
|
506
|
+
<Text style={[baseText(ctx.theme), styles.listMarker]}>{marker}</Text>
|
|
507
|
+
<Text style={[baseText(ctx.theme), styles.listBody]}>
|
|
508
|
+
<InlineChildren nodes={item.children} {...ctx} />
|
|
509
|
+
</Text>
|
|
510
|
+
</View>
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function RenderedButtonGroup({
|
|
515
|
+
node,
|
|
516
|
+
...ctx
|
|
517
|
+
}: RenderContext & { node: ButtonGroupElement }): React.ReactElement {
|
|
518
|
+
return (
|
|
519
|
+
<View style={[styles.buttonGroup, justifyContent(node.align ?? ctx.defaultButtonsAlign)]}>
|
|
520
|
+
{node.children.map((child, idx) => (
|
|
521
|
+
<RenderedButton key={idx} node={child} {...ctx} />
|
|
522
|
+
))}
|
|
523
|
+
</View>
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function RenderedButton({
|
|
528
|
+
node,
|
|
529
|
+
...ctx
|
|
530
|
+
}: RenderContext & { node: ButtonElement }): React.ReactElement | null {
|
|
531
|
+
const button = ctx.buttons.find((b) => b.cvid === node.cvid);
|
|
532
|
+
if (!button) return null;
|
|
533
|
+
return (
|
|
534
|
+
<StepButton
|
|
535
|
+
button={button}
|
|
536
|
+
theme={ctx.theme}
|
|
537
|
+
sessionData={ctx.sessionData}
|
|
538
|
+
onActions={ctx.onActions}
|
|
539
|
+
/>
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
function baseText(theme: ThemeFragment): TextStyle {
|
|
544
|
+
return {
|
|
545
|
+
color: theme.fontColor,
|
|
546
|
+
fontFamily: theme.fontFamily || undefined,
|
|
547
|
+
fontSize: theme.fontSize,
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
function markStyle(node: AbstractRichContentTextFormatting): TextStyle {
|
|
552
|
+
return {
|
|
553
|
+
fontWeight: node.bold ? '700' : undefined,
|
|
554
|
+
fontStyle: node.italic ? 'italic' : undefined,
|
|
555
|
+
textDecorationLine: textDecoration(node),
|
|
556
|
+
fontSize: node.small ? 12 : node.sup ? 10 : undefined,
|
|
557
|
+
color: node.color || undefined,
|
|
558
|
+
// Inline `code` uses View chrome via RenderedText / RenderedAttribute.
|
|
559
|
+
fontFamily: node.code ? monoFontFamily() : undefined,
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/** View wrapper so inline code padding/radius work reliably on Android. */
|
|
564
|
+
function inlineCodeChrome(theme: ThemeFragment): ViewStyle {
|
|
565
|
+
return {
|
|
566
|
+
backgroundColor: foregroundAlpha(theme.fontColor, WEB_CODE_BG_ALPHA),
|
|
567
|
+
borderRadius: (theme.fontSize ?? 14) * WEB_CODE_RADIUS_SCALE,
|
|
568
|
+
paddingVertical: WEB_PADDING_2,
|
|
569
|
+
paddingHorizontal: WEB_PADDING_4,
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function inlineCodeTextStyle(
|
|
574
|
+
node: AbstractRichContentTextFormatting,
|
|
575
|
+
theme: ThemeFragment,
|
|
576
|
+
): TextStyle {
|
|
577
|
+
const fontSize = (theme.fontSize ?? 14) * WEB_CODE_FONT_SCALE;
|
|
578
|
+
return {
|
|
579
|
+
fontWeight: node.bold ? '700' : undefined,
|
|
580
|
+
fontStyle: node.italic ? 'italic' : undefined,
|
|
581
|
+
textDecorationLine: textDecoration(node),
|
|
582
|
+
fontFamily: monoFontFamily(),
|
|
583
|
+
fontSize: node.small ? 12 : node.sup ? 10 : fontSize,
|
|
584
|
+
color: node.color || theme.fontColor,
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
function monoFontFamily(): string {
|
|
589
|
+
return Platform.select({ ios: 'Menlo', android: 'monospace', default: 'monospace' }) as string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
function textDecoration(node: AbstractRichContentTextFormatting): TextStyle['textDecorationLine'] {
|
|
593
|
+
if (node.underline && node.strikeThrough) return 'underline line-through';
|
|
594
|
+
if (node.underline) return 'underline';
|
|
595
|
+
if (node.strikeThrough) return 'line-through';
|
|
596
|
+
return undefined;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function alignStyle(align: TextAlign | null | undefined): TextStyle {
|
|
600
|
+
if (!align) return {};
|
|
601
|
+
return { textAlign: align };
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
function alignSelf(align: string | null | undefined): ViewStyle {
|
|
605
|
+
if (align === 'center') return { alignSelf: 'center' };
|
|
606
|
+
if (align === 'right') return { alignSelf: 'flex-end' };
|
|
607
|
+
if (align === 'left') return { alignSelf: 'flex-start' };
|
|
608
|
+
return { alignSelf: 'stretch' };
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
function justifyContent(align: JustifyContent | undefined): ViewStyle {
|
|
612
|
+
switch (align) {
|
|
613
|
+
case 'end':
|
|
614
|
+
return { justifyContent: 'flex-end' };
|
|
615
|
+
case 'center':
|
|
616
|
+
return { justifyContent: 'center' };
|
|
617
|
+
case 'space-between':
|
|
618
|
+
return { justifyContent: 'space-between' };
|
|
619
|
+
case 'space-around':
|
|
620
|
+
return { justifyContent: 'space-around' };
|
|
621
|
+
case 'space-evenly':
|
|
622
|
+
return { justifyContent: 'space-evenly' };
|
|
623
|
+
case 'start':
|
|
624
|
+
default:
|
|
625
|
+
return { justifyContent: 'flex-start' };
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
const styles = StyleSheet.create({
|
|
630
|
+
root: {
|
|
631
|
+
// Keep in sync with ROOT_CONTENT_GAP (quote/code margin compensates for this).
|
|
632
|
+
gap: ROOT_CONTENT_GAP,
|
|
633
|
+
},
|
|
634
|
+
block: {
|
|
635
|
+
gap: ROOT_CONTENT_GAP,
|
|
636
|
+
},
|
|
637
|
+
paragraph: {
|
|
638
|
+
marginBottom: 4,
|
|
639
|
+
},
|
|
640
|
+
heading1: {
|
|
641
|
+
fontSize: 22,
|
|
642
|
+
fontWeight: '700',
|
|
643
|
+
marginBottom: 6,
|
|
644
|
+
},
|
|
645
|
+
heading2: {
|
|
646
|
+
fontSize: 18,
|
|
647
|
+
fontWeight: '700',
|
|
648
|
+
marginBottom: 4,
|
|
649
|
+
},
|
|
650
|
+
// mirrors userflowjs bubble-frame.styl blockquote (RTL-safe start edge)
|
|
651
|
+
quote: {
|
|
652
|
+
borderStartWidth: 2,
|
|
653
|
+
paddingVertical: WEB_PADDING_4,
|
|
654
|
+
paddingHorizontal: WEB_PADDING_16,
|
|
655
|
+
minHeight: WEB_LINE_HEIGHT_FALLBACK,
|
|
656
|
+
},
|
|
657
|
+
// mirrors userflowjs bubble-frame.styl pre > code
|
|
658
|
+
codeBlock: {
|
|
659
|
+
padding: WEB_PADDING_8,
|
|
660
|
+
},
|
|
661
|
+
link: {
|
|
662
|
+
textDecorationLine: 'underline',
|
|
663
|
+
},
|
|
664
|
+
imageFrame: {
|
|
665
|
+
maxWidth: '100%',
|
|
666
|
+
marginVertical: 8,
|
|
667
|
+
position: 'relative',
|
|
668
|
+
},
|
|
669
|
+
image: {
|
|
670
|
+
width: '100%',
|
|
671
|
+
},
|
|
672
|
+
imageHiddenWhileLoading: {
|
|
673
|
+
opacity: 0,
|
|
674
|
+
position: 'absolute',
|
|
675
|
+
left: 0,
|
|
676
|
+
right: 0,
|
|
677
|
+
top: 0,
|
|
678
|
+
},
|
|
679
|
+
imagePlaceholder: {
|
|
680
|
+
width: '100%',
|
|
681
|
+
backgroundColor: 'rgba(0,0,0,0.06)',
|
|
682
|
+
borderRadius: 4,
|
|
683
|
+
},
|
|
684
|
+
imagePlaceholderFallback: {
|
|
685
|
+
minHeight: 120,
|
|
686
|
+
},
|
|
687
|
+
imageError: {
|
|
688
|
+
width: '100%',
|
|
689
|
+
alignItems: 'center',
|
|
690
|
+
justifyContent: 'center',
|
|
691
|
+
backgroundColor: 'rgba(0,0,0,0.04)',
|
|
692
|
+
borderRadius: 4,
|
|
693
|
+
paddingVertical: 16,
|
|
694
|
+
paddingHorizontal: 12,
|
|
695
|
+
},
|
|
696
|
+
imageErrorText: {
|
|
697
|
+
fontSize: 12,
|
|
698
|
+
opacity: 0.65,
|
|
699
|
+
},
|
|
700
|
+
list: {
|
|
701
|
+
gap: 4,
|
|
702
|
+
marginVertical: 4,
|
|
703
|
+
},
|
|
704
|
+
listItem: {
|
|
705
|
+
flexDirection: 'row',
|
|
706
|
+
alignItems: 'flex-start',
|
|
707
|
+
gap: 8,
|
|
708
|
+
},
|
|
709
|
+
listMarker: {
|
|
710
|
+
minWidth: 18,
|
|
711
|
+
},
|
|
712
|
+
listBody: {
|
|
713
|
+
flex: 1,
|
|
714
|
+
},
|
|
715
|
+
buttonGroup: {
|
|
716
|
+
flexDirection: 'row',
|
|
717
|
+
flexWrap: 'wrap',
|
|
718
|
+
gap: 8,
|
|
719
|
+
marginTop: 16,
|
|
720
|
+
},
|
|
721
|
+
});
|