@userflow-tech/react-native 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1332) hide show
  1. package/README.md +154 -79
  2. package/app.plugin.js +19 -1
  3. package/babel-plugin/index.d.ts +8 -8
  4. package/babel-plugin/index.d.ts.map +1 -1
  5. package/babel-plugin/index.js +70 -15
  6. package/babel-plugin/index.js.map +1 -1
  7. package/babel-plugin.js +21 -0
  8. package/docs/anchoring.md +141 -13
  9. package/docs/deep-linking.md +83 -43
  10. package/docs/isolation.md +75 -0
  11. package/docs/theme-mapping.md +44 -15
  12. package/docs/troubleshooting.md +73 -43
  13. package/docs/webview-custom-banner-poc.md +64 -0
  14. package/expo-plugin/withUserflow.d.ts +3 -2
  15. package/expo-plugin/withUserflow.d.ts.map +1 -1
  16. package/expo-plugin/withUserflow.js +15 -9
  17. package/expo-plugin/withUserflow.js.map +1 -1
  18. package/lib/commonjs/anchors/AutoAnchorRegistry.js +150 -2
  19. package/lib/commonjs/anchors/AutoAnchorRegistry.js.map +1 -1
  20. package/lib/commonjs/anchors/anchorChangeTicker.js +10 -0
  21. package/lib/commonjs/anchors/anchorChangeTicker.js.map +1 -1
  22. package/lib/commonjs/anchors/elementConditionEvaluator.js +25 -12
  23. package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -1
  24. package/lib/commonjs/anchors/fiber/FiberScanRoot.js +11 -47
  25. package/lib/commonjs/anchors/fiber/FiberScanRoot.js.map +1 -1
  26. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +50 -0
  27. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -0
  28. package/lib/commonjs/anchors/fiber/fiberInternals.js +145 -3
  29. package/lib/commonjs/anchors/fiber/fiberInternals.js.map +1 -1
  30. package/lib/commonjs/anchors/fiber/fiberPath.js +122 -0
  31. package/lib/commonjs/anchors/fiber/fiberPath.js.map +1 -0
  32. package/lib/commonjs/anchors/fiber/findAnchorFiber.js +60 -50
  33. package/lib/commonjs/anchors/fiber/findAnchorFiber.js.map +1 -1
  34. package/lib/commonjs/anchors/fiber/indexHostFibers.js +129 -0
  35. package/lib/commonjs/anchors/fiber/indexHostFibers.js.map +1 -0
  36. package/lib/commonjs/anchors/fiber/readHostContent.js +131 -0
  37. package/lib/commonjs/anchors/fiber/readHostContent.js.map +1 -0
  38. package/lib/commonjs/anchors/fiber/resolveFiberPath.js +220 -0
  39. package/lib/commonjs/anchors/fiber/resolveFiberPath.js.map +1 -0
  40. package/lib/commonjs/anchors/fiber/visibleRect.js +147 -0
  41. package/lib/commonjs/anchors/fiber/visibleRect.js.map +1 -0
  42. package/lib/commonjs/anchors/fiber/visibleScreens.js +73 -36
  43. package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -1
  44. package/lib/commonjs/anchors/fiber/walkVisibleFibers.js +66 -0
  45. package/lib/commonjs/anchors/fiber/walkVisibleFibers.js.map +1 -0
  46. package/lib/commonjs/anchors/fiberAnchorCache.js +50 -0
  47. package/lib/commonjs/anchors/fiberAnchorCache.js.map +1 -0
  48. package/lib/commonjs/anchors/isInstanceOnVisibleScreen.js +51 -0
  49. package/lib/commonjs/anchors/isInstanceOnVisibleScreen.js.map +1 -0
  50. package/lib/commonjs/anchors/resolveAnchorHost.js +15 -21
  51. package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -1
  52. package/lib/commonjs/anchors/resolveAutoAnchorHost.js +178 -0
  53. package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -0
  54. package/lib/commonjs/anchors/semanticMatcher.js +303 -0
  55. package/lib/commonjs/anchors/semanticMatcher.js.map +1 -0
  56. package/lib/commonjs/anonymousId.js +4 -1
  57. package/lib/commonjs/anonymousId.js.map +1 -1
  58. package/lib/commonjs/authoring/ElementPickerOverlay.js +566 -0
  59. package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -0
  60. package/lib/commonjs/authoring/capturePickerScreenshot.js +73 -0
  61. package/lib/commonjs/authoring/capturePickerScreenshot.js.map +1 -0
  62. package/lib/commonjs/authoring/chrome/ChromeBarTransition.js +94 -0
  63. package/lib/commonjs/authoring/chrome/ChromeBarTransition.js.map +1 -0
  64. package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js +86 -0
  65. package/lib/commonjs/authoring/chrome/ChromeBottomSheet.js.map +1 -0
  66. package/lib/commonjs/authoring/chrome/ChromeButton.js +99 -0
  67. package/lib/commonjs/authoring/chrome/ChromeButton.js.map +1 -0
  68. package/lib/commonjs/authoring/chrome/ChromeDialog.js +131 -0
  69. package/lib/commonjs/authoring/chrome/ChromeDialog.js.map +1 -0
  70. package/lib/commonjs/authoring/chrome/ChromeIcon.js +43 -0
  71. package/lib/commonjs/authoring/chrome/ChromeIcon.js.map +1 -0
  72. package/lib/commonjs/authoring/chrome/ChromeTooltip.js +88 -0
  73. package/lib/commonjs/authoring/chrome/ChromeTooltip.js.map +1 -0
  74. package/lib/commonjs/authoring/chrome/ChromeTopBar.js +123 -0
  75. package/lib/commonjs/authoring/chrome/ChromeTopBar.js.map +1 -0
  76. package/lib/commonjs/authoring/chrome/DoubleTapBridge.js +64 -0
  77. package/lib/commonjs/authoring/chrome/DoubleTapBridge.js.map +1 -0
  78. package/lib/commonjs/authoring/chrome/doubleTapMonitor.js +90 -0
  79. package/lib/commonjs/authoring/chrome/doubleTapMonitor.js.map +1 -0
  80. package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
  81. package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
  82. package/lib/commonjs/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
  83. package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left.png +0 -0
  84. package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
  85. package/lib/commonjs/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
  86. package/lib/commonjs/authoring/chrome/icons/circle-exclamation.png +0 -0
  87. package/lib/commonjs/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
  88. package/lib/commonjs/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
  89. package/lib/commonjs/authoring/chrome/icons/triangle-exclamation.png +0 -0
  90. package/lib/commonjs/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
  91. package/lib/commonjs/authoring/chrome/icons/triangle-exclamation@3x.png +0 -0
  92. package/lib/commonjs/authoring/chrome/icons/userflow-logomark.png +0 -0
  93. package/lib/commonjs/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
  94. package/lib/commonjs/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
  95. package/lib/commonjs/authoring/chrome/icons/xmark.png +0 -0
  96. package/lib/commonjs/authoring/chrome/icons/xmark@2x.png +0 -0
  97. package/lib/commonjs/authoring/chrome/icons/xmark@3x.png +0 -0
  98. package/lib/commonjs/authoring/chrome/tokens.js +151 -0
  99. package/lib/commonjs/authoring/chrome/tokens.js.map +1 -0
  100. package/lib/commonjs/authoring/doubleTap.js +23 -0
  101. package/lib/commonjs/authoring/doubleTap.js.map +1 -0
  102. package/lib/commonjs/authoring/elementPickerController.js +102 -0
  103. package/lib/commonjs/authoring/elementPickerController.js.map +1 -0
  104. package/lib/commonjs/authoring/fingerprintFromInstance.js +395 -0
  105. package/lib/commonjs/authoring/fingerprintFromInstance.js.map +1 -0
  106. package/lib/commonjs/authoring/hitTest.js +354 -0
  107. package/lib/commonjs/authoring/hitTest.js.map +1 -0
  108. package/lib/commonjs/authoring/hostAtPoint.js +204 -0
  109. package/lib/commonjs/authoring/hostAtPoint.js.map +1 -0
  110. package/lib/commonjs/content/BannerStepButton.js +68 -0
  111. package/lib/commonjs/content/BannerStepButton.js.map +1 -0
  112. package/lib/commonjs/content/RichContentRenderer.js +12 -2
  113. package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
  114. package/lib/commonjs/content/StepButton.js +19 -4
  115. package/lib/commonjs/content/StepButton.js.map +1 -1
  116. package/lib/commonjs/content/buttonAppearance.js +16 -0
  117. package/lib/commonjs/content/buttonAppearance.js.map +1 -1
  118. package/lib/commonjs/content/resolveBannerButtonChrome.js +44 -0
  119. package/lib/commonjs/content/resolveBannerButtonChrome.js.map +1 -0
  120. package/lib/commonjs/content/resolveStepButtonChrome.js +8 -6
  121. package/lib/commonjs/content/resolveStepButtonChrome.js.map +1 -1
  122. package/lib/commonjs/content/themeColor.js +26 -0
  123. package/lib/commonjs/content/themeColor.js.map +1 -1
  124. package/lib/commonjs/deepLinking.js +4 -4
  125. package/lib/commonjs/deviceContext.js +158 -0
  126. package/lib/commonjs/deviceContext.js.map +1 -0
  127. package/lib/commonjs/evalJs/EvalJsHost.js +244 -0
  128. package/lib/commonjs/evalJs/EvalJsHost.js.map +1 -0
  129. package/lib/commonjs/evalJs/bootstrap.js +84 -0
  130. package/lib/commonjs/evalJs/bootstrap.js.map +1 -0
  131. package/lib/commonjs/evalJs/bridgeMessages.js +143 -0
  132. package/lib/commonjs/evalJs/bridgeMessages.js.map +1 -0
  133. package/lib/commonjs/evalJs/evalJsBridge.js +31 -0
  134. package/lib/commonjs/evalJs/evalJsBridge.js.map +1 -0
  135. package/lib/commonjs/evalJs/evalJsController.js +124 -0
  136. package/lib/commonjs/evalJs/evalJsController.js.map +1 -0
  137. package/lib/commonjs/evalJs/getWebView.js +81 -0
  138. package/lib/commonjs/evalJs/getWebView.js.map +1 -0
  139. package/lib/commonjs/evalJs/injectEvalPending.js +19 -0
  140. package/lib/commonjs/evalJs/injectEvalPending.js.map +1 -0
  141. package/lib/commonjs/evalJs/types.js +2 -0
  142. package/lib/commonjs/evalJs/types.js.map +1 -0
  143. package/lib/commonjs/evalJs/useEvalJsWebViewInjection.js +40 -0
  144. package/lib/commonjs/evalJs/useEvalJsWebViewInjection.js.map +1 -0
  145. package/lib/commonjs/expo-router/index.js +19 -0
  146. package/lib/commonjs/expo-router/index.js.map +1 -1
  147. package/lib/commonjs/expo-router/redirectSystemPath.js +75 -0
  148. package/lib/commonjs/expo-router/redirectSystemPath.js.map +1 -0
  149. package/lib/commonjs/expo-router/useUserflowExpoRouter.js +42 -6
  150. package/lib/commonjs/expo-router/useUserflowExpoRouter.js.map +1 -1
  151. package/lib/commonjs/hostAppVersion.js +242 -0
  152. package/lib/commonjs/hostAppVersion.js.map +1 -0
  153. package/lib/commonjs/index.js +214 -26
  154. package/lib/commonjs/index.js.map +1 -1
  155. package/lib/commonjs/lifecycle.js +2 -0
  156. package/lib/commonjs/lifecycle.js.map +1 -1
  157. package/lib/commonjs/navigation/WithUserflowReactNavigation.js +22 -10
  158. package/lib/commonjs/navigation/WithUserflowReactNavigation.js.map +1 -1
  159. package/lib/commonjs/navigation/isOverlayPresentation.js +64 -0
  160. package/lib/commonjs/navigation/isOverlayPresentation.js.map +1 -0
  161. package/lib/commonjs/navigation/openFlowNavigateUrl.js +12 -5
  162. package/lib/commonjs/navigation/openFlowNavigateUrl.js.map +1 -1
  163. package/lib/commonjs/pairing/PairingController.js +272 -27
  164. package/lib/commonjs/pairing/PairingController.js.map +1 -1
  165. package/lib/commonjs/pairing/PreviewModeBanner.js +250 -84
  166. package/lib/commonjs/pairing/PreviewModeBanner.js.map +1 -1
  167. package/lib/commonjs/pairing/deepLink.js +22 -5
  168. package/lib/commonjs/pairing/deepLink.js.map +1 -1
  169. package/lib/commonjs/pairing/deviceId.js +47 -0
  170. package/lib/commonjs/pairing/deviceId.js.map +1 -0
  171. package/lib/commonjs/pairing/diagnostics.js +14 -4
  172. package/lib/commonjs/pairing/diagnostics.js.map +1 -1
  173. package/lib/commonjs/pairing/elementPickerRelay.js +91 -0
  174. package/lib/commonjs/pairing/elementPickerRelay.js.map +1 -0
  175. package/lib/commonjs/pairing/resolvePreviewChrome.js +52 -0
  176. package/lib/commonjs/pairing/resolvePreviewChrome.js.map +1 -0
  177. package/lib/commonjs/pairing/tokenStorage.js +72 -9
  178. package/lib/commonjs/pairing/tokenStorage.js.map +1 -1
  179. package/lib/commonjs/pairing/usePairingState.js +5 -1
  180. package/lib/commonjs/pairing/usePairingState.js.map +1 -1
  181. package/lib/commonjs/pairing/usePreviewBarHold.js +139 -0
  182. package/lib/commonjs/pairing/usePreviewBarHold.js.map +1 -0
  183. package/lib/commonjs/runtime/BannerHost.js +96 -0
  184. package/lib/commonjs/runtime/BannerHost.js.map +1 -0
  185. package/lib/commonjs/runtime/EmbedBannerPlaceholder.js +99 -0
  186. package/lib/commonjs/runtime/EmbedBannerPlaceholder.js.map +1 -0
  187. package/lib/commonjs/runtime/FlowRenderer.js +45 -21
  188. package/lib/commonjs/runtime/FlowRenderer.js.map +1 -1
  189. package/lib/commonjs/runtime/FlowSurfaceFade.js +47 -24
  190. package/lib/commonjs/runtime/FlowSurfaceFade.js.map +1 -1
  191. package/lib/commonjs/runtime/SdkErrorBoundary.js +61 -0
  192. package/lib/commonjs/runtime/SdkErrorBoundary.js.map +1 -0
  193. package/lib/commonjs/runtime/TargetPressBridge.js +27 -51
  194. package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -1
  195. package/lib/commonjs/runtime/UserflowOverlay.js +97 -0
  196. package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -0
  197. package/lib/commonjs/runtime/UserflowProvider.js +154 -30
  198. package/lib/commonjs/runtime/UserflowProvider.js.map +1 -1
  199. package/lib/commonjs/runtime/bannerEngine.js +63 -0
  200. package/lib/commonjs/runtime/bannerEngine.js.map +1 -0
  201. package/lib/commonjs/runtime/bannerEngineContext.js +11 -0
  202. package/lib/commonjs/runtime/bannerEngineContext.js.map +1 -0
  203. package/lib/commonjs/runtime/bannerPlacement.js +37 -0
  204. package/lib/commonjs/runtime/bannerPlacement.js.map +1 -0
  205. package/lib/commonjs/runtime/changedTouchPoints.js +48 -0
  206. package/lib/commonjs/runtime/changedTouchPoints.js.map +1 -0
  207. package/lib/commonjs/runtime/embedBannerRegistry.js +30 -0
  208. package/lib/commonjs/runtime/embedBannerRegistry.js.map +1 -0
  209. package/lib/commonjs/runtime/flowEngine.js +78 -4
  210. package/lib/commonjs/runtime/flowEngine.js.map +1 -1
  211. package/lib/commonjs/runtime/flowSessionViewState.js +32 -7
  212. package/lib/commonjs/runtime/flowSessionViewState.js.map +1 -1
  213. package/lib/commonjs/runtime/isolateCall.js +48 -0
  214. package/lib/commonjs/runtime/isolateCall.js.map +1 -0
  215. package/lib/commonjs/runtime/reportSdkError.js +19 -0
  216. package/lib/commonjs/runtime/reportSdkError.js.map +1 -0
  217. package/lib/commonjs/runtime/useBannerSession.js +37 -0
  218. package/lib/commonjs/runtime/useBannerSession.js.map +1 -0
  219. package/lib/commonjs/runtime/useFlowSessionState.js +2 -1
  220. package/lib/commonjs/runtime/useFlowSessionState.js.map +1 -1
  221. package/lib/commonjs/screenTracker.js +72 -5
  222. package/lib/commonjs/screenTracker.js.map +1 -1
  223. package/lib/commonjs/surfaces/BannerBar.js +160 -0
  224. package/lib/commonjs/surfaces/BannerBar.js.map +1 -0
  225. package/lib/commonjs/surfaces/BannerSurface.js +78 -0
  226. package/lib/commonjs/surfaces/BannerSurface.js.map +1 -0
  227. package/lib/commonjs/surfaces/CardFade.js +31 -0
  228. package/lib/commonjs/surfaces/CardFade.js.map +1 -0
  229. package/lib/commonjs/surfaces/CloseButton.js +11 -6
  230. package/lib/commonjs/surfaces/CloseButton.js.map +1 -1
  231. package/lib/commonjs/surfaces/MadeWithUserflow.js +12 -8
  232. package/lib/commonjs/surfaces/MadeWithUserflow.js.map +1 -1
  233. package/lib/commonjs/surfaces/ModalSurface.js +51 -35
  234. package/lib/commonjs/surfaces/ModalSurface.js.map +1 -1
  235. package/lib/commonjs/surfaces/TooltipSurface.js +383 -88
  236. package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
  237. package/lib/commonjs/surfaces/bannerBarLayout.js +88 -0
  238. package/lib/commonjs/surfaces/bannerBarLayout.js.map +1 -0
  239. package/lib/commonjs/surfaces/bannerBarTokens.js +42 -0
  240. package/lib/commonjs/surfaces/bannerBarTokens.js.map +1 -0
  241. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js +277 -0
  242. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -0
  243. package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunEvalJs.js +46 -0
  244. package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunEvalJs.js.map +1 -0
  245. package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunSession.js +26 -0
  246. package/lib/commonjs/surfaces/bannerWebView/bannerAutoRunSession.js.map +1 -0
  247. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js +41 -0
  248. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -0
  249. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js +74 -0
  250. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -0
  251. package/lib/commonjs/surfaces/bannerWebView/bannerWebFrameCss.js +152 -0
  252. package/lib/commonjs/surfaces/bannerWebView/bannerWebFrameCss.js.map +1 -0
  253. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js +148 -0
  254. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -0
  255. package/lib/commonjs/surfaces/bannerWebView/buttonClassName.js +13 -0
  256. package/lib/commonjs/surfaces/bannerWebView/buttonClassName.js.map +1 -0
  257. package/lib/commonjs/surfaces/bannerWebView/resolveCdnHost.js +49 -0
  258. package/lib/commonjs/surfaces/bannerWebView/resolveCdnHost.js.map +1 -0
  259. package/lib/commonjs/surfaces/bannerWebView/richContentDocToHtml.js +83 -0
  260. package/lib/commonjs/surfaces/bannerWebView/richContentDocToHtml.js.map +1 -0
  261. package/lib/commonjs/surfaces/cardTransition.js +70 -0
  262. package/lib/commonjs/surfaces/cardTransition.js.map +1 -0
  263. package/lib/commonjs/surfaces/resolveBannerTheme.js +22 -0
  264. package/lib/commonjs/surfaces/resolveBannerTheme.js.map +1 -0
  265. package/lib/commonjs/surfaces/resolveHighlightChrome.js +109 -0
  266. package/lib/commonjs/surfaces/resolveHighlightChrome.js.map +1 -0
  267. package/lib/commonjs/surfaces/resolveModalLayout.js +7 -3
  268. package/lib/commonjs/surfaces/resolveModalLayout.js.map +1 -1
  269. package/lib/commonjs/surfaces/resolveTooltipLayout.js +0 -4
  270. package/lib/commonjs/surfaces/resolveTooltipLayout.js.map +1 -1
  271. package/lib/commonjs/surfaces/safeArea.js +23 -0
  272. package/lib/commonjs/surfaces/safeArea.js.map +1 -1
  273. package/lib/commonjs/surfaces/surfaceInteractionConfig.js +33 -0
  274. package/lib/commonjs/surfaces/surfaceInteractionConfig.js.map +1 -0
  275. package/lib/commonjs/surfaces/surfaceLayoutInsets.js +128 -0
  276. package/lib/commonjs/surfaces/surfaceLayoutInsets.js.map +1 -0
  277. package/lib/commonjs/surfaces/themeChrome.js +4 -1
  278. package/lib/commonjs/surfaces/themeChrome.js.map +1 -1
  279. package/lib/commonjs/surfaces/tooltip/TooltipBubble.js +142 -21
  280. package/lib/commonjs/surfaces/tooltip/TooltipBubble.js.map +1 -1
  281. package/lib/commonjs/surfaces/tooltip/TooltipCutout.js +100 -47
  282. package/lib/commonjs/surfaces/tooltip/TooltipCutout.js.map +1 -1
  283. package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js +124 -0
  284. package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js.map +1 -0
  285. package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js +67 -13
  286. package/lib/commonjs/surfaces/tooltip/computeTooltipPosition.js.map +1 -1
  287. package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js +88 -19
  288. package/lib/commonjs/surfaces/tooltip/inferTooltipPlacement.js.map +1 -1
  289. package/lib/commonjs/surfaces/tooltip/placementDiagnostics.js +52 -0
  290. package/lib/commonjs/surfaces/tooltip/placementDiagnostics.js.map +1 -0
  291. package/lib/commonjs/surfaces/tooltip/rect.js +12 -0
  292. package/lib/commonjs/surfaces/tooltip/rect.js.map +1 -1
  293. package/lib/commonjs/surfaces/tooltip/resolveSideCardWidth.js +103 -0
  294. package/lib/commonjs/surfaces/tooltip/resolveSideCardWidth.js.map +1 -0
  295. package/lib/commonjs/version.js +1 -1
  296. package/lib/module/anchors/AutoAnchorRegistry.js +151 -2
  297. package/lib/module/anchors/AutoAnchorRegistry.js.map +1 -1
  298. package/lib/module/anchors/anchorChangeTicker.js +10 -0
  299. package/lib/module/anchors/anchorChangeTicker.js.map +1 -1
  300. package/lib/module/anchors/elementConditionEvaluator.js +25 -12
  301. package/lib/module/anchors/elementConditionEvaluator.js.map +1 -1
  302. package/lib/module/anchors/fiber/FiberScanRoot.js +2 -43
  303. package/lib/module/anchors/fiber/FiberScanRoot.js.map +1 -1
  304. package/lib/module/anchors/fiber/FiberScanRootStore.js +46 -0
  305. package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -0
  306. package/lib/module/anchors/fiber/fiberInternals.js +139 -3
  307. package/lib/module/anchors/fiber/fiberInternals.js.map +1 -1
  308. package/lib/module/anchors/fiber/fiberPath.js +118 -0
  309. package/lib/module/anchors/fiber/fiberPath.js.map +1 -0
  310. package/lib/module/anchors/fiber/findAnchorFiber.js +60 -50
  311. package/lib/module/anchors/fiber/findAnchorFiber.js.map +1 -1
  312. package/lib/module/anchors/fiber/indexHostFibers.js +122 -0
  313. package/lib/module/anchors/fiber/indexHostFibers.js.map +1 -0
  314. package/lib/module/anchors/fiber/readHostContent.js +127 -0
  315. package/lib/module/anchors/fiber/readHostContent.js.map +1 -0
  316. package/lib/module/anchors/fiber/resolveFiberPath.js +215 -0
  317. package/lib/module/anchors/fiber/resolveFiberPath.js.map +1 -0
  318. package/lib/module/anchors/fiber/visibleRect.js +139 -0
  319. package/lib/module/anchors/fiber/visibleRect.js.map +1 -0
  320. package/lib/module/anchors/fiber/visibleScreens.js +73 -37
  321. package/lib/module/anchors/fiber/visibleScreens.js.map +1 -1
  322. package/lib/module/anchors/fiber/walkVisibleFibers.js +61 -0
  323. package/lib/module/anchors/fiber/walkVisibleFibers.js.map +1 -0
  324. package/lib/module/anchors/fiberAnchorCache.js +40 -0
  325. package/lib/module/anchors/fiberAnchorCache.js.map +1 -0
  326. package/lib/module/anchors/isInstanceOnVisibleScreen.js +46 -0
  327. package/lib/module/anchors/isInstanceOnVisibleScreen.js.map +1 -0
  328. package/lib/module/anchors/resolveAnchorHost.js +15 -21
  329. package/lib/module/anchors/resolveAnchorHost.js.map +1 -1
  330. package/lib/module/anchors/resolveAutoAnchorHost.js +174 -0
  331. package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -0
  332. package/lib/module/anchors/semanticMatcher.js +297 -0
  333. package/lib/module/anchors/semanticMatcher.js.map +1 -0
  334. package/lib/module/anonymousId.js +4 -2
  335. package/lib/module/anonymousId.js.map +1 -1
  336. package/lib/module/authoring/ElementPickerOverlay.js +561 -0
  337. package/lib/module/authoring/ElementPickerOverlay.js.map +1 -0
  338. package/lib/module/authoring/capturePickerScreenshot.js +68 -0
  339. package/lib/module/authoring/capturePickerScreenshot.js.map +1 -0
  340. package/lib/module/authoring/chrome/ChromeBarTransition.js +88 -0
  341. package/lib/module/authoring/chrome/ChromeBarTransition.js.map +1 -0
  342. package/lib/module/authoring/chrome/ChromeBottomSheet.js +81 -0
  343. package/lib/module/authoring/chrome/ChromeBottomSheet.js.map +1 -0
  344. package/lib/module/authoring/chrome/ChromeButton.js +94 -0
  345. package/lib/module/authoring/chrome/ChromeButton.js.map +1 -0
  346. package/lib/module/authoring/chrome/ChromeDialog.js +126 -0
  347. package/lib/module/authoring/chrome/ChromeDialog.js.map +1 -0
  348. package/lib/module/authoring/chrome/ChromeIcon.js +37 -0
  349. package/lib/module/authoring/chrome/ChromeIcon.js.map +1 -0
  350. package/lib/module/authoring/chrome/ChromeTooltip.js +82 -0
  351. package/lib/module/authoring/chrome/ChromeTooltip.js.map +1 -0
  352. package/lib/module/authoring/chrome/ChromeTopBar.js +117 -0
  353. package/lib/module/authoring/chrome/ChromeTopBar.js.map +1 -0
  354. package/lib/module/authoring/chrome/DoubleTapBridge.js +59 -0
  355. package/lib/module/authoring/chrome/DoubleTapBridge.js.map +1 -0
  356. package/lib/module/authoring/chrome/doubleTapMonitor.js +85 -0
  357. package/lib/module/authoring/chrome/doubleTapMonitor.js.map +1 -0
  358. package/lib/module/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
  359. package/lib/module/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
  360. package/lib/module/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
  361. package/lib/module/authoring/chrome/icons/arrow-rotate-left.png +0 -0
  362. package/lib/module/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
  363. package/lib/module/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
  364. package/lib/module/authoring/chrome/icons/circle-exclamation.png +0 -0
  365. package/lib/module/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
  366. package/lib/module/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
  367. package/lib/module/authoring/chrome/icons/triangle-exclamation.png +0 -0
  368. package/lib/module/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
  369. package/lib/module/authoring/chrome/icons/triangle-exclamation@3x.png +0 -0
  370. package/lib/module/authoring/chrome/icons/userflow-logomark.png +0 -0
  371. package/lib/module/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
  372. package/lib/module/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
  373. package/lib/module/authoring/chrome/icons/xmark.png +0 -0
  374. package/lib/module/authoring/chrome/icons/xmark@2x.png +0 -0
  375. package/lib/module/authoring/chrome/icons/xmark@3x.png +0 -0
  376. package/lib/module/authoring/chrome/tokens.js +147 -0
  377. package/lib/module/authoring/chrome/tokens.js.map +1 -0
  378. package/lib/module/authoring/doubleTap.js +18 -0
  379. package/lib/module/authoring/doubleTap.js.map +1 -0
  380. package/lib/module/authoring/elementPickerController.js +97 -0
  381. package/lib/module/authoring/elementPickerController.js.map +1 -0
  382. package/lib/module/authoring/fingerprintFromInstance.js +381 -0
  383. package/lib/module/authoring/fingerprintFromInstance.js.map +1 -0
  384. package/lib/module/authoring/hitTest.js +346 -0
  385. package/lib/module/authoring/hitTest.js.map +1 -0
  386. package/lib/module/authoring/hostAtPoint.js +199 -0
  387. package/lib/module/authoring/hostAtPoint.js.map +1 -0
  388. package/lib/module/content/BannerStepButton.js +63 -0
  389. package/lib/module/content/BannerStepButton.js.map +1 -0
  390. package/lib/module/content/RichContentRenderer.js +12 -2
  391. package/lib/module/content/RichContentRenderer.js.map +1 -1
  392. package/lib/module/content/StepButton.js +19 -4
  393. package/lib/module/content/StepButton.js.map +1 -1
  394. package/lib/module/content/buttonAppearance.js +14 -0
  395. package/lib/module/content/buttonAppearance.js.map +1 -1
  396. package/lib/module/content/resolveBannerButtonChrome.js +41 -0
  397. package/lib/module/content/resolveBannerButtonChrome.js.map +1 -0
  398. package/lib/module/content/resolveStepButtonChrome.js +8 -6
  399. package/lib/module/content/resolveStepButtonChrome.js.map +1 -1
  400. package/lib/module/content/themeColor.js +24 -0
  401. package/lib/module/content/themeColor.js.map +1 -1
  402. package/lib/module/deepLinking.js +4 -4
  403. package/lib/module/deviceContext.js +142 -0
  404. package/lib/module/deviceContext.js.map +1 -0
  405. package/lib/module/evalJs/EvalJsHost.js +239 -0
  406. package/lib/module/evalJs/EvalJsHost.js.map +1 -0
  407. package/lib/module/evalJs/bootstrap.js +76 -0
  408. package/lib/module/evalJs/bootstrap.js.map +1 -0
  409. package/lib/module/evalJs/bridgeMessages.js +139 -0
  410. package/lib/module/evalJs/bridgeMessages.js.map +1 -0
  411. package/lib/module/evalJs/evalJsBridge.js +25 -0
  412. package/lib/module/evalJs/evalJsBridge.js.map +1 -0
  413. package/lib/module/evalJs/evalJsController.js +119 -0
  414. package/lib/module/evalJs/evalJsController.js.map +1 -0
  415. package/lib/module/evalJs/getWebView.js +76 -0
  416. package/lib/module/evalJs/getWebView.js.map +1 -0
  417. package/lib/module/evalJs/injectEvalPending.js +15 -0
  418. package/lib/module/evalJs/injectEvalPending.js.map +1 -0
  419. package/lib/module/evalJs/types.js +2 -0
  420. package/lib/module/evalJs/types.js.map +1 -0
  421. package/lib/module/evalJs/useEvalJsWebViewInjection.js +35 -0
  422. package/lib/module/evalJs/useEvalJsWebViewInjection.js.map +1 -0
  423. package/lib/module/expo-router/index.js +1 -0
  424. package/lib/module/expo-router/index.js.map +1 -1
  425. package/lib/module/expo-router/redirectSystemPath.js +70 -0
  426. package/lib/module/expo-router/redirectSystemPath.js.map +1 -0
  427. package/lib/module/expo-router/useUserflowExpoRouter.js +44 -8
  428. package/lib/module/expo-router/useUserflowExpoRouter.js.map +1 -1
  429. package/lib/module/hostAppVersion.js +225 -0
  430. package/lib/module/hostAppVersion.js.map +1 -0
  431. package/lib/module/index.js +211 -29
  432. package/lib/module/index.js.map +1 -1
  433. package/lib/module/lifecycle.js +2 -0
  434. package/lib/module/lifecycle.js.map +1 -1
  435. package/lib/module/navigation/WithUserflowReactNavigation.js +23 -11
  436. package/lib/module/navigation/WithUserflowReactNavigation.js.map +1 -1
  437. package/lib/module/navigation/isOverlayPresentation.js +58 -0
  438. package/lib/module/navigation/isOverlayPresentation.js.map +1 -0
  439. package/lib/module/navigation/openFlowNavigateUrl.js +12 -5
  440. package/lib/module/navigation/openFlowNavigateUrl.js.map +1 -1
  441. package/lib/module/pairing/PairingController.js +273 -28
  442. package/lib/module/pairing/PairingController.js.map +1 -1
  443. package/lib/module/pairing/PreviewModeBanner.js +250 -85
  444. package/lib/module/pairing/PreviewModeBanner.js.map +1 -1
  445. package/lib/module/pairing/deepLink.js +21 -5
  446. package/lib/module/pairing/deepLink.js.map +1 -1
  447. package/lib/module/pairing/deviceId.js +41 -0
  448. package/lib/module/pairing/deviceId.js.map +1 -0
  449. package/lib/module/pairing/diagnostics.js +13 -4
  450. package/lib/module/pairing/diagnostics.js.map +1 -1
  451. package/lib/module/pairing/elementPickerRelay.js +87 -0
  452. package/lib/module/pairing/elementPickerRelay.js.map +1 -0
  453. package/lib/module/pairing/resolvePreviewChrome.js +48 -0
  454. package/lib/module/pairing/resolvePreviewChrome.js.map +1 -0
  455. package/lib/module/pairing/tokenStorage.js +71 -9
  456. package/lib/module/pairing/tokenStorage.js.map +1 -1
  457. package/lib/module/pairing/usePairingState.js +5 -1
  458. package/lib/module/pairing/usePairingState.js.map +1 -1
  459. package/lib/module/pairing/usePreviewBarHold.js +134 -0
  460. package/lib/module/pairing/usePreviewBarHold.js.map +1 -0
  461. package/lib/module/runtime/BannerHost.js +92 -0
  462. package/lib/module/runtime/BannerHost.js.map +1 -0
  463. package/lib/module/runtime/EmbedBannerPlaceholder.js +94 -0
  464. package/lib/module/runtime/EmbedBannerPlaceholder.js.map +1 -0
  465. package/lib/module/runtime/FlowRenderer.js +45 -21
  466. package/lib/module/runtime/FlowRenderer.js.map +1 -1
  467. package/lib/module/runtime/FlowSurfaceFade.js +49 -26
  468. package/lib/module/runtime/FlowSurfaceFade.js.map +1 -1
  469. package/lib/module/runtime/SdkErrorBoundary.js +55 -0
  470. package/lib/module/runtime/SdkErrorBoundary.js.map +1 -0
  471. package/lib/module/runtime/TargetPressBridge.js +27 -51
  472. package/lib/module/runtime/TargetPressBridge.js.map +1 -1
  473. package/lib/module/runtime/UserflowOverlay.js +92 -0
  474. package/lib/module/runtime/UserflowOverlay.js.map +1 -0
  475. package/lib/module/runtime/UserflowProvider.js +155 -31
  476. package/lib/module/runtime/UserflowProvider.js.map +1 -1
  477. package/lib/module/runtime/bannerEngine.js +55 -0
  478. package/lib/module/runtime/bannerEngine.js.map +1 -0
  479. package/lib/module/runtime/bannerEngineContext.js +7 -0
  480. package/lib/module/runtime/bannerEngineContext.js.map +1 -0
  481. package/lib/module/runtime/bannerPlacement.js +30 -0
  482. package/lib/module/runtime/bannerPlacement.js.map +1 -0
  483. package/lib/module/runtime/changedTouchPoints.js +43 -0
  484. package/lib/module/runtime/changedTouchPoints.js.map +1 -0
  485. package/lib/module/runtime/embedBannerRegistry.js +24 -0
  486. package/lib/module/runtime/embedBannerRegistry.js.map +1 -0
  487. package/lib/module/runtime/flowEngine.js +75 -4
  488. package/lib/module/runtime/flowEngine.js.map +1 -1
  489. package/lib/module/runtime/flowSessionViewState.js +32 -7
  490. package/lib/module/runtime/flowSessionViewState.js.map +1 -1
  491. package/lib/module/runtime/isolateCall.js +43 -0
  492. package/lib/module/runtime/isolateCall.js.map +1 -0
  493. package/lib/module/runtime/reportSdkError.js +15 -0
  494. package/lib/module/runtime/reportSdkError.js.map +1 -0
  495. package/lib/module/runtime/useBannerSession.js +33 -0
  496. package/lib/module/runtime/useBannerSession.js.map +1 -0
  497. package/lib/module/runtime/useFlowSessionState.js +2 -1
  498. package/lib/module/runtime/useFlowSessionState.js.map +1 -1
  499. package/lib/module/screenTracker.js +67 -5
  500. package/lib/module/screenTracker.js.map +1 -1
  501. package/lib/module/surfaces/BannerBar.js +155 -0
  502. package/lib/module/surfaces/BannerBar.js.map +1 -0
  503. package/lib/module/surfaces/BannerSurface.js +72 -0
  504. package/lib/module/surfaces/BannerSurface.js.map +1 -0
  505. package/lib/module/surfaces/CardFade.js +26 -0
  506. package/lib/module/surfaces/CardFade.js.map +1 -0
  507. package/lib/module/surfaces/CloseButton.js +10 -6
  508. package/lib/module/surfaces/CloseButton.js.map +1 -1
  509. package/lib/module/surfaces/MadeWithUserflow.js +11 -7
  510. package/lib/module/surfaces/MadeWithUserflow.js.map +1 -1
  511. package/lib/module/surfaces/ModalSurface.js +53 -37
  512. package/lib/module/surfaces/ModalSurface.js.map +1 -1
  513. package/lib/module/surfaces/TooltipSurface.js +385 -91
  514. package/lib/module/surfaces/TooltipSurface.js.map +1 -1
  515. package/lib/module/surfaces/bannerBarLayout.js +69 -0
  516. package/lib/module/surfaces/bannerBarLayout.js.map +1 -0
  517. package/lib/module/surfaces/bannerBarTokens.js +37 -0
  518. package/lib/module/surfaces/bannerBarTokens.js.map +1 -0
  519. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js +272 -0
  520. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -0
  521. package/lib/module/surfaces/bannerWebView/bannerAutoRunEvalJs.js +42 -0
  522. package/lib/module/surfaces/bannerWebView/bannerAutoRunEvalJs.js.map +1 -0
  523. package/lib/module/surfaces/bannerWebView/bannerAutoRunSession.js +19 -0
  524. package/lib/module/surfaces/bannerWebView/bannerAutoRunSession.js.map +1 -0
  525. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js +35 -0
  526. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -0
  527. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js +69 -0
  528. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -0
  529. package/lib/module/surfaces/bannerWebView/bannerWebFrameCss.js +148 -0
  530. package/lib/module/surfaces/bannerWebView/bannerWebFrameCss.js.map +1 -0
  531. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js +143 -0
  532. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -0
  533. package/lib/module/surfaces/bannerWebView/buttonClassName.js +9 -0
  534. package/lib/module/surfaces/bannerWebView/buttonClassName.js.map +1 -0
  535. package/lib/module/surfaces/bannerWebView/resolveCdnHost.js +42 -0
  536. package/lib/module/surfaces/bannerWebView/resolveCdnHost.js.map +1 -0
  537. package/lib/module/surfaces/bannerWebView/richContentDocToHtml.js +79 -0
  538. package/lib/module/surfaces/bannerWebView/richContentDocToHtml.js.map +1 -0
  539. package/lib/module/surfaces/cardTransition.js +64 -0
  540. package/lib/module/surfaces/cardTransition.js.map +1 -0
  541. package/lib/module/surfaces/resolveBannerTheme.js +16 -0
  542. package/lib/module/surfaces/resolveBannerTheme.js.map +1 -0
  543. package/lib/module/surfaces/resolveHighlightChrome.js +102 -0
  544. package/lib/module/surfaces/resolveHighlightChrome.js.map +1 -0
  545. package/lib/module/surfaces/resolveModalLayout.js +7 -3
  546. package/lib/module/surfaces/resolveModalLayout.js.map +1 -1
  547. package/lib/module/surfaces/resolveTooltipLayout.js +1 -4
  548. package/lib/module/surfaces/resolveTooltipLayout.js.map +1 -1
  549. package/lib/module/surfaces/safeArea.js +22 -0
  550. package/lib/module/surfaces/safeArea.js.map +1 -1
  551. package/lib/module/surfaces/surfaceInteractionConfig.js +27 -0
  552. package/lib/module/surfaces/surfaceInteractionConfig.js.map +1 -0
  553. package/lib/module/surfaces/surfaceLayoutInsets.js +119 -0
  554. package/lib/module/surfaces/surfaceLayoutInsets.js.map +1 -0
  555. package/lib/module/surfaces/themeChrome.js +3 -1
  556. package/lib/module/surfaces/themeChrome.js.map +1 -1
  557. package/lib/module/surfaces/tooltip/TooltipBubble.js +143 -22
  558. package/lib/module/surfaces/tooltip/TooltipBubble.js.map +1 -1
  559. package/lib/module/surfaces/tooltip/TooltipCutout.js +100 -47
  560. package/lib/module/surfaces/tooltip/TooltipCutout.js.map +1 -1
  561. package/lib/module/surfaces/tooltip/TooltipHighlight.js +118 -0
  562. package/lib/module/surfaces/tooltip/TooltipHighlight.js.map +1 -0
  563. package/lib/module/surfaces/tooltip/computeTooltipPosition.js +67 -13
  564. package/lib/module/surfaces/tooltip/computeTooltipPosition.js.map +1 -1
  565. package/lib/module/surfaces/tooltip/inferTooltipPlacement.js +87 -19
  566. package/lib/module/surfaces/tooltip/inferTooltipPlacement.js.map +1 -1
  567. package/lib/module/surfaces/tooltip/placementDiagnostics.js +43 -0
  568. package/lib/module/surfaces/tooltip/placementDiagnostics.js.map +1 -0
  569. package/lib/module/surfaces/tooltip/rect.js +11 -0
  570. package/lib/module/surfaces/tooltip/rect.js.map +1 -1
  571. package/lib/module/surfaces/tooltip/resolveSideCardWidth.js +96 -0
  572. package/lib/module/surfaces/tooltip/resolveSideCardWidth.js.map +1 -0
  573. package/lib/module/version.js +1 -1
  574. package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts +40 -0
  575. package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
  576. package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts +2 -0
  577. package/lib/typescript/commonjs/src/anchors/anchorChangeTicker.d.ts.map +1 -1
  578. package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts +14 -10
  579. package/lib/typescript/commonjs/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
  580. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
  581. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
  582. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
  583. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
  584. package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts +42 -1
  585. package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
  586. package/lib/typescript/commonjs/src/anchors/fiber/fiberPath.d.ts +12 -0
  587. package/lib/typescript/commonjs/src/anchors/fiber/fiberPath.d.ts.map +1 -0
  588. package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts +5 -4
  589. package/lib/typescript/commonjs/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -1
  590. package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts +42 -0
  591. package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts.map +1 -0
  592. package/lib/typescript/commonjs/src/anchors/fiber/readHostContent.d.ts +17 -0
  593. package/lib/typescript/commonjs/src/anchors/fiber/readHostContent.d.ts.map +1 -0
  594. package/lib/typescript/commonjs/src/anchors/fiber/resolveFiberPath.d.ts +24 -0
  595. package/lib/typescript/commonjs/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -0
  596. package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts +32 -0
  597. package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts.map +1 -0
  598. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +6 -1
  599. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  600. package/lib/typescript/commonjs/src/anchors/fiber/walkVisibleFibers.d.ts +20 -0
  601. package/lib/typescript/commonjs/src/anchors/fiber/walkVisibleFibers.d.ts.map +1 -0
  602. package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts +20 -0
  603. package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts.map +1 -0
  604. package/lib/typescript/commonjs/src/anchors/isInstanceOnVisibleScreen.d.ts +19 -0
  605. package/lib/typescript/commonjs/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
  606. package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +5 -5
  607. package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -1
  608. package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
  609. package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
  610. package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts +50 -0
  611. package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts.map +1 -0
  612. package/lib/typescript/commonjs/src/anonymousId.d.ts +1 -0
  613. package/lib/typescript/commonjs/src/anonymousId.d.ts.map +1 -1
  614. package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +8 -0
  615. package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -0
  616. package/lib/typescript/commonjs/src/authoring/capturePickerScreenshot.d.ts +11 -0
  617. package/lib/typescript/commonjs/src/authoring/capturePickerScreenshot.d.ts.map +1 -0
  618. package/lib/typescript/commonjs/src/authoring/chrome/ChromeBarTransition.d.ts +32 -0
  619. package/lib/typescript/commonjs/src/authoring/chrome/ChromeBarTransition.d.ts.map +1 -0
  620. package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts +24 -0
  621. package/lib/typescript/commonjs/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -0
  622. package/lib/typescript/commonjs/src/authoring/chrome/ChromeButton.d.ts +20 -0
  623. package/lib/typescript/commonjs/src/authoring/chrome/ChromeButton.d.ts.map +1 -0
  624. package/lib/typescript/commonjs/src/authoring/chrome/ChromeDialog.d.ts +14 -0
  625. package/lib/typescript/commonjs/src/authoring/chrome/ChromeDialog.d.ts.map +1 -0
  626. package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts +13 -0
  627. package/lib/typescript/commonjs/src/authoring/chrome/ChromeIcon.d.ts.map +1 -0
  628. package/lib/typescript/commonjs/src/authoring/chrome/ChromeTooltip.d.ts +17 -0
  629. package/lib/typescript/commonjs/src/authoring/chrome/ChromeTooltip.d.ts.map +1 -0
  630. package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts +33 -0
  631. package/lib/typescript/commonjs/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -0
  632. package/lib/typescript/commonjs/src/authoring/chrome/DoubleTapBridge.d.ts +12 -0
  633. package/lib/typescript/commonjs/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -0
  634. package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts +31 -0
  635. package/lib/typescript/commonjs/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
  636. package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts +142 -0
  637. package/lib/typescript/commonjs/src/authoring/chrome/tokens.d.ts.map +1 -0
  638. package/lib/typescript/commonjs/src/authoring/doubleTap.d.ts +14 -0
  639. package/lib/typescript/commonjs/src/authoring/doubleTap.d.ts.map +1 -0
  640. package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts +58 -0
  641. package/lib/typescript/commonjs/src/authoring/elementPickerController.d.ts.map +1 -0
  642. package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts +81 -0
  643. package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
  644. package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +75 -0
  645. package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -0
  646. package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts +7 -0
  647. package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts.map +1 -0
  648. package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts +14 -0
  649. package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts.map +1 -0
  650. package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts +6 -1
  651. package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -1
  652. package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -1
  653. package/lib/typescript/commonjs/src/content/buttonAppearance.d.ts +4 -0
  654. package/lib/typescript/commonjs/src/content/buttonAppearance.d.ts.map +1 -1
  655. package/lib/typescript/commonjs/src/content/resolveBannerButtonChrome.d.ts +8 -0
  656. package/lib/typescript/commonjs/src/content/resolveBannerButtonChrome.d.ts.map +1 -0
  657. package/lib/typescript/commonjs/src/content/resolveStepButtonChrome.d.ts.map +1 -1
  658. package/lib/typescript/commonjs/src/content/themeColor.d.ts +7 -0
  659. package/lib/typescript/commonjs/src/content/themeColor.d.ts.map +1 -1
  660. package/lib/typescript/commonjs/src/content/types.d.ts +1 -0
  661. package/lib/typescript/commonjs/src/content/types.d.ts.map +1 -1
  662. package/lib/typescript/commonjs/src/deepLinking.d.ts +4 -4
  663. package/lib/typescript/commonjs/src/deviceContext.d.ts +66 -0
  664. package/lib/typescript/commonjs/src/deviceContext.d.ts.map +1 -0
  665. package/lib/typescript/commonjs/src/evalJs/EvalJsHost.d.ts +14 -0
  666. package/lib/typescript/commonjs/src/evalJs/EvalJsHost.d.ts.map +1 -0
  667. package/lib/typescript/commonjs/src/evalJs/bootstrap.d.ts +18 -0
  668. package/lib/typescript/commonjs/src/evalJs/bootstrap.d.ts.map +1 -0
  669. package/lib/typescript/commonjs/src/evalJs/bridgeMessages.d.ts +37 -0
  670. package/lib/typescript/commonjs/src/evalJs/bridgeMessages.d.ts.map +1 -0
  671. package/lib/typescript/commonjs/src/evalJs/evalJsBridge.d.ts +16 -0
  672. package/lib/typescript/commonjs/src/evalJs/evalJsBridge.d.ts.map +1 -0
  673. package/lib/typescript/commonjs/src/evalJs/evalJsController.d.ts +24 -0
  674. package/lib/typescript/commonjs/src/evalJs/evalJsController.d.ts.map +1 -0
  675. package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts +64 -0
  676. package/lib/typescript/commonjs/src/evalJs/getWebView.d.ts.map +1 -0
  677. package/lib/typescript/commonjs/src/evalJs/injectEvalPending.d.ts +4 -0
  678. package/lib/typescript/commonjs/src/evalJs/injectEvalPending.d.ts.map +1 -0
  679. package/lib/typescript/commonjs/src/evalJs/types.d.ts +53 -0
  680. package/lib/typescript/commonjs/src/evalJs/types.d.ts.map +1 -0
  681. package/lib/typescript/commonjs/src/evalJs/useEvalJsWebViewInjection.d.ts +12 -0
  682. package/lib/typescript/commonjs/src/evalJs/useEvalJsWebViewInjection.d.ts.map +1 -0
  683. package/lib/typescript/commonjs/src/expo-router/index.d.ts +1 -0
  684. package/lib/typescript/commonjs/src/expo-router/index.d.ts.map +1 -1
  685. package/lib/typescript/commonjs/src/expo-router/redirectSystemPath.d.ts +50 -0
  686. package/lib/typescript/commonjs/src/expo-router/redirectSystemPath.d.ts.map +1 -0
  687. package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts +2 -2
  688. package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
  689. package/lib/typescript/commonjs/src/hostAppVersion.d.ts +69 -0
  690. package/lib/typescript/commonjs/src/hostAppVersion.d.ts.map +1 -0
  691. package/lib/typescript/commonjs/src/index.d.ts +69 -3
  692. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  693. package/lib/typescript/commonjs/src/lifecycle.d.ts +10 -1
  694. package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -1
  695. package/lib/typescript/commonjs/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -1
  696. package/lib/typescript/commonjs/src/navigation/isOverlayPresentation.d.ts +14 -0
  697. package/lib/typescript/commonjs/src/navigation/isOverlayPresentation.d.ts.map +1 -0
  698. package/lib/typescript/commonjs/src/navigation/openFlowNavigateUrl.d.ts.map +1 -1
  699. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +78 -4
  700. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
  701. package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts +14 -1
  702. package/lib/typescript/commonjs/src/pairing/PreviewModeBanner.d.ts.map +1 -1
  703. package/lib/typescript/commonjs/src/pairing/deepLink.d.ts +6 -2
  704. package/lib/typescript/commonjs/src/pairing/deepLink.d.ts.map +1 -1
  705. package/lib/typescript/commonjs/src/pairing/deviceId.d.ts +12 -0
  706. package/lib/typescript/commonjs/src/pairing/deviceId.d.ts.map +1 -0
  707. package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts +8 -2
  708. package/lib/typescript/commonjs/src/pairing/diagnostics.d.ts.map +1 -1
  709. package/lib/typescript/commonjs/src/pairing/elementPickerRelay.d.ts +11 -0
  710. package/lib/typescript/commonjs/src/pairing/elementPickerRelay.d.ts.map +1 -0
  711. package/lib/typescript/commonjs/src/pairing/resolvePreviewChrome.d.ts +16 -0
  712. package/lib/typescript/commonjs/src/pairing/resolvePreviewChrome.d.ts.map +1 -0
  713. package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts +16 -2
  714. package/lib/typescript/commonjs/src/pairing/tokenStorage.d.ts.map +1 -1
  715. package/lib/typescript/commonjs/src/pairing/usePairingState.d.ts.map +1 -1
  716. package/lib/typescript/commonjs/src/pairing/usePreviewBarHold.d.ts +19 -0
  717. package/lib/typescript/commonjs/src/pairing/usePreviewBarHold.d.ts.map +1 -0
  718. package/lib/typescript/commonjs/src/runtime/BannerHost.d.ts +16 -0
  719. package/lib/typescript/commonjs/src/runtime/BannerHost.d.ts.map +1 -0
  720. package/lib/typescript/commonjs/src/runtime/EmbedBannerPlaceholder.d.ts +18 -0
  721. package/lib/typescript/commonjs/src/runtime/EmbedBannerPlaceholder.d.ts.map +1 -0
  722. package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts +6 -3
  723. package/lib/typescript/commonjs/src/runtime/FlowRenderer.d.ts.map +1 -1
  724. package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts +20 -7
  725. package/lib/typescript/commonjs/src/runtime/FlowSurfaceFade.d.ts.map +1 -1
  726. package/lib/typescript/commonjs/src/runtime/SdkErrorBoundary.d.ts +34 -0
  727. package/lib/typescript/commonjs/src/runtime/SdkErrorBoundary.d.ts.map +1 -0
  728. package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts +5 -1
  729. package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts.map +1 -1
  730. package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts +15 -0
  731. package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -0
  732. package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts +15 -7
  733. package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -1
  734. package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts +12 -0
  735. package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts.map +1 -0
  736. package/lib/typescript/commonjs/src/runtime/bannerEngineContext.d.ts +5 -0
  737. package/lib/typescript/commonjs/src/runtime/bannerEngineContext.d.ts.map +1 -0
  738. package/lib/typescript/commonjs/src/runtime/bannerPlacement.d.ts +12 -0
  739. package/lib/typescript/commonjs/src/runtime/bannerPlacement.d.ts.map +1 -0
  740. package/lib/typescript/commonjs/src/runtime/changedTouchPoints.d.ts +10 -0
  741. package/lib/typescript/commonjs/src/runtime/changedTouchPoints.d.ts.map +1 -0
  742. package/lib/typescript/commonjs/src/runtime/embedBannerRegistry.d.ts +5 -0
  743. package/lib/typescript/commonjs/src/runtime/embedBannerRegistry.d.ts.map +1 -0
  744. package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts +25 -1
  745. package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts.map +1 -1
  746. package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts +12 -3
  747. package/lib/typescript/commonjs/src/runtime/flowSessionViewState.d.ts.map +1 -1
  748. package/lib/typescript/commonjs/src/runtime/isolateCall.d.ts +20 -0
  749. package/lib/typescript/commonjs/src/runtime/isolateCall.d.ts.map +1 -0
  750. package/lib/typescript/commonjs/src/runtime/reportSdkError.d.ts +10 -0
  751. package/lib/typescript/commonjs/src/runtime/reportSdkError.d.ts.map +1 -0
  752. package/lib/typescript/commonjs/src/runtime/useBannerSession.d.ts +5 -0
  753. package/lib/typescript/commonjs/src/runtime/useBannerSession.d.ts.map +1 -0
  754. package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts +1 -0
  755. package/lib/typescript/commonjs/src/runtime/useFlowSessionState.d.ts.map +1 -1
  756. package/lib/typescript/commonjs/src/screenTracker.d.ts +26 -4
  757. package/lib/typescript/commonjs/src/screenTracker.d.ts.map +1 -1
  758. package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts +14 -0
  759. package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts.map +1 -0
  760. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts +15 -0
  761. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -0
  762. package/lib/typescript/commonjs/src/surfaces/CardFade.d.ts +12 -0
  763. package/lib/typescript/commonjs/src/surfaces/CardFade.d.ts.map +1 -0
  764. package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts +8 -2
  765. package/lib/typescript/commonjs/src/surfaces/CloseButton.d.ts.map +1 -1
  766. package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts +10 -6
  767. package/lib/typescript/commonjs/src/surfaces/MadeWithUserflow.d.ts.map +1 -1
  768. package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts +1 -1
  769. package/lib/typescript/commonjs/src/surfaces/ModalSurface.d.ts.map +1 -1
  770. package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts +12 -1
  771. package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
  772. package/lib/typescript/commonjs/src/surfaces/bannerBarLayout.d.ts +15 -0
  773. package/lib/typescript/commonjs/src/surfaces/bannerBarLayout.d.ts.map +1 -0
  774. package/lib/typescript/commonjs/src/surfaces/bannerBarTokens.d.ts +20 -0
  775. package/lib/typescript/commonjs/src/surfaces/bannerBarTokens.d.ts.map +1 -0
  776. package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +10 -0
  777. package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -0
  778. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts +7 -0
  779. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts.map +1 -0
  780. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts +6 -0
  781. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts.map +1 -0
  782. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +13 -0
  783. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -0
  784. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts +5 -0
  785. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -0
  786. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts +6 -0
  787. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts.map +1 -0
  788. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts +9 -0
  789. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -0
  790. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buttonClassName.d.ts +3 -0
  791. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buttonClassName.d.ts.map +1 -0
  792. package/lib/typescript/commonjs/src/surfaces/bannerWebView/resolveCdnHost.d.ts +10 -0
  793. package/lib/typescript/commonjs/src/surfaces/bannerWebView/resolveCdnHost.d.ts.map +1 -0
  794. package/lib/typescript/commonjs/src/surfaces/bannerWebView/richContentDocToHtml.d.ts +3 -0
  795. package/lib/typescript/commonjs/src/surfaces/bannerWebView/richContentDocToHtml.d.ts.map +1 -0
  796. package/lib/typescript/commonjs/src/surfaces/cardTransition.d.ts +31 -0
  797. package/lib/typescript/commonjs/src/surfaces/cardTransition.d.ts.map +1 -0
  798. package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.d.ts +7 -0
  799. package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.d.ts.map +1 -0
  800. package/lib/typescript/commonjs/src/surfaces/resolveHighlightChrome.d.ts +44 -0
  801. package/lib/typescript/commonjs/src/surfaces/resolveHighlightChrome.d.ts.map +1 -0
  802. package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts +1 -1
  803. package/lib/typescript/commonjs/src/surfaces/resolveModalLayout.d.ts.map +1 -1
  804. package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts +0 -7
  805. package/lib/typescript/commonjs/src/surfaces/resolveTooltipLayout.d.ts.map +1 -1
  806. package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts +6 -0
  807. package/lib/typescript/commonjs/src/surfaces/safeArea.d.ts.map +1 -1
  808. package/lib/typescript/commonjs/src/surfaces/surfaceInteractionConfig.d.ts +15 -0
  809. package/lib/typescript/commonjs/src/surfaces/surfaceInteractionConfig.d.ts.map +1 -0
  810. package/lib/typescript/commonjs/src/surfaces/surfaceLayoutInsets.d.ts +38 -0
  811. package/lib/typescript/commonjs/src/surfaces/surfaceLayoutInsets.d.ts.map +1 -0
  812. package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts +3 -1
  813. package/lib/typescript/commonjs/src/surfaces/themeChrome.d.ts.map +1 -1
  814. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts +21 -6
  815. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
  816. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts +18 -10
  817. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -1
  818. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipHighlight.d.ts +25 -0
  819. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipHighlight.d.ts.map +1 -0
  820. package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts +23 -0
  821. package/lib/typescript/commonjs/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -1
  822. package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts +47 -1
  823. package/lib/typescript/commonjs/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -1
  824. package/lib/typescript/commonjs/src/surfaces/tooltip/placementDiagnostics.d.ts +39 -0
  825. package/lib/typescript/commonjs/src/surfaces/tooltip/placementDiagnostics.d.ts.map +1 -0
  826. package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts +2 -0
  827. package/lib/typescript/commonjs/src/surfaces/tooltip/rect.d.ts.map +1 -1
  828. package/lib/typescript/commonjs/src/surfaces/tooltip/resolveSideCardWidth.d.ts +76 -0
  829. package/lib/typescript/commonjs/src/surfaces/tooltip/resolveSideCardWidth.d.ts.map +1 -0
  830. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  831. package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts +40 -0
  832. package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
  833. package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts +2 -0
  834. package/lib/typescript/module/src/anchors/anchorChangeTicker.d.ts.map +1 -1
  835. package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts +14 -10
  836. package/lib/typescript/module/src/anchors/elementConditionEvaluator.d.ts.map +1 -1
  837. package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts +1 -20
  838. package/lib/typescript/module/src/anchors/fiber/FiberScanRoot.d.ts.map +1 -1
  839. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +21 -0
  840. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -0
  841. package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts +42 -1
  842. package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
  843. package/lib/typescript/module/src/anchors/fiber/fiberPath.d.ts +12 -0
  844. package/lib/typescript/module/src/anchors/fiber/fiberPath.d.ts.map +1 -0
  845. package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts +5 -4
  846. package/lib/typescript/module/src/anchors/fiber/findAnchorFiber.d.ts.map +1 -1
  847. package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts +42 -0
  848. package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts.map +1 -0
  849. package/lib/typescript/module/src/anchors/fiber/readHostContent.d.ts +17 -0
  850. package/lib/typescript/module/src/anchors/fiber/readHostContent.d.ts.map +1 -0
  851. package/lib/typescript/module/src/anchors/fiber/resolveFiberPath.d.ts +24 -0
  852. package/lib/typescript/module/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -0
  853. package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts +32 -0
  854. package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts.map +1 -0
  855. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +6 -1
  856. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  857. package/lib/typescript/module/src/anchors/fiber/walkVisibleFibers.d.ts +20 -0
  858. package/lib/typescript/module/src/anchors/fiber/walkVisibleFibers.d.ts.map +1 -0
  859. package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts +20 -0
  860. package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts.map +1 -0
  861. package/lib/typescript/module/src/anchors/isInstanceOnVisibleScreen.d.ts +19 -0
  862. package/lib/typescript/module/src/anchors/isInstanceOnVisibleScreen.d.ts.map +1 -0
  863. package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +5 -5
  864. package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -1
  865. package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts +38 -0
  866. package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -0
  867. package/lib/typescript/module/src/anchors/semanticMatcher.d.ts +50 -0
  868. package/lib/typescript/module/src/anchors/semanticMatcher.d.ts.map +1 -0
  869. package/lib/typescript/module/src/anonymousId.d.ts +1 -0
  870. package/lib/typescript/module/src/anonymousId.d.ts.map +1 -1
  871. package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +8 -0
  872. package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -0
  873. package/lib/typescript/module/src/authoring/capturePickerScreenshot.d.ts +11 -0
  874. package/lib/typescript/module/src/authoring/capturePickerScreenshot.d.ts.map +1 -0
  875. package/lib/typescript/module/src/authoring/chrome/ChromeBarTransition.d.ts +32 -0
  876. package/lib/typescript/module/src/authoring/chrome/ChromeBarTransition.d.ts.map +1 -0
  877. package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts +24 -0
  878. package/lib/typescript/module/src/authoring/chrome/ChromeBottomSheet.d.ts.map +1 -0
  879. package/lib/typescript/module/src/authoring/chrome/ChromeButton.d.ts +20 -0
  880. package/lib/typescript/module/src/authoring/chrome/ChromeButton.d.ts.map +1 -0
  881. package/lib/typescript/module/src/authoring/chrome/ChromeDialog.d.ts +14 -0
  882. package/lib/typescript/module/src/authoring/chrome/ChromeDialog.d.ts.map +1 -0
  883. package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts +13 -0
  884. package/lib/typescript/module/src/authoring/chrome/ChromeIcon.d.ts.map +1 -0
  885. package/lib/typescript/module/src/authoring/chrome/ChromeTooltip.d.ts +17 -0
  886. package/lib/typescript/module/src/authoring/chrome/ChromeTooltip.d.ts.map +1 -0
  887. package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts +33 -0
  888. package/lib/typescript/module/src/authoring/chrome/ChromeTopBar.d.ts.map +1 -0
  889. package/lib/typescript/module/src/authoring/chrome/DoubleTapBridge.d.ts +12 -0
  890. package/lib/typescript/module/src/authoring/chrome/DoubleTapBridge.d.ts.map +1 -0
  891. package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts +31 -0
  892. package/lib/typescript/module/src/authoring/chrome/doubleTapMonitor.d.ts.map +1 -0
  893. package/lib/typescript/module/src/authoring/chrome/tokens.d.ts +142 -0
  894. package/lib/typescript/module/src/authoring/chrome/tokens.d.ts.map +1 -0
  895. package/lib/typescript/module/src/authoring/doubleTap.d.ts +14 -0
  896. package/lib/typescript/module/src/authoring/doubleTap.d.ts.map +1 -0
  897. package/lib/typescript/module/src/authoring/elementPickerController.d.ts +58 -0
  898. package/lib/typescript/module/src/authoring/elementPickerController.d.ts.map +1 -0
  899. package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts +81 -0
  900. package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts.map +1 -0
  901. package/lib/typescript/module/src/authoring/hitTest.d.ts +75 -0
  902. package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -0
  903. package/lib/typescript/module/src/authoring/hostAtPoint.d.ts +7 -0
  904. package/lib/typescript/module/src/authoring/hostAtPoint.d.ts.map +1 -0
  905. package/lib/typescript/module/src/content/BannerStepButton.d.ts +14 -0
  906. package/lib/typescript/module/src/content/BannerStepButton.d.ts.map +1 -0
  907. package/lib/typescript/module/src/content/RichContentRenderer.d.ts +6 -1
  908. package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -1
  909. package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -1
  910. package/lib/typescript/module/src/content/buttonAppearance.d.ts +4 -0
  911. package/lib/typescript/module/src/content/buttonAppearance.d.ts.map +1 -1
  912. package/lib/typescript/module/src/content/resolveBannerButtonChrome.d.ts +8 -0
  913. package/lib/typescript/module/src/content/resolveBannerButtonChrome.d.ts.map +1 -0
  914. package/lib/typescript/module/src/content/resolveStepButtonChrome.d.ts.map +1 -1
  915. package/lib/typescript/module/src/content/themeColor.d.ts +7 -0
  916. package/lib/typescript/module/src/content/themeColor.d.ts.map +1 -1
  917. package/lib/typescript/module/src/content/types.d.ts +1 -0
  918. package/lib/typescript/module/src/content/types.d.ts.map +1 -1
  919. package/lib/typescript/module/src/deepLinking.d.ts +4 -4
  920. package/lib/typescript/module/src/deviceContext.d.ts +66 -0
  921. package/lib/typescript/module/src/deviceContext.d.ts.map +1 -0
  922. package/lib/typescript/module/src/evalJs/EvalJsHost.d.ts +14 -0
  923. package/lib/typescript/module/src/evalJs/EvalJsHost.d.ts.map +1 -0
  924. package/lib/typescript/module/src/evalJs/bootstrap.d.ts +18 -0
  925. package/lib/typescript/module/src/evalJs/bootstrap.d.ts.map +1 -0
  926. package/lib/typescript/module/src/evalJs/bridgeMessages.d.ts +37 -0
  927. package/lib/typescript/module/src/evalJs/bridgeMessages.d.ts.map +1 -0
  928. package/lib/typescript/module/src/evalJs/evalJsBridge.d.ts +16 -0
  929. package/lib/typescript/module/src/evalJs/evalJsBridge.d.ts.map +1 -0
  930. package/lib/typescript/module/src/evalJs/evalJsController.d.ts +24 -0
  931. package/lib/typescript/module/src/evalJs/evalJsController.d.ts.map +1 -0
  932. package/lib/typescript/module/src/evalJs/getWebView.d.ts +64 -0
  933. package/lib/typescript/module/src/evalJs/getWebView.d.ts.map +1 -0
  934. package/lib/typescript/module/src/evalJs/injectEvalPending.d.ts +4 -0
  935. package/lib/typescript/module/src/evalJs/injectEvalPending.d.ts.map +1 -0
  936. package/lib/typescript/module/src/evalJs/types.d.ts +53 -0
  937. package/lib/typescript/module/src/evalJs/types.d.ts.map +1 -0
  938. package/lib/typescript/module/src/evalJs/useEvalJsWebViewInjection.d.ts +12 -0
  939. package/lib/typescript/module/src/evalJs/useEvalJsWebViewInjection.d.ts.map +1 -0
  940. package/lib/typescript/module/src/expo-router/index.d.ts +1 -0
  941. package/lib/typescript/module/src/expo-router/index.d.ts.map +1 -1
  942. package/lib/typescript/module/src/expo-router/redirectSystemPath.d.ts +50 -0
  943. package/lib/typescript/module/src/expo-router/redirectSystemPath.d.ts.map +1 -0
  944. package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts +2 -2
  945. package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
  946. package/lib/typescript/module/src/hostAppVersion.d.ts +69 -0
  947. package/lib/typescript/module/src/hostAppVersion.d.ts.map +1 -0
  948. package/lib/typescript/module/src/index.d.ts +69 -3
  949. package/lib/typescript/module/src/index.d.ts.map +1 -1
  950. package/lib/typescript/module/src/lifecycle.d.ts +10 -1
  951. package/lib/typescript/module/src/lifecycle.d.ts.map +1 -1
  952. package/lib/typescript/module/src/navigation/WithUserflowReactNavigation.d.ts.map +1 -1
  953. package/lib/typescript/module/src/navigation/isOverlayPresentation.d.ts +14 -0
  954. package/lib/typescript/module/src/navigation/isOverlayPresentation.d.ts.map +1 -0
  955. package/lib/typescript/module/src/navigation/openFlowNavigateUrl.d.ts.map +1 -1
  956. package/lib/typescript/module/src/pairing/PairingController.d.ts +78 -4
  957. package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
  958. package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts +14 -1
  959. package/lib/typescript/module/src/pairing/PreviewModeBanner.d.ts.map +1 -1
  960. package/lib/typescript/module/src/pairing/deepLink.d.ts +6 -2
  961. package/lib/typescript/module/src/pairing/deepLink.d.ts.map +1 -1
  962. package/lib/typescript/module/src/pairing/deviceId.d.ts +12 -0
  963. package/lib/typescript/module/src/pairing/deviceId.d.ts.map +1 -0
  964. package/lib/typescript/module/src/pairing/diagnostics.d.ts +8 -2
  965. package/lib/typescript/module/src/pairing/diagnostics.d.ts.map +1 -1
  966. package/lib/typescript/module/src/pairing/elementPickerRelay.d.ts +11 -0
  967. package/lib/typescript/module/src/pairing/elementPickerRelay.d.ts.map +1 -0
  968. package/lib/typescript/module/src/pairing/resolvePreviewChrome.d.ts +16 -0
  969. package/lib/typescript/module/src/pairing/resolvePreviewChrome.d.ts.map +1 -0
  970. package/lib/typescript/module/src/pairing/tokenStorage.d.ts +16 -2
  971. package/lib/typescript/module/src/pairing/tokenStorage.d.ts.map +1 -1
  972. package/lib/typescript/module/src/pairing/usePairingState.d.ts.map +1 -1
  973. package/lib/typescript/module/src/pairing/usePreviewBarHold.d.ts +19 -0
  974. package/lib/typescript/module/src/pairing/usePreviewBarHold.d.ts.map +1 -0
  975. package/lib/typescript/module/src/runtime/BannerHost.d.ts +16 -0
  976. package/lib/typescript/module/src/runtime/BannerHost.d.ts.map +1 -0
  977. package/lib/typescript/module/src/runtime/EmbedBannerPlaceholder.d.ts +18 -0
  978. package/lib/typescript/module/src/runtime/EmbedBannerPlaceholder.d.ts.map +1 -0
  979. package/lib/typescript/module/src/runtime/FlowRenderer.d.ts +6 -3
  980. package/lib/typescript/module/src/runtime/FlowRenderer.d.ts.map +1 -1
  981. package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts +20 -7
  982. package/lib/typescript/module/src/runtime/FlowSurfaceFade.d.ts.map +1 -1
  983. package/lib/typescript/module/src/runtime/SdkErrorBoundary.d.ts +34 -0
  984. package/lib/typescript/module/src/runtime/SdkErrorBoundary.d.ts.map +1 -0
  985. package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts +5 -1
  986. package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts.map +1 -1
  987. package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts +15 -0
  988. package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -0
  989. package/lib/typescript/module/src/runtime/UserflowProvider.d.ts +15 -7
  990. package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -1
  991. package/lib/typescript/module/src/runtime/bannerEngine.d.ts +12 -0
  992. package/lib/typescript/module/src/runtime/bannerEngine.d.ts.map +1 -0
  993. package/lib/typescript/module/src/runtime/bannerEngineContext.d.ts +5 -0
  994. package/lib/typescript/module/src/runtime/bannerEngineContext.d.ts.map +1 -0
  995. package/lib/typescript/module/src/runtime/bannerPlacement.d.ts +12 -0
  996. package/lib/typescript/module/src/runtime/bannerPlacement.d.ts.map +1 -0
  997. package/lib/typescript/module/src/runtime/changedTouchPoints.d.ts +10 -0
  998. package/lib/typescript/module/src/runtime/changedTouchPoints.d.ts.map +1 -0
  999. package/lib/typescript/module/src/runtime/embedBannerRegistry.d.ts +5 -0
  1000. package/lib/typescript/module/src/runtime/embedBannerRegistry.d.ts.map +1 -0
  1001. package/lib/typescript/module/src/runtime/flowEngine.d.ts +25 -1
  1002. package/lib/typescript/module/src/runtime/flowEngine.d.ts.map +1 -1
  1003. package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts +12 -3
  1004. package/lib/typescript/module/src/runtime/flowSessionViewState.d.ts.map +1 -1
  1005. package/lib/typescript/module/src/runtime/isolateCall.d.ts +20 -0
  1006. package/lib/typescript/module/src/runtime/isolateCall.d.ts.map +1 -0
  1007. package/lib/typescript/module/src/runtime/reportSdkError.d.ts +10 -0
  1008. package/lib/typescript/module/src/runtime/reportSdkError.d.ts.map +1 -0
  1009. package/lib/typescript/module/src/runtime/useBannerSession.d.ts +5 -0
  1010. package/lib/typescript/module/src/runtime/useBannerSession.d.ts.map +1 -0
  1011. package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts +1 -0
  1012. package/lib/typescript/module/src/runtime/useFlowSessionState.d.ts.map +1 -1
  1013. package/lib/typescript/module/src/screenTracker.d.ts +26 -4
  1014. package/lib/typescript/module/src/screenTracker.d.ts.map +1 -1
  1015. package/lib/typescript/module/src/surfaces/BannerBar.d.ts +14 -0
  1016. package/lib/typescript/module/src/surfaces/BannerBar.d.ts.map +1 -0
  1017. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts +15 -0
  1018. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -0
  1019. package/lib/typescript/module/src/surfaces/CardFade.d.ts +12 -0
  1020. package/lib/typescript/module/src/surfaces/CardFade.d.ts.map +1 -0
  1021. package/lib/typescript/module/src/surfaces/CloseButton.d.ts +8 -2
  1022. package/lib/typescript/module/src/surfaces/CloseButton.d.ts.map +1 -1
  1023. package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts +10 -6
  1024. package/lib/typescript/module/src/surfaces/MadeWithUserflow.d.ts.map +1 -1
  1025. package/lib/typescript/module/src/surfaces/ModalSurface.d.ts +1 -1
  1026. package/lib/typescript/module/src/surfaces/ModalSurface.d.ts.map +1 -1
  1027. package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts +12 -1
  1028. package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
  1029. package/lib/typescript/module/src/surfaces/bannerBarLayout.d.ts +15 -0
  1030. package/lib/typescript/module/src/surfaces/bannerBarLayout.d.ts.map +1 -0
  1031. package/lib/typescript/module/src/surfaces/bannerBarTokens.d.ts +20 -0
  1032. package/lib/typescript/module/src/surfaces/bannerBarTokens.d.ts.map +1 -0
  1033. package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +10 -0
  1034. package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -0
  1035. package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts +7 -0
  1036. package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunEvalJs.d.ts.map +1 -0
  1037. package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts +6 -0
  1038. package/lib/typescript/module/src/surfaces/bannerWebView/bannerAutoRunSession.d.ts.map +1 -0
  1039. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +13 -0
  1040. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -0
  1041. package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts +5 -0
  1042. package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -0
  1043. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts +6 -0
  1044. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebFrameCss.d.ts.map +1 -0
  1045. package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts +9 -0
  1046. package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -0
  1047. package/lib/typescript/module/src/surfaces/bannerWebView/buttonClassName.d.ts +3 -0
  1048. package/lib/typescript/module/src/surfaces/bannerWebView/buttonClassName.d.ts.map +1 -0
  1049. package/lib/typescript/module/src/surfaces/bannerWebView/resolveCdnHost.d.ts +10 -0
  1050. package/lib/typescript/module/src/surfaces/bannerWebView/resolveCdnHost.d.ts.map +1 -0
  1051. package/lib/typescript/module/src/surfaces/bannerWebView/richContentDocToHtml.d.ts +3 -0
  1052. package/lib/typescript/module/src/surfaces/bannerWebView/richContentDocToHtml.d.ts.map +1 -0
  1053. package/lib/typescript/module/src/surfaces/cardTransition.d.ts +31 -0
  1054. package/lib/typescript/module/src/surfaces/cardTransition.d.ts.map +1 -0
  1055. package/lib/typescript/module/src/surfaces/resolveBannerTheme.d.ts +7 -0
  1056. package/lib/typescript/module/src/surfaces/resolveBannerTheme.d.ts.map +1 -0
  1057. package/lib/typescript/module/src/surfaces/resolveHighlightChrome.d.ts +44 -0
  1058. package/lib/typescript/module/src/surfaces/resolveHighlightChrome.d.ts.map +1 -0
  1059. package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts +1 -1
  1060. package/lib/typescript/module/src/surfaces/resolveModalLayout.d.ts.map +1 -1
  1061. package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts +0 -7
  1062. package/lib/typescript/module/src/surfaces/resolveTooltipLayout.d.ts.map +1 -1
  1063. package/lib/typescript/module/src/surfaces/safeArea.d.ts +6 -0
  1064. package/lib/typescript/module/src/surfaces/safeArea.d.ts.map +1 -1
  1065. package/lib/typescript/module/src/surfaces/surfaceInteractionConfig.d.ts +15 -0
  1066. package/lib/typescript/module/src/surfaces/surfaceInteractionConfig.d.ts.map +1 -0
  1067. package/lib/typescript/module/src/surfaces/surfaceLayoutInsets.d.ts +38 -0
  1068. package/lib/typescript/module/src/surfaces/surfaceLayoutInsets.d.ts.map +1 -0
  1069. package/lib/typescript/module/src/surfaces/themeChrome.d.ts +3 -1
  1070. package/lib/typescript/module/src/surfaces/themeChrome.d.ts.map +1 -1
  1071. package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts +21 -6
  1072. package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
  1073. package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts +18 -10
  1074. package/lib/typescript/module/src/surfaces/tooltip/TooltipCutout.d.ts.map +1 -1
  1075. package/lib/typescript/module/src/surfaces/tooltip/TooltipHighlight.d.ts +25 -0
  1076. package/lib/typescript/module/src/surfaces/tooltip/TooltipHighlight.d.ts.map +1 -0
  1077. package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts +23 -0
  1078. package/lib/typescript/module/src/surfaces/tooltip/computeTooltipPosition.d.ts.map +1 -1
  1079. package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts +47 -1
  1080. package/lib/typescript/module/src/surfaces/tooltip/inferTooltipPlacement.d.ts.map +1 -1
  1081. package/lib/typescript/module/src/surfaces/tooltip/placementDiagnostics.d.ts +39 -0
  1082. package/lib/typescript/module/src/surfaces/tooltip/placementDiagnostics.d.ts.map +1 -0
  1083. package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts +2 -0
  1084. package/lib/typescript/module/src/surfaces/tooltip/rect.d.ts.map +1 -1
  1085. package/lib/typescript/module/src/surfaces/tooltip/resolveSideCardWidth.d.ts +76 -0
  1086. package/lib/typescript/module/src/surfaces/tooltip/resolveSideCardWidth.d.ts.map +1 -0
  1087. package/lib/typescript/module/src/version.d.ts +1 -1
  1088. package/package.json +24 -17
  1089. package/src/anchors/AutoAnchorRegistry.ts +169 -2
  1090. package/src/anchors/anchorChangeTicker.ts +10 -0
  1091. package/src/anchors/elementConditionEvaluator.ts +29 -16
  1092. package/src/anchors/fiber/FiberScanRoot.tsx +2 -50
  1093. package/src/anchors/fiber/FiberScanRootStore.ts +51 -0
  1094. package/src/anchors/fiber/fiberInternals.ts +166 -3
  1095. package/src/anchors/fiber/fiberPath.ts +117 -0
  1096. package/src/anchors/fiber/findAnchorFiber.ts +57 -47
  1097. package/src/anchors/fiber/indexHostFibers.ts +136 -0
  1098. package/src/anchors/fiber/readHostContent.ts +146 -0
  1099. package/src/anchors/fiber/resolveFiberPath.ts +215 -0
  1100. package/src/anchors/fiber/visibleRect.ts +153 -0
  1101. package/src/anchors/fiber/visibleScreens.ts +74 -36
  1102. package/src/anchors/fiber/walkVisibleFibers.ts +65 -0
  1103. package/src/anchors/fiberAnchorCache.ts +45 -0
  1104. package/src/anchors/isInstanceOnVisibleScreen.ts +55 -0
  1105. package/src/anchors/resolveAnchorHost.ts +23 -23
  1106. package/src/anchors/resolveAutoAnchorHost.ts +182 -0
  1107. package/src/anchors/semanticMatcher.ts +385 -0
  1108. package/src/anonymousId.ts +2 -1
  1109. package/src/authoring/ElementPickerOverlay.tsx +662 -0
  1110. package/src/authoring/capturePickerScreenshot.ts +90 -0
  1111. package/src/authoring/chrome/ChromeBarTransition.tsx +106 -0
  1112. package/src/authoring/chrome/ChromeBottomSheet.tsx +110 -0
  1113. package/src/authoring/chrome/ChromeButton.tsx +108 -0
  1114. package/src/authoring/chrome/ChromeDialog.tsx +121 -0
  1115. package/src/authoring/chrome/ChromeIcon.tsx +49 -0
  1116. package/src/authoring/chrome/ChromeTooltip.tsx +89 -0
  1117. package/src/authoring/chrome/ChromeTopBar.tsx +150 -0
  1118. package/src/authoring/chrome/DoubleTapBridge.tsx +67 -0
  1119. package/src/authoring/chrome/doubleTapMonitor.ts +90 -0
  1120. package/src/authoring/chrome/icons/arrow-left-from-bracket.png +0 -0
  1121. package/src/authoring/chrome/icons/arrow-left-from-bracket@2x.png +0 -0
  1122. package/src/authoring/chrome/icons/arrow-left-from-bracket@3x.png +0 -0
  1123. package/src/authoring/chrome/icons/arrow-rotate-left.png +0 -0
  1124. package/src/authoring/chrome/icons/arrow-rotate-left@2x.png +0 -0
  1125. package/src/authoring/chrome/icons/arrow-rotate-left@3x.png +0 -0
  1126. package/src/authoring/chrome/icons/circle-exclamation.png +0 -0
  1127. package/src/authoring/chrome/icons/circle-exclamation@2x.png +0 -0
  1128. package/src/authoring/chrome/icons/circle-exclamation@3x.png +0 -0
  1129. package/src/authoring/chrome/icons/triangle-exclamation.png +0 -0
  1130. package/src/authoring/chrome/icons/triangle-exclamation@2x.png +0 -0
  1131. package/src/authoring/chrome/icons/triangle-exclamation@3x.png +0 -0
  1132. package/src/authoring/chrome/icons/userflow-logomark.png +0 -0
  1133. package/src/authoring/chrome/icons/userflow-logomark@2x.png +0 -0
  1134. package/src/authoring/chrome/icons/userflow-logomark@3x.png +0 -0
  1135. package/src/authoring/chrome/icons/xmark.png +0 -0
  1136. package/src/authoring/chrome/icons/xmark@2x.png +0 -0
  1137. package/src/authoring/chrome/icons/xmark@3x.png +0 -0
  1138. package/src/authoring/chrome/tokens.ts +111 -0
  1139. package/src/authoring/doubleTap.ts +27 -0
  1140. package/src/authoring/elementPickerController.ts +133 -0
  1141. package/src/authoring/fingerprintFromInstance.ts +318 -0
  1142. package/src/authoring/hitTest.ts +441 -0
  1143. package/src/authoring/hostAtPoint.ts +247 -0
  1144. package/src/content/BannerStepButton.tsx +91 -0
  1145. package/src/content/RichContentRenderer.tsx +22 -1
  1146. package/src/content/StepButton.tsx +17 -2
  1147. package/src/content/buttonAppearance.ts +16 -0
  1148. package/src/content/resolveBannerButtonChrome.ts +49 -0
  1149. package/src/content/resolveStepButtonChrome.ts +12 -6
  1150. package/src/content/themeColor.ts +25 -0
  1151. package/src/content/types.ts +1 -0
  1152. package/src/deepLinking.ts +4 -4
  1153. package/src/deviceContext.ts +168 -0
  1154. package/src/evalJs/EvalJsHost.tsx +255 -0
  1155. package/src/evalJs/bootstrap.ts +83 -0
  1156. package/src/evalJs/bridgeMessages.ts +134 -0
  1157. package/src/evalJs/evalJsBridge.ts +42 -0
  1158. package/src/evalJs/evalJsController.ts +127 -0
  1159. package/src/evalJs/getWebView.ts +124 -0
  1160. package/src/evalJs/injectEvalPending.ts +14 -0
  1161. package/src/evalJs/types.ts +56 -0
  1162. package/src/evalJs/useEvalJsWebViewInjection.ts +37 -0
  1163. package/src/expo-router/index.ts +8 -0
  1164. package/src/expo-router/redirectSystemPath.ts +86 -0
  1165. package/src/expo-router/useUserflowExpoRouter.ts +49 -6
  1166. package/src/hostAppVersion.ts +258 -0
  1167. package/src/index.ts +255 -27
  1168. package/src/lifecycle.ts +12 -1
  1169. package/src/navigation/WithUserflowReactNavigation.tsx +26 -7
  1170. package/src/navigation/isOverlayPresentation.ts +76 -0
  1171. package/src/navigation/openFlowNavigateUrl.ts +12 -5
  1172. package/src/pairing/PairingController.ts +311 -28
  1173. package/src/pairing/PreviewModeBanner.tsx +307 -94
  1174. package/src/pairing/deepLink.ts +23 -5
  1175. package/src/pairing/deviceId.ts +43 -0
  1176. package/src/pairing/diagnostics.ts +14 -4
  1177. package/src/pairing/elementPickerRelay.ts +100 -0
  1178. package/src/pairing/resolvePreviewChrome.ts +57 -0
  1179. package/src/pairing/tokenStorage.ts +91 -9
  1180. package/src/pairing/usePairingState.ts +4 -0
  1181. package/src/pairing/usePreviewBarHold.ts +160 -0
  1182. package/src/runtime/BannerHost.tsx +102 -0
  1183. package/src/runtime/EmbedBannerPlaceholder.tsx +115 -0
  1184. package/src/runtime/FlowRenderer.tsx +55 -27
  1185. package/src/runtime/FlowSurfaceFade.tsx +51 -30
  1186. package/src/runtime/SdkErrorBoundary.tsx +77 -0
  1187. package/src/runtime/TargetPressBridge.tsx +29 -40
  1188. package/src/runtime/UserflowOverlay.tsx +118 -0
  1189. package/src/runtime/UserflowProvider.tsx +162 -24
  1190. package/src/runtime/bannerEngine.ts +55 -0
  1191. package/src/runtime/bannerEngineContext.ts +5 -0
  1192. package/src/runtime/bannerPlacement.ts +36 -0
  1193. package/src/runtime/changedTouchPoints.ts +34 -0
  1194. package/src/runtime/embedBannerRegistry.ts +28 -0
  1195. package/src/runtime/flowEngine.ts +78 -3
  1196. package/src/runtime/flowSessionViewState.ts +42 -4
  1197. package/src/runtime/isolateCall.ts +53 -0
  1198. package/src/runtime/reportSdkError.ts +12 -0
  1199. package/src/runtime/useBannerSession.ts +35 -0
  1200. package/src/runtime/useFlowSessionState.ts +2 -0
  1201. package/src/screenTracker.ts +73 -5
  1202. package/src/surfaces/BannerBar.tsx +176 -0
  1203. package/src/surfaces/BannerSurface.tsx +82 -0
  1204. package/src/surfaces/CardFade.tsx +18 -0
  1205. package/src/surfaces/CloseButton.tsx +17 -7
  1206. package/src/surfaces/MadeWithUserflow.tsx +15 -10
  1207. package/src/surfaces/ModalSurface.tsx +49 -36
  1208. package/src/surfaces/TooltipSurface.tsx +423 -87
  1209. package/src/surfaces/bannerBarLayout.ts +74 -0
  1210. package/src/surfaces/bannerBarTokens.ts +34 -0
  1211. package/src/surfaces/bannerWebView/BannerWebViewBar.tsx +312 -0
  1212. package/src/surfaces/bannerWebView/bannerAutoRunEvalJs.ts +44 -0
  1213. package/src/surfaces/bannerWebView/bannerAutoRunSession.ts +19 -0
  1214. package/src/surfaces/bannerWebView/bannerNeedsWebView.ts +38 -0
  1215. package/src/surfaces/bannerWebView/bannerThemeStyles.ts +91 -0
  1216. package/src/surfaces/bannerWebView/bannerWebFrameCss.ts +145 -0
  1217. package/src/surfaces/bannerWebView/buildCustomBannerHtml.ts +178 -0
  1218. package/src/surfaces/bannerWebView/buttonClassName.ts +15 -0
  1219. package/src/surfaces/bannerWebView/resolveCdnHost.ts +47 -0
  1220. package/src/surfaces/bannerWebView/richContentDocToHtml.ts +99 -0
  1221. package/src/surfaces/cardTransition.ts +67 -0
  1222. package/src/surfaces/resolveBannerTheme.ts +18 -0
  1223. package/src/surfaces/resolveHighlightChrome.ts +139 -0
  1224. package/src/surfaces/resolveModalLayout.ts +16 -8
  1225. package/src/surfaces/resolveTooltipLayout.ts +1 -14
  1226. package/src/surfaces/safeArea.ts +29 -0
  1227. package/src/surfaces/surfaceInteractionConfig.ts +25 -0
  1228. package/src/surfaces/surfaceLayoutInsets.tsx +135 -0
  1229. package/src/surfaces/themeChrome.ts +5 -3
  1230. package/src/surfaces/tooltip/TooltipBubble.tsx +154 -19
  1231. package/src/surfaces/tooltip/TooltipCutout.tsx +106 -49
  1232. package/src/surfaces/tooltip/TooltipHighlight.tsx +144 -0
  1233. package/src/surfaces/tooltip/computeTooltipPosition.ts +98 -12
  1234. package/src/surfaces/tooltip/inferTooltipPlacement.ts +107 -18
  1235. package/src/surfaces/tooltip/placementDiagnostics.ts +70 -0
  1236. package/src/surfaces/tooltip/rect.ts +11 -0
  1237. package/src/surfaces/tooltip/resolveSideCardWidth.ts +121 -0
  1238. package/src/version.ts +1 -1
  1239. package/vendor/core/dist/attributes.d.ts +1 -2
  1240. package/vendor/core/dist/attributes.d.ts.map +1 -1
  1241. package/vendor/core/dist/attributes.js +4 -4
  1242. package/vendor/core/dist/attributes.js.map +1 -1
  1243. package/vendor/core/dist/engine/BannerSessionEngine.d.ts +73 -0
  1244. package/vendor/core/dist/engine/BannerSessionEngine.d.ts.map +1 -0
  1245. package/vendor/core/dist/engine/BannerSessionEngine.js +236 -0
  1246. package/vendor/core/dist/engine/BannerSessionEngine.js.map +1 -0
  1247. package/vendor/core/dist/engine/FlowSessionEngine.d.ts +109 -1
  1248. package/vendor/core/dist/engine/FlowSessionEngine.d.ts.map +1 -1
  1249. package/vendor/core/dist/engine/FlowSessionEngine.js +417 -17
  1250. package/vendor/core/dist/engine/FlowSessionEngine.js.map +1 -1
  1251. package/vendor/core/dist/engine/PairingEngine.d.ts +82 -3
  1252. package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -1
  1253. package/vendor/core/dist/engine/PairingEngine.js +122 -11
  1254. package/vendor/core/dist/engine/PairingEngine.js.map +1 -1
  1255. package/vendor/core/dist/engine/UserflowCore.d.ts +33 -5
  1256. package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
  1257. package/vendor/core/dist/engine/UserflowCore.js +107 -24
  1258. package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
  1259. package/vendor/core/dist/engine/conditionOperators.d.ts +16 -0
  1260. package/vendor/core/dist/engine/conditionOperators.d.ts.map +1 -0
  1261. package/vendor/core/dist/engine/conditionOperators.js +168 -0
  1262. package/vendor/core/dist/engine/conditionOperators.js.map +1 -0
  1263. package/vendor/core/dist/engine/handleActions.d.ts +43 -6
  1264. package/vendor/core/dist/engine/handleActions.d.ts.map +1 -1
  1265. package/vendor/core/dist/engine/handleActions.js +145 -15
  1266. package/vendor/core/dist/engine/handleActions.js.map +1 -1
  1267. package/vendor/core/dist/engine/simpleObservable.d.ts +13 -0
  1268. package/vendor/core/dist/engine/simpleObservable.d.ts.map +1 -0
  1269. package/vendor/core/dist/engine/simpleObservable.js +29 -0
  1270. package/vendor/core/dist/engine/simpleObservable.js.map +1 -0
  1271. package/vendor/core/dist/engine/trackCondition.d.ts +27 -0
  1272. package/vendor/core/dist/engine/trackCondition.d.ts.map +1 -0
  1273. package/vendor/core/dist/engine/trackCondition.js +179 -0
  1274. package/vendor/core/dist/engine/trackCondition.js.map +1 -0
  1275. package/vendor/core/dist/engine/trackStepTriggers.d.ts +31 -0
  1276. package/vendor/core/dist/engine/trackStepTriggers.d.ts.map +1 -0
  1277. package/vendor/core/dist/engine/trackStepTriggers.js +75 -0
  1278. package/vendor/core/dist/engine/trackStepTriggers.js.map +1 -0
  1279. package/vendor/core/dist/errors.d.ts +11 -1
  1280. package/vendor/core/dist/errors.d.ts.map +1 -1
  1281. package/vendor/core/dist/errors.js +2 -1
  1282. package/vendor/core/dist/errors.js.map +1 -1
  1283. package/vendor/core/dist/eventAttributes.d.ts.map +1 -1
  1284. package/vendor/core/dist/eventAttributes.js +4 -2
  1285. package/vendor/core/dist/eventAttributes.js.map +1 -1
  1286. package/vendor/core/dist/index.d.ts +7 -3
  1287. package/vendor/core/dist/index.d.ts.map +1 -1
  1288. package/vendor/core/dist/index.js +3 -1
  1289. package/vendor/core/dist/index.js.map +1 -1
  1290. package/vendor/core/dist/normalizeAttributes.d.ts +8 -0
  1291. package/vendor/core/dist/normalizeAttributes.d.ts.map +1 -0
  1292. package/vendor/core/dist/normalizeAttributes.js +129 -0
  1293. package/vendor/core/dist/normalizeAttributes.js.map +1 -0
  1294. package/vendor/core/dist/transport/pairing.d.ts +5 -0
  1295. package/vendor/core/dist/transport/pairing.d.ts.map +1 -1
  1296. package/vendor/core/dist/transport/pairing.js +69 -2
  1297. package/vendor/core/dist/transport/pairing.js.map +1 -1
  1298. package/vendor/core/dist/transport/phoenix.d.ts +19 -6
  1299. package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
  1300. package/vendor/core/dist/transport/phoenix.js +75 -7
  1301. package/vendor/core/dist/transport/phoenix.js.map +1 -1
  1302. package/vendor/core/dist/types.d.ts +26 -1
  1303. package/vendor/core/dist/types.d.ts.map +1 -1
  1304. package/vendor/core/dist/version.d.ts +1 -1
  1305. package/vendor/core/dist/version.js +1 -1
  1306. package/vendor/core/package.json +1 -1
  1307. package/vendor/protocol/dist/attributes.d.ts +43 -0
  1308. package/vendor/protocol/dist/attributes.d.ts.map +1 -0
  1309. package/vendor/protocol/dist/attributes.js +15 -0
  1310. package/vendor/protocol/dist/attributes.js.map +1 -0
  1311. package/vendor/protocol/dist/autoData.d.ts +10 -17
  1312. package/vendor/protocol/dist/autoData.d.ts.map +1 -1
  1313. package/vendor/protocol/dist/autoData.js +2 -2
  1314. package/vendor/protocol/dist/autoData.js.map +1 -1
  1315. package/vendor/protocol/dist/events.d.ts +8 -0
  1316. package/vendor/protocol/dist/events.d.ts.map +1 -1
  1317. package/vendor/protocol/dist/flows.d.ts +124 -6
  1318. package/vendor/protocol/dist/flows.d.ts.map +1 -1
  1319. package/vendor/protocol/dist/flows.js +70 -5
  1320. package/vendor/protocol/dist/flows.js.map +1 -1
  1321. package/vendor/protocol/dist/index.d.ts +1 -0
  1322. package/vendor/protocol/dist/index.d.ts.map +1 -1
  1323. package/vendor/protocol/dist/index.js +1 -0
  1324. package/vendor/protocol/dist/index.js.map +1 -1
  1325. package/vendor/protocol/dist/messages.d.ts +46 -15
  1326. package/vendor/protocol/dist/messages.d.ts.map +1 -1
  1327. package/vendor/protocol/dist/messages.js +9 -2
  1328. package/vendor/protocol/dist/messages.js.map +1 -1
  1329. package/vendor/protocol/dist/pairing.d.ts +26 -0
  1330. package/vendor/protocol/dist/pairing.d.ts.map +1 -1
  1331. package/vendor/protocol/dist/pairing.js.map +1 -1
  1332. package/vendor/protocol/package.json +1 -1
@@ -16,15 +16,23 @@ import { notifyAnchorScreenChange } from "./anchors/resolveAnchorHost.js";
16
16
  import { setCustomScrollIntoView as setCustomScrollIntoViewConfig, setScrollPadding as setScrollPaddingConfig } from "./anchors/scrollConfig.js";
17
17
  import { clearAnonymousId, getOrCreateAnonymousId } from "./anonymousId.js";
18
18
  import { didHandleURL, flushPendingPreviewToken, startDeepLinking, stopDeepLinking } from "./deepLinking.js";
19
+ import { cacheDeviceContextAtInit, getCachedDeviceContext, logDeviceContext as logDeviceContextToConsole, mergeDeviceContextUserAttributes } from "./deviceContext.js";
20
+ import { setEvalJsBridgeHandlers } from "./evalJs/evalJsBridge.js";
21
+ import { evalJsController } from "./evalJs/evalJsController.js";
22
+ import { cacheHostAppVersionAtInit, getCachedHostAppVersion, logHostAppVersion as logHostAppVersionToConsole, mergeHostAppVersionUserAttributes } from "./hostAppVersion.js";
19
23
  import { LifecycleController } from "./lifecycle.js";
20
- import { setHostOnNavigate } from "./navigation/openFlowNavigateUrl.js";
24
+ import { openFlowNavigateUrl, setHostOnNavigate } from "./navigation/openFlowNavigateUrl.js";
21
25
  import { NetworkController } from "./network.js";
22
26
  import { getPairingController, installPairingController } from "./pairing/pairingRuntime.js";
27
+ import { attachBannerSessionEngine, clearBannerSessionEngineLocalSession, getBannerSessionEngine, resetBannerSessionEngine } from "./runtime/bannerEngine.js";
23
28
  import { attachClientConditionEngine, resetClientConditionEngine } from "./runtime/clientConditions.js";
24
- import { attachFlowSessionEngine, clearFlowSessionEngineLocalSession, getFlowSessionEngine, hasActiveFlowSession, resetFlowSessionEngine } from "./runtime/flowEngine.js";
29
+ import { attachFlowSessionEngine, cancelPendingDraftEnd, clearFlowSessionEngineLocalSession, endDraftFlowSession, endEvalJsFlowSession, getFlowSessionEngine, hasActiveFlowSession, resetFlowSessionEngine } from "./runtime/flowEngine.js";
30
+ import { isolateAsync, isolateSync } from "./runtime/isolateCall.js";
25
31
  import { getUserflowCore } from "./runtime/userflowCore.js";
26
- import { disableScreenTracking, enableScreenTracking, handleScreenChange, setScreenChangeReporter } from "./screenTracker.js";
32
+ import { disableScreenTracking, enableScreenTracking, getCurrentScreenLocation, handleScreenChange, reportCurrentScreen, SCREEN_VIEWED_EVENT, screenViewedAttributes, setScreenChangeReporter } from "./screenTracker.js";
33
+ import { setSurfaceInteractionBlocking as setSurfaceInteractionBlockingConfig } from "./surfaces/surfaceInteractionConfig.js";
27
34
  export { SDK_VERSION } from "./version.js";
35
+ export { EmbedBannerPlaceholder } from "./runtime/EmbedBannerPlaceholder.js";
28
36
  export { UserflowProvider, useUserflow } from "./runtime/UserflowProvider.js";
29
37
  export { useFlowSessionState } from "./runtime/useFlowSessionState.js";
30
38
  export { useUserflowScreen } from "./useUserflowScreen.js";
@@ -43,35 +51,67 @@ const lifecycle = new LifecycleController({
43
51
  core.resume();
44
52
  // After reconnect, flush mid-flow client messages that failed while offline.
45
53
  void getFlowSessionEngine(core).flushPendingSends();
54
+ void getBannerSessionEngine(core).flushPendingSends();
46
55
  },
47
56
  clearLocalSession: () => {
48
57
  clearFlowSessionEngineLocalSession();
58
+ clearBannerSessionEngineLocalSession();
49
59
  // Engine may not exist yet; still clear any transport join resume id.
50
60
  core.setFlowSessionId(null);
61
+ core.setBannerSessionId(null);
51
62
  },
52
63
  ensureAlive: () => core.ensureAlive(),
53
- hasActiveSession: () => hasActiveFlowSession()
64
+ hasActiveSession: () => hasActiveFlowSession(),
65
+ onScreenResume: () => {
66
+ reportCurrentScreen();
67
+ }
54
68
  });
55
69
  const network = new NetworkController({
56
70
  // Probe if still "connected" (half-open) or reconnect eagerly if already dropped.
57
71
  ensureAlive: () => core.ensureAlive()
58
72
  });
73
+
74
+ /** True when a screen was reported before identify, so first identify should emit `screen_viewed`. */
75
+ let screenViewedAwaitingIdentify = false;
76
+ function armScreenViewedForNextIdentify() {
77
+ if (getCurrentScreenLocation() != null) {
78
+ screenViewedAwaitingIdentify = true;
79
+ }
80
+ }
59
81
  function wireScreenChangeReporter() {
60
82
  setScreenChangeReporter(location => {
61
- lifecycle.reportActivity();
62
- const screenKey = 'path' in location ? `path:${location.path}` : `screen:${location.screen}`;
63
- notifyAnchorScreenChange(screenKey);
64
- anchorChangeTicker.notify();
65
- if (__DEV__) {
83
+ isolateSync('updateScreen', () => {
84
+ lifecycle.reportActivity();
85
+ const screenKey = 'path' in location ? `path:${location.path}` : `screen:${location.screen}`;
86
+ notifyAnchorScreenChange(screenKey);
87
+ anchorChangeTicker.notify();
66
88
  const identified = core.getUserId() != null;
67
- // eslint-disable-next-line no-console -- intentional development diagnostic
68
- console.log('[Userflow] updateScreen', location, identified ? '(push UpdateClientContext)' : '(buffered until identify)');
69
- }
70
- // Mirrors web: only pushes UpdateClientContext after identify; before that the
71
- // location is remembered and included on the next end-user channel join.
72
- void core.updateScreen(location).catch(() => {
73
- // Screen updates are best-effort; connection drops / rate limits should not
74
- // surface to the host app's navigation path.
89
+ if (__DEV__) {
90
+ // eslint-disable-next-line no-console -- intentional development diagnostic
91
+ console.log('[Userflow] updateScreen', location, identified ? '(push UpdateClientContext)' : '(buffered until identify)');
92
+ }
93
+ // Mirrors web: only pushes UpdateClientContext after identify; before that the
94
+ // location is remembered and included on the next end-user channel join.
95
+ void isolateAsync('updateScreen', () => core.updateScreen(location), {
96
+ rethrowHostContract: false
97
+ });
98
+ const attrs = screenViewedAttributes(location);
99
+ if (!attrs) return;
100
+ if (!identified) {
101
+ screenViewedAwaitingIdentify = true;
102
+ return;
103
+ }
104
+ screenViewedAwaitingIdentify = false;
105
+ if (__DEV__) {
106
+ // eslint-disable-next-line no-console -- intentional development diagnostic
107
+ console.log('[Userflow] track', SCREEN_VIEWED_EVENT, attrs);
108
+ }
109
+ // Screen views are best-effort; connection drops / rate limits should not
110
+ // surface to the host app's navigation path. Each accepted screen sends
111
+ // UpdateClientContext + TrackEvent (two slots of the 100/min cap).
112
+ void isolateAsync('track', () => core.track(SCREEN_VIEWED_EVENT, attrs), {
113
+ rethrowHostContract: false
114
+ });
75
115
  });
76
116
  });
77
117
  }
@@ -82,11 +122,18 @@ function wireDeepLinking() {
82
122
  startFlowWithToken: token => core.startFlowWithToken(token)
83
123
  });
84
124
  }
125
+ function mergeSystemUserAttributes(attributes) {
126
+ return mergeDeviceContextUserAttributes(mergeHostAppVersionUserAttributes(attributes));
127
+ }
85
128
  async function afterIdentify() {
86
129
  attachFlowSessionEngine(core);
130
+ attachBannerSessionEngine(core);
87
131
  attachClientConditionEngine(core);
88
132
  getPairingController(core).notifyIdentified();
89
133
  lifecycle.reportActivity();
134
+ if (screenViewedAwaitingIdentify) {
135
+ reportCurrentScreen();
136
+ }
90
137
  try {
91
138
  await flushPendingPreviewToken();
92
139
  } catch {
@@ -101,6 +148,15 @@ async function afterIdentify() {
101
148
  export const Userflow = {
102
149
  /** Validate credentials, store configuration, and wire app-lifecycle handling. */
103
150
  init(config) {
151
+ cacheHostAppVersionAtInit({
152
+ ...(config.appVersion !== undefined ? {
153
+ appVersion: config.appVersion
154
+ } : {}),
155
+ ...(config.appBuild !== undefined ? {
156
+ appBuild: config.appBuild
157
+ } : {})
158
+ });
159
+ cacheDeviceContextAtInit();
104
160
  setHostOnNavigate(config.onNavigate);
105
161
  lifecycle.start();
106
162
  network.start();
@@ -119,13 +175,21 @@ export const Userflow = {
119
175
  clearLocalSession: () => {
120
176
  clearFlowSessionEngineLocalSession();
121
177
  core.setFlowSessionId(null);
122
- }
178
+ clearBannerSessionEngineLocalSession();
179
+ core.setBannerSessionId(null);
180
+ evalJsController.reset();
181
+ },
182
+ endDraftSession: endDraftFlowSession,
183
+ cancelPendingDraftEnd
123
184
  });
124
185
  pairing.notifyInitStarted();
125
186
  void pairing.start();
126
- return core.init(config).then(async resolved => {
187
+ return core.init(config).then(resolved => {
127
188
  enableScreenTracking();
128
- await pairing.notifyInitialized();
189
+ // Pairing connect can take the full socket timeout. Identify, and the
190
+ // end-user socket that delivers the preview, must not wait on it.
191
+ // notifyInitialized never rejects; the relay queue covers either order.
192
+ void pairing.notifyInitialized();
129
193
  return resolved;
130
194
  }, error => {
131
195
  pairing.notifyInitFailed(error);
@@ -159,9 +223,13 @@ export const Userflow = {
159
223
  if (previousId != null && previousId !== userId) {
160
224
  resetClientConditionEngine();
161
225
  core.setClientConditions([]);
226
+ clearBannerSessionEngineLocalSession();
227
+ core.setBannerSessionId(null);
228
+ evalJsController.reset();
162
229
  await clearAnonymousId();
230
+ armScreenViewedForNextIdentify();
163
231
  }
164
- await core.identify(userId, attributes, options);
232
+ await core.identify(userId, mergeSystemUserAttributes(attributes), options);
165
233
  await afterIdentify();
166
234
  },
167
235
  /** Identify an anonymous user with a stable auto-generated id stored on device. */
@@ -171,8 +239,12 @@ export const Userflow = {
171
239
  if (previousId != null && previousId !== anonymousId) {
172
240
  resetClientConditionEngine();
173
241
  core.setClientConditions([]);
242
+ clearBannerSessionEngineLocalSession();
243
+ core.setBannerSessionId(null);
244
+ evalJsController.reset();
245
+ armScreenViewedForNextIdentify();
174
246
  }
175
- await core.identify(anonymousId, attributes, options);
247
+ await core.identify(anonymousId, mergeSystemUserAttributes(attributes), options);
176
248
  await afterIdentify();
177
249
  },
178
250
  /**
@@ -189,10 +261,34 @@ export const Userflow = {
189
261
  lifecycle.reportActivity();
190
262
  return core.group(groupId, attributes, options);
191
263
  },
192
- /** Record a custom analytics event for the current user (and group, unless `userOnly`). */
193
- track(name, attributes, options) {
264
+ /**
265
+ * Upsert attributes for the current user without re-identifying.
266
+ * Requires a prior {@link identify}. Flow button "Set user attribute" actions
267
+ * use this path.
268
+ */
269
+ updateUser(attributes) {
194
270
  lifecycle.reportActivity();
195
- return core.track(name, attributes, options);
271
+ return core.updateUser(attributes);
272
+ },
273
+ /**
274
+ * Upsert attributes for the current group / membership without re-grouping.
275
+ * Requires a prior {@link group}.
276
+ */
277
+ updateGroup(attributes, options) {
278
+ lifecycle.reportActivity();
279
+ return core.updateGroup(attributes, options);
280
+ },
281
+ /**
282
+ * Record a custom analytics event for the current user (and group, unless `userOnly`).
283
+ * Operational failures (network, rate limit, unexpected SDK bugs) are isolated and
284
+ * logged; the promise still resolves. `UserflowAuthError` for missing
285
+ * `init` / `identify` or an invalid event name still rejects.
286
+ */
287
+ track(name, attributes, options) {
288
+ return isolateAsync('track', async () => {
289
+ lifecycle.reportActivity();
290
+ await core.track(name, attributes, options);
291
+ }).then(() => undefined);
196
292
  },
197
293
  /** The currently identified user id, or `null` before identify. */
198
294
  getUserId() {
@@ -202,15 +298,36 @@ export const Userflow = {
202
298
  getAttributes() {
203
299
  return core.getAttributes();
204
300
  },
301
+ /**
302
+ * Host app marketing version cached during {@link init}, or `null` before init
303
+ * or when auto-detection and any init override are unavailable.
304
+ */
305
+ getHostAppVersion() {
306
+ return getCachedHostAppVersion();
307
+ },
308
+ /**
309
+ * Platform metadata cached during {@link init} (`sdk`, `deviceOs`, `deviceType`),
310
+ * or `null` before init.
311
+ */
312
+ getDeviceContext() {
313
+ return getCachedDeviceContext();
314
+ },
205
315
  /** The flow session engine (created lazily; attach runs after identify). */
206
316
  getFlowSessionEngine() {
207
317
  return getFlowSessionEngine(core);
208
318
  },
319
+ /** The banner session engine (created lazily; attach runs after identify). */
320
+ getBannerSessionEngine() {
321
+ return getBannerSessionEngine(core);
322
+ },
209
323
  /** Clears the current user identity and disconnects from Userflow. */
210
324
  async reset() {
211
325
  resetClientConditionEngine();
212
326
  resetFlowSessionEngine();
327
+ resetBannerSessionEngine();
328
+ evalJsController.reset();
213
329
  core.reset();
330
+ armScreenViewedForNextIdentify();
214
331
  await clearAnonymousId();
215
332
  },
216
333
  /** Remove app-lifecycle, network, and deep-link subscriptions (call on unmount / teardown). */
@@ -218,7 +335,9 @@ export const Userflow = {
218
335
  getPairingController(core).stop();
219
336
  lifecycle.stop();
220
337
  network.stop();
338
+ evalJsController.reset();
221
339
  disableScreenTracking();
340
+ screenViewedAwaitingIdentify = false;
222
341
  stopDeepLinking();
223
342
  },
224
343
  /**
@@ -228,7 +347,9 @@ export const Userflow = {
228
347
  * host-app activity the SDK does not observe.
229
348
  */
230
349
  reportActivity() {
231
- lifecycle.reportActivity();
350
+ isolateSync('reportActivity', () => {
351
+ lifecycle.reportActivity();
352
+ });
232
353
  },
233
354
  /**
234
355
  * Report the active React Navigation (or manual) screen name. Prefer
@@ -237,9 +358,11 @@ export const Userflow = {
237
358
  * with `screen` set (Expo Router pathnames use `path` via the Expo helper).
238
359
  */
239
360
  updateScreen(screenName) {
240
- handleScreenChange(screenName ? {
241
- screen: screenName
242
- } : undefined);
361
+ isolateSync('updateScreen', () => {
362
+ handleScreenChange(screenName ? {
363
+ screen: screenName
364
+ } : undefined);
365
+ });
243
366
  },
244
367
  /**
245
368
  * Sticky header/footer insets applied when scrolling tooltip targets into
@@ -254,6 +377,65 @@ export const Userflow = {
254
377
  */
255
378
  setCustomScrollIntoView(fn) {
256
379
  setCustomScrollIntoViewConfig(fn);
380
+ },
381
+ /**
382
+ * When true (default), tooltip cutout bands and step-transition exit block
383
+ * taps on the host app underneath. Pass `false` to restore legacy pass-through
384
+ * tooltip backdrop behavior (dim bands only; `tooltipTargetBlocked` hole seal
385
+ * is unchanged). Modals always block. Takes effect on the next surface re-render.
386
+ */
387
+ setSurfaceInteractionBlocking(enabled) {
388
+ setSurfaceInteractionBlockingConfig(enabled);
389
+ },
390
+ /**
391
+ * Values exposed to Evaluate JavaScript as `window.userflowContext.host`
392
+ * (language, theme, tab bar height, and anything else the page used to read
393
+ * from the DOM). Replaces the previous host bag.
394
+ */
395
+ setEvalJsContext(values) {
396
+ evalJsController.setHostContext(values ?? {});
397
+ },
398
+ /**
399
+ * Log the host app's native marketing version (store version), not
400
+ * {@link SDK_VERSION}, and the platform OS (`ios` / `android` / …).
401
+ * Prefers `expo-application` / `expo-constants` when present; otherwise reads
402
+ * `NativeModules.RNDeviceInfo` from the bundled device-info native module.
403
+ */
404
+ logHostAppVersion() {
405
+ logHostAppVersionToConsole();
406
+ },
407
+ /**
408
+ * Log cached user-attribute values (`sdk`, `device_os`, `device_type`).
409
+ * Requires {@link init}; before init, logs that init is required.
410
+ */
411
+ logDeviceContext() {
412
+ logDeviceContextToConsole();
257
413
  }
258
414
  };
415
+ setEvalJsBridgeHandlers({
416
+ track: (name, attributes) => {
417
+ void Userflow.track(name, attributes);
418
+ },
419
+ updateUser: attributes => {
420
+ void Userflow.updateUser(attributes);
421
+ },
422
+ updateGroup: (attributes, options) => {
423
+ void Userflow.updateGroup(attributes, options?.membership ? {
424
+ membership: options.membership
425
+ } : undefined);
426
+ },
427
+ openUrl: url => {
428
+ void isolateAsync('eval-js-open-url', () => openFlowNavigateUrl(url), {
429
+ rethrowHostContract: false
430
+ });
431
+ },
432
+ endFlow: sessionIds => {
433
+ void isolateAsync('eval-js-end-flow', () => endEvalJsFlowSession(sessionIds), {
434
+ rethrowHostContract: false
435
+ });
436
+ },
437
+ warn: message => {
438
+ console.warn(message);
439
+ }
440
+ });
259
441
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["anchorChangeTicker","notifyAnchorScreenChange","setCustomScrollIntoView","setCustomScrollIntoViewConfig","setScrollPadding","setScrollPaddingConfig","clearAnonymousId","getOrCreateAnonymousId","didHandleURL","flushPendingPreviewToken","startDeepLinking","stopDeepLinking","LifecycleController","setHostOnNavigate","NetworkController","getPairingController","installPairingController","attachClientConditionEngine","resetClientConditionEngine","attachFlowSessionEngine","clearFlowSessionEngineLocalSession","getFlowSessionEngine","hasActiveFlowSession","resetFlowSessionEngine","getUserflowCore","disableScreenTracking","enableScreenTracking","handleScreenChange","setScreenChangeReporter","SDK_VERSION","UserflowProvider","useUserflow","useFlowSessionState","useUserflowScreen","useUserflowAnchor","__userflowAutoAnchor","useUserflowScrollContainer","INACTIVITY_TIMEOUT_MS","SESSION_STALE_AFTER_BACKGROUND_MS","SUSPEND_GRACE_MS","inspectPairingDeepLink","isPairingAttempt","parsePairingDeepLink","isUserflowPairingUrl","PreviewModeBanner","core","lifecycle","suspend","resume","flushPendingSends","clearLocalSession","setFlowSessionId","ensureAlive","hasActiveSession","network","wireScreenChangeReporter","location","reportActivity","screenKey","path","screen","notify","__DEV__","identified","getUserId","console","log","updateScreen","catch","wireDeepLinking","isIdentified","startFlowWithToken","token","afterIdentify","notifyIdentified","Userflow","init","config","onNavigate","start","pairing","pairingEndpoint","undefined","notifyInitStarted","then","resolved","notifyInitialized","error","notifyInitFailed","handlePairingUrl","url","handleUrl","exitPreview","setOnNavigate","handler","identify","userId","attributes","options","previousId","setClientConditions","identifyAnonymous","anonymousId","group","groupId","track","name","getAttributes","reset","teardown","stop","screenName","padding","fn"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,OAAO,yBAAsB;AAC7B,SAASA,kBAAkB,QAAQ,iCAA8B;AACjE,SAASC,wBAAwB,QAAQ,gCAA6B;AACtE,SACEC,uBAAuB,IAAIC,6BAA6B,EACxDC,gBAAgB,IAAIC,sBAAsB,QAGrC,2BAAwB;AAC/B,SAASC,gBAAgB,EAAEC,sBAAsB,QAAQ,kBAAe;AACxE,SACEC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,EAChBC,eAAe,QACV,kBAAe;AACtB,SAASC,mBAAmB,QAAQ,gBAAa;AACjD,SAASC,iBAAiB,QAAkC,qCAAkC;AAC9F,SAASC,iBAAiB,QAAQ,cAAW;AAC7C,SAASC,oBAAoB,EAAEC,wBAAwB,QAAQ,6BAA0B;AACzF,SACEC,2BAA2B,EAC3BC,0BAA0B,QACrB,+BAA4B;AACnC,SACEC,uBAAuB,EACvBC,kCAAkC,EAClCC,oBAAoB,EACpBC,oBAAoB,EACpBC,sBAAsB,QACjB,yBAAsB;AAC7B,SAASC,eAAe,QAAQ,2BAAwB;AACxD,SACEC,qBAAqB,EACrBC,oBAAoB,EACpBC,kBAAkB,EAClBC,uBAAuB,QAClB,oBAAiB;AAExB,SAASC,WAAW,QAAQ,cAAW;AACvC,SAASC,gBAAgB,EAAEC,WAAW,QAAQ,+BAA4B;AAE1E,SAASC,mBAAmB,QAAQ,kCAA+B;AAEnE,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,gCAA6B;AAC/D,SAASC,oBAAoB,QAAQ,yBAAsB;AAC3D,SAASC,0BAA0B,QAAQ,yCAAsC;AAOjF,SACEC,qBAAqB,EACrBC,iCAAiC,EACjCC,gBAAgB,QACX,gBAAa;AACpB,SACEC,sBAAsB,EACtBC,gBAAgB,EAChBC,oBAAoB,EACp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,CAAC,CAAC;EAC7B,CAAC;EACD;EACAtF,oBAAoBA,CAAA,EAAG;IACrB,OAAOA,oBAAoB,CAACwB,IAAI,CAAC;EACnC,CAAC;EACD;EACA,MAAM+D,KAAKA,CAAA,EAAkB;IAC3B1F,0BAA0B,CAAC,CAAC;IAC5BK,sBAAsB,CAAC,CAAC;IACxBsB,IAAI,CAAC+D,KAAK,CAAC,CAAC;IACZ,MAAMtG,gBAAgB,CAAC,CAAC;EAC1B,CAAC;EACD;EACAuG,QAAQA,CAAA,EAAS;IACf9F,oBAAoB,CAAC8B,IAAI,CAAC,CAACiE,IAAI,CAAC,CAAC;IACjChE,SAAS,CAACgE,IAAI,CAAC,CAAC;IAChBxD,OAAO,CAACwD,IAAI,CAAC,CAAC;IACdrF,qBAAqB,CAAC,CAAC;IACvBd,eAAe,CAAC,CAAC;EACnB,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACE8C,cAAcA,CAAA,EAAS;IACrBX,SAAS,CAACW,cAAc,CAAC,CAAC;EAC5B,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACEU,YAAYA,CAAC4C,UAA8B,EAAQ;IACjDpF,kBAAkB,CAACoF,UAAU,GAAG;MAAEnD,MAAM,EAAEmD;IAAW,CAAC,GAAG7B,SAAS,CAAC;EACrE,CAAC;EACD;AACF;AACA;AACA;EACE9E,gBAAgBA,CAAC4G,OAAyC,EAAQ;IAChE3G,sBAAsB,CAAC2G,OAAO,CAAC;EACjC,CAAC;EACD;AACF;AACA;AACA;EACE9G,uBAAuBA,CAAC+G,EAA2C,EAAQ;IACzE9G,6BAA6B,CAAC8G,EAAE,CAAC;EACnC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["anchorChangeTicker","notifyAnchorScreenChange","setCustomScrollIntoView","setCustomScrollIntoViewConfig","setScrollPadding","setScrollPaddingConfig","clearAnonymousId","getOrCreateAnonymousId","didHandleURL","flushPendingPreviewToken","startDeepLinking","stopDeepLinking","cacheDeviceContextAtInit","getCachedDeviceContext","logDeviceContext","logDeviceContextToConsole","mergeDeviceContextUserAttributes","setEvalJsBridgeHandlers","evalJsController","cacheHostAppVersionAtInit","getCachedHostAppVersion","logHostAppVersion","logHostAppVersionToConsole","mergeHostAppVersionUserAttributes","LifecycleController","openFlowNavigateUrl","setHostOnNavigate","NetworkController","getPairingController","installPairingController","attachBannerSessionEngine","clearBannerSessionEngineLocalSession","getBannerSessionEngine","resetBannerSessionEngine","attachClientConditionEngine","resetClientConditionEngine","attachFlowSessionEngine","cancelPendingDraftEnd","clearFlowSessionEngineLocalSession","endDraftFlowSession","endEvalJsFlowSession","getFlowSessionEngine","hasActiveFlowSession","resetFlowSessionEngine","isolateAsync","isolateSync","getUserflowCore","disableScreenTracking","enableScreenTracking","getCurrentScreenLocation","handleScreenChange","reportCurrentScreen","SCREEN_VIEWED_EVENT","screenViewedAttributes","setScreenChangeReporter","setSurfaceInteractionBlocking","setSurfaceInteractionBlockingConfig","SDK_VERSION","EmbedBannerPlaceholder","UserflowProvider","useUserflow","useFlowSessionState","useUserflowScreen","useUserflowAnchor","__userflowAutoAnchor","useUserflowScrollContainer","INACTIVITY_TIMEOUT_MS","SESSION_STALE_AFTER_BACKGROUND_MS","SUSPEND_GRACE_MS","inspectPairingDeepLink","isPairingAttempt","parsePairingDeepLink","isUserflowPairingUrl","PreviewModeBanner","core","lifecycle","suspend","resume","flushPendingSends","clearLocalSession","setFlowSessionId","setBannerSessionId","ensureAlive","hasActiveSession","onScreenResume","network","screenViewedAwaitingIdentify","armScreenViewedForNextIdentify","wireScreenChangeReporter","location","reportActivity","screenKey","path","screen","notify","identified","getUserId","__DEV__","console","log","updateScreen","rethrowHostContract","attrs","track","wireDeepLinking","isIdentified","startFlowWithToken","token","mergeSystemUserAttributes","attributes","afterIdentify","notifyIdentified","Userflow","init","config","appVersion","undefined","appBuild","onNavigate","start","pairing","pairingEndpoint","reset","endDraftSession","notifyInitStarted","then","resolved","notifyInitialized","error","notifyInitFailed","handlePairingUrl","url","handleUrl","exitPreview","setOnNavigate","handler","identify","userId","options","previousId","setClientConditions","identifyAnonymous","anonymousId","group","groupId","updateUser","updateGroup","name","getAttributes","getHostAppVersion","getDeviceContext","teardown","stop","screenName","padding","fn","enabled","setEvalJsContext","values","setHostContext","membership","openUrl","endFlow","sessionIds","warn","message"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA,OAAO,yBAAsB;AAC7B,SAASA,kBAAkB,QAAQ,iCAA8B;AACjE,SAASC,wBAAwB,QAAQ,gCAA6B;AACtE,SACEC,uBAAuB,IAAIC,6BAA6B,EACxDC,gBAAgB,IAAIC,sBAAsB,QAGrC,2BAAwB;AAC/B,SAASC,gBAAgB,EAAEC,sBAAsB,QAAQ,kBAAe;AACxE,SACEC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,EAChBC,eAAe,QACV,kBAAe;AACtB,SACEC,wBAAwB,EACxBC,sBAAsB,EACtBC,gBAAgB,IAAIC,yBAAyB,EAC7CC,gCAAgC,QAE3B,oBAAiB;AACxB,SAASC,uBAAuB,QAAQ,0BAAuB;AAC/D,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SACEC,yBAAyB,EACzBC,uBAAuB,EACvBC,iBAAiB,IAAIC,0BAA0B,EAC/CC,iCAAiC,QAE5B,qBAAkB;AACzB,SAASC,mBAAmB,QAAQ,gBAAa;AACjD,SACEC,mBAAmB,EACnBC,iBAAiB,QAEZ,qCAAkC;AACzC,SAASC,iBAAiB,QAAQ,cAAW;AAC7C,SAASC,oBAAoB,EAAEC,wBAAwB,QAAQ,6BAA0B;AACzF,SACEC,yBAAyB,EACzBC,oCAAoC,EACpCC,sBAAsB,EACtBC,wBAAwB,QACnB,2BAAwB;AAC/B,SACEC,2BAA2B,EAC3BC,0BAA0B,QACrB,+BAA4B;AACnC,SACEC,uBAAuB,EACvBC,qBAAqB,EACrBC,kCAAkC,EAClCC,mBAAmB,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AACC,OAAO,CAAC;EACvB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -59,6 +59,7 @@ export class LifecycleController {
59
59
  this.clearLocalSession = deps.clearLocalSession;
60
60
  this.ensureAlive = deps.ensureAlive;
61
61
  this.hasActiveSession = deps.hasActiveSession;
62
+ this.onScreenResume = deps.onScreenResume;
62
63
  this.scheduler = deps.scheduler ?? defaultScheduler;
63
64
  this.now = deps.now ?? (() => Date.now());
64
65
  this.suspendGraceMs = deps.suspendGraceMs ?? SUSPEND_GRACE_MS;
@@ -155,6 +156,7 @@ export class LifecycleController {
155
156
  this.resume();
156
157
  this.suspended = false;
157
158
  this.scheduleIdleTimer();
159
+ this.onScreenResume?.();
158
160
  }
159
161
  scheduleGraceTimer() {
160
162
  this.clearGraceTimer();
@@ -1 +1 @@
1
- {"version":3,"names":["AppState","INACTIVITY_TIMEOUT_MS","SESSION_STALE_AFTER_BACKGROUND_MS","SUSPEND_GRACE_MS","defaultScheduler","setTimeout","handler","ms","clearTimeout","handle","defaultSubscribeAppState","subscription","addEventListener","remove","LifecycleController","unsubscribeAppState","idleTimer","graceTimer","backgroundedAt","appIsActive","started","suspended","constructor","deps","suspend","resume","clearLocalSession","ensureAlive","hasActiveSession","scheduler","now","Date","suspendGraceMs","getCurrentAppState","currentState","subscribeAppState","start","status","handleAppStateChange","scheduleIdleTimer","stop","clearIdleTimer","clearGraceTimer","reportActivity","onForeground","onBackground","scheduleGraceTimer","awayMs"],"sourceRoot":"../../src","sources":["lifecycle.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AAGvC;AACA,OAAO,MAAMC,qBAAqB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;;AAElD;AACA,OAAO,MAAMC,iCAAiC,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;;AAE9D;AACA;AACA;AACA;AACA,OAAO,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,IAAI;IACvB,CAAC,EAAEpB,qBAAqB,CAAC;EAC3B;EAEQwC,cAAcA,CAAA,EAAS;IAC7B,IAAI,IAAI,CAACzB,SAAS,IAAI,IAAI,EAAE;MAC1B,IAAI,CAACa,SAAS,CAACrB,YAAY,CAAC,IAAI,CAACQ,SAAS,CAAC;MAC3C,IAAI,CAACA,SAAS,GAAG,IAAI;IACvB;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["AppState","INACTIVITY_TIMEOUT_MS","SESSION_STALE_AFTER_BACKGROUND_MS","SUSPEND_GRACE_MS","defaultScheduler","setTimeout","handler","ms","clearTimeout","handle","defaultSubscribeAppState","subscription","addEventListener","remove","LifecycleController","unsubscribeAppState","idleTimer","graceTimer","backgroundedAt","appIsActive","started","suspended","constructor","deps","suspend","resume","clearLocalSession","ensureAlive","hasActiveSession","onScreenResume","scheduler","now","Date","suspendGraceMs","getCurrentAppState","currentState","subscribeAppState","start","status","handleAppStateChange","scheduleIdleTimer","stop","clearIdleTimer","clearGraceTimer","reportActivity","onForeground","onBackground","scheduleGraceTimer","awayMs"],"sourceRoot":"../../src","sources":["lifecycle.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AAGvC;AACA,OAAO,MAAMC,qBAAqB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;;AAElD;AACA,OAAO,MAAMC,iCAAiC,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;;AAE9D;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,KAAK;AAwCrC,MAAMC,gBAAoC,GAAG;EAC3CC,UAAU,EAAEA,CAACC,OAAO,EAAEC,EAAE,KAAKF,UAAU,CAACC,OAAO,EAAEC,EAAE,CAAC;EACpDC,YAAY,EAAGC,MAAM,IAAKD,YAAY,CAACC,MAAM;AAC/C,CAAC;AAED,SAASC,w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AAI,CAACc,SAAS,CAACtB,YAAY,CAAC,IAAI,CAACQ,SAAS,CAAC;MAC3C,IAAI,CAACA,SAAS,GAAG,IAAI;IACvB;EACF;AACF","ignoreList":[]}
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  import { useNavigationContainerRef } from '@react-navigation/native';
4
- import { cloneElement, isValidElement, useCallback, useEffect } from 'react';
4
+ import { cloneElement, isValidElement, useCallback, useEffect, useRef } from 'react';
5
+ import { isolateSync } from "../runtime/isolateCall.js";
5
6
  import { handleScreenChange } from "../screenTracker.js";
6
7
  import { chainCallbacks } from "./chainCallbacks.js";
7
8
  import { getActiveRouteName } from "./getActiveRouteName.js";
9
+ import { isOverlayPresentation, readNavigationPresentation } from "./isOverlayPresentation.js";
8
10
  import { setReactNavigationRef } from "./openFlowNavigateUrl.js";
9
11
  function assignRef(ref, value) {
10
12
  if (typeof ref === 'function') {
@@ -33,25 +35,35 @@ export function WithUserflowReactNavigation({
33
35
  children
34
36
  }) {
35
37
  const navigationRef = useNavigationContainerRef();
38
+ const overlayWasFocusedRef = useRef(false);
36
39
  useEffect(() => {
37
40
  setReactNavigationRef(navigationRef);
38
41
  return () => {
39
42
  setReactNavigationRef(null);
40
43
  };
41
44
  }, [navigationRef]);
45
+ const reportFocusedScreen = useCallback(state => {
46
+ isolateSync('react-navigation-screen', () => {
47
+ if (isOverlayPresentation(readNavigationPresentation(navigationRef))) {
48
+ overlayWasFocusedRef.current = true;
49
+ return;
50
+ }
51
+ const name = getActiveRouteName(state ?? navigationRef.getRootState());
52
+ handleScreenChange(name ? {
53
+ screen: name
54
+ } : undefined, overlayWasFocusedRef.current ? {
55
+ force: true
56
+ } : undefined);
57
+ overlayWasFocusedRef.current = false;
58
+ });
59
+ }, [navigationRef]);
42
60
  const handleReady = useCallback(() => {
43
61
  setReactNavigationRef(navigationRef);
44
- const name = getActiveRouteName(navigationRef.getRootState());
45
- handleScreenChange(name ? {
46
- screen: name
47
- } : undefined);
48
- }, [navigationRef]);
62
+ reportFocusedScreen();
63
+ }, [navigationRef, reportFocusedScreen]);
49
64
  const handleStateChange = useCallback(state => {
50
- const name = getActiveRouteName(state ?? navigationRef.getRootState());
51
- handleScreenChange(name ? {
52
- screen: name
53
- } : undefined);
54
- }, [navigationRef]);
65
+ reportFocusedScreen(state);
66
+ }, [reportFocusedScreen]);
55
67
  if (! /*#__PURE__*/isValidElement(children)) {
56
68
  throw new Error('WithUserflowReactNavigation expects a single React element child.');
57
69
  }
@@ -1 +1 @@
1
- {"version":3,"names":["useNavigationContainerRef","cloneElement","isValidElement","useCallback","useEffect","handleScreenChange","chainCallbacks","getActiveRouteName","setReactNavigationRef","assignRef","ref","value","current","mergeRefs","refs","WithUserflowReactNavigation","children","navigationRef","handleReady","name","getRootState","screen","undefined","handleStateChange","state","Error","childProps","props","onReady","onStateChange"],"sourceRoot":"../../../src","sources":["navigation/WithUserflowReactNavigation.tsx"],"mappings":";;AAAA,SAASA,yBAAyB,QAAQ,0BAA0B;AAMpE,SAASC,YAAY,EAAEC,cAAc,EAAEC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAG5E,SAASC,kBAAkB,QAAQ,qBAAkB;AAErD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,qBAAqB,QAAQ,0BAAuB;AAY7D,SAASC,SAASA,CAAIC,GAA6B,EAAEC,KAAe,EAAQ;EAC1E,IAAI,OAAOD,GAAG,KAAK,UAAU,EAAE;IAC7BA,GAAG,CAACC,KAAK,CAAC;EACZ,CAAC,MAAM,IAAID,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAI,SAAS,IAAIA,GAAG,EAAE;IACpEA,GAAG,CAAsCE,OAAO,GAAGD,KAAK;EAC3D;AACF;AAEA,SAASE,SAASA,CAAI,GAAGC,IAAqC,EAAwB;EACpF,OAAQH,KAAK,IAAK;IAChB,KAAK,MAAMD,GAAG,IAAII,IAAI,E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cAAc,CAACoB,UAAU,CAACE,OAAO,EAAEV,WAAW,CAAC,IAAIA,WAAW;IACvEW,aAAa,EAAEvB,cAAc,CAACoB,UAAU,CAACG,aAAa,EAAEN,iBAAiB,CAAC,IAAIA;EAChF,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["useNavigationContainerRef","cloneElement","isValidElement","useCallback","useEffect","useRef","isolateSync","handleScreenChange","chainCallbacks","getActiveRouteName","isOverlayPresentation","readNavigationPresentation","setReactNavigationRef","assignRef","ref","value","current","mergeRefs","refs","WithUserflowReactNavigation","children","navigationRef","overlayWasFocusedRef","reportFocusedScreen","state","name","getRootState","screen","undefined","force","handleReady","handleStateChange","Error","childProps","props","onReady","onStateChange"],"sourceRoot":"../../../src","sources":["navigation/WithUserflowReactNavigation.tsx"],"mappings":";;AAAA,SAASA,yBAAyB,QAAQ,0BAA0B;AAMpE,SAASC,YAAY,EAAEC,cAAc,EAAEC,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAGpF,SAASC,WAAW,QAAQ,2BAAwB;AACpD,SAASC,kBAAkB,QAAQ,qBAAkB;AAErD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,qBAAqB,EAAEC,0BAA0B,QAAQ,4BAAyB;AAC3F,SAASC,qBAAqB,QAAQ,0BAAuB;AAY7D,SAASC,SAASA,CAAIC,GAA6B,EAAEC,KAAe,EAAQ;EAC1E,IAAI,OAAOD,GAAG,KAAK,UAAU,EAAE;IAC7BA,GAAG,CAACC,KAAK,CAAC;EACZ,CAAC,MAAM,IAAID,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAI,SAAS,IAAIA,GAAG,EAAE;IACpEA,GAAG,CAAsCE,OAAO,GAAGD,KAAK;EAC3D;AACF;AAEA,SAASE,SAASA,CAAI,GAAGC,IAAqC,EAAwB;EACpF,OAAQH,KAAK,IAAK;IAChB,KA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AG5B,WAAW,CAClCqB,KAAuB,IAAK;IAC3BD,mBAAmB,CAACC,KAAK,CAAC;EAC5B,CAAC,EACD,CAACD,mBAAmB,CACtB,CAAC;EAED,IAAI,eAACrB,cAAc,CAACkB,QAAQ,CAAC,EAAE;IAC7B,MAAM,IAAIY,KAAK,CAAC,mEAAmE,CAAC;EACtF;EAEA,MAAMC,UAAU,GAAGb,QAAQ,CAACc,KAAK;EAEjC,oBAAOjC,YAAY,CAACmB,QAAQ,EAAE;IAC5BN,GAAG,EAAEG,SAAS,CAACgB,UAAU,CAACnB,GAAG,EAAEO,aAAa,CAAC;IAC7Cc,OAAO,EAAE3B,cAAc,CAACyB,UAAU,CAACE,OAAO,EAAEL,WAAW,CAAC,IAAIA,WAAW;IACvEM,aAAa,EAAE5B,cAAc,CAACyB,UAAU,CAACG,aAAa,EAAEL,iBAAiB,CAAC,IAAIA;EAChF,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ /** React Navigation `options.presentation` values that are overlays, not screens. */
4
+ const OVERLAY_PRESENTATIONS = new Set(['modal', 'transparentModal', 'containedModal', 'containedTransparentModal', 'fullScreenModal', 'formSheet', 'pageSheet']);
5
+
6
+ /** True when the focused route is a modal / sheet overlay, not a screen navigation. */
7
+ export function isOverlayPresentation(presentation) {
8
+ return typeof presentation === 'string' && OVERLAY_PRESENTATIONS.has(presentation);
9
+ }
10
+ function presentationFromHolder(holder) {
11
+ if (holder == null || typeof holder !== 'object') return undefined;
12
+ const getCurrentOptions = holder.getCurrentOptions;
13
+ if (typeof getCurrentOptions !== 'function') return undefined;
14
+ try {
15
+ return getCurrentOptions()?.presentation;
16
+ } catch {
17
+ return undefined;
18
+ }
19
+ }
20
+
21
+ /**
22
+ * Reads `presentation` from a React Navigation container ref.
23
+ * Accepts either a `NavigationContainerRef` or a `NavigationContainerRefWithCurrent`
24
+ * (`ref.current` is checked when the wrapper itself has no `getCurrentOptions`).
25
+ */
26
+ export function readNavigationPresentation(ref) {
27
+ const fromRef = presentationFromHolder(ref);
28
+ if (fromRef !== undefined) return fromRef;
29
+ if (ref != null && typeof ref === 'object' && 'current' in ref) {
30
+ return presentationFromHolder(ref.current);
31
+ }
32
+ return undefined;
33
+ }
34
+ function subscribeHolder(holder, listener) {
35
+ if (holder == null || typeof holder !== 'object') return undefined;
36
+ const addListener = holder.addListener;
37
+ if (typeof addListener !== 'function') return undefined;
38
+ try {
39
+ const unsubscribe = addListener.call(holder, 'state', listener);
40
+ return typeof unsubscribe === 'function' ? unsubscribe : undefined;
41
+ } catch {
42
+ return undefined;
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Subscribes to React Navigation container `state` events.
48
+ * Accepts a `NavigationContainerRef` or `NavigationContainerRefWithCurrent`.
49
+ */
50
+ export function subscribeNavigationState(ref, listener) {
51
+ const fromRef = subscribeHolder(ref, listener);
52
+ if (fromRef) return fromRef;
53
+ if (ref != null && typeof ref === 'object' && 'current' in ref) {
54
+ return subscribeHolder(ref.current, listener);
55
+ }
56
+ return undefined;
57
+ }
58
+ //# sourceMappingURL=isOverlayPresentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["OVERLAY_PRESENTATIONS","Set","isOverlayPresentation","presentation","has","presentationFromHolder","holder","undefined","getCurrentOptions","readNavigationPresentation","ref","fromRef","current","subscribeHolder","listener","addListener","unsubscribe","call","subscribeNavigationState"],"sourceRoot":"../../../src","sources":["navigation/isOverlayPresentation.ts"],"mappings":";;AAAA;AACA,MAAMA,qBAAqB,GAAG,IAAIC,GAAG,CAAC,CACpC,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,WAAW,EACX,WAAW,CACZ,CAAC;;AAEF;AACA,OAAO,SAASC,qBAAqBA,CAACC,YAAqB,EAAW;EACpE,OAAO,OAAOA,YAAY,KAAK,QAAQ,IAAIH,qBAAqB,CAACI,GAAG,CAACD,YAAY,CAAC;AACpF;AAMA,SAAS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