@userflow-tech/react-native 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/README.md +65 -33
  2. package/docs/custom-fonts.md +36 -0
  3. package/docs/troubleshooting.md +45 -44
  4. package/expo-plugin/hostDependencyWarnings.d.ts +5 -5
  5. package/expo-plugin/hostDependencyWarnings.js +7 -7
  6. package/expo-plugin/hostDependencyWarnings.js.map +1 -1
  7. package/lib/commonjs/anchors/AnchorRegistry.js +5 -0
  8. package/lib/commonjs/anchors/AnchorRegistry.js.map +1 -1
  9. package/lib/commonjs/anchors/ScrollContainerRegistry.js +8 -0
  10. package/lib/commonjs/anchors/ScrollContainerRegistry.js.map +1 -1
  11. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +8 -0
  12. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -1
  13. package/lib/commonjs/anchors/fiber/detectAppFontFamily.js +341 -0
  14. package/lib/commonjs/anchors/fiber/detectAppFontFamily.js.map +1 -0
  15. package/lib/commonjs/anchors/fiber/presentedModal.js +215 -0
  16. package/lib/commonjs/anchors/fiber/presentedModal.js.map +1 -0
  17. package/lib/commonjs/anchors/fiber/touchTargetFiber.js +1 -0
  18. package/lib/commonjs/anchors/fiber/touchTargetFiber.js.map +1 -1
  19. package/lib/commonjs/anchors/fiber/visibleRect.js +12 -3
  20. package/lib/commonjs/anchors/fiber/visibleRect.js.map +1 -1
  21. package/lib/commonjs/anchors/fiber/visibleScreens.js +6 -0
  22. package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -1
  23. package/lib/commonjs/anchors/useUserflowAnchor.js.map +1 -1
  24. package/lib/commonjs/anchors/useUserflowScrollContainer.js.map +1 -1
  25. package/lib/commonjs/authoring/ElementPickerOverlay.js +197 -138
  26. package/lib/commonjs/authoring/ElementPickerOverlay.js.map +1 -1
  27. package/lib/commonjs/authoring/hitTest.js +67 -10
  28. package/lib/commonjs/authoring/hitTest.js.map +1 -1
  29. package/lib/commonjs/authoring/hostAtPoint.js +45 -21
  30. package/lib/commonjs/authoring/hostAtPoint.js.map +1 -1
  31. package/lib/commonjs/content/BannerStepButton.js +2 -1
  32. package/lib/commonjs/content/BannerStepButton.js.map +1 -1
  33. package/lib/commonjs/content/RichContentRenderer.js +27 -9
  34. package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
  35. package/lib/commonjs/content/StepButton.js +2 -1
  36. package/lib/commonjs/content/StepButton.js.map +1 -1
  37. package/lib/commonjs/content/resolveContentFontFamily.js +96 -0
  38. package/lib/commonjs/content/resolveContentFontFamily.js.map +1 -0
  39. package/lib/commonjs/deepLinking.js.map +1 -1
  40. package/lib/commonjs/deviceContext.js +39 -19
  41. package/lib/commonjs/deviceContext.js.map +1 -1
  42. package/lib/commonjs/index.js +13 -5
  43. package/lib/commonjs/index.js.map +1 -1
  44. package/lib/commonjs/installCheck.js +3 -3
  45. package/lib/commonjs/installCheck.js.map +1 -1
  46. package/lib/commonjs/lifecycle.js +2 -0
  47. package/lib/commonjs/lifecycle.js.map +1 -1
  48. package/lib/commonjs/pairing/PairingController.js.map +1 -1
  49. package/lib/commonjs/runtime/BannerHost.js +3 -3
  50. package/lib/commonjs/runtime/BannerHost.js.map +1 -1
  51. package/lib/commonjs/runtime/UserflowOverlay.js +17 -13
  52. package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -1
  53. package/lib/commonjs/runtime/WindowOverlayHost.js +83 -0
  54. package/lib/commonjs/runtime/WindowOverlayHost.js.map +1 -0
  55. package/lib/commonjs/runtime/pushBannerLayoutContext.js +11 -8
  56. package/lib/commonjs/runtime/pushBannerLayoutContext.js.map +1 -1
  57. package/lib/commonjs/runtime/userflowCore.js +9 -2
  58. package/lib/commonjs/runtime/userflowCore.js.map +1 -1
  59. package/lib/commonjs/surfaces/BannerSurface.js +2 -6
  60. package/lib/commonjs/surfaces/BannerSurface.js.map +1 -1
  61. package/lib/commonjs/surfaces/ProgressBar.js +2 -1
  62. package/lib/commonjs/surfaces/ProgressBar.js.map +1 -1
  63. package/lib/commonjs/surfaces/TooltipSurface.js +114 -51
  64. package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
  65. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js +6 -4
  66. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
  67. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js +3 -33
  68. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
  69. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
  70. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
  71. package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js +33 -0
  72. package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
  73. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js +45 -12
  74. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
  75. package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js +6 -6
  76. package/lib/commonjs/surfaces/tooltip/TooltipHighlight.js.map +1 -1
  77. package/lib/commonjs/surfaces/tooltip/targetOrigin.js +74 -0
  78. package/lib/commonjs/surfaces/tooltip/targetOrigin.js.map +1 -0
  79. package/lib/commonjs/version.js +1 -1
  80. package/lib/module/anchors/AnchorRegistry.js +5 -0
  81. package/lib/module/anchors/AnchorRegistry.js.map +1 -1
  82. package/lib/module/anchors/ScrollContainerRegistry.js +8 -0
  83. package/lib/module/anchors/ScrollContainerRegistry.js.map +1 -1
  84. package/lib/module/anchors/fiber/FiberScanRootStore.js +8 -0
  85. package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -1
  86. package/lib/module/anchors/fiber/detectAppFontFamily.js +330 -0
  87. package/lib/module/anchors/fiber/detectAppFontFamily.js.map +1 -0
  88. package/lib/module/anchors/fiber/presentedModal.js +206 -0
  89. package/lib/module/anchors/fiber/presentedModal.js.map +1 -0
  90. package/lib/module/anchors/fiber/touchTargetFiber.js +1 -0
  91. package/lib/module/anchors/fiber/touchTargetFiber.js.map +1 -1
  92. package/lib/module/anchors/fiber/visibleRect.js +12 -3
  93. package/lib/module/anchors/fiber/visibleRect.js.map +1 -1
  94. package/lib/module/anchors/fiber/visibleScreens.js +5 -0
  95. package/lib/module/anchors/fiber/visibleScreens.js.map +1 -1
  96. package/lib/module/anchors/useUserflowAnchor.js.map +1 -1
  97. package/lib/module/anchors/useUserflowScrollContainer.js.map +1 -1
  98. package/lib/module/authoring/ElementPickerOverlay.js +199 -140
  99. package/lib/module/authoring/ElementPickerOverlay.js.map +1 -1
  100. package/lib/module/authoring/hitTest.js +67 -11
  101. package/lib/module/authoring/hitTest.js.map +1 -1
  102. package/lib/module/authoring/hostAtPoint.js +45 -21
  103. package/lib/module/authoring/hostAtPoint.js.map +1 -1
  104. package/lib/module/content/BannerStepButton.js +2 -1
  105. package/lib/module/content/BannerStepButton.js.map +1 -1
  106. package/lib/module/content/RichContentRenderer.js +27 -9
  107. package/lib/module/content/RichContentRenderer.js.map +1 -1
  108. package/lib/module/content/StepButton.js +2 -1
  109. package/lib/module/content/StepButton.js.map +1 -1
  110. package/lib/module/content/resolveContentFontFamily.js +89 -0
  111. package/lib/module/content/resolveContentFontFamily.js.map +1 -0
  112. package/lib/module/deepLinking.js.map +1 -1
  113. package/lib/module/deviceContext.js +38 -17
  114. package/lib/module/deviceContext.js.map +1 -1
  115. package/lib/module/index.js +13 -5
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/module/installCheck.js +3 -3
  118. package/lib/module/installCheck.js.map +1 -1
  119. package/lib/module/lifecycle.js +2 -0
  120. package/lib/module/lifecycle.js.map +1 -1
  121. package/lib/module/pairing/PairingController.js.map +1 -1
  122. package/lib/module/runtime/BannerHost.js +3 -3
  123. package/lib/module/runtime/BannerHost.js.map +1 -1
  124. package/lib/module/runtime/UserflowOverlay.js +18 -14
  125. package/lib/module/runtime/UserflowOverlay.js.map +1 -1
  126. package/lib/module/runtime/WindowOverlayHost.js +76 -0
  127. package/lib/module/runtime/WindowOverlayHost.js.map +1 -0
  128. package/lib/module/runtime/pushBannerLayoutContext.js +11 -8
  129. package/lib/module/runtime/pushBannerLayoutContext.js.map +1 -1
  130. package/lib/module/runtime/userflowCore.js +9 -2
  131. package/lib/module/runtime/userflowCore.js.map +1 -1
  132. package/lib/module/surfaces/BannerSurface.js +2 -6
  133. package/lib/module/surfaces/BannerSurface.js.map +1 -1
  134. package/lib/module/surfaces/ProgressBar.js +2 -1
  135. package/lib/module/surfaces/ProgressBar.js.map +1 -1
  136. package/lib/module/surfaces/TooltipSurface.js +114 -51
  137. package/lib/module/surfaces/TooltipSurface.js.map +1 -1
  138. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js +6 -4
  139. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
  140. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js +3 -31
  141. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
  142. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
  143. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
  144. package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js +29 -0
  145. package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
  146. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js +45 -12
  147. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
  148. package/lib/module/surfaces/tooltip/TooltipHighlight.js +6 -6
  149. package/lib/module/surfaces/tooltip/TooltipHighlight.js.map +1 -1
  150. package/lib/module/surfaces/tooltip/targetOrigin.js +67 -0
  151. package/lib/module/surfaces/tooltip/targetOrigin.js.map +1 -0
  152. package/lib/module/version.js +1 -1
  153. package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts +7 -0
  154. package/lib/typescript/commonjs/src/anchors/AnchorRegistry.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts +11 -2
  156. package/lib/typescript/commonjs/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
  158. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
  160. package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts +45 -0
  162. package/lib/typescript/commonjs/src/anchors/fiber/presentedModal.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts +5 -2
  164. package/lib/typescript/commonjs/src/anchors/fiber/visibleRect.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +2 -0
  166. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  167. package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts +2 -2
  168. package/lib/typescript/commonjs/src/anchors/useUserflowAnchor.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts +3 -2
  170. package/lib/typescript/commonjs/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts +4 -0
  172. package/lib/typescript/commonjs/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/src/authoring/hitTest.d.ts +25 -2
  174. package/lib/typescript/commonjs/src/authoring/hitTest.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts +6 -1
  176. package/lib/typescript/commonjs/src/authoring/hostAtPoint.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts +35 -0
  181. package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/deepLinking.d.ts +1 -1
  183. package/lib/typescript/commonjs/src/deepLinking.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/src/deviceContext.d.ts +14 -5
  185. package/lib/typescript/commonjs/src/deviceContext.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/src/index.d.ts +11 -5
  187. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/src/installCheck.d.ts +2 -2
  189. package/lib/typescript/commonjs/src/installCheck.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/lifecycle.d.ts +1 -0
  191. package/lib/typescript/commonjs/src/lifecycle.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +1 -1
  193. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts +34 -0
  196. package/lib/typescript/commonjs/src/runtime/WindowOverlayHost.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts +5 -0
  198. package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/runtime/userflowCore.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts +1 -4
  201. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -1
  202. package/lib/typescript/commonjs/src/surfaces/ProgressBar.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
  206. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
  209. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
  212. package/lib/typescript/commonjs/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  214. package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts +7 -0
  215. package/lib/typescript/module/src/anchors/AnchorRegistry.d.ts.map +1 -1
  216. package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts +11 -2
  217. package/lib/typescript/module/src/anchors/ScrollContainerRegistry.d.ts.map +1 -1
  218. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
  219. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
  220. package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
  221. package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
  222. package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts +45 -0
  223. package/lib/typescript/module/src/anchors/fiber/presentedModal.d.ts.map +1 -0
  224. package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts +5 -2
  225. package/lib/typescript/module/src/anchors/fiber/visibleRect.d.ts.map +1 -1
  226. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +2 -0
  227. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  228. package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts +2 -2
  229. package/lib/typescript/module/src/anchors/useUserflowAnchor.d.ts.map +1 -1
  230. package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts +3 -2
  231. package/lib/typescript/module/src/anchors/useUserflowScrollContainer.d.ts.map +1 -1
  232. package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts +4 -0
  233. package/lib/typescript/module/src/authoring/ElementPickerOverlay.d.ts.map +1 -1
  234. package/lib/typescript/module/src/authoring/hitTest.d.ts +25 -2
  235. package/lib/typescript/module/src/authoring/hitTest.d.ts.map +1 -1
  236. package/lib/typescript/module/src/authoring/hostAtPoint.d.ts +6 -1
  237. package/lib/typescript/module/src/authoring/hostAtPoint.d.ts.map +1 -1
  238. package/lib/typescript/module/src/content/BannerStepButton.d.ts.map +1 -1
  239. package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -1
  240. package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -1
  241. package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts +35 -0
  242. package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts.map +1 -0
  243. package/lib/typescript/module/src/deepLinking.d.ts +1 -1
  244. package/lib/typescript/module/src/deepLinking.d.ts.map +1 -1
  245. package/lib/typescript/module/src/deviceContext.d.ts +14 -5
  246. package/lib/typescript/module/src/deviceContext.d.ts.map +1 -1
  247. package/lib/typescript/module/src/index.d.ts +11 -5
  248. package/lib/typescript/module/src/index.d.ts.map +1 -1
  249. package/lib/typescript/module/src/installCheck.d.ts +2 -2
  250. package/lib/typescript/module/src/installCheck.d.ts.map +1 -1
  251. package/lib/typescript/module/src/lifecycle.d.ts +1 -0
  252. package/lib/typescript/module/src/lifecycle.d.ts.map +1 -1
  253. package/lib/typescript/module/src/pairing/PairingController.d.ts +1 -1
  254. package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
  255. package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -1
  256. package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts +34 -0
  257. package/lib/typescript/module/src/runtime/WindowOverlayHost.d.ts.map +1 -0
  258. package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts +5 -0
  259. package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts.map +1 -1
  260. package/lib/typescript/module/src/runtime/userflowCore.d.ts.map +1 -1
  261. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts +1 -4
  262. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -1
  263. package/lib/typescript/module/src/surfaces/ProgressBar.d.ts.map +1 -1
  264. package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
  265. package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
  266. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
  267. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
  268. package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
  269. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
  270. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
  271. package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
  272. package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts +26 -0
  273. package/lib/typescript/module/src/surfaces/tooltip/targetOrigin.d.ts.map +1 -0
  274. package/lib/typescript/module/src/version.d.ts +1 -1
  275. package/package.json +5 -4
  276. package/src/anchors/AnchorRegistry.ts +8 -0
  277. package/src/anchors/ScrollContainerRegistry.ts +15 -3
  278. package/src/anchors/fiber/FiberScanRootStore.ts +8 -0
  279. package/src/anchors/fiber/detectAppFontFamily.ts +400 -0
  280. package/src/anchors/fiber/presentedModal.ts +203 -0
  281. package/src/anchors/fiber/touchTargetFiber.ts +2 -1
  282. package/src/anchors/fiber/visibleRect.ts +12 -3
  283. package/src/anchors/fiber/visibleScreens.ts +5 -0
  284. package/src/anchors/useUserflowAnchor.ts +4 -5
  285. package/src/anchors/useUserflowScrollContainer.ts +5 -4
  286. package/src/authoring/ElementPickerOverlay.tsx +242 -166
  287. package/src/authoring/hitTest.ts +88 -13
  288. package/src/authoring/hostAtPoint.ts +67 -21
  289. package/src/content/BannerStepButton.tsx +2 -1
  290. package/src/content/RichContentRenderer.tsx +16 -9
  291. package/src/content/StepButton.tsx +2 -1
  292. package/src/content/resolveContentFontFamily.ts +119 -0
  293. package/src/deepLinking.ts +2 -1
  294. package/src/deviceContext.ts +50 -14
  295. package/src/index.ts +13 -5
  296. package/src/installCheck.ts +3 -3
  297. package/src/lifecycle.ts +2 -1
  298. package/src/pairing/PairingController.ts +2 -1
  299. package/src/runtime/BannerHost.tsx +3 -3
  300. package/src/runtime/UserflowOverlay.tsx +29 -21
  301. package/src/runtime/WindowOverlayHost.tsx +95 -0
  302. package/src/runtime/pushBannerLayoutContext.tsx +14 -9
  303. package/src/runtime/userflowCore.ts +8 -2
  304. package/src/surfaces/BannerSurface.tsx +2 -6
  305. package/src/surfaces/ProgressBar.tsx +2 -1
  306. package/src/surfaces/TooltipSurface.tsx +118 -47
  307. package/src/surfaces/bannerWebView/BannerWebViewBar.tsx +6 -4
  308. package/src/surfaces/bannerWebView/bannerNeedsWebView.ts +4 -36
  309. package/src/surfaces/bannerWebView/bannerThemeStyles.ts +2 -1
  310. package/src/surfaces/bannerWebView/bannerWebViewHeight.ts +32 -0
  311. package/src/surfaces/bannerWebView/buildCustomBannerHtml.ts +48 -12
  312. package/src/surfaces/tooltip/TooltipHighlight.tsx +3 -5
  313. package/src/surfaces/tooltip/targetOrigin.ts +74 -0
  314. package/src/version.ts +1 -1
  315. package/vendor/core/dist/engine/UserflowCore.d.ts +7 -0
  316. package/vendor/core/dist/engine/UserflowCore.d.ts.map +1 -1
  317. package/vendor/core/dist/engine/UserflowCore.js +3 -2
  318. package/vendor/core/dist/engine/UserflowCore.js.map +1 -1
  319. package/vendor/core/dist/transport/phoenix.d.ts +12 -2
  320. package/vendor/core/dist/transport/phoenix.d.ts.map +1 -1
  321. package/vendor/core/dist/transport/phoenix.js +7 -6
  322. package/vendor/core/dist/transport/phoenix.js.map +1 -1
  323. package/vendor/core/dist/version.d.ts +1 -1
  324. package/vendor/core/dist/version.js +1 -1
  325. package/vendor/core/package.json +1 -1
  326. package/vendor/protocol/dist/flows.d.ts +2 -0
  327. package/vendor/protocol/dist/flows.d.ts.map +1 -1
  328. package/vendor/protocol/package.json +1 -1
@@ -16,10 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
17
  let warnedMissingWebView = false;
18
18
 
19
- /**
20
- * Native banner bar, or a WebView when a button runs Evaluate JavaScript or the
21
- * theme has published custom CSS (same CDN stylesheet as userflow.js iframes).
22
- */
19
+ /** Native banner bar, or a WebView when `customBannerEnabled` is set on the banner. */
23
20
  function BannerSurface({
24
21
  session,
25
22
  pushLayoutEdge = null,
@@ -28,8 +25,7 @@ function BannerSurface({
28
25
  onDismiss
29
26
  }) {
30
27
  const banner = session.version.banner;
31
- const theme = session.version.theme;
32
- const needsWebView = banner != null && (0, _bannerNeedsWebView.bannerNeedsWebView)(banner, theme);
28
+ const needsWebView = banner != null && (0, _bannerNeedsWebView.bannerNeedsWebView)(banner);
33
29
  const webView = needsWebView ? (0, _getWebView.getEvalJsWebView)() : null;
34
30
  React.useEffect(() => {
35
31
  if (!banner || !__DEV__) {
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_evalJsController","_getWebView","_BannerBar","_BannerWebViewBar","_bannerAutoRunSession","_bannerNeedsWebView","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","warnedMissingWebView","BannerSurface","session","pushLayoutEdge","overlaySafeEdge","onActions","onDismiss","banner","version","theme","needsWebView","bannerNeedsWebView","webView","getEvalJsWebView","useEffect","__DEV__","console","log","flowId","flow","id","flowName","name","bannerSessionId","versionId","embedMode","overlay","hostAsOverlay","useLayoutEffect","evalJsController","setBannerOwnsWebView","dismissWebViewBanner","useCallback","endReason","clearBannerAutoRunEvalSession","reset","warn","jsx","BannerBar","BannerWebViewBar","resetBannerSurfaceWarningsForTests"],"sourceRoot":"../../../src","sources":["surfaces/BannerSurface.tsx"],"mappings":";;;;;;;AAKA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AAAwE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,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AA,EAAS;EACzDxC,oBAAoB,GAAG,KAAK;AAC9B","ignoreList":[]}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_evalJsController","_getWebView","_BannerBar","_BannerWebViewBar","_bannerAutoRunSession","_bannerNeedsWebView","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","warnedMissingWebView","BannerSurface","session","pushLayoutEdge","overlaySafeEdge","onActions","onDismiss","banner","version","needsWebView","bannerNeedsWebView","webView","getEvalJsWebView","useEffect","__DEV__","console","log","flowId","flow","id","flowName","name","bannerSessionId","versionId","embedMode","overlay","hostAsOverlay","useLayoutEffect","evalJsController","setBannerOwnsWebView","dismissWebViewBanner","useCallback","endReason","clearBannerAutoRunEvalSession","reset","warn","jsx","BannerBar","BannerWebViewBar","resetBannerSurfaceWarningsForTests"],"sourceRoot":"../../../src","sources":["surfaces/BannerSurface.tsx"],"mappings":";;;;;;;AAKA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AAAwE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,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,OAAO,IAAI;EACb;EACA,IAAIE,YAAY,EAAE;IAChB,IAAI,CAACE,OAAO,EAAE;MACZ,IAAI,CAACX,oBAAoB,EAAE;QACzBA,oBAAoB,GAAG,IAAI;QAC3B,IAAIc,OAAO,EAAE;UACXC,OAAO,CAACoB,IAAI,CACV,+EAA+E,GAC7E,+FAA+F,GAC/F,sFACJ,CAAC;QACH;MACF;MACA,oBACE,IAAAvD,WAAA,CAAAwD,GAAA,EAAC5D,UAAA,CAAA6D,SAAS;QACRnC,OAAO,EAAEA,OAAQ;QACjBC,cAAc,EAAEA,cAAe;QAC/BC,eAAe,EAAEA,eAAgB;QACjCC,SAAS,EAAEA,SAAU;QACrBC,SAAS,EAAEA;MAAU,CACtB,CAAC;IAEN;IACA,oBACE,IAAA1B,WAAA,CAAAwD,GAAA,EAAC3D,iBAAA,CAAA6D,gBAAgB;MACfpC,OAAO,EAAEA,OAAQ;MACjBC,cAAc,EAAEA,cAAe;MAC/BC,eAAe,EAAEA,eAAgB;MACjCC,SAAS,EAAEA,SAAU;MACrBC,SAAS,EAAEwB;IAAqB,CACjC,CAAC;EAEN;EACA,oBACE,IAAAlD,WAAA,CAAAwD,GAAA,EAAC5D,UAAA,CAAA6D,SAAS;IACRnC,OAAO,EAAEA,OAAQ;IACjBC,cAAc,EAAEA,cAAe;IAC/BC,eAAe,EAAEA,eAAgB;IACjCC,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN;;AAEA;AACO,SAASiC,kCAAkCA,CAAA,EAAS;EACzDvC,oBAAoB,GAAG,KAAK;AAC9B","ignoreList":[]}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ProgressBar = ProgressBar;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
+ var _resolveContentFontFamily = require("../content/resolveContentFontFamily.js");
9
10
  var _themeColor = require("../content/themeColor.js");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -52,7 +53,7 @@ function ProgressBar({
52
53
  testID: "userflow-progress-numbered",
53
54
  style: [styles.numberedLabel, {
54
55
  color: (0, _themeColor.foregroundAlpha)(theme.fontColor, 0.55),
55
- fontFamily: theme.fontFamily || undefined,
56
+ fontFamily: (0, _resolveContentFontFamily.resolveContentFontFamily)(theme),
56
57
  fontSize: Math.max(12, Math.round(theme.fontSize * 0.875))
57
58
  }],
58
59
  children: label
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_themeColor","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PROGRESS_BAR_NUMBERED","progressBarType","theme","String","toUpperCase","numberedStepLabel","fraction","totalSteps","maxSteps","Math","max","selected","min","floor","ProgressBar","enabled","position","contentPadding","clamped","type","testId","label","jsx","View","testID","style","styles","numberedTrack","top","bottomNumbered","paddingHorizontal","alignItems","numberedCentered","accessibilityRole","accessibilityLabel","pointerEvents","children","Text","numberedLabel","color","foregroundAlpha","fontColor","fontFamily","undefined","fontSize","round","track","bottom","accessibilityValue","now","fill","width","backgroundColor","defaultButtonBackgroundColor","StyleSheet","create","left","right","height","overflow","zIndex","fontWeight"],"sourceRoot":"../../../src","sources":["surfaces/ProgressBar.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,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AAI,EACX;QACEC,KAAK,EAAE,GAAGjC,OAAO,GAAG,GAAG,GAAG;QAC1BkC,eAAe,EAAElD,KAAK,CAACmD;MACzB,CAAC;IACD,CACH;EAAC,CACE,CAAC;AAEX;AAEA,MAAM3B,MAAM,GAAG4B,uBAAU,CAACC,MAAM,CAAC;EAC/BT,KAAK,EAAE;IACL9B,QAAQ,EAAE,UAAU;IACpBwC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTN,eAAe,EAAE,kBAAkB;IACnCO,QAAQ,EAAE,QAAQ;IAClBC,MAAM,EAAE;EACV,CAAC;EACDjC,aAAa,EAAE;IACbX,QAAQ,EAAE,UAAU;IACpBwC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRG,MAAM,EAAE;EACV,CAAC;EACD5B,gBAAgB,EAAE;IAChBD,UAAU,EAAE;EACd,CAAC;EACDH,GAAG,EAAE;IACHA,GAAG,EAAE;EACP,CAAC;EACDmB,MAAM,EAAE;IACNA,MAAM,EAAE;EACV,CAAC;EACDlB,cAAc,EAAE;IACdkB,MAAM,EAAE;EACV,CAAC;EACDG,IAAI,EAAE;IACJQ,MAAM,EAAE;EACV,CAAC;EACDpB,aAAa,EAAE;IACbuB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_resolveContentFontFamily","_themeColor","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PROGRESS_BAR_NUMBERED","progressBarType","theme","String","toUpperCase","numberedStepLabel","fraction","totalSteps","maxSteps","Math","max","selected","min","floor","ProgressBar","enabled","position","contentPadding","clamped","type","testId","label","jsx","View","testID","style","styles","numberedTrack","top","bottomNumbered","paddingHorizontal","alignItems","numberedCentered","accessibilityRole","accessibilityLabel","pointerEvents","children","Text","numberedLabel","color","foregroundAlpha","fontColor","fontFamily","resolveContentFontFamily","fontSize","round","track","bottom","accessibilityValue","now","fill","width","backgroundColor","defaultButtonBackgroundColor","StyleSheet","create","left","right","height","overflow","zIndex","fontWeight"],"sourceRoot":"../../../src","sources":["surfaces/ProgressBar.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAAwD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC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AAE,GAAG;MAAEuC,GAAG,EAAExC,IAAI,CAACoC,KAAK,CAAC3B,OAAO,GAAG,GAAG;IAAE,CAAE;IACzEiB,aAAa,EAAC,MAAM;IAAAC,QAAA,eAEpB,IAAAxD,WAAA,CAAA0C,GAAA,EAAC7C,YAAA,CAAA8C,IAAI;MACHC,MAAM,EAAC,wBAAwB;MAC/BC,KAAK,EAAE,CACLC,MAAM,CAACwB,IAAI,EACX;QACEC,KAAK,EAAE,GAAGjC,OAAO,GAAG,GAAG,GAAG;QAC1BkC,eAAe,EAAElD,KAAK,CAACmD;MACzB,CAAC;IACD,CACH;EAAC,CACE,CAAC;AAEX;AAEA,MAAM3B,MAAM,GAAG4B,uBAAU,CAACC,MAAM,CAAC;EAC/BT,KAAK,EAAE;IACL9B,QAAQ,EAAE,UAAU;IACpBwC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTN,eAAe,EAAE,kBAAkB;IACnCO,QAAQ,EAAE,QAAQ;IAClBC,MAAM,EAAE;EACV,CAAC;EACDjC,aAAa,EAAE;IACbX,QAAQ,EAAE,UAAU;IACpBwC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRG,MAAM,EAAE;EACV,CAAC;EACD5B,gBAAgB,EAAE;IAChBD,UAAU,EAAE;EACd,CAAC;EACDH,GAAG,EAAE;IACHA,GAAG,EAAE;EACP,CAAC;EACDmB,MAAM,EAAE;IACNA,MAAM,EAAE;EACV,CAAC;EACDlB,cAAc,EAAE;IACdkB,MAAM,EAAE;EACV,CAAC;EACDG,IAAI,EAAE;IACJQ,MAAM,EAAE;EACV,CAAC;EACDpB,aAAa,EAAE;IACbuB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -13,6 +13,7 @@ var _AutoAnchorRegistry = require("../anchors/AutoAnchorRegistry.js");
13
13
  var _animationFrame = require("../anchors/animationFrame.js");
14
14
  var _appActive = require("../anchors/appActive.js");
15
15
  var _FiberScanRoot = require("../anchors/fiber/FiberScanRoot.js");
16
+ var _fiberInternals = require("../anchors/fiber/fiberInternals.js");
16
17
  var _visibleRect = require("../anchors/fiber/visibleRect.js");
17
18
  var _resolveAnchorHost = require("../anchors/resolveAnchorHost.js");
18
19
  var _resolveAutoAnchorHost = require("../anchors/resolveAutoAnchorHost.js");
@@ -21,6 +22,7 @@ var _scrollAnchorIntoView = require("../anchors/scrollAnchorIntoView.js");
21
22
  var _scrollConfig = require("../anchors/scrollConfig.js");
22
23
  var _targetPressMonitor = require("../anchors/targetPressMonitor.js");
23
24
  var _RichContentRenderer = require("../content/RichContentRenderer.js");
25
+ var _resolveContentFontFamily = require("../content/resolveContentFontFamily.js");
24
26
  var _CardFade = require("./CardFade.js");
25
27
  var _CloseButton = require("./CloseButton.js");
26
28
  var _MadeWithUserflow = require("./MadeWithUserflow.js");
@@ -45,6 +47,7 @@ var _parseBackdropPadding = require("./tooltip/parseBackdropPadding.js");
45
47
  var _placementDiagnostics = require("./tooltip/placementDiagnostics.js");
46
48
  var _rect = require("./tooltip/rect.js");
47
49
  var _resolveSideCardWidth = require("./tooltip/resolveSideCardWidth.js");
50
+ var _targetOrigin = require("./tooltip/targetOrigin.js");
48
51
  var _targetSearchSchedule = require("./tooltip/targetSearchSchedule.js");
49
52
  var _jsxRuntime = require("react/jsx-runtime");
50
53
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -103,6 +106,7 @@ function TooltipSurface({
103
106
  }) {
104
107
  const version = session.version;
105
108
  const chrome = (0, _themeChrome.resolveBubbleChrome)(theme, 'tooltip');
109
+ const contentFontFamily = (0, _resolveContentFontFamily.resolveContentFontFamily)(theme);
106
110
  const progress = (0, _progress.resolveStepProgress)(version, currentStep.id);
107
111
  const showClose = !version.closeDisabled;
108
112
  const backdropOpacity = (0, _parseBackdropOpacity.parseBackdropOpacity)(theme.backdropOpacity);
@@ -143,6 +147,12 @@ function TooltipSurface({
143
147
  const [missingMode, setMissingMode] = React.useState('waiting');
144
148
  /** True after at least one *failed* measure for the current step/anchor. */
145
149
  const [measureAttempted, setMeasureAttempted] = React.useState(false);
150
+ /**
151
+ * True while a natively presented modal hides the target, or the target is
152
+ * in a sheet that cannot be placed. The step waits without counting the
153
+ * target as missing, and draws nothing over the modal.
154
+ */
155
+ const [concealed, setConcealed] = React.useState(false);
146
156
  /**
147
157
  * False only after a same-step `resetNonce` bump (preview restart) until one
148
158
  * frame has passed, so dialog teardown cannot 0-size FLAG.
@@ -179,7 +189,18 @@ function TooltipSurface({
179
189
  const resolveEpochRef = React.useRef(0);
180
190
  /** Latest resolved host fiber (for scroll-ancestor walk + rAF remeasure). */
181
191
  const hostFiberRef = React.useRef(null);
182
- /** Target rect clipped to scroll viewports, for tap detection only. */
192
+ /**
193
+ * Window position of the host's measure space, from the last resolve. Not
194
+ * zero only inside a native sheet, whose content measures and receives
195
+ * touches relative to the sheet.
196
+ */
197
+ const measureOriginRef = React.useRef({
198
+ x: 0,
199
+ y: 0
200
+ });
201
+ /** `targetRef` in the host's measure space. */
202
+ const measuredRef = React.useRef(null);
203
+ /** Target rect clipped to scroll viewports, for tap detection only. In measure space, as touches are. */
183
204
  const clippedPressRef = React.useRef(null);
184
205
  const clipGenRef = React.useRef(0);
185
206
  const hostMeasureRef = React.useRef(null);
@@ -202,6 +223,8 @@ function TooltipSurface({
202
223
  insetsRef.current = layoutInsets;
203
224
  const missingModeRef = React.useRef(missingMode);
204
225
  missingModeRef.current = missingMode;
226
+ const concealedRef = React.useRef(concealed);
227
+ concealedRef.current = concealed;
205
228
  const behaviorRef = React.useRef(behavior);
206
229
  behaviorRef.current = behavior;
207
230
  const draftModeRef = React.useRef(session.draftMode);
@@ -228,6 +251,7 @@ function TooltipSurface({
228
251
  warnedSidePlacementStepRef.current = null;
229
252
  targetStepIdRef.current = null;
230
253
  targetRef.current = null;
254
+ measuredRef.current = null;
231
255
  // Drop the previous card's measured size and side so the next step does not
232
256
  // inherit a wrapped 115×400 LEFT into `fits(currentPlacement)`.
233
257
  const nextPlacement = desiredPlacementRef.current ?? 'BELOW';
@@ -239,6 +263,7 @@ function TooltipSurface({
239
263
  });
240
264
  setMissingMode('waiting');
241
265
  setMeasureAttempted(false);
266
+ setConcealed(false);
242
267
  setTarget(null);
243
268
  const prev = targetingIdentityRef.current;
244
269
  const sameIdentity = prev.stepId === currentStep.id && prev.targetKey === targetKey;
@@ -260,10 +285,14 @@ function TooltipSurface({
260
285
  }, FIRST_RESOLVE_DELAY_MS);
261
286
  return () => clearTimeout(handle);
262
287
  }, [resolveArmed]);
263
- const applyTarget = React.useCallback(next => {
288
+
289
+ /** `next` is in window coordinates; `measured` is the same rect in the host's measure space. */
290
+ const applyTarget = React.useCallback((next, measured = next) => {
264
291
  if (!mountedRef.current) return;
292
+ if (next != null) setConcealed(false);
265
293
  targetStepIdRef.current = next == null ? null : currentStepIdRef.current;
266
- if ((0, _rect.rectsEqual)(targetRef.current, next)) return;
294
+ if ((0, _rect.rectsEqual)(targetRef.current, next) && (0, _rect.rectsEqual)(measuredRef.current, measured)) return;
295
+ measuredRef.current = measured;
267
296
  if (next == null) {
268
297
  // The anchor went away (unmount / navigation), so whatever scroll position
269
298
  // the user had settled on no longer applies. Treat its next appearance as
@@ -273,15 +302,15 @@ function TooltipSurface({
273
302
  }
274
303
  targetRef.current = next;
275
304
  setTarget(next);
276
- if (next == null) {
305
+ if (next == null || measured == null) {
277
306
  clippedPressRef.current = null;
278
307
  return;
279
308
  }
280
- clippedPressRef.current = next;
309
+ clippedPressRef.current = measured;
281
310
  const fiber = hostFiberRef.current;
282
311
  const gen = clipGenRef.current += 1;
283
312
  if (!fiber) return;
284
- void (0, _visibleRect.clipToScrollViewports)(fiber, next).then(clipped => {
313
+ void (0, _visibleRect.clipToScrollViewports)(fiber, measured).then(clipped => {
285
314
  if (clipGenRef.current !== gen) return;
286
315
  clippedPressRef.current = clipped;
287
316
  });
@@ -304,9 +333,27 @@ function TooltipSurface({
304
333
  hostMeasureRef.current = null;
305
334
  hostScrollIntoViewRef.current = undefined;
306
335
  fiberCacheIdRef.current = null;
336
+ setConcealed(false);
307
337
  markMeasureAttempted();
308
338
  applyTarget(null);
309
339
  }, [applyTarget, markMeasureAttempted]);
340
+
341
+ /**
342
+ * Forget the resolved host while a natively presented modal hides it. Unlike
343
+ * {@link dropHost} the target is not gone: the missing-target timer does not
344
+ * run, so opening a sheet mid-step cannot flag or end the flow, and the
345
+ * tooltip comes back when the sheet closes.
346
+ */
347
+ const concealHost = React.useCallback(() => {
348
+ resolveEpochRef.current += 1;
349
+ measureInFlightRef.current = false;
350
+ hostFiberRef.current = null;
351
+ hostMeasureRef.current = null;
352
+ hostScrollIntoViewRef.current = undefined;
353
+ fiberCacheIdRef.current = null;
354
+ setConcealed(true);
355
+ applyTarget(null);
356
+ }, [applyTarget]);
310
357
  const effectiveViewport = React.useCallback(() => {
311
358
  const windowSize = _reactNative.Dimensions.get('window');
312
359
  const scrollPadding = (0, _scrollConfig.getScrollPadding)();
@@ -321,7 +368,9 @@ function TooltipSurface({
321
368
  left: layoutPad.left + (scrollPadding?.left ?? 0)
322
369
  });
323
370
  }, []);
324
- const maybeScrollIntoView = React.useCallback(rect => {
371
+
372
+ /** `rect` is in window coordinates; `measured` is the same rect in the host's measure space. */
373
+ const maybeScrollIntoView = React.useCallback((rect, measured) => {
325
374
  // Scrolling the app to reveal a target we are fading away from is visible.
326
375
  if (exitingRef.current) return;
327
376
  if (scrollSettledRef.current) return;
@@ -340,8 +389,9 @@ function TooltipSurface({
340
389
  scrollIntoView: hostScrollIntoViewRef.current
341
390
  } : {})
342
391
  };
392
+ // Scroll containers are measured in the same space as the host.
343
393
  (0, _scrollAnchorIntoView.scrollAnchorIntoView)({
344
- rect,
394
+ rect: measured,
345
395
  host,
346
396
  fiber: hostFiberRef.current
347
397
  });
@@ -350,6 +400,31 @@ function TooltipSurface({
350
400
  }
351
401
  }, [effectiveViewport]);
352
402
 
403
+ /** Measure callback for both the resolve and the rAF remeasure of `epoch`'s host. */
404
+ const onHostMeasured = React.useCallback((epoch, x, y, width, height) => {
405
+ if (resolveEpochRef.current !== epoch) {
406
+ measureInFlightRef.current = false;
407
+ return;
408
+ }
409
+ measureInFlightRef.current = false;
410
+ if (!mountedRef.current) return;
411
+ if (width <= 0 || height <= 0) {
412
+ const cacheId = fiberCacheIdRef.current;
413
+ if (cacheId) (0, _resolveAnchorHost.invalidateFiberAnchor)(cacheId);
414
+ dropHost();
415
+ return;
416
+ }
417
+ const measured = {
418
+ x,
419
+ y,
420
+ width,
421
+ height
422
+ };
423
+ const rect = (0, _targetOrigin.offsetRect)(measured, measureOriginRef.current);
424
+ maybeScrollIntoView(rect, measured);
425
+ applyTarget(rect, measured);
426
+ }, [applyTarget, dropHost, maybeScrollIntoView]);
427
+
353
428
  /**
354
429
  * Resolve the anchor host (registry / fiber scan). Driven by
355
430
  * {@link TargetSearchSchedule} — intentionally NOT on every animation frame.
@@ -371,29 +446,27 @@ function TooltipSurface({
371
446
  if (measureInFlightRef.current) return;
372
447
  const epoch = resolveEpochRef.current;
373
448
  measureInFlightRef.current = true;
374
- resolution.host.measureInWindow((x, y, width, height) => {
375
- if (resolveEpochRef.current !== epoch) {
449
+ const {
450
+ host
451
+ } = resolution;
452
+ const placedFiber = resolution.fiber ?? (0, _fiberInternals.fiberFromPublicInstance)(host.node);
453
+ // Refreshed per resolve, not per frame: a sheet moves rarely, and the
454
+ // lookup walks the whole tree.
455
+ (0, _targetOrigin.locateTargetOrigin)(placedFiber, origin => {
456
+ if (resolveEpochRef.current !== epoch || !mountedRef.current) {
376
457
  measureInFlightRef.current = false;
377
458
  return;
378
459
  }
379
- measureInFlightRef.current = false;
380
- if (!mountedRef.current) return;
381
- if (width <= 0 || height <= 0) {
382
- const cacheId = fiberCacheIdRef.current;
383
- if (cacheId) (0, _resolveAnchorHost.invalidateFiberAnchor)(cacheId);
384
- dropHost();
460
+ if (!origin) {
461
+ concealHost();
385
462
  return;
386
463
  }
387
- const rect = {
388
- x,
389
- y,
390
- width,
391
- height
392
- };
393
- maybeScrollIntoView(rect);
394
- applyTarget(rect);
464
+ measureOriginRef.current = origin;
465
+ host.measureInWindow((x, y, width, height) => {
466
+ onHostMeasured(epoch, x, y, width, height);
467
+ });
395
468
  });
396
- }, [anchorId, applyTarget, decodedAutoData, dropHost, isAuto, maybeScrollIntoView]);
469
+ }, [anchorId, concealHost, decodedAutoData, dropHost, isAuto, onHostMeasured]);
397
470
 
398
471
  /**
399
472
  * Live re-measure of an already-resolved host. Driven by the shared rAF hub
@@ -407,28 +480,9 @@ function TooltipSurface({
407
480
  const epoch = resolveEpochRef.current;
408
481
  measureInFlightRef.current = true;
409
482
  measure((x, y, width, height) => {
410
- if (resolveEpochRef.current !== epoch) {
411
- measureInFlightRef.current = false;
412
- return;
413
- }
414
- measureInFlightRef.current = false;
415
- if (!mountedRef.current) return;
416
- if (width <= 0 || height <= 0) {
417
- const cacheId = fiberCacheIdRef.current;
418
- if (cacheId) (0, _resolveAnchorHost.invalidateFiberAnchor)(cacheId);
419
- dropHost();
420
- return;
421
- }
422
- const rect = {
423
- x,
424
- y,
425
- width,
426
- height
427
- };
428
- maybeScrollIntoView(rect);
429
- applyTarget(rect);
483
+ onHostMeasured(epoch, x, y, width, height);
430
484
  });
431
- }, [applyTarget, dropHost, maybeScrollIntoView]);
485
+ }, [onHostMeasured]);
432
486
  const resolveTargetRef = React.useRef(resolveTarget);
433
487
  resolveTargetRef.current = resolveTarget;
434
488
  const searchRef = React.useRef(null);
@@ -445,7 +499,8 @@ function TooltipSurface({
445
499
  }
446
500
  const search = new _targetSearchSchedule.TargetSearchSchedule(() => resolveTargetRef.current());
447
501
  searchRef.current = search;
448
- search.setMode(targetRef.current ? 'anchored' : 'missing');
502
+ // A concealed target keeps the steady poll, so the tooltip is back soon after the modal closes.
503
+ search.setMode(targetRef.current || concealedRef.current ? 'anchored' : 'missing');
449
504
  const trigger = () => search.trigger();
450
505
  const unsubscribers = [_AnchorRegistry.anchorRegistry.subscribe(trigger), _AutoAnchorRegistry.autoAnchorRegistry.subscribe(trigger), _FiberScanRoot.fiberScanRoot.subscribe(trigger), (0, _resolveAnchorHost.subscribeAnchorScreenChange)(() => search.rearm()), (0, _appActive.subscribeAppActive)(active => active ? search.resume() : search.pause())];
451
506
  if (!(0, _appActive.isAppActive)()) search.pause();
@@ -471,8 +526,8 @@ function TooltipSurface({
471
526
  };
472
527
  }, [resolveArmed, searchStopped, currentStep.id, targetKey]);
473
528
  React.useEffect(() => {
474
- searchRef.current?.setMode(target ? 'anchored' : 'missing');
475
- }, [target]);
529
+ searchRef.current?.setMode(target || concealed ? 'anchored' : 'missing');
530
+ }, [target, concealed]);
476
531
 
477
532
  // rAF tracking while a host is resolved (and we are not paused after report).
478
533
  React.useEffect(() => {
@@ -501,7 +556,7 @@ function TooltipSurface({
501
556
  setMissingMode('waiting');
502
557
  return;
503
558
  }
504
- if (!measureAttempted) {
559
+ if (!measureAttempted || concealed) {
505
560
  return;
506
561
  }
507
562
  const ms = parseToleranceMs(theme.tooltipMissingToleranceSeconds);
@@ -512,7 +567,7 @@ function TooltipSurface({
512
567
  void engine.reportTooltipTargetMissing(currentStep.id);
513
568
  }, ms);
514
569
  return () => clearTimeout(timer);
515
- }, [target, measureAttempted, engine, currentStep.id, theme.tooltipMissingBehavior, theme.tooltipMissingToleranceSeconds]);
570
+ }, [target, measureAttempted, concealed, engine, currentStep.id, theme.tooltipMissingBehavior, theme.tooltipMissingToleranceSeconds]);
516
571
  const onCardLayout = React.useCallback(event => {
517
572
  const {
518
573
  width,
@@ -729,6 +784,11 @@ function TooltipSurface({
729
784
  if (hideAfterEnd) {
730
785
  return null;
731
786
  }
787
+
788
+ // A native modal hides the target: nothing over it, not even the blocker.
789
+ if (isMissing && concealed) {
790
+ return null;
791
+ }
732
792
  const showBranding = session.flow.company.flowBranding;
733
793
  const contentPadding = chrome.contentPadding;
734
794
  // Modal only while the host is trapped too. Otherwise VoiceOver would skip
@@ -773,6 +833,7 @@ function TooltipSurface({
773
833
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
774
834
  style: {
775
835
  color: theme.fontColor,
836
+ fontFamily: contentFontFamily,
776
837
  fontSize: theme.fontSize,
777
838
  marginTop: 12,
778
839
  textAlign: 'center'
@@ -814,12 +875,14 @@ function TooltipSurface({
814
875
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
815
876
  style: [styles.missingTitle, {
816
877
  color: theme.fontColor,
878
+ fontFamily: contentFontFamily,
817
879
  fontSize: theme.fontSize
818
880
  }],
819
881
  children: "Target not found"
820
882
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
821
883
  style: {
822
884
  color: theme.fontColor,
885
+ fontFamily: contentFontFamily,
823
886
  fontSize: theme.fontSize,
824
887
  opacity: 0.8
825
888
  },