@userflow-tech/react-native 0.4.5 → 0.6.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 (502) hide show
  1. package/README.md +31 -2
  2. package/docs/anchoring.md +6 -1
  3. package/docs/custom-fonts.md +36 -0
  4. package/docs/troubleshooting.md +33 -6
  5. package/lib/commonjs/anchors/AutoAnchorRegistry.js +144 -34
  6. package/lib/commonjs/anchors/AutoAnchorRegistry.js.map +1 -1
  7. package/lib/commonjs/anchors/animationFrame.js +29 -1
  8. package/lib/commonjs/anchors/animationFrame.js.map +1 -1
  9. package/lib/commonjs/anchors/appActive.js +61 -0
  10. package/lib/commonjs/anchors/appActive.js.map +1 -0
  11. package/lib/commonjs/anchors/elementConditionEvaluator.js +25 -8
  12. package/lib/commonjs/anchors/elementConditionEvaluator.js.map +1 -1
  13. package/lib/commonjs/anchors/elementTapMonitor.js +67 -12
  14. package/lib/commonjs/anchors/elementTapMonitor.js.map +1 -1
  15. package/lib/commonjs/anchors/elementTargetMatch.js +33 -7
  16. package/lib/commonjs/anchors/elementTargetMatch.js.map +1 -1
  17. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js +8 -0
  18. package/lib/commonjs/anchors/fiber/FiberScanRootStore.js.map +1 -1
  19. package/lib/commonjs/anchors/fiber/detectAppFontFamily.js +341 -0
  20. package/lib/commonjs/anchors/fiber/detectAppFontFamily.js.map +1 -0
  21. package/lib/commonjs/anchors/fiber/fiberInternals.js +66 -0
  22. package/lib/commonjs/anchors/fiber/fiberInternals.js.map +1 -1
  23. package/lib/commonjs/anchors/fiber/indexHostFibers.js +4 -3
  24. package/lib/commonjs/anchors/fiber/indexHostFibers.js.map +1 -1
  25. package/lib/commonjs/anchors/fiber/resolveFiberPath.js +30 -15
  26. package/lib/commonjs/anchors/fiber/resolveFiberPath.js.map +1 -1
  27. package/lib/commonjs/anchors/fiber/visibleScreens.js +6 -0
  28. package/lib/commonjs/anchors/fiber/visibleScreens.js.map +1 -1
  29. package/lib/commonjs/anchors/fiberAnchorCache.js +20 -0
  30. package/lib/commonjs/anchors/fiberAnchorCache.js.map +1 -1
  31. package/lib/commonjs/anchors/gestureHandlerHandoff.js +304 -0
  32. package/lib/commonjs/anchors/gestureHandlerHandoff.js.map +1 -0
  33. package/lib/commonjs/anchors/resolveAnchorHost.js +6 -0
  34. package/lib/commonjs/anchors/resolveAnchorHost.js.map +1 -1
  35. package/lib/commonjs/anchors/resolveAutoAnchorHost.js +11 -6
  36. package/lib/commonjs/anchors/resolveAutoAnchorHost.js.map +1 -1
  37. package/lib/commonjs/anchors/resolveElementTargets.js +63 -8
  38. package/lib/commonjs/anchors/resolveElementTargets.js.map +1 -1
  39. package/lib/commonjs/anchors/semanticMatcher.js +43 -21
  40. package/lib/commonjs/anchors/semanticMatcher.js.map +1 -1
  41. package/lib/commonjs/anchors/tapSlop.js +16 -0
  42. package/lib/commonjs/anchors/tapSlop.js.map +1 -0
  43. package/lib/commonjs/anchors/targetPressMonitor.js +66 -12
  44. package/lib/commonjs/anchors/targetPressMonitor.js.map +1 -1
  45. package/lib/commonjs/authoring/fingerprintFromInstance.js +5 -9
  46. package/lib/commonjs/authoring/fingerprintFromInstance.js.map +1 -1
  47. package/lib/commonjs/content/BannerStepButton.js +2 -1
  48. package/lib/commonjs/content/BannerStepButton.js.map +1 -1
  49. package/lib/commonjs/content/RichContentRenderer.js +20 -14
  50. package/lib/commonjs/content/RichContentRenderer.js.map +1 -1
  51. package/lib/commonjs/content/StepButton.js +2 -1
  52. package/lib/commonjs/content/StepButton.js.map +1 -1
  53. package/lib/commonjs/content/openSafeUrl.js +3 -1
  54. package/lib/commonjs/content/openSafeUrl.js.map +1 -1
  55. package/lib/commonjs/content/resolveContentFontFamily.js +96 -0
  56. package/lib/commonjs/content/resolveContentFontFamily.js.map +1 -0
  57. package/lib/commonjs/expo-router/useUserflowExpoRouter.js +6 -0
  58. package/lib/commonjs/expo-router/useUserflowExpoRouter.js.map +1 -1
  59. package/lib/commonjs/index.js +21 -5
  60. package/lib/commonjs/index.js.map +1 -1
  61. package/lib/commonjs/navigation/navigateUrlUtils.js +105 -0
  62. package/lib/commonjs/navigation/navigateUrlUtils.js.map +1 -0
  63. package/lib/commonjs/navigation/openExternalNavigateUrl.js +14 -0
  64. package/lib/commonjs/navigation/openExternalNavigateUrl.js.map +1 -0
  65. package/lib/commonjs/navigation/openFlowNavigateUrl.js +47 -41
  66. package/lib/commonjs/navigation/openFlowNavigateUrl.js.map +1 -1
  67. package/lib/commonjs/pairing/PairingController.js +3 -1
  68. package/lib/commonjs/pairing/PairingController.js.map +1 -1
  69. package/lib/commonjs/runtime/BannerHost.js +38 -29
  70. package/lib/commonjs/runtime/BannerHost.js.map +1 -1
  71. package/lib/commonjs/runtime/TargetPressBridge.js +55 -7
  72. package/lib/commonjs/runtime/TargetPressBridge.js.map +1 -1
  73. package/lib/commonjs/runtime/UserflowOverlay.js +5 -11
  74. package/lib/commonjs/runtime/UserflowOverlay.js.map +1 -1
  75. package/lib/commonjs/runtime/UserflowProvider.js +66 -40
  76. package/lib/commonjs/runtime/UserflowProvider.js.map +1 -1
  77. package/lib/commonjs/runtime/bannerEngine.js +8 -2
  78. package/lib/commonjs/runtime/bannerEngine.js.map +1 -1
  79. package/lib/commonjs/runtime/bannerFlowSpacer.js +71 -0
  80. package/lib/commonjs/runtime/bannerFlowSpacer.js.map +1 -0
  81. package/lib/commonjs/runtime/flowEngine.js +11 -0
  82. package/lib/commonjs/runtime/flowEngine.js.map +1 -1
  83. package/lib/commonjs/runtime/previewStart.js +39 -0
  84. package/lib/commonjs/runtime/previewStart.js.map +1 -0
  85. package/lib/commonjs/runtime/pushBannerLayoutContext.js +101 -0
  86. package/lib/commonjs/runtime/pushBannerLayoutContext.js.map +1 -0
  87. package/lib/commonjs/screenTracker.js +12 -0
  88. package/lib/commonjs/screenTracker.js.map +1 -1
  89. package/lib/commonjs/surfaces/BannerBar.js +79 -61
  90. package/lib/commonjs/surfaces/BannerBar.js.map +1 -1
  91. package/lib/commonjs/surfaces/BannerSurface.js +28 -6
  92. package/lib/commonjs/surfaces/BannerSurface.js.map +1 -1
  93. package/lib/commonjs/surfaces/ProgressBar.js +2 -1
  94. package/lib/commonjs/surfaces/ProgressBar.js.map +1 -1
  95. package/lib/commonjs/surfaces/TooltipSurface.js +48 -41
  96. package/lib/commonjs/surfaces/TooltipSurface.js.map +1 -1
  97. package/lib/commonjs/surfaces/bannerBarLayout.js +77 -10
  98. package/lib/commonjs/surfaces/bannerBarLayout.js.map +1 -1
  99. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js +114 -63
  100. package/lib/commonjs/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
  101. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js +3 -33
  102. package/lib/commonjs/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
  103. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
  104. package/lib/commonjs/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
  105. package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js +33 -0
  106. package/lib/commonjs/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
  107. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js +104 -23
  108. package/lib/commonjs/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
  109. package/lib/commonjs/surfaces/hostAccessibilityTrap.js +28 -0
  110. package/lib/commonjs/surfaces/hostAccessibilityTrap.js.map +1 -0
  111. package/lib/commonjs/surfaces/resolveBannerTheme.js +6 -3
  112. package/lib/commonjs/surfaces/resolveBannerTheme.js.map +1 -1
  113. package/lib/commonjs/surfaces/tooltip/TooltipBubble.js +3 -2
  114. package/lib/commonjs/surfaces/tooltip/TooltipBubble.js.map +1 -1
  115. package/lib/commonjs/surfaces/tooltip/targetSearchSchedule.js +134 -0
  116. package/lib/commonjs/surfaces/tooltip/targetSearchSchedule.js.map +1 -0
  117. package/lib/commonjs/version.js +1 -1
  118. package/lib/module/anchors/AutoAnchorRegistry.js +145 -35
  119. package/lib/module/anchors/AutoAnchorRegistry.js.map +1 -1
  120. package/lib/module/anchors/animationFrame.js +29 -2
  121. package/lib/module/anchors/animationFrame.js.map +1 -1
  122. package/lib/module/anchors/appActive.js +57 -0
  123. package/lib/module/anchors/appActive.js.map +1 -0
  124. package/lib/module/anchors/elementConditionEvaluator.js +26 -9
  125. package/lib/module/anchors/elementConditionEvaluator.js.map +1 -1
  126. package/lib/module/anchors/elementTapMonitor.js +67 -12
  127. package/lib/module/anchors/elementTapMonitor.js.map +1 -1
  128. package/lib/module/anchors/elementTargetMatch.js +32 -7
  129. package/lib/module/anchors/elementTargetMatch.js.map +1 -1
  130. package/lib/module/anchors/fiber/FiberScanRootStore.js +8 -0
  131. package/lib/module/anchors/fiber/FiberScanRootStore.js.map +1 -1
  132. package/lib/module/anchors/fiber/detectAppFontFamily.js +330 -0
  133. package/lib/module/anchors/fiber/detectAppFontFamily.js.map +1 -0
  134. package/lib/module/anchors/fiber/fiberInternals.js +65 -0
  135. package/lib/module/anchors/fiber/fiberInternals.js.map +1 -1
  136. package/lib/module/anchors/fiber/indexHostFibers.js +4 -3
  137. package/lib/module/anchors/fiber/indexHostFibers.js.map +1 -1
  138. package/lib/module/anchors/fiber/resolveFiberPath.js +30 -15
  139. package/lib/module/anchors/fiber/resolveFiberPath.js.map +1 -1
  140. package/lib/module/anchors/fiber/visibleScreens.js +5 -0
  141. package/lib/module/anchors/fiber/visibleScreens.js.map +1 -1
  142. package/lib/module/anchors/fiberAnchorCache.js +19 -0
  143. package/lib/module/anchors/fiberAnchorCache.js.map +1 -1
  144. package/lib/module/anchors/gestureHandlerHandoff.js +298 -0
  145. package/lib/module/anchors/gestureHandlerHandoff.js.map +1 -0
  146. package/lib/module/anchors/resolveAnchorHost.js +1 -0
  147. package/lib/module/anchors/resolveAnchorHost.js.map +1 -1
  148. package/lib/module/anchors/resolveAutoAnchorHost.js +11 -6
  149. package/lib/module/anchors/resolveAutoAnchorHost.js.map +1 -1
  150. package/lib/module/anchors/resolveElementTargets.js +63 -8
  151. package/lib/module/anchors/resolveElementTargets.js.map +1 -1
  152. package/lib/module/anchors/semanticMatcher.js +43 -21
  153. package/lib/module/anchors/semanticMatcher.js.map +1 -1
  154. package/lib/module/anchors/tapSlop.js +11 -0
  155. package/lib/module/anchors/tapSlop.js.map +1 -0
  156. package/lib/module/anchors/targetPressMonitor.js +53 -8
  157. package/lib/module/anchors/targetPressMonitor.js.map +1 -1
  158. package/lib/module/authoring/fingerprintFromInstance.js +6 -10
  159. package/lib/module/authoring/fingerprintFromInstance.js.map +1 -1
  160. package/lib/module/content/BannerStepButton.js +2 -1
  161. package/lib/module/content/BannerStepButton.js.map +1 -1
  162. package/lib/module/content/RichContentRenderer.js +20 -14
  163. package/lib/module/content/RichContentRenderer.js.map +1 -1
  164. package/lib/module/content/StepButton.js +2 -1
  165. package/lib/module/content/StepButton.js.map +1 -1
  166. package/lib/module/content/openSafeUrl.js +3 -1
  167. package/lib/module/content/openSafeUrl.js.map +1 -1
  168. package/lib/module/content/resolveContentFontFamily.js +89 -0
  169. package/lib/module/content/resolveContentFontFamily.js.map +1 -0
  170. package/lib/module/expo-router/useUserflowExpoRouter.js +7 -1
  171. package/lib/module/expo-router/useUserflowExpoRouter.js.map +1 -1
  172. package/lib/module/index.js +24 -7
  173. package/lib/module/index.js.map +1 -1
  174. package/lib/module/navigation/navigateUrlUtils.js +94 -0
  175. package/lib/module/navigation/navigateUrlUtils.js.map +1 -0
  176. package/lib/module/navigation/openExternalNavigateUrl.js +11 -0
  177. package/lib/module/navigation/openExternalNavigateUrl.js.map +1 -0
  178. package/lib/module/navigation/openFlowNavigateUrl.js +22 -36
  179. package/lib/module/navigation/openFlowNavigateUrl.js.map +1 -1
  180. package/lib/module/pairing/PairingController.js +3 -1
  181. package/lib/module/pairing/PairingController.js.map +1 -1
  182. package/lib/module/runtime/BannerHost.js +38 -29
  183. package/lib/module/runtime/BannerHost.js.map +1 -1
  184. package/lib/module/runtime/TargetPressBridge.js +56 -8
  185. package/lib/module/runtime/TargetPressBridge.js.map +1 -1
  186. package/lib/module/runtime/UserflowOverlay.js +5 -11
  187. package/lib/module/runtime/UserflowOverlay.js.map +1 -1
  188. package/lib/module/runtime/UserflowProvider.js +66 -40
  189. package/lib/module/runtime/UserflowProvider.js.map +1 -1
  190. package/lib/module/runtime/bannerEngine.js +7 -2
  191. package/lib/module/runtime/bannerEngine.js.map +1 -1
  192. package/lib/module/runtime/bannerFlowSpacer.js +65 -0
  193. package/lib/module/runtime/bannerFlowSpacer.js.map +1 -0
  194. package/lib/module/runtime/flowEngine.js +11 -0
  195. package/lib/module/runtime/flowEngine.js.map +1 -1
  196. package/lib/module/runtime/previewStart.js +35 -0
  197. package/lib/module/runtime/previewStart.js.map +1 -0
  198. package/lib/module/runtime/pushBannerLayoutContext.js +94 -0
  199. package/lib/module/runtime/pushBannerLayoutContext.js.map +1 -0
  200. package/lib/module/screenTracker.js +11 -0
  201. package/lib/module/screenTracker.js.map +1 -1
  202. package/lib/module/surfaces/BannerBar.js +80 -62
  203. package/lib/module/surfaces/BannerBar.js.map +1 -1
  204. package/lib/module/surfaces/BannerSurface.js +28 -6
  205. package/lib/module/surfaces/BannerSurface.js.map +1 -1
  206. package/lib/module/surfaces/ProgressBar.js +2 -1
  207. package/lib/module/surfaces/ProgressBar.js.map +1 -1
  208. package/lib/module/surfaces/TooltipSurface.js +49 -42
  209. package/lib/module/surfaces/TooltipSurface.js.map +1 -1
  210. package/lib/module/surfaces/bannerBarLayout.js +72 -11
  211. package/lib/module/surfaces/bannerBarLayout.js.map +1 -1
  212. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js +115 -64
  213. package/lib/module/surfaces/bannerWebView/BannerWebViewBar.js.map +1 -1
  214. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js +3 -31
  215. package/lib/module/surfaces/bannerWebView/bannerNeedsWebView.js.map +1 -1
  216. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js +2 -1
  217. package/lib/module/surfaces/bannerWebView/bannerThemeStyles.js.map +1 -1
  218. package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js +29 -0
  219. package/lib/module/surfaces/bannerWebView/bannerWebViewHeight.js.map +1 -0
  220. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js +104 -23
  221. package/lib/module/surfaces/bannerWebView/buildCustomBannerHtml.js.map +1 -1
  222. package/lib/module/surfaces/hostAccessibilityTrap.js +24 -0
  223. package/lib/module/surfaces/hostAccessibilityTrap.js.map +1 -0
  224. package/lib/module/surfaces/resolveBannerTheme.js +6 -3
  225. package/lib/module/surfaces/resolveBannerTheme.js.map +1 -1
  226. package/lib/module/surfaces/tooltip/TooltipBubble.js +3 -2
  227. package/lib/module/surfaces/tooltip/TooltipBubble.js.map +1 -1
  228. package/lib/module/surfaces/tooltip/targetSearchSchedule.js +128 -0
  229. package/lib/module/surfaces/tooltip/targetSearchSchedule.js.map +1 -0
  230. package/lib/module/version.js +1 -1
  231. package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts +36 -2
  232. package/lib/typescript/commonjs/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/anchors/animationFrame.d.ts +0 -4
  234. package/lib/typescript/commonjs/src/anchors/animationFrame.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/anchors/appActive.d.ts +8 -0
  236. package/lib/typescript/commonjs/src/anchors/appActive.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/src/anchors/elementTapMonitor.d.ts +17 -0
  238. package/lib/typescript/commonjs/src/anchors/elementTapMonitor.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/anchors/elementTargetMatch.d.ts +7 -0
  240. package/lib/typescript/commonjs/src/anchors/elementTargetMatch.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
  242. package/lib/typescript/commonjs/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
  244. package/lib/typescript/commonjs/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts +7 -0
  246. package/lib/typescript/commonjs/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts +3 -2
  248. package/lib/typescript/commonjs/src/anchors/fiber/indexHostFibers.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/anchors/fiber/resolveFiberPath.d.ts +3 -0
  250. package/lib/typescript/commonjs/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts +2 -0
  252. package/lib/typescript/commonjs/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts +5 -0
  254. package/lib/typescript/commonjs/src/anchors/fiberAnchorCache.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/anchors/gestureHandlerHandoff.d.ts +70 -0
  256. package/lib/typescript/commonjs/src/anchors/gestureHandlerHandoff.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts +1 -0
  258. package/lib/typescript/commonjs/src/anchors/resolveAnchorHost.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts +11 -4
  260. package/lib/typescript/commonjs/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/anchors/resolveElementTargets.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts +2 -0
  263. package/lib/typescript/commonjs/src/anchors/semanticMatcher.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/anchors/tapSlop.d.ts +9 -0
  265. package/lib/typescript/commonjs/src/anchors/tapSlop.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts +13 -8
  267. package/lib/typescript/commonjs/src/anchors/targetPressMonitor.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/authoring/fingerprintFromInstance.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/content/BannerStepButton.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/content/RichContentRenderer.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/content/StepButton.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/content/openSafeUrl.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts +35 -0
  274. package/lib/typescript/commonjs/src/content/resolveContentFontFamily.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/index.d.ts +6 -5
  277. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/navigation/navigateUrlUtils.d.ts +15 -0
  279. package/lib/typescript/commonjs/src/navigation/navigateUrlUtils.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/src/navigation/openExternalNavigateUrl.d.ts +3 -0
  281. package/lib/typescript/commonjs/src/navigation/openExternalNavigateUrl.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/src/navigation/openFlowNavigateUrl.d.ts +2 -5
  283. package/lib/typescript/commonjs/src/navigation/openFlowNavigateUrl.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts +6 -0
  285. package/lib/typescript/commonjs/src/pairing/PairingController.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/src/runtime/BannerHost.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts +3 -0
  288. package/lib/typescript/commonjs/src/runtime/TargetPressBridge.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/src/runtime/UserflowOverlay.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/src/runtime/UserflowProvider.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts +5 -1
  292. package/lib/typescript/commonjs/src/runtime/bannerEngine.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/src/runtime/bannerFlowSpacer.d.ts +15 -0
  294. package/lib/typescript/commonjs/src/runtime/bannerFlowSpacer.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/src/runtime/flowEngine.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/runtime/previewStart.d.ts +13 -0
  297. package/lib/typescript/commonjs/src/runtime/previewStart.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts +22 -0
  299. package/lib/typescript/commonjs/src/runtime/pushBannerLayoutContext.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/src/screenTracker.d.ts +6 -0
  301. package/lib/typescript/commonjs/src/screenTracker.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts +3 -1
  303. package/lib/typescript/commonjs/src/surfaces/BannerBar.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts +6 -5
  305. package/lib/typescript/commonjs/src/surfaces/BannerSurface.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/src/surfaces/ProgressBar.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts +1 -1
  308. package/lib/typescript/commonjs/src/surfaces/TooltipSurface.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/src/surfaces/bannerBarLayout.d.ts +17 -0
  310. package/lib/typescript/commonjs/src/surfaces/bannerBarLayout.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +3 -1
  312. package/lib/typescript/commonjs/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
  314. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
  317. package/lib/typescript/commonjs/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/src/surfaces/hostAccessibilityTrap.d.ts +14 -0
  320. package/lib/typescript/commonjs/src/surfaces/hostAccessibilityTrap.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.d.ts +4 -1
  322. package/lib/typescript/commonjs/src/surfaces/resolveBannerTheme.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts +7 -1
  324. package/lib/typescript/commonjs/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/src/surfaces/tooltip/targetSearchSchedule.d.ts +60 -0
  326. package/lib/typescript/commonjs/src/surfaces/tooltip/targetSearchSchedule.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  328. package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts +36 -2
  329. package/lib/typescript/module/src/anchors/AutoAnchorRegistry.d.ts.map +1 -1
  330. package/lib/typescript/module/src/anchors/animationFrame.d.ts +0 -4
  331. package/lib/typescript/module/src/anchors/animationFrame.d.ts.map +1 -1
  332. package/lib/typescript/module/src/anchors/appActive.d.ts +8 -0
  333. package/lib/typescript/module/src/anchors/appActive.d.ts.map +1 -0
  334. package/lib/typescript/module/src/anchors/elementTapMonitor.d.ts +17 -0
  335. package/lib/typescript/module/src/anchors/elementTapMonitor.d.ts.map +1 -1
  336. package/lib/typescript/module/src/anchors/elementTargetMatch.d.ts +7 -0
  337. package/lib/typescript/module/src/anchors/elementTargetMatch.d.ts.map +1 -1
  338. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts +5 -0
  339. package/lib/typescript/module/src/anchors/fiber/FiberScanRootStore.d.ts.map +1 -1
  340. package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts +30 -0
  341. package/lib/typescript/module/src/anchors/fiber/detectAppFontFamily.d.ts.map +1 -0
  342. package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts +7 -0
  343. package/lib/typescript/module/src/anchors/fiber/fiberInternals.d.ts.map +1 -1
  344. package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts +3 -2
  345. package/lib/typescript/module/src/anchors/fiber/indexHostFibers.d.ts.map +1 -1
  346. package/lib/typescript/module/src/anchors/fiber/resolveFiberPath.d.ts +3 -0
  347. package/lib/typescript/module/src/anchors/fiber/resolveFiberPath.d.ts.map +1 -1
  348. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts +2 -0
  349. package/lib/typescript/module/src/anchors/fiber/visibleScreens.d.ts.map +1 -1
  350. package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts +5 -0
  351. package/lib/typescript/module/src/anchors/fiberAnchorCache.d.ts.map +1 -1
  352. package/lib/typescript/module/src/anchors/gestureHandlerHandoff.d.ts +70 -0
  353. package/lib/typescript/module/src/anchors/gestureHandlerHandoff.d.ts.map +1 -0
  354. package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts +1 -0
  355. package/lib/typescript/module/src/anchors/resolveAnchorHost.d.ts.map +1 -1
  356. package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts +11 -4
  357. package/lib/typescript/module/src/anchors/resolveAutoAnchorHost.d.ts.map +1 -1
  358. package/lib/typescript/module/src/anchors/resolveElementTargets.d.ts.map +1 -1
  359. package/lib/typescript/module/src/anchors/semanticMatcher.d.ts +2 -0
  360. package/lib/typescript/module/src/anchors/semanticMatcher.d.ts.map +1 -1
  361. package/lib/typescript/module/src/anchors/tapSlop.d.ts +9 -0
  362. package/lib/typescript/module/src/anchors/tapSlop.d.ts.map +1 -0
  363. package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts +13 -8
  364. package/lib/typescript/module/src/anchors/targetPressMonitor.d.ts.map +1 -1
  365. package/lib/typescript/module/src/authoring/fingerprintFromInstance.d.ts.map +1 -1
  366. package/lib/typescript/module/src/content/BannerStepButton.d.ts.map +1 -1
  367. package/lib/typescript/module/src/content/RichContentRenderer.d.ts.map +1 -1
  368. package/lib/typescript/module/src/content/StepButton.d.ts.map +1 -1
  369. package/lib/typescript/module/src/content/openSafeUrl.d.ts.map +1 -1
  370. package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts +35 -0
  371. package/lib/typescript/module/src/content/resolveContentFontFamily.d.ts.map +1 -0
  372. package/lib/typescript/module/src/expo-router/useUserflowExpoRouter.d.ts.map +1 -1
  373. package/lib/typescript/module/src/index.d.ts +6 -5
  374. package/lib/typescript/module/src/index.d.ts.map +1 -1
  375. package/lib/typescript/module/src/navigation/navigateUrlUtils.d.ts +15 -0
  376. package/lib/typescript/module/src/navigation/navigateUrlUtils.d.ts.map +1 -0
  377. package/lib/typescript/module/src/navigation/openExternalNavigateUrl.d.ts +3 -0
  378. package/lib/typescript/module/src/navigation/openExternalNavigateUrl.d.ts.map +1 -0
  379. package/lib/typescript/module/src/navigation/openFlowNavigateUrl.d.ts +2 -5
  380. package/lib/typescript/module/src/navigation/openFlowNavigateUrl.d.ts.map +1 -1
  381. package/lib/typescript/module/src/pairing/PairingController.d.ts +6 -0
  382. package/lib/typescript/module/src/pairing/PairingController.d.ts.map +1 -1
  383. package/lib/typescript/module/src/runtime/BannerHost.d.ts.map +1 -1
  384. package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts +3 -0
  385. package/lib/typescript/module/src/runtime/TargetPressBridge.d.ts.map +1 -1
  386. package/lib/typescript/module/src/runtime/UserflowOverlay.d.ts.map +1 -1
  387. package/lib/typescript/module/src/runtime/UserflowProvider.d.ts.map +1 -1
  388. package/lib/typescript/module/src/runtime/bannerEngine.d.ts +5 -1
  389. package/lib/typescript/module/src/runtime/bannerEngine.d.ts.map +1 -1
  390. package/lib/typescript/module/src/runtime/bannerFlowSpacer.d.ts +15 -0
  391. package/lib/typescript/module/src/runtime/bannerFlowSpacer.d.ts.map +1 -0
  392. package/lib/typescript/module/src/runtime/flowEngine.d.ts.map +1 -1
  393. package/lib/typescript/module/src/runtime/previewStart.d.ts +13 -0
  394. package/lib/typescript/module/src/runtime/previewStart.d.ts.map +1 -0
  395. package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts +22 -0
  396. package/lib/typescript/module/src/runtime/pushBannerLayoutContext.d.ts.map +1 -0
  397. package/lib/typescript/module/src/screenTracker.d.ts +6 -0
  398. package/lib/typescript/module/src/screenTracker.d.ts.map +1 -1
  399. package/lib/typescript/module/src/surfaces/BannerBar.d.ts +3 -1
  400. package/lib/typescript/module/src/surfaces/BannerBar.d.ts.map +1 -1
  401. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts +6 -5
  402. package/lib/typescript/module/src/surfaces/BannerSurface.d.ts.map +1 -1
  403. package/lib/typescript/module/src/surfaces/ProgressBar.d.ts.map +1 -1
  404. package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts +1 -1
  405. package/lib/typescript/module/src/surfaces/TooltipSurface.d.ts.map +1 -1
  406. package/lib/typescript/module/src/surfaces/bannerBarLayout.d.ts +17 -0
  407. package/lib/typescript/module/src/surfaces/bannerBarLayout.d.ts.map +1 -1
  408. package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts +3 -1
  409. package/lib/typescript/module/src/surfaces/bannerWebView/BannerWebViewBar.d.ts.map +1 -1
  410. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts +3 -12
  411. package/lib/typescript/module/src/surfaces/bannerWebView/bannerNeedsWebView.d.ts.map +1 -1
  412. package/lib/typescript/module/src/surfaces/bannerWebView/bannerThemeStyles.d.ts.map +1 -1
  413. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts +13 -0
  414. package/lib/typescript/module/src/surfaces/bannerWebView/bannerWebViewHeight.d.ts.map +1 -0
  415. package/lib/typescript/module/src/surfaces/bannerWebView/buildCustomBannerHtml.d.ts.map +1 -1
  416. package/lib/typescript/module/src/surfaces/hostAccessibilityTrap.d.ts +14 -0
  417. package/lib/typescript/module/src/surfaces/hostAccessibilityTrap.d.ts.map +1 -0
  418. package/lib/typescript/module/src/surfaces/resolveBannerTheme.d.ts +4 -1
  419. package/lib/typescript/module/src/surfaces/resolveBannerTheme.d.ts.map +1 -1
  420. package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts +7 -1
  421. package/lib/typescript/module/src/surfaces/tooltip/TooltipBubble.d.ts.map +1 -1
  422. package/lib/typescript/module/src/surfaces/tooltip/targetSearchSchedule.d.ts +60 -0
  423. package/lib/typescript/module/src/surfaces/tooltip/targetSearchSchedule.d.ts.map +1 -0
  424. package/lib/typescript/module/src/version.d.ts +1 -1
  425. package/package.json +1 -1
  426. package/src/anchors/AutoAnchorRegistry.ts +166 -35
  427. package/src/anchors/animationFrame.ts +31 -1
  428. package/src/anchors/appActive.ts +63 -0
  429. package/src/anchors/elementConditionEvaluator.ts +29 -12
  430. package/src/anchors/elementTapMonitor.ts +68 -10
  431. package/src/anchors/elementTargetMatch.ts +34 -7
  432. package/src/anchors/fiber/FiberScanRootStore.ts +8 -0
  433. package/src/anchors/fiber/detectAppFontFamily.ts +400 -0
  434. package/src/anchors/fiber/fiberInternals.ts +68 -0
  435. package/src/anchors/fiber/indexHostFibers.ts +8 -3
  436. package/src/anchors/fiber/resolveFiberPath.ts +25 -16
  437. package/src/anchors/fiber/visibleScreens.ts +5 -0
  438. package/src/anchors/fiberAnchorCache.ts +19 -0
  439. package/src/anchors/gestureHandlerHandoff.ts +356 -0
  440. package/src/anchors/resolveAnchorHost.ts +2 -0
  441. package/src/anchors/resolveAutoAnchorHost.ts +18 -8
  442. package/src/anchors/resolveElementTargets.ts +64 -7
  443. package/src/anchors/semanticMatcher.ts +48 -27
  444. package/src/anchors/tapSlop.ts +18 -0
  445. package/src/anchors/targetPressMonitor.ts +56 -19
  446. package/src/authoring/fingerprintFromInstance.ts +4 -5
  447. package/src/content/BannerStepButton.tsx +2 -1
  448. package/src/content/RichContentRenderer.tsx +19 -13
  449. package/src/content/StepButton.tsx +2 -1
  450. package/src/content/openSafeUrl.ts +3 -1
  451. package/src/content/resolveContentFontFamily.ts +119 -0
  452. package/src/expo-router/useUserflowExpoRouter.ts +10 -1
  453. package/src/index.ts +22 -9
  454. package/src/navigation/navigateUrlUtils.ts +100 -0
  455. package/src/navigation/openExternalNavigateUrl.ts +9 -0
  456. package/src/navigation/openFlowNavigateUrl.ts +36 -36
  457. package/src/pairing/PairingController.ts +9 -1
  458. package/src/runtime/BannerHost.tsx +41 -23
  459. package/src/runtime/TargetPressBridge.tsx +66 -9
  460. package/src/runtime/UserflowOverlay.tsx +7 -9
  461. package/src/runtime/UserflowProvider.tsx +56 -32
  462. package/src/runtime/bannerEngine.ts +10 -2
  463. package/src/runtime/bannerFlowSpacer.tsx +70 -0
  464. package/src/runtime/flowEngine.ts +11 -0
  465. package/src/runtime/previewStart.ts +49 -0
  466. package/src/runtime/pushBannerLayoutContext.tsx +126 -0
  467. package/src/screenTracker.ts +11 -0
  468. package/src/surfaces/BannerBar.tsx +93 -55
  469. package/src/surfaces/BannerSurface.tsx +61 -9
  470. package/src/surfaces/ProgressBar.tsx +2 -1
  471. package/src/surfaces/TooltipSurface.tsx +78 -53
  472. package/src/surfaces/bannerBarLayout.ts +80 -7
  473. package/src/surfaces/bannerWebView/BannerWebViewBar.tsx +151 -57
  474. package/src/surfaces/bannerWebView/bannerNeedsWebView.ts +4 -36
  475. package/src/surfaces/bannerWebView/bannerThemeStyles.ts +2 -1
  476. package/src/surfaces/bannerWebView/bannerWebViewHeight.ts +32 -0
  477. package/src/surfaces/bannerWebView/buildCustomBannerHtml.ts +111 -23
  478. package/src/surfaces/hostAccessibilityTrap.ts +25 -0
  479. package/src/surfaces/resolveBannerTheme.ts +14 -3
  480. package/src/surfaces/tooltip/TooltipBubble.tsx +8 -1
  481. package/src/surfaces/tooltip/targetSearchSchedule.ts +140 -0
  482. package/src/version.ts +1 -1
  483. package/vendor/core/dist/engine/BannerSessionEngine.d.ts +29 -2
  484. package/vendor/core/dist/engine/BannerSessionEngine.d.ts.map +1 -1
  485. package/vendor/core/dist/engine/BannerSessionEngine.js +87 -6
  486. package/vendor/core/dist/engine/BannerSessionEngine.js.map +1 -1
  487. package/vendor/core/dist/engine/ClientConditionEngine.d.ts.map +1 -1
  488. package/vendor/core/dist/engine/ClientConditionEngine.js +30 -7
  489. package/vendor/core/dist/engine/ClientConditionEngine.js.map +1 -1
  490. package/vendor/core/dist/engine/PairingEngine.d.ts +6 -1
  491. package/vendor/core/dist/engine/PairingEngine.d.ts.map +1 -1
  492. package/vendor/core/dist/engine/PairingEngine.js +23 -3
  493. package/vendor/core/dist/engine/PairingEngine.js.map +1 -1
  494. package/vendor/core/dist/engine/handleActions.d.ts.map +1 -1
  495. package/vendor/core/dist/engine/handleActions.js +67 -2
  496. package/vendor/core/dist/engine/handleActions.js.map +1 -1
  497. package/vendor/core/dist/version.d.ts +1 -1
  498. package/vendor/core/dist/version.js +1 -1
  499. package/vendor/core/package.json +1 -1
  500. package/vendor/protocol/dist/flows.d.ts +2 -0
  501. package/vendor/protocol/dist/flows.d.ts.map +1 -1
  502. package/vendor/protocol/package.json +1 -1
@@ -7,9 +7,11 @@ exports.buildCustomBannerBodyHtml = buildCustomBannerBodyHtml;
7
7
  exports.buildCustomBannerHtml = buildCustomBannerHtml;
8
8
  var _core = require("@userflow-tech/core");
9
9
  var _protocol = require("@userflow-tech/protocol");
10
+ var _resolveContentFontFamily = require("../../content/resolveContentFontFamily.js");
10
11
  var _bootstrap = require("../../evalJs/bootstrap.js");
11
12
  var _bannerAutoRunEvalJs = require("./bannerAutoRunEvalJs.js");
12
13
  var _bannerThemeStyles = require("./bannerThemeStyles.js");
14
+ var _bannerBarLayout = require("../bannerBarLayout.js");
13
15
  var _bannerWebFrameCss = require("./bannerWebFrameCss.js");
14
16
  var _buttonClassName = require("./buttonClassName.js");
15
17
  var _resolveCdnHost = require("./resolveCdnHost.js");
@@ -26,26 +28,45 @@ function contentLayoutClass(layout) {
26
28
  }
27
29
  }
28
30
  function layoutMeasureScript() {
31
+ // Inlined on purpose. Hermes' Function#toString is not the source text, so
32
+ // interpolating resolveBannerWebViewHeight.toString() ships a dead function.
33
+ // Keep this body in sync with resolveBannerWebViewHeight.
29
34
  return `
30
35
  (function(){
36
+ function resolveBannerWebViewHeight(rectHeight,scrollHeight,viewportHeight,minHeight,contentHeight){
37
+ var rect=rectHeight>0?rectHeight:0;
38
+ var scroll=scrollHeight>0?scrollHeight:0;
39
+ var height=Math.ceil(Math.max(rect,scroll));
40
+ var floor=minHeight>0?Math.ceil(minHeight):0;
41
+ if(viewportHeight>0&&height>=viewportHeight-2&&height>floor+1){
42
+ if(contentHeight>0&&contentHeight<height){
43
+ height=Math.ceil(contentHeight>floor?contentHeight:floor);
44
+ }
45
+ }
46
+ if(floor>height) height=floor;
47
+ return height;
48
+ }
31
49
  function postLayout(){
32
50
  var root=document.querySelector('.userflowjs-banner-root');
33
51
  if(!root||!window.ReactNativeWebView||!window.ReactNativeWebView.postMessage)return;
34
52
  var rectH=root.getBoundingClientRect().height;
35
53
  var scrollH=root.scrollHeight;
36
- var h=Math.ceil(Math.max(scrollH,rectH));
54
+ var minH=parseFloat(window.getComputedStyle(root).minHeight);
55
+ if(!(minH>0)) minH=0;
37
56
  var vh=window.innerHeight||0;
38
- if(vh>0&&h>=vh-2){
39
- var sum=0;
40
- for(var i=0;i<root.childNodes.length;i++){
41
- var node=root.childNodes[i];
42
- if(node&&node.nodeType===1){
43
- var el=node;
44
- sum+=el.scrollHeight||el.offsetHeight||0;
45
- }
46
- }
47
- if(sum>0&&sum<h) h=Math.ceil(sum);
57
+ var inFlow=0;
58
+ var all=0;
59
+ for(var i=0;i<root.childNodes.length;i++){
60
+ var node=root.childNodes[i];
61
+ if(!node||node.nodeType!==1) continue;
62
+ var box=node.scrollHeight||node.offsetHeight||0;
63
+ all+=box;
64
+ var cs=window.getComputedStyle(node);
65
+ if(cs.display==='none'||cs.position==='absolute'||cs.position==='fixed') continue;
66
+ inFlow+=box;
48
67
  }
68
+ var content=inFlow>0?inFlow:all;
69
+ var h=resolveBannerWebViewHeight(rectH,scrollH,vh,minH,content);
49
70
  window.ReactNativeWebView.postMessage(JSON.stringify({__userflow:1,type:'bannerLayout',height:h}));
50
71
  }
51
72
  window.__userflowBannerLayout=postLayout;
@@ -53,35 +74,86 @@ function layoutMeasureScript() {
53
74
  var root=document.querySelector('.userflowjs-banner-root');
54
75
  if(root){new ResizeObserver(postLayout).observe(root);}
55
76
  }
77
+ var links=document.querySelectorAll('link[rel="stylesheet"]');
78
+ for(var s=0;s<links.length;s++){
79
+ links[s].addEventListener('load',postLayout);
80
+ links[s].addEventListener('error',postLayout);
81
+ }
56
82
  window.addEventListener('load',postLayout);
83
+ // Custom CSS is often still applying on the first pass. A short WebView
84
+ // then clamps used height, so min-height never changes the box and
85
+ // ResizeObserver does not fire. Measure again after the stylesheet can apply.
57
86
  setTimeout(postLayout,0);
87
+ setTimeout(postLayout,60);
88
+ setTimeout(postLayout,250);
58
89
  })();
59
90
  `;
60
91
  }
61
- function bannerInteractionScript() {
92
+ function bannerInteractionScript(buttonsJson) {
62
93
  return `
63
94
  (function(){
95
+ var __userflowBannerButtons=${buttonsJson};
64
96
  function post(msg){
65
97
  if(window.ReactNativeWebView&&window.ReactNativeWebView.postMessage){
66
98
  window.ReactNativeWebView.postMessage(JSON.stringify(Object.assign({__userflow:1},msg)));
67
99
  }
68
100
  }
69
- document.addEventListener('click',function(ev){
101
+ function resolveButtonId(el){
102
+ if(!el||!el.closest)return null;
103
+ var tagged=el.closest('[data-userflow-banner-button]');
104
+ if(tagged){
105
+ return tagged.getAttribute('data-userflow-banner-button');
106
+ }
107
+ function hasClass(el,token){
108
+ if(!token)return false;
109
+ var cls=el.className||'';
110
+ var parts=cls.split(/\\s+/);
111
+ for(var p=0;p<parts.length;p++){
112
+ if(parts[p]===token)return true;
113
+ }
114
+ return false;
115
+ }
116
+ function appearanceClass(appearance){
117
+ if(!appearance)return '';
118
+ var value=appearance;
119
+ var known=value==='primary'||value==='PRIMARY'||value==='default'||value==='DEFAULT'||value==='banner-primary'||value==='banner-secondary';
120
+ return known?'userflowjs-bubble-button--'+value.toLowerCase():value;
121
+ }
122
+ var bubble=el.closest('.userflowjs-bubble-button,button.userflowjs-bubble-button');
123
+ if(bubble){
124
+ var id=bubble.getAttribute('data-userflow-banner-button');
125
+ if(id)return id;
126
+ for(var i=0;i<__userflowBannerButtons.length;i++){
127
+ var meta=__userflowBannerButtons[i];
128
+ if(meta.appearance&&hasClass(bubble,appearanceClass(meta.appearance)))return meta.id;
129
+ }
130
+ }
131
+ var custom=el.closest('[class*="userflow-custom-button"]');
132
+ if(custom){
133
+ for(var j=0;j<__userflowBannerButtons.length;j++){
134
+ var entry=__userflowBannerButtons[j];
135
+ if(entry.appearance&&hasClass(custom,appearanceClass(entry.appearance)))return entry.id;
136
+ }
137
+ }
138
+ return null;
139
+ }
140
+ function onActivate(ev){
70
141
  var t=ev.target;
71
142
  if(!t||!t.closest)return;
72
- var btn=t.closest('[data-userflow-banner-button]');
73
- if(btn){
74
- ev.preventDefault();
75
- post({type:'bannerButton',buttonId:btn.getAttribute('data-userflow-banner-button')});
76
- return;
77
- }
78
143
  var close=t.closest('[data-userflow-banner-dismiss]');
79
144
  if(close){
80
145
  ev.preventDefault();
81
146
  window.__userflowBannerEvalDismissed=true;
82
147
  post({type:'bannerDismiss'});
148
+ return;
83
149
  }
84
- });
150
+ var buttonId=resolveButtonId(t);
151
+ if(buttonId){
152
+ ev.preventDefault();
153
+ post({type:'bannerButton',buttonId:buttonId});
154
+ }
155
+ }
156
+ document.addEventListener('click',onActivate,true);
85
157
  })();
86
158
  `;
87
159
  }
@@ -114,8 +186,11 @@ function buildCustomBannerBodyHtml(session, lookupAttribute, serverEndpoint, opt
114
186
  const theme = session.version.theme;
115
187
  const layoutClass = contentLayoutClass(banner.contentLayout);
116
188
  const themeStyle = (0, _bannerThemeStyles.bannerThemeStyleAttribute)(theme);
189
+ const fontFaceCss = (0, _resolveContentFontFamily.contentFontFaceCss)(theme);
190
+ const fontLockCss = (0, _resolveContentFontFamily.bannerContentFontLockCss)(theme);
117
191
  const customCssUrl = (0, _resolveCdnHost.resolveCustomStylesheetUrl)(serverEndpoint, theme);
118
- const maxInner = banner.maxContentWidth != null ? ` style="max-width:${banner.maxContentWidth}px"` : '';
192
+ const innerMaxWidth = (0, _bannerBarLayout.resolveBannerInnerMaxWidth)(banner);
193
+ const maxInner = innerMaxWidth != null && innerMaxWidth > 0 ? ` style="max-width:${innerMaxWidth}px"` : '';
119
194
  const contentHtml = (0, _richContentDocToHtml.richContentDocToHtml)(banner.content, lookupAttribute);
120
195
  const buttonsHtml = banner.buttons.map(button => {
121
196
  const label = escapeAttr((0, _core.interpolateVariables)(button.text, lookupAttribute));
@@ -123,10 +198,16 @@ function buildCustomBannerBodyHtml(session, lookupAttribute, serverEndpoint, opt
123
198
  return `<button type="button" class="${classes}" data-userflow-banner-button="${escapeAttr(button.id)}"><span class="userflowjs-bubble-button-text">${label}</span></button>`;
124
199
  }).join('');
125
200
  const closeHtml = session.version.closeDisabled ? '<div class="userflowjs-banner-start-spacer"></div>' : '<button type="button" class="userflowjs-banner-close userflowjs-button-reset" data-userflow-banner-dismiss="1" aria-label="Dismiss">×</button>';
201
+ const buttonMetaJson = JSON.stringify(banner.buttons.map(button => ({
202
+ id: button.id,
203
+ cvid: button.cvid,
204
+ appearance: button.appearance ?? ''
205
+ }))).replace(/</g, '\\u003c');
126
206
  const customLink = customCssUrl ? `<link rel="stylesheet" href="${escapeAttr(customCssUrl)}" />` : '';
127
207
  return `
128
- <style>${_bannerWebFrameCss.BANNER_WEB_FRAME_CSS}</style>
208
+ <style>${fontFaceCss}${_bannerWebFrameCss.BANNER_WEB_FRAME_CSS}</style>
129
209
  ${customLink}
210
+ <style>${fontLockCss}</style>
130
211
  <div class="userflowjs-banner-root userflowjs-theme-root ${layoutClass}" style="${themeStyle}">
131
212
  <div class="userflowjs-banner-start-spacer"></div>
132
213
  <div class="userflowjs-banner-inner"${maxInner}>
@@ -135,7 +216,7 @@ ${customLink}
135
216
  </div>
136
217
  ${closeHtml}
137
218
  </div>
138
- <script>${layoutMeasureScript()}${bannerInteractionScript()}${options?.skipAutoRunEval ? '' : bannerAutoRunEvalScript(banner, lookupAttribute)}</script>
219
+ <script>${layoutMeasureScript()}${bannerInteractionScript(buttonMetaJson)}${options?.skipAutoRunEval ? '' : bannerAutoRunEvalScript(banner, lookupAttribute)}</script>
139
220
  `;
140
221
  }
141
222
  function buildCustomBannerHtml(context, session, lookupAttribute, serverEndpoint, options) {
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_protocol","_bootstrap","_bannerAutoRunEvalJs","_bannerThemeStyles","_bannerWebFrameCss","_buttonClassName","_resolveCdnHost","_richContentDocToHtml","contentLayoutClass","layout","BannerContentLayout","CENTER","SPACE_BETWEEN","START","layoutMeasureScript","bannerInteractionScript","bannerAutoRunEvalScript","banner","lookupAttribute","codes","collectBannerAutoRunEvalCodes","length","runs","map","code","wrapCode","join","buildCustomBannerBodyHtml","session","serverEndpoint","options","version","theme","layoutClass","contentLayout","themeStyle","bannerThemeStyleAttribute","customCssUrl","resolveCustomStylesheetUrl","maxInner","maxContentWidth","contentHtml","richContentDocToHtml","content","buttonsHtml","buttons","button","label","escapeAttr","interpolateVariables","text","classes","buttonClassName","appearance","id","closeHtml","closeDisabled","customLink","BANNER_WEB_FRAME_CSS","skipAutoRunEval","buildCustomBannerHtml","context","body","buildBootstrapHtml","value","replace"],"sourceRoot":"../../../../src","sources":["surfaces/bannerWebView/buildCustomBannerHtml.ts"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAGA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AAEA,SAASS,kBAAkBA,CAACC,MAA2B,EAAU;EAC/D,QAAQA,MAAM;IACZ,KAAKC,6BAAmB,CAACC,MAAM;MAC7B,OAAO,+CAA+C;IACxD,KAAKD,6BAAmB,CAACE,aAAa;MACpC,OAAO,sDAAsD;IAC/D,KAAKF,6BAAmB,CAACG,KAAK;IAC9B;MACE,OAAO,8CAA8C;EACzD;AACF;AAEA,SAASC,mBAAmBA,CAAA,EAAW;EACrC,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AAEA,SAASC,uBAAuBA,CAAA,EAAW;EACzC,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA,SAASC,uBAAuBA,CAC9BC,MAAsB,EACtBC,eAA+C,EACvC;EACR,MAAMC,KAAK,GAAG,IAAAC,kDAA6B,EAACH,MAAM,EAAEC,eAAe,CAAC;EACpE,IAAIC,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE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,KAAK,kBAAkB;EAC/K,CAAC,CAAC,CACDrB,IAAI,CAAC,EAAE,CAAC;EACX,MAAM6B,SAAS,GAAG3B,OAAO,CAACG,OAAO,CAACyB,aAAa,GAC3C,oDAAoD,GACpD,gJAAgJ;EAEpJ,MAAMC,UAAU,GAAGpB,YAAY,GAC3B,gCAAgCW,UAAU,CAACX,YAAY,CAAC,MAAM,GAC9D,EAAE;EAEN,OAAO;AACT,SAASqB,uCAAoB;AAC7B,EAAED,UAAU;AACZ,2DAA2DxB,WAAW,YAAYE,UAAU;AAC5F;AACA,wCAAwCI,QAAQ;AAChD,6CAA6CE,WAAW;AACxD,MAAMG,WAAW,GAAG,0CAA0CA,WAAW,QAAQ,GAAG,EAAE;AACtF;AACA,IAAIW,SAAS;AACb;AACA,UAAUzC,mBAAmB,CAAC,CAAC,GAAGC,uBAAuB,CAAC,CAAC,GAAGe,OAAO,EAAE6B,eAAe,GAAG,EAAE,GAAG3C,uBAAuB,CAACC,MAAM,EAAEC,eAAe,CAAC;AAC9I,CAAC;AACD;AAEO,SAAS0C,qBAAqBA,CACnCC,OAAsB,EACtBjC,OAA8B,EAC9BV,eAA+C,EAC/CW,cAAsB,EACtBC,OAAsC,EAC9B;EACR,MAAMgC,IAAI,GAAGnC,yBAAyB,CAACC,OAAO,EAAEV,eAAe,EAAEW,cAAc,EAAEC,OAAO,CAAC;EACzF,OAAO,IAAAiC,6BAAkB,EAACF,OAAO,EAAEC,IAAI,CAAC;AAC1C;AAEA,SAASd,UAAUA,CAACgB,KAAa,EAAU;EACzC,OAAOA,KAAK,CAACC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;AACnF","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_protocol","_resolveContentFontFamily","_bootstrap","_bannerAutoRunEvalJs","_bannerThemeStyles","_bannerBarLayout","_bannerWebFrameCss","_buttonClassName","_resolveCdnHost","_richContentDocToHtml","contentLayoutClass","layout","BannerContentLayout","CENTER","SPACE_BETWEEN","START","layoutMeasureScript","bannerInteractionScript","buttonsJson","bannerAutoRunEvalScript","banner","lookupAttribute","codes","collectBannerAutoRunEvalCodes","length","runs","map","code","wrapCode","join","buildCustomBannerBodyHtml","session","serverEndpoint","options","version","theme","layoutClass","contentLayout","themeStyle","bannerThemeStyleAttribute","fontFaceCss","contentFontFaceCss","fontLockCss","bannerContentFontLockCss","customCssUrl","resolveCustomStylesheetUrl","innerMaxWidth","resolveBannerInnerMaxWidth","maxInner","contentHtml","richContentDocToHtml","content","buttonsHtml","buttons","button","label","escapeAttr","interpolateVariables","text","classes","buttonClassName","appearance","id","closeHtml","closeDisabled","buttonMetaJson","JSON","stringify","cvid","replace","customLink","BANNER_WEB_FRAME_CSS","skipAutoRunEval","buildCustomBannerHtml","context","body","buildBootstrapHtml","value"],"sourceRoot":"../../../../src","sources":["surfaces/bannerWebView/buildCustomBannerHtml.ts"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,yBAAA,GAAAF,OAAA;AAIA,IAAAG,UAAA,GAAAH,OAAA;AAGA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAEA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AAEA,SAASW,kBAAkBA,CAACC,MAA2B,EAAU;EAC/D,QAAQA,MAAM;IACZ,KAAKC,6BAAmB,CAACC,MAAM;MAC7B,OAAO,+CAA+C;IACxD,KAAKD,6BAAmB,CAACE,aAAa;MACpC,OAAO,sDAAsD;IAC/D,KAAKF,6BAAmB,CAACG,KAAK;IAC9B;MACE,OAAO,8CAA8C;EACzD;AACF;AAEA,SAASC,mBAAmBA,CAAA,EAAW;EACrC;EACA;EACA;EACA,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AAEA,SAASC,uBAAuBA,CAACC,WAAmB,EAAU;EAC5D,OAAO;AACT;AACA,gCAAgCA,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA,SAASC,uBAAuBA,CAC9BC,MAAsB,EACtBC,eAA+C,EACvC;EACR,MAAMC,KAAK,GAAG,IAAAC,kDAA6B,EAACH,MAAM,EAAEC,eAAe,CAAC;EACpE,IAAIC,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE;IACtB,OAAO,EAAE;EACX;EACA,MAAMC,IAAI,GAAGH,KAAK,CAACI,GAAG,CAAEC,IAAI,IAAK,IAAAC,mBAAQ,EAACD,IAAI,CAAC,CAAC,CAACE,IAAI,CAAC,EAAE,CAAC;EACzD,OAAO;AACT;AACA;AACA;AACA;AACA;AACA,MAAMJ,IAAI;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AAOO,SAASK,yBAAyBA,CACvCC,OAA8B,E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OAAO,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;AACnF","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.stepTrapsHostAccessibility = stepTrapsHostAccessibility;
7
+ /**
8
+ * Whether a step hides host app content from the accessibility tree.
9
+ *
10
+ * Modals always do. A tooltip does only when `tooltipTargetBlocked` seals its
11
+ * target too — otherwise the target is the control the step asks the user to
12
+ * press, so a screen reader has to be able to reach it.
13
+ *
14
+ * `UserflowOverlay` traps the host with this, and tooltip cards gate
15
+ * `accessibilityViewIsModal` on it: on iOS that flag alone drops the host app,
16
+ * target included, out of VoiceOver's reach.
17
+ */
18
+ function stepTrapsHostAccessibility(step) {
19
+ const appearance = String(step.appearance).toUpperCase();
20
+ if (appearance === 'HIDDEN') {
21
+ return false;
22
+ }
23
+ if (appearance !== 'TOOLTIP') {
24
+ return true;
25
+ }
26
+ return step.tooltipTargetBlocked;
27
+ }
28
+ //# sourceMappingURL=hostAccessibilityTrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stepTrapsHostAccessibility","step","appearance","String","toUpperCase","tooltipTargetBlocked"],"sourceRoot":"../../../src","sources":["surfaces/hostAccessibilityTrap.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,0BAA0BA,CACxCC,IAAmE,EAC1D;EACT,MAAMC,UAAU,GAAGC,MAAM,CAACF,IAAI,CAACC,UAAU,CAAC,CAACE,WAAW,CAAC,CAAC;EACxD,IAAIF,UAAU,KAAK,QAAQ,EAAE;IAC3B,OAAO,KAAK;EACd;EACA,IAAIA,UAAU,KAAK,SAAS,EAAE;IAC5B,OAAO,IAAI;EACb;EACA,OAAOD,IAAI,CAACI,oBAAoB;AAClC","ignoreList":[]}
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.DEFAULT_BANNER_FOREGROUND_COLOR = exports.DEFAULT_BANNER_BACKGROUND_COLOR = void 0;
7
7
  exports.resolveBannerBackgroundColor = resolveBannerBackgroundColor;
8
8
  exports.resolveBannerForegroundColor = resolveBannerForegroundColor;
9
- /** Default banner chrome when theme banner tokens are unset (matches product / web debugger palette). */
9
+ /**
10
+ * Last-resort banner chrome when neither banner nor brand tokens are set on the
11
+ * wire (web `applyThemeDefaults` falls back to brand first).
12
+ */
10
13
  const DEFAULT_BANNER_BACKGROUND_COLOR = exports.DEFAULT_BANNER_BACKGROUND_COLOR = '#0A1A24';
11
14
  const DEFAULT_BANNER_FOREGROUND_COLOR = exports.DEFAULT_BANNER_FOREGROUND_COLOR = '#FFFFFF';
12
15
  function readThemeColor(theme, key) {
@@ -14,9 +17,9 @@ function readThemeColor(theme, key) {
14
17
  return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;
15
18
  }
16
19
  function resolveBannerBackgroundColor(theme) {
17
- return readThemeColor(theme, 'bannerBackgroundColor') ?? DEFAULT_BANNER_BACKGROUND_COLOR;
20
+ return readThemeColor(theme, 'bannerBackgroundColor') ?? readThemeColor(theme, 'brandBackgroundColor') ?? DEFAULT_BANNER_BACKGROUND_COLOR;
18
21
  }
19
22
  function resolveBannerForegroundColor(theme) {
20
- return readThemeColor(theme, 'bannerForegroundColor') ?? DEFAULT_BANNER_FOREGROUND_COLOR;
23
+ return readThemeColor(theme, 'bannerForegroundColor') ?? readThemeColor(theme, 'brandForegroundColor') ?? DEFAULT_BANNER_FOREGROUND_COLOR;
21
24
  }
22
25
  //# sourceMappingURL=resolveBannerTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DEFAULT_BANNER_BACKGROUND_COLOR","exports","DEFAULT_BANNER_FOREGROUND_COLOR","readThemeColor","theme","key","value","trim","length","undefined","resolveBannerBackgroundColor","resolveBannerForegroundColor"],"sourceRoot":"../../../src","sources":["surfaces/resolveBannerTheme.ts"],"mappings":";;;;;;;;AAEA;AACO,MAAMA,+BAA+B,GAAAC,OAAA,CAAAD,+BAAA,GAAG,SAAS;AACjD,MAAME,+BAA+B,GAAAD,OAAA,CAAAC,+BAAA,GAAG,SAAS;AAExD,SAASC,cAAcA,CAACC,KAAoB,EAAEC,GAAW,EAAsB;EAC7E,MAAMC,KAAK,GAAGF,KAAK,CAACC,GAAG,CAAC;EACxB,OAAO,OAAOC,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,GAAGF,KAAK,CAACC,IAAI,CAAC,CAAC,GAAGE,SAAS;AACxF;AAEO,SAASC,4BAA4BA,CAACN,KAAoB,EAAU;EACzE,OAAOD,cAAc,CAACC,KAAK,EAAE,uBAAuB,CAAC,IAAIJ,+BAA+B;AAC1F;AAEO,SAASW,4BAA4BA,CAACP,KAAoB,EAAU;EACzE,OAAOD,cAAc,CAACC,KAAK,EAAE,uBAAuB,CAAC,IAAIF,+BAA+B;AAC1F","ignoreList":[]}
1
+ {"version":3,"names":["DEFAULT_BANNER_BACKGROUND_COLOR","exports","DEFAULT_BANNER_FOREGROUND_COLOR","readThemeColor","theme","key","value","trim","length","undefined","resolveBannerBackgroundColor","resolveBannerForegroundColor"],"sourceRoot":"../../../src","sources":["surfaces/resolveBannerTheme.ts"],"mappings":";;;;;;;;AAEA;AACA;AACA;AACA;AACO,MAAMA,+BAA+B,GAAAC,OAAA,CAAAD,+BAAA,GAAG,SAAS;AACjD,MAAME,+BAA+B,GAAAD,OAAA,CAAAC,+BAAA,GAAG,SAAS;AAExD,SAASC,cAAcA,CAACC,KAAoB,EAAEC,GAAW,EAAsB;EAC7E,MAAMC,KAAK,GAAGF,KAAK,CAACC,GAAG,CAAC;EACxB,OAAO,OAAOC,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,GAAGF,KAAK,CAACC,IAAI,CAAC,CAAC,GAAGE,SAAS;AACxF;AAEO,SAASC,4BAA4BA,CAACN,KAAoB,EAAU;EACzE,OACED,cAAc,CAACC,KAAK,EAAE,uBAAuB,CAAC,IAC9CD,cAAc,CAACC,KAAK,EAAE,sBAAsB,CAAC,IAC7CJ,+BAA+B;AAEnC;AAEO,SAASW,4BAA4BA,CAACP,KAAoB,EAAU;EACzE,OACED,cAAc,CAACC,KAAK,EAAE,uBAAuB,CAAC,IAC9CD,cAAc,CAACC,KAAK,EAAE,sBAAsB,CAAC,IAC7CF,+BAA+B;AAEnC","ignoreList":[]}
@@ -36,7 +36,8 @@ function TooltipBubble({
36
36
  onLayout,
37
37
  children,
38
38
  maxHeight,
39
- showNotch: showNotchProp = true
39
+ showNotch: showNotchProp = true,
40
+ accessibilityViewIsModal = false
40
41
  }) {
41
42
  const showNotch = showNotchProp && chrome.notchSize > 0;
42
43
  const bordered = chrome.borderWidth > 0;
@@ -92,7 +93,7 @@ function TooltipBubble({
92
93
  };
93
94
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CardFade.CardFade, {
94
95
  testID: "userflow-tooltip-card",
95
- accessibilityViewIsModal: true,
96
+ accessibilityViewIsModal: accessibilityViewIsModal,
96
97
  pointerEvents: "auto",
97
98
  onLayout: onLayout,
98
99
  style: [styles.shell, style],
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_CardFade","_absoluteFill","_TooltipNotch","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TooltipBubble","chrome","notchPosition","style","onLayout","children","maxHeight","showNotch","showNotchProp","notchSize","bordered","borderWidth","showSeamCover","notchEdge","protrudingNotchEdge","notchColor","borderColor","backgroundColor","elevation","shadowStyle","raisedSilent","shadowColor","notchShadow","Platform","OS","shadowOffset","shadowOpacity","shadowRadius","notchProps","top","undefined","bottom","left","right","jsxs","CardFade","testID","accessibilityViewIsModal","pointerEvents","styles","shell","jsx","View","cardShadow","borderRadius","TooltipNotch","notchLayer","fillStyle","fill","fillSkin","fillClip","notchSeamCover","edgeCapStyle","inset","Math","max","EDGE_CAP_THICKNESS","position","edge","along","height","width","StyleSheet","create","overflow","flexShrink","ABSOLUTE_FILL","zIndex","minHeight"],"sourceRoot":"../../../../src","sources":["surfaces/tooltip/TooltipBubble.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAGA,IAAAI,aAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,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,CA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AO;QAAE,GAAGG,KAAK;QAAE5B,MAAM,EAAE,CAAC;QAAEC,IAAI,EAAEqB,KAAK;QAAEpB,KAAK,EAAEoB,KAAK;QAAEO,MAAM,EAAEJ;MAAmB,CAAC;IACvF,KAAK,MAAM;MACT,OAAO;QAAE,GAAGG,KAAK;QAAE3B,IAAI,EAAE,CAAC;QAAEH,GAAG,EAAEwB,KAAK;QAAEtB,MAAM,EAAEsB,KAAK;QAAEQ,KAAK,EAAEL;MAAmB,CAAC;IACpF,KAAK,OAAO;MACV,OAAO;QAAE,GAAGG,KAAK;QAAE1B,KAAK,EAAE,CAAC;QAAEJ,GAAG,EAAEwB,KAAK;QAAEtB,MAAM,EAAEsB,KAAK;QAAEQ,KAAK,EAAEL;MAAmB,CAAC;EACvF;AACF;AAEA,MAAMjB,MAAM,GAAGuB,uBAAU,CAACC,MAAM,CAAC;EAC/BvB,KAAK,EAAE;IACLiB,QAAQ,EAAE,UAAU;IACpBxC,eAAe,EAAE,aAAa;IAC9B+C,QAAQ,EAAE,SAAS;IACnBC,UAAU,EAAE;EACd,CAAC;EACDtB,UAAU,EAAE;IACV,GAAGuB,2BAAa;IAChBC,MAAM,EAAE;EACV,CAAC;EACDrB,UAAU,EAAE;IACVqB,MAAM,EAAE;EACV,CAAC;EACDnB,IAAI,EAAE;IACJmB,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,CAAC;IACZH,UAAU,EAAE;EACd,CAAC;EACDhB,QAAQ,EAAE;IACRe,QAAQ,EAAE;EACZ,CAAC;EACDd,QAAQ,EAAE;IACRc,QAAQ,EAAE,QAAQ;IAClBI,SAAS,EAAE,CAAC;IACZH,UAAU,EAAE;IACZ;IACA;EACF,CAAC;EACDd,cAAc,EAAE;IACdgB,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_CardFade","_absoluteFill","_TooltipNotch","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TooltipBubble","chrome","notchPosition","style","onLayout","children","maxHeight","showNotch","showNotchProp","accessibilityViewIsModal","notchSize","bordered","borderWidth","showSeamCover","notchEdge","protrudingNotchEdge","notchColor","borderColor","backgroundColor","elevation","shadowStyle","raisedSilent","shadowColor","notchShadow","Platform","OS","shadowOffset","shadowOpacity","shadowRadius","notchProps","top","undefined","bottom","left","right","jsxs","CardFade","testID","pointerEvents","styles","shell","jsx","View","cardShadow","borderRadius","TooltipNotch","notchLayer","fillStyle","fill","fillSkin","fillClip","notchSeamCover","edgeCapStyle","inset","Math","max","EDGE_CAP_THICKNESS","position","edge","along","height","width","StyleSheet","create","overflow","flexShrink","ABSOLUTE_FILL","zIndex","minHeight"],"sourceRoot":"../../../../src","sources":["surfaces/tooltip/TooltipBubble.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAGA,IAAAI,aAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,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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QAAQ,EAAE;EACZ,CAAC;EACDd,QAAQ,EAAE;IACRc,QAAQ,EAAE,QAAQ;IAClBI,SAAS,EAAE,CAAC;IACZH,UAAU,EAAE;IACZ;IACA;EACF,CAAC;EACDd,cAAc,EAAE;IACdgB,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TargetSearchSchedule = exports.MISSING_TRIGGER_GAP_MS = exports.MISSING_BACKOFF_MAX_MS = exports.MISSING_BACKOFF_BASE_MS = exports.ANCHORED_POLL_MS = void 0;
7
+ exports.missingBackoffDelay = missingBackoffDelay;
8
+ /**
9
+ * When TooltipSurface looks for its target.
10
+ *
11
+ * - Anchored: a steady poll, so a covered or remounted host is noticed quickly.
12
+ * Each search is a cache hit for the resolved host.
13
+ * - Missing: exponential backoff. A miss walks the tree and scores registered
14
+ * hosts, so a target on another screen must not cost a full search every
15
+ * second for as long as the flow stays open.
16
+ * - Registry churn (list rows mounting while the user scrolls) pulls the next
17
+ * missing search forward, never closer than {@link MISSING_TRIGGER_GAP_MS}
18
+ * to the previous one.
19
+ * - A screen change or a return to the foreground starts the backoff over.
20
+ * - Nothing runs while paused (app not active).
21
+ */
22
+
23
+ /** Poll while the target is anchored. */
24
+ const ANCHORED_POLL_MS = exports.ANCHORED_POLL_MS = 250;
25
+ /** First retry after a miss; doubles per consecutive miss. */
26
+ const MISSING_BACKOFF_BASE_MS = exports.MISSING_BACKOFF_BASE_MS = 250;
27
+ /** Ceiling for the missing-target backoff. */
28
+ const MISSING_BACKOFF_MAX_MS = exports.MISSING_BACKOFF_MAX_MS = 4000;
29
+ /** Closest a registry change can pull a missing search to the previous one. */
30
+ const MISSING_TRIGGER_GAP_MS = exports.MISSING_TRIGGER_GAP_MS = 500;
31
+ const defaultClock = {
32
+ now: () => Date.now(),
33
+ setTimeout: (handler, ms) => setTimeout(handler, ms),
34
+ clearTimeout: handle => clearTimeout(handle)
35
+ };
36
+
37
+ /** Delay before the next search after `misses` consecutive missing searches. */
38
+ function missingBackoffDelay(misses) {
39
+ const exponent = Math.max(0, misses - 1);
40
+ return Math.min(MISSING_BACKOFF_MAX_MS, MISSING_BACKOFF_BASE_MS * 2 ** exponent);
41
+ }
42
+ class TargetSearchSchedule {
43
+ mode = 'missing';
44
+ /** Searches run since the target was last anchored (or the backoff restarted). */
45
+ misses = 0;
46
+ lastRunAt = Number.NEGATIVE_INFINITY;
47
+ handle = null;
48
+ dueAt = Number.POSITIVE_INFINITY;
49
+ paused = false;
50
+ disposed = false;
51
+ constructor(search, clock = defaultClock) {
52
+ this.search = search;
53
+ this.clock = clock;
54
+ }
55
+
56
+ /** Search now and schedule the next one. No-op while paused. */
57
+ runNow() {
58
+ if (this.disposed || this.paused) return;
59
+ this.cancel();
60
+ this.lastRunAt = this.clock.now();
61
+ if (this.mode === 'missing') this.misses += 1;
62
+ try {
63
+ this.search();
64
+ } finally {
65
+ if (!this.disposed && !this.paused && this.handle == null) {
66
+ this.scheduleIn(this.nextDelay());
67
+ }
68
+ }
69
+ }
70
+
71
+ /** The target was found or lost. Starts the matching cadence from now. */
72
+ setMode(mode) {
73
+ if (this.disposed || mode === this.mode) return;
74
+ this.mode = mode;
75
+ this.misses = 0;
76
+ if (this.paused) return;
77
+ this.scheduleIn(mode === 'anchored' ? ANCHORED_POLL_MS : MISSING_BACKOFF_BASE_MS);
78
+ }
79
+
80
+ /** Something the target may depend on changed (a registry mount / unmount). */
81
+ trigger() {
82
+ if (this.disposed || this.paused || this.mode !== 'missing') return;
83
+ const now = this.clock.now();
84
+ const dueAt = Math.max(now, this.lastRunAt + MISSING_TRIGGER_GAP_MS);
85
+ if (dueAt >= this.dueAt) return;
86
+ this.scheduleIn(dueAt - now);
87
+ }
88
+
89
+ /** Restart the backoff and search now (screen change, foreground). */
90
+ rearm() {
91
+ if (this.disposed) return;
92
+ this.misses = 0;
93
+ this.runNow();
94
+ }
95
+
96
+ /** Stop searching until {@link resume}. */
97
+ pause() {
98
+ if (this.disposed || this.paused) return;
99
+ this.paused = true;
100
+ this.cancel();
101
+ }
102
+
103
+ /** Leave the paused state and search right away. */
104
+ resume() {
105
+ if (this.disposed || !this.paused) return;
106
+ this.paused = false;
107
+ this.rearm();
108
+ }
109
+ dispose() {
110
+ this.cancel();
111
+ this.disposed = true;
112
+ }
113
+ nextDelay() {
114
+ return this.mode === 'anchored' ? ANCHORED_POLL_MS : missingBackoffDelay(this.misses);
115
+ }
116
+ scheduleIn(ms) {
117
+ this.cancel();
118
+ this.dueAt = this.clock.now() + ms;
119
+ this.handle = this.clock.setTimeout(() => {
120
+ this.handle = null;
121
+ this.dueAt = Number.POSITIVE_INFINITY;
122
+ this.runNow();
123
+ }, ms);
124
+ }
125
+ cancel() {
126
+ if (this.handle != null) {
127
+ this.clock.clearTimeout(this.handle);
128
+ this.handle = null;
129
+ }
130
+ this.dueAt = Number.POSITIVE_INFINITY;
131
+ }
132
+ }
133
+ exports.TargetSearchSchedule = TargetSearchSchedule;
134
+ //# sourceMappingURL=targetSearchSchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ANCHORED_POLL_MS","exports","MISSING_BACKOFF_BASE_MS","MISSING_BACKOFF_MAX_MS","MISSING_TRIGGER_GAP_MS","defaultClock","now","Date","setTimeout","handler","ms","clearTimeout","handle","missingBackoffDelay","misses","exponent","Math","max","min","TargetSearchSchedule","mode","lastRunAt","Number","NEGATIVE_INFINITY","dueAt","POSITIVE_INFINITY","paused","disposed","constructor","search","clock","runNow","cancel","scheduleIn","nextDelay","setMode","trigger","rearm","pause","resume","dispose"],"sourceRoot":"../../../../src","sources":["surfaces/tooltip/targetSearchSchedule.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACO,MAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,G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,CAACG,iBAAiB;EACvC;AACF;AAACxB,OAAA,CAAAkB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
7
  /** Generated by scripts/write-version.mjs — do not edit. */
8
- const SDK_VERSION = exports.SDK_VERSION = '0.4.5';
8
+ const SDK_VERSION = exports.SDK_VERSION = '0.6.0';
9
9
  //# sourceMappingURL=version.js.map