@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
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { Linking } from 'react-native';
4
4
  import { isSafeUrl, openSafeUrl } from "../content/openSafeUrl.js";
5
+ import { isolateAsync, isolateSync } from "../runtime/isolateCall.js";
5
6
  let hostOnNavigate = null;
6
7
  let navigationRef = null;
7
8
  let expoRouter = null;
@@ -63,7 +64,9 @@ export async function openFlowNavigateUrl(url) {
63
64
  const trimmed = url.trim();
64
65
  if (!trimmed) return;
65
66
  if (hostOnNavigate) {
66
- await hostOnNavigate(trimmed);
67
+ await isolateAsync('onNavigate', async () => {
68
+ await hostOnNavigate(trimmed);
69
+ });
67
70
  return;
68
71
  }
69
72
  if (isExternalNavigateUrl(trimmed)) {
@@ -72,13 +75,17 @@ export async function openFlowNavigateUrl(url) {
72
75
  }
73
76
  if (isInAppNavigateUrl(trimmed)) {
74
77
  if (expoRouter) {
75
- expoRouter.push(normalizeInAppPath(trimmed));
78
+ isolateSync('onNavigate', () => {
79
+ expoRouter.push(normalizeInAppPath(trimmed));
80
+ });
76
81
  return;
77
82
  }
78
83
  if (navigationRef?.isReady()) {
79
- const name = routeNameFromPath(trimmed);
80
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- route names are host-defined
81
- navigationRef.navigate(name);
84
+ isolateSync('onNavigate', () => {
85
+ const name = routeNameFromPath(trimmed);
86
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- route names are host-defined
87
+ navigationRef.navigate(name);
88
+ });
82
89
  return;
83
90
  }
84
91
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Linking","isSafeUrl","openSafeUrl","hostOnNavigate","navigationRef","expoRouter","setHostOnNavigate","handler","setReactNavigationRef","ref","setExpoRouterNavigator","router","isExternalNavigateUrl","url","isInAppNavigateUrl","trimmed","trim","test","normalizeInAppPath","startsWith","routeNameFromPath","path","normalized","replace","first","split","openFlowNavigateUrl","push","isReady","name","navigate","openURL","resetFlowNavigateRegistryForTests"],"sourceRoot":"../../../src","sources":["navigation/openFlowNavigateUrl.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,cAAc;AAEtC,SAASC,SAAS,EAAEC,WAAW,QAAQ,2BAAwB;AAQ/D,IAAIC,cAA0C,GAAG,IAAI;AACrD,IAAIC,aAA2D,GAAG,IAAI;AACtE,IAAIC,UAAiC,GAAG,IAAI;;AAE5C;AACA,OAAO,SAASC,iBAAiBA,CAACC,OAA+C,EAAQ;EACvFJ,cAAc,GAAGI,OAAO,IAAI,IAAI;AAClC;;AAEA;AAC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D,OAAO,EAAE;EAEd,IAAIZ,cAAc,EAAE;IAClB,MAAMA,cAAc,CAACY,OAAO,CAAC;IAC7B;EACF;EAEA,IAAIH,qBAAqB,CAACG,OAAO,CAAC,EAAE;IAClC,MAAMb,WAAW,CAACa,OAAO,CAAC;IAC1B;EACF;EAEA,IAAID,kBAAkB,CAACC,OAAO,CAAC,EAAE;IAC/B,IAAIV,UAAU,EAAE;MACdA,UAAU,CAACsB,IAAI,CAACT,kBAAkB,CAACH,OAAO,CAAC,CAAC;MAC5C;IACF;IACA,IAAIX,aAAa,EAAEwB,OAAO,CAAC,CAAC,EAAE;MAC5B,MAAMC,IAAI,GAAGT,iBAAiB,CAACL,OAAO,CAAC;MACvC;MACCX,aAAa,CAA2C0B,QAAQ,CAACD,IAAW,CAAC;MAC9E;IACF;EACF;;EAEA;EACA,IAAI;IACF,MAAM7B,OAAO,CAAC+B,OAAO,CAAChB,OAAO,CAAC;EAChC,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;AACA,OAAO,SAASiB,iCAAiCA,CAAA,EAAS;EACxD7B,cAAc,GAAG,IAAI;EACrBC,aAAa,GAAG,IAAI;EACpBC,UAAU,GAAG,IAAI;AACnB","ignoreList":[]}
1
+ {"version":3,"names":["Linking","isSafeUrl","openSafeUrl","isolateAsync","isolateSync","hostOnNavigate","navigationRef","expoRouter","setHostOnNavigate","handler","setReactNavigationRef","ref","setExpoRouterNavigator","router","isExternalNavigateUrl","url","isInAppNavigateUrl","trimmed","trim","test","normalizeInAppPath","startsWith","routeNameFromPath","path","normalized","replace","first","split","openFlowNavigateUrl","push","isReady","name","navigate","openURL","resetFlowNavigateRegistryForTests"],"sourceRoot":"../../../src","sources":["navigation/openFlowNavigateUrl.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,cAAc;AAEtC,SAASC,SAAS,EAAEC,WAAW,QAAQ,2BAAwB;AAC/D,SAASC,YAAY,EAAEC,WAAW,QAAQ,2BAAwB;AAQlE,IAAIC,cA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B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeI,mBAAmBA,CAACb,GAAW,EAAiB;EACpE,MAAME,OAAO,GAAGF,GAAG,CAACG,IAAI,CAAC,CAAC;EAC1B,IAAI,CAACD,OAAO,EAAE;EAEd,IAAIZ,cAAc,EAAE;IAClB,MAAMF,YAAY,CAAC,YAAY,EAAE,YAAY;MAC3C,MAAME,cAAc,CAAEY,OAAO,CAAC;IAChC,CAAC,CAAC;IACF;EACF;EAEA,IAAIH,qBAAqB,CAACG,OAAO,CAAC,EAAE;IAClC,MAAMf,WAAW,CAACe,OAAO,CAAC;IAC1B;EACF;EAEA,IAAID,kBAAkB,CAACC,OAAO,CAAC,EAAE;IAC/B,IAAIV,UAAU,EAAE;MACdH,WAAW,CAAC,YAAY,EAAE,MAAM;QAC9BG,UAAU,CAAEsB,IAAI,CAACT,kBAAkB,CAACH,OAAO,CAAC,CAAC;MAC/C,CAAC,CAAC;MACF;IACF;IACA,IAAIX,aAAa,EAAEwB,OAAO,CAAC,CAAC,EAAE;MAC5B1B,WAAW,CAAC,YAAY,EAAE,MAAM;QAC9B,MAAM2B,IAAI,GAAGT,iBAAiB,CAACL,OAAO,CAAC;QACvC;QACCX,aAAa,CAA2C0B,QAAQ,CAACD,IAAW,CAAC;MAChF,CAAC,CAAC;MACF;IACF;EACF;;EAEA;EACA,IAAI;IACF,MAAM/B,OAAO,CAACiC,OAAO,CAAChB,OAAO,CAAC;EAChC,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;AACA,OAAO,SAASiB,iCAAiCA,CAAA,EAAS;EACxD7B,cAAc,GAAG,IAAI;EACrBC,aAAa,GAAG,IAAI;EACpBC,UAAU,GAAG,IAAI;AACnB","ignoreList":[]}
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  import { DEFAULT_PAIRING_ENDPOINT, PairingEngine } from '@userflow-tech/core';
4
+ import { decodePairingJwt, isPairingJwtExpired } from '@userflow-tech/protocol';
4
5
  import { AppState, Linking, Platform } from 'react-native';
6
+ import { clearFiberAnchorCache } from "../anchors/fiberAnchorCache.js";
7
+ import { evalJsController } from "../evalJs/evalJsController.js";
5
8
  import { inspectPairingDeepLink, isPairingAttempt } from "./deepLink.js";
6
- import { defaultPairingLogger, pairingAttemptRejectionMessage, pairingConnectFailedMessage, pairingLinkDeferredMessage, pairingLinkInitFailedMessage, pairingListenerSetupFailedMessage, pairingTokenStoreClearFailedMessage } from "./diagnostics.js";
9
+ import { getOrCreatePairingDeviceId } from "./deviceId.js";
10
+ import { defaultPairingLogger, pairingAttemptRejectionMessage, pairingConnectFailedMessage, pairingLinkDeferredMessage, pairingLinkInitFailedMessage, pairingListenerSetupFailedMessage, pairingPreviewErrorMessage, pairingTokenStoreClearFailedMessage } from "./diagnostics.js";
11
+ import { bindElementPickerRelay } from "./elementPickerRelay.js";
7
12
  import { createPairingTokenStore } from "./tokenStorage.js";
8
13
 
9
14
  /**
@@ -26,12 +31,30 @@ export class PairingController {
26
31
  urlSub = null;
27
32
  appStateSub = null;
28
33
  listeners = new Set();
34
+ pairingDeviceId = null;
35
+ /** A link or resume already claimed this launch, so a stored token must not. */
36
+ acceptedPairingToken = false;
37
+ /**
38
+ * Bumped by exitPreview. An in-flight resume or connect checks it after
39
+ * every await and does not write the token or leave the socket up.
40
+ */
41
+ launchEpoch = 0;
42
+ /** Latest enterPreview. An older attempt must not clear a newer token. */
43
+ enterAttempt = 0;
44
+ /**
45
+ * Orders token and purpose writes. Two scans can overlap on the awaits, and
46
+ * the slower one's purpose must not land on the token the faster one saved.
47
+ */
48
+ previewSaveQueue = Promise.resolve();
29
49
  initPhase = 'ready';
30
50
  initFailureReason = null;
31
51
  /** Pairing token captured before init resolved, replayed once it does. */
32
52
  deferredPairingToken = null;
53
+ /** Purpose of {@link deferredPairingToken}, so the held banner already honours it. */
54
+ deferredPurpose = null;
33
55
  /** Diagnostics already emitted for the current init attempt. */
34
56
  loggedOnce = new Set();
57
+ relayUnsub = null;
35
58
  constructor(options) {
36
59
  this.core = options.core;
37
60
  this.pairingEndpoint = options.pairingEndpoint ?? DEFAULT_PAIRING_ENDPOINT;
@@ -39,7 +62,10 @@ export class PairingController {
39
62
  this.LinkingModule = options.LinkingModule ?? Linking;
40
63
  this.AppStateModule = options.AppStateModule ?? AppState;
41
64
  this.clearLocalSession = options.clearLocalSession ?? undefined;
65
+ this.endDraftSession = options.endDraftSession ?? undefined;
66
+ this.cancelPendingDraftEnd = options.cancelPendingDraftEnd ?? undefined;
42
67
  this.logger = options.logger ?? defaultPairingLogger;
68
+ this.deviceIdProvider = options.deviceIdProvider ?? getOrCreatePairingDeviceId;
43
69
  }
44
70
  getEngine() {
45
71
  return this.engine;
@@ -52,6 +78,8 @@ export class PairingController {
52
78
  getState() {
53
79
  const blocked = this.blockedState();
54
80
  if (blocked) return blocked;
81
+ const held = this.heldState();
82
+ if (held) return held;
55
83
  return this.engine?.getState() ?? {
56
84
  status: 'idle',
57
85
  pairingId: null,
@@ -59,7 +87,11 @@ export class PairingController {
59
87
  previewActive: false,
60
88
  lastError: null,
61
89
  needsRescan: false,
62
- awaitingStartCondition: false
90
+ awaitingStartCondition: false,
91
+ canRestartPreview: false,
92
+ previewRestartGeneration: 0,
93
+ pairingSessionGeneration: 0,
94
+ previewStartGeneration: 0
63
95
  };
64
96
  }
65
97
 
@@ -76,7 +108,35 @@ export class PairingController {
76
108
  previewActive: false,
77
109
  lastError: `Userflow.init() failed, so preview could not start: ${this.initFailureReason ?? 'unknown error'}`,
78
110
  needsRescan: true,
79
- awaitingStartCondition: false
111
+ awaitingStartCondition: false,
112
+ canRestartPreview: false,
113
+ previewRestartGeneration: 0,
114
+ pairingSessionGeneration: 0,
115
+ previewStartGeneration: 0
116
+ };
117
+ }
118
+
119
+ /**
120
+ * A link or resumed token is waiting for init. Report connecting so the
121
+ * banner is visible during credential validation instead of looking idle.
122
+ */
123
+ heldState() {
124
+ if (this.initPhase !== 'pending' || this.deferredPairingToken === null) return null;
125
+ return {
126
+ status: 'connecting',
127
+ pairingId: null,
128
+ deviceId: this.pairingDeviceId,
129
+ previewActive: true,
130
+ lastError: null,
131
+ needsRescan: false,
132
+ awaitingStartCondition: false,
133
+ canRestartPreview: false,
134
+ previewRestartGeneration: 0,
135
+ pairingSessionGeneration: 0,
136
+ previewStartGeneration: 0,
137
+ ...(this.deferredPurpose ? {
138
+ pairingPurpose: this.deferredPurpose
139
+ } : {})
80
140
  };
81
141
  }
82
142
  onStateChange(listener) {
@@ -101,14 +161,6 @@ export class PairingController {
101
161
  }
102
162
  }
103
163
  async startListening() {
104
- // Exit pairing on app restart: drop any leftover secure token. Guarded so a
105
- // storage failure cannot cost us the listeners registered below — losing
106
- // those is what makes an inbound QR link vanish without explanation.
107
- try {
108
- await this.tokenStore.clear();
109
- } catch (error) {
110
- this.warnOnce(pairingTokenStoreClearFailedMessage(describeError(error)));
111
- }
112
164
  this.ensureEngine();
113
165
  this.urlSub = this.LinkingModule.addEventListener('url', ({
114
166
  url
@@ -131,6 +183,52 @@ export class PairingController {
131
183
  } catch {
132
184
  // Linking may throw on some platforms before the native module is ready.
133
185
  }
186
+
187
+ // A launch URL already claimed this process. Do not also resume storage.
188
+ if (this.acceptedPairingToken) return;
189
+ await this.resumeStoredToken();
190
+ }
191
+
192
+ /**
193
+ * Rejoin the Builder session after a relaunch when no new pairing link won.
194
+ * An expired or undecodable token is cleared so the next launch stays idle.
195
+ */
196
+ async resumeStoredToken() {
197
+ const epoch = this.launchEpoch;
198
+ let stored;
199
+ try {
200
+ stored = await this.tokenStore.get();
201
+ } catch (error) {
202
+ this.warnOnce(pairingConnectFailedMessage(describeError(error)));
203
+ return;
204
+ }
205
+ if (epoch !== this.launchEpoch || this.acceptedPairingToken || !stored) return;
206
+ const claims = decodePairingJwt(stored);
207
+ if (!claims || isPairingJwtExpired(claims)) {
208
+ // A link that arrived while we were reading storage owns the session.
209
+ if (epoch !== this.launchEpoch || this.acceptedPairingToken) return;
210
+ try {
211
+ const current = await this.tokenStore.get();
212
+ if (epoch !== this.launchEpoch || this.acceptedPairingToken || current !== stored) return;
213
+ await this.tokenStore.clear();
214
+ } catch (error) {
215
+ this.warnOnce(pairingTokenStoreClearFailedMessage(describeError(error)));
216
+ }
217
+ return;
218
+ }
219
+ if (epoch !== this.launchEpoch || this.acceptedPairingToken) return;
220
+ let purpose = null;
221
+ try {
222
+ purpose = (await this.tokenStore.getPurpose?.()) ?? null;
223
+ } catch {
224
+ // Resume without it; the banner falls back to its default reveal.
225
+ }
226
+ if (epoch !== this.launchEpoch || this.acceptedPairingToken) return;
227
+ try {
228
+ await this.connectWhenReady(stored, 'resume', purpose);
229
+ } catch (error) {
230
+ this.warnOnce(pairingConnectFailedMessage(describeError(error)));
231
+ }
134
232
  }
135
233
  stop() {
136
234
  this.urlSub?.remove();
@@ -138,6 +236,7 @@ export class PairingController {
138
236
  this.appStateSub?.remove();
139
237
  this.appStateSub = null;
140
238
  this.started = false;
239
+ this.unbindRelay();
141
240
  void this.exitPreview();
142
241
  }
143
242
 
@@ -159,16 +258,32 @@ export class PairingController {
159
258
  this.warnOnce(pairingAttemptRejectionMessage(inspected.reason, url));
160
259
  return true;
161
260
  }
261
+ await this.connectWhenReady(inspected.link.pairingToken, 'link', inspected.link.purpose ?? null);
262
+ return true;
263
+ }
264
+
265
+ /**
266
+ * Connect now, or hold the token until init resolves or fails. Links and
267
+ * resumed sessions share this gate so both are deferred, replayed, and
268
+ * shown the same way.
269
+ */
270
+ async connectWhenReady(token, source = 'link', purpose = null) {
271
+ this.acceptedPairingToken = true;
162
272
  if (this.initPhase !== 'ready') {
163
273
  // Hold the token rather than discarding it. `notifyInitialized` replays it;
164
274
  // `notifyInitFailed` turns it into visible state.
165
- this.deferredPairingToken = inspected.link.pairingToken;
166
- this.warnOnce(this.initPhase === 'failed' ? pairingLinkInitFailedMessage(this.initFailureReason ?? 'unknown error') : pairingLinkDeferredMessage());
167
- if (this.initPhase === 'failed') this.emit(this.getState());
168
- return true;
275
+ this.deferredPairingToken = token;
276
+ this.deferredPurpose = purpose;
277
+ if (this.initPhase === 'failed') {
278
+ this.warnOnce(pairingLinkInitFailedMessage(this.initFailureReason ?? 'unknown error'));
279
+ } else if (source === 'link') {
280
+ // A resume waits on init on every relaunch; only a link needs this note.
281
+ this.warnOnce(pairingLinkDeferredMessage());
282
+ }
283
+ this.emit(this.getState());
284
+ return;
169
285
  }
170
- await this.enterPreview(inspected.link.pairingToken);
171
- return true;
286
+ await this.enterPreview(token, purpose);
172
287
  }
173
288
 
174
289
  /**
@@ -186,21 +301,25 @@ export class PairingController {
186
301
  }
187
302
 
188
303
  /**
189
- * Called when `Userflow.init()` resolves. Connects a link that arrived while
190
- * init was still in flight.
304
+ * Called when `Userflow.init()` resolves. Connects a link or resumed session
305
+ * that arrived while init was still in flight. `Userflow.init` does not await
306
+ * this — the pairing socket must not block identify.
191
307
  */
192
308
  async notifyInitialized() {
193
309
  this.initPhase = 'ready';
194
310
  this.initFailureReason = null;
195
311
  const deferred = this.deferredPairingToken;
196
312
  if (deferred === null) return;
313
+ const purpose = this.deferredPurpose;
197
314
  this.deferredPairingToken = null;
315
+ this.deferredPurpose = null;
198
316
  try {
199
- await this.enterPreview(deferred);
317
+ await this.enterPreview(deferred, purpose);
200
318
  } catch (error) {
201
- // Preview must not fail host init. `Userflow.init` awaits this, and
202
- // PairingEngine.start rethrows on every connect failure, so letting this
203
- // escape would let an expired QR token fail the host app's entire init.
319
+ // Preview must not fail host init. `Userflow.init` does not await this,
320
+ // and PairingEngine.start rethrows on every connect failure, so letting
321
+ // this escape would be an unhandled rejection — and, if it were awaited,
322
+ // an expired QR token would fail the host app's entire init.
204
323
  this.warnOnce(pairingConnectFailedMessage(describeError(error)));
205
324
  }
206
325
  }
@@ -229,20 +348,131 @@ export class PairingController {
229
348
  }
230
349
 
231
350
  /** Explicit entry with a raw pairing JWT (tests / advanced hosts). */
232
- async enterPreview(pairingToken) {
351
+ async enterPreview(pairingToken, purpose = null) {
352
+ const epoch = this.launchEpoch;
353
+ const attempt = ++this.enterAttempt;
233
354
  const engine = this.ensureEngine();
234
- await this.tokenStore.set(pairingToken);
235
- await engine.start(pairingToken);
355
+ // Before the first await, so an exit that runs later still arms its own end.
356
+ if (epoch === this.launchEpoch) this.cancelPendingDraftEnd?.();
357
+ const deviceId = await this.resolveDeviceId();
358
+ if (attempt !== this.enterAttempt || epoch !== this.launchEpoch) return;
359
+ this.pairingDeviceId = deviceId;
360
+ const saved = await this.savePreviewCredentials(pairingToken, purpose, attempt, epoch);
361
+ if (!saved) return;
362
+ try {
363
+ await (purpose ? engine.start(pairingToken, {
364
+ purpose
365
+ }) : engine.start(pairingToken));
366
+ } catch (error) {
367
+ // A newer pair owns the engine now. Stopping here would drop it.
368
+ if (attempt !== this.enterAttempt) return;
369
+ if (epoch !== this.launchEpoch) {
370
+ // start() records a connect failure after stop() has already gone idle.
371
+ await this.discardPreviewToken(pairingToken, attempt);
372
+ this.engine?.stop();
373
+ return;
374
+ }
375
+ throw error;
376
+ }
377
+ if (attempt !== this.enterAttempt) return;
378
+ if (epoch !== this.launchEpoch) {
379
+ await this.discardPreviewToken(pairingToken, attempt);
380
+ this.engine?.stop();
381
+ }
382
+ }
383
+
384
+ /**
385
+ * Write the token and its purpose as one attempt. Writes are queued so an
386
+ * older scan cannot finish its purpose after a newer scan has saved its own.
387
+ * Returns false when this attempt lost the race; storage then still belongs
388
+ * to whoever connected, or is cleared if this attempt was the last writer.
389
+ */
390
+ async savePreviewCredentials(pairingToken, purpose, attempt, epoch) {
391
+ const previous = this.previewSaveQueue;
392
+ let release = () => undefined;
393
+ this.previewSaveQueue = new Promise(resolve => {
394
+ release = resolve;
395
+ });
396
+ try {
397
+ await previous;
398
+ if (attempt !== this.enterAttempt || epoch !== this.launchEpoch) return false;
399
+ await this.tokenStore.set(pairingToken);
400
+ if (attempt !== this.enterAttempt || epoch !== this.launchEpoch) {
401
+ await this.revertPreviewCredentials(pairingToken);
402
+ return false;
403
+ }
404
+ await this.tokenStore.setPurpose?.(purpose);
405
+ if (attempt !== this.enterAttempt || epoch !== this.launchEpoch) {
406
+ await this.revertPreviewCredentials(pairingToken);
407
+ return false;
408
+ }
409
+ return true;
410
+ } finally {
411
+ release();
412
+ }
413
+ }
414
+
415
+ /**
416
+ * Drop credentials this attempt wrote, when they are still the ones stored.
417
+ * A newer scan may already have replaced them; those stay.
418
+ */
419
+ async revertPreviewCredentials(pairingToken) {
420
+ try {
421
+ const current = await this.tokenStore.get();
422
+ if (current !== pairingToken) return;
423
+ await this.tokenStore.clear();
424
+ } catch (error) {
425
+ this.warnOnce(pairingTokenStoreClearFailedMessage(describeError(error)));
426
+ }
427
+ }
428
+
429
+ /**
430
+ * Remove the token this attempt wrote. A newer pair may already have
431
+ * replaced it; that token stays.
432
+ */
433
+ async discardPreviewToken(pairingToken, attempt) {
434
+ if (attempt !== this.enterAttempt) return;
435
+ try {
436
+ const current = await this.tokenStore.get();
437
+ if (attempt !== this.enterAttempt || current !== pairingToken) return;
438
+ await this.tokenStore.clear();
439
+ } catch (error) {
440
+ this.warnOnce(pairingTokenStoreClearFailedMessage(describeError(error)));
441
+ }
442
+ }
443
+ async resolveDeviceId() {
444
+ if (this.pairingDeviceId !== null) return this.pairingDeviceId;
445
+ return this.deviceIdProvider();
236
446
  }
237
447
  async exitPreview() {
238
448
  // Drop any held link too, so dismissing a blocked banner actually clears it.
449
+ // Bump before the awaits so a resume still reading storage does not reconnect.
450
+ this.launchEpoch += 1;
451
+ evalJsController.reset();
239
452
  this.deferredPairingToken = null;
453
+ this.deferredPurpose = null;
240
454
  await this.tokenStore.clear();
241
455
  this.engine?.stop();
456
+ // Not awaited: the local clear is synchronous, and the banner must not wait
457
+ // on the end-user socket.
458
+ void this.endDraftSession?.().catch(error => {
459
+ this.warnOnce(pairingPreviewErrorMessage(describeError(error)));
460
+ });
242
461
  this.clearLocalSession?.();
243
462
  this.emit(this.getState());
244
463
  }
245
464
 
465
+ /**
466
+ * Replay the last previewed flow from step 1. No-ops when nothing has been
467
+ * delivered yet (restart control is hidden in that case).
468
+ */
469
+ async restartPreview() {
470
+ if (!this.engine) return false;
471
+ clearFiberAnchorCache();
472
+ evalJsController.reset();
473
+ return this.engine.restartPreview();
474
+ }
475
+
246
476
  /** Flush queued startFlowWithToken after identify. */
247
477
  notifyIdentified() {
248
478
  this.engine?.notifyIdentified();
@@ -257,17 +487,32 @@ export class PairingController {
257
487
  pairingEndpoint: this.pairingEndpoint
258
488
  },
259
489
  deviceMeta: () => ({
260
- os: Platform.OS
261
- })
490
+ os: Platform.OS,
491
+ ...(this.pairingDeviceId !== null ? {
492
+ device_id: this.pairingDeviceId
493
+ } : {})
494
+ }),
495
+ onBeforePreviewStart: () => {
496
+ this.clearLocalSession?.();
497
+ }
262
498
  });
263
499
  this.engine.onStateChange(state => {
264
500
  this.emit(state);
501
+ if (state.lastError) {
502
+ this.warnOnce(pairingPreviewErrorMessage(state.lastError));
503
+ }
265
504
  if (state.status === 'token_expired' || state.needsRescan) {
266
505
  void this.tokenStore.clear();
267
506
  }
268
507
  });
508
+ this.unbindRelay();
509
+ this.relayUnsub = bindElementPickerRelay(this.engine);
269
510
  return this.engine;
270
511
  }
512
+ unbindRelay() {
513
+ this.relayUnsub?.();
514
+ this.relayUnsub = null;
515
+ }
271
516
  emit(state) {
272
517
  for (const listener of this.listeners) {
273
518
  try {
@@ -1 +1 @@
1
- {"version":3,"names":["DEFAULT_PAIRING_ENDPOINT","PairingEngine","AppState","Linking","Platform","inspectPairingDeepLink","isPairingAttempt","defaultPairingLogger","pairingAttemptRejectionMessage","pairingConnectFailedMessage","pairingLinkDeferredMessage","pairingLinkInitFailedMessage","pairingListenerSetupFailedMessage","pairingTokenStoreClearFailedMessage","createPairingTokenStore","PairingController","engine","started","urlSub","appStateSub","listeners","Set","initPhase","initFailureReason","deferredPairingToken","loggedOnce","constructor","options","core","pairingEndpoint","tokenStore","LinkingModule","AppStateModule","clearLocalSession","undefined","logger","getEngine","hasStarted","getState","blocked","blockedState","status","pairingId","deviceId","previewActive","lastError","needsRescan","awaitingStartCondition","onStateChange","listener","add","delete","start","startListening","error","warnOnce","describeError","clear","ensureEngine","addEventListener","url","handleUrl","catch","next","ensureAlive","initial","getInitialURL","stop","remove","exitPreview","inspected","ok","reason","link","pairingToken","emit","enterPreview","notifyInitStarted","wasBlocked","notifyInitialized","deferred","notifyInitFailed","message","has","set","notifyIdentified","sendClientMessage","send","onServerMessage","handler","isIdentified","getUserId","pairingOptions","deviceMeta","os","OS","state","Error","String"],"sourceRoot":"../../../src","sources":["pairing/PairingController.ts"],"mappings":";;AAAA,SACEA,wBAAwB,EACxBC,aAAa,QAGR,qBAAqB;AAC5B,SAASC,QAAQ,EAAuBC,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAE/E,SAASC,sBAAsB,EAAEC,gBAAgB,QAAQ,eAAY;AACrE,SACEC,oBAAoB,EACpBC,8BAA8B,EAC9BC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,4BAA4B,EAC5BC,iCAAiC,EACjCC,mCAAmC,QAE9B,kBAAe;AACtB,SAASC,uBAAuB,QAAgC,mBAAgB;;AAIhF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqBA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,CAAC;EACrBC,MAAM,GAAyB,IAAI;EACnCC,OAAO,GAAG,KAAK;EACfC,MAAM,GAA8B,IAAI;EACxCC,WAAW,GAA8B,IAAI;EACpCC,SAAS,GAAG,IAAIC,GAAG,CAA4B,CAAC;EAQzDC,SAAS,GAAc,OAAO;EAC9BC,iBAAiB,GAAkB,IAAI;EAC/C;EACQC,oBAAoB,GAAkB,IAAI;EAClD;EACiBC,UAAU,GAAG,IAAIJ,GAAG,CAAS,CAAC;EAE/CK,WAAWA,CAACC,OAAiC,EAAE;IAC7C,IAAI,CAACC,IAAI,GAAGD,OAAO,CAACC,IAAI;IACxB,IAAI,CAACC,e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AK,CAAC;AACtB","ignoreList":[]}
1
+ {"version":3,"names":["DEFAULT_PAIRING_ENDPOINT","PairingEngine","decodePairingJwt","isPairingJwtExpired","AppState","Linking","Platform","clearFiberAnchorCache","evalJsController","inspectPairingDeepLink","isPairingAttempt","getOrCreatePairingDeviceId","defaultPairingLogger","pairingAttemptRejectionMessage","pairingConnectFailedMessage","pairingLinkDeferredMessage","pairingLinkInitFailedMessage","pairingListenerSetupFailedMessage","pairingPreviewErrorMessage","pairingTokenStoreClearFailedMessage","bindElementPickerRelay","createPairingTokenStore","PairingController","engine","started","urlSub","appStateSub","listeners","Set","pairingDeviceId","acceptedPairingToken","launchEpoch","enterAttempt","previewSaveQueue","Promise","resolve","initPhase","initFailureReason","deferredPairingToken","deferredPurpose","loggedOnce","relayUnsub","constructor","options","core","pairingEndpoint","tokenStore","LinkingModule","AppStateModule","clearLocalSession","undefined","endDraftSession","cancelPendingDraftEnd","logger","deviceIdProvider","getEngine","hasStarted","getState","blocked","blockedState","held","heldState","status","pairingId","deviceId","previewActive","lastError","needsRescan","awaitingStartCondition","canRestartPreview","previewRestartGeneration","pairingSessionGeneration","previewStartGeneration","pairingPurpose","onStateChange","listener","add","delete","start","startListening","error","warnOnce","describeError","ensureEngine","addEventListener","url","handleUrl","catch","next","ensureAlive","initial","getInitialURL","resumeStoredToken","epoch","stored","get","claims","current","clear","purpose","getPurpose","connectWhenReady","stop","remove","unbindRelay","exitPreview","inspected","ok","reason","link","pairingToken","token","source","emit","enterPreview","notifyInitStarted","wasBlocked","notifyInitialized","deferred","notifyInitFailed","message","has","attempt","resolveDeviceId","saved","savePreviewCredentials","discardPreviewToken","previous","release","set","revertPreviewCredentials","setPurpose","reset","restartPreview","notifyIdentified","sendClientMessage","send","onServerMessage","handler","isIdentified","getUserId","pairingOptions","deviceMeta","os","OS","device_id","onBeforePreviewStart","state","Error","String"],"sourceRoot":"../../../src","sources":["pairing/PairingController.ts"],"mappings":";;AAAA,SACEA,wBAAwB,EACxBC,aAA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