react-native-screen-transitions 4.1.0-beta.0 → 4.1.0-beta.1

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 (454) hide show
  1. package/lib/commonjs/components/boundary/components/boundary-lifecycle.js +40 -8
  2. package/lib/commonjs/components/boundary/components/boundary-lifecycle.js.map +1 -1
  3. package/lib/commonjs/components/boundary/components/boundary-target.js +10 -17
  4. package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
  5. package/lib/commonjs/components/boundary/create-boundary-component.js +13 -16
  6. package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
  7. package/lib/commonjs/components/boundary/helpers/presentation.js +56 -0
  8. package/lib/commonjs/components/boundary/helpers/presentation.js.map +1 -0
  9. package/lib/commonjs/components/boundary/hooks/use-boundary-presentation.js +65 -0
  10. package/lib/commonjs/components/boundary/hooks/use-boundary-presentation.js.map +1 -0
  11. package/lib/commonjs/components/boundary/hooks/use-composed-boundary-style.js +43 -0
  12. package/lib/commonjs/components/boundary/hooks/use-composed-boundary-style.js.map +1 -0
  13. package/lib/commonjs/components/boundary/index.js +2 -3
  14. package/lib/commonjs/components/boundary/index.js.map +1 -1
  15. package/lib/commonjs/components/boundary/portal/components/portal-host.js +39 -0
  16. package/lib/commonjs/components/boundary/portal/components/portal-host.js.map +1 -0
  17. package/lib/commonjs/components/boundary/portal/components/portal-overlay.js +170 -0
  18. package/lib/commonjs/components/boundary/portal/components/portal-overlay.js.map +1 -0
  19. package/lib/commonjs/components/boundary/portal/components/portal.js +88 -0
  20. package/lib/commonjs/components/boundary/portal/components/portal.js.map +1 -0
  21. package/lib/commonjs/components/boundary/portal/helpers/offset-style.js.map +1 -0
  22. package/lib/commonjs/components/boundary/portal/hooks/use-active-portal-boundary-host.js +35 -0
  23. package/lib/commonjs/components/boundary/portal/hooks/use-active-portal-boundary-host.js.map +1 -0
  24. package/lib/commonjs/components/boundary/portal/hooks/use-host-measurement.js +83 -0
  25. package/lib/commonjs/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  26. package/lib/commonjs/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
  27. package/lib/commonjs/components/boundary/portal/hooks/use-portal-destination.js +58 -0
  28. package/lib/commonjs/components/boundary/portal/hooks/use-portal-destination.js.map +1 -0
  29. package/lib/commonjs/components/boundary/portal/index.js +0 -7
  30. package/lib/commonjs/components/boundary/portal/index.js.map +1 -1
  31. package/lib/commonjs/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.js +1 -12
  32. package/lib/commonjs/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  33. package/lib/commonjs/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.js +17 -17
  34. package/lib/commonjs/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  35. package/lib/commonjs/components/boundary/portal/utils/naming.js +8 -1
  36. package/lib/commonjs/components/boundary/portal/utils/naming.js.map +1 -1
  37. package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +7 -27
  38. package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js.map +1 -1
  39. package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +13 -7
  40. package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
  41. package/lib/commonjs/components/screen/container/helpers/layer-component.js +39 -0
  42. package/lib/commonjs/components/screen/container/helpers/layer-component.js.map +1 -0
  43. package/lib/commonjs/components/screen/container/{layers/render-component.js → helpers/uses-layer-render-props.js} +1 -1
  44. package/lib/commonjs/components/screen/container/helpers/uses-layer-render-props.js.map +1 -0
  45. package/lib/commonjs/components/screen/container/layers/backdrop.js +4 -13
  46. package/lib/commonjs/components/screen/container/layers/backdrop.js.map +1 -1
  47. package/lib/commonjs/components/screen/container/layers/clip.js +117 -0
  48. package/lib/commonjs/components/screen/container/layers/clip.js.map +1 -0
  49. package/lib/commonjs/components/screen/container/layers/content.js +17 -33
  50. package/lib/commonjs/components/screen/container/layers/content.js.map +1 -1
  51. package/lib/commonjs/components/screen/container/layers/surface.js +3 -15
  52. package/lib/commonjs/components/screen/container/layers/surface.js.map +1 -1
  53. package/lib/commonjs/components/screen/lifecycle/hooks/use-open-transition-intent.js +15 -0
  54. package/lib/commonjs/components/screen/lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  55. package/lib/commonjs/constants.js +3 -1
  56. package/lib/commonjs/constants.js.map +1 -1
  57. package/lib/commonjs/hooks/navigation/use-navigation-helpers.js +16 -4
  58. package/lib/commonjs/hooks/navigation/use-navigation-helpers.js.map +1 -1
  59. package/lib/commonjs/providers/screen/motion/animation/helpers/build-screen-transition-options.js +0 -1
  60. package/lib/commonjs/providers/screen/motion/animation/helpers/build-screen-transition-options.js.map +1 -1
  61. package/lib/commonjs/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js +3 -2
  62. package/lib/commonjs/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  63. package/lib/commonjs/providers/screen/motion/options/helpers.js +1 -3
  64. package/lib/commonjs/providers/screen/motion/options/helpers.js.map +1 -1
  65. package/lib/commonjs/providers/screen/orchestrator/helpers/use-interpolator-state.js +4 -2
  66. package/lib/commonjs/providers/screen/orchestrator/helpers/use-interpolator-state.js.map +1 -1
  67. package/lib/commonjs/providers/screen/orchestrator/helpers/use-pair-presentation.js +79 -0
  68. package/lib/commonjs/providers/screen/orchestrator/helpers/use-pair-presentation.js.map +1 -0
  69. package/lib/commonjs/providers/screen/orchestrator/orchestrator.provider.js +3 -0
  70. package/lib/commonjs/providers/screen/orchestrator/orchestrator.provider.js.map +1 -1
  71. package/lib/commonjs/providers/screen/orchestrator/styles/constants.js +1 -0
  72. package/lib/commonjs/providers/screen/orchestrator/styles/constants.js.map +1 -1
  73. package/lib/commonjs/providers/screen/orchestrator/styles/hooks/slot-resolvers.js +5 -8
  74. package/lib/commonjs/providers/screen/orchestrator/styles/hooks/slot-resolvers.js.map +1 -1
  75. package/lib/commonjs/utils/bounds/navigation/reveal/build.js +28 -61
  76. package/lib/commonjs/utils/bounds/navigation/reveal/build.js.map +1 -1
  77. package/lib/commonjs/utils/bounds/navigation/reveal/config.js +3 -4
  78. package/lib/commonjs/utils/bounds/navigation/reveal/config.js.map +1 -1
  79. package/lib/commonjs/utils/bounds/navigation/reveal/math.js +8 -8
  80. package/lib/commonjs/utils/bounds/navigation/reveal/math.js.map +1 -1
  81. package/lib/commonjs/utils/bounds/navigation/reveal/types.js +3 -1
  82. package/lib/commonjs/utils/bounds/navigation/reveal/types.js.map +1 -1
  83. package/lib/commonjs/utils/bounds/navigation/zoom/build.js +4 -6
  84. package/lib/commonjs/utils/bounds/navigation/zoom/build.js.map +1 -1
  85. package/lib/commonjs/utils/bounds/navigation/zoom/clip.js +64 -0
  86. package/lib/commonjs/utils/bounds/navigation/zoom/clip.js.map +1 -0
  87. package/lib/commonjs/utils/bounds/navigation/zoom/drag.js +1 -1
  88. package/lib/commonjs/utils/bounds/navigation/zoom/drag.js.map +1 -1
  89. package/lib/commonjs/utils/bounds/navigation/zoom/types.js +3 -1
  90. package/lib/commonjs/utils/bounds/navigation/zoom/types.js.map +1 -1
  91. package/lib/module/components/boundary/components/boundary-lifecycle.js +41 -9
  92. package/lib/module/components/boundary/components/boundary-lifecycle.js.map +1 -1
  93. package/lib/module/components/boundary/components/boundary-target.js +10 -17
  94. package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
  95. package/lib/module/components/boundary/create-boundary-component.js +13 -16
  96. package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
  97. package/lib/module/components/boundary/helpers/presentation.js +50 -0
  98. package/lib/module/components/boundary/helpers/presentation.js.map +1 -0
  99. package/lib/module/components/boundary/hooks/use-boundary-presentation.js +62 -0
  100. package/lib/module/components/boundary/hooks/use-boundary-presentation.js.map +1 -0
  101. package/lib/module/components/boundary/hooks/use-composed-boundary-style.js +39 -0
  102. package/lib/module/components/boundary/hooks/use-composed-boundary-style.js.map +1 -0
  103. package/lib/module/components/boundary/index.js +2 -3
  104. package/lib/module/components/boundary/index.js.map +1 -1
  105. package/lib/module/components/boundary/portal/components/portal-host.js +34 -0
  106. package/lib/module/components/boundary/portal/components/portal-host.js.map +1 -0
  107. package/lib/module/components/boundary/portal/components/portal-overlay.js +165 -0
  108. package/lib/module/components/boundary/portal/components/portal-overlay.js.map +1 -0
  109. package/lib/module/components/boundary/portal/components/portal.js +83 -0
  110. package/lib/module/components/boundary/portal/components/portal.js.map +1 -0
  111. package/lib/module/components/boundary/portal/helpers/offset-style.js.map +1 -0
  112. package/lib/module/components/boundary/portal/hooks/use-active-portal-boundary-host.js +31 -0
  113. package/lib/module/components/boundary/portal/hooks/use-active-portal-boundary-host.js.map +1 -0
  114. package/lib/module/components/boundary/portal/hooks/use-host-measurement.js +78 -0
  115. package/lib/module/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  116. package/lib/module/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
  117. package/lib/module/components/boundary/portal/hooks/use-portal-destination.js +54 -0
  118. package/lib/module/components/boundary/portal/hooks/use-portal-destination.js.map +1 -0
  119. package/lib/module/components/boundary/portal/index.js +0 -1
  120. package/lib/module/components/boundary/portal/index.js.map +1 -1
  121. package/lib/module/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.js +1 -12
  122. package/lib/module/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  123. package/lib/module/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.js +17 -17
  124. package/lib/module/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  125. package/lib/module/components/boundary/portal/utils/naming.js +6 -0
  126. package/lib/module/components/boundary/portal/utils/naming.js.map +1 -1
  127. package/lib/module/components/boundary/portal/utils/resolve-portal.js +7 -27
  128. package/lib/module/components/boundary/portal/utils/resolve-portal.js.map +1 -1
  129. package/lib/module/components/boundary/providers/boundary-root.provider.js +13 -7
  130. package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
  131. package/lib/module/components/screen/container/helpers/layer-component.js +35 -0
  132. package/lib/module/components/screen/container/helpers/layer-component.js.map +1 -0
  133. package/lib/module/components/screen/container/{layers/render-component.js → helpers/uses-layer-render-props.js} +1 -1
  134. package/lib/module/components/screen/container/helpers/uses-layer-render-props.js.map +1 -0
  135. package/lib/module/components/screen/container/layers/backdrop.js +5 -13
  136. package/lib/module/components/screen/container/layers/backdrop.js.map +1 -1
  137. package/lib/module/components/screen/container/layers/clip.js +112 -0
  138. package/lib/module/components/screen/container/layers/clip.js.map +1 -0
  139. package/lib/module/components/screen/container/layers/content.js +18 -33
  140. package/lib/module/components/screen/container/layers/content.js.map +1 -1
  141. package/lib/module/components/screen/container/layers/surface.js +4 -15
  142. package/lib/module/components/screen/container/layers/surface.js.map +1 -1
  143. package/lib/module/components/screen/lifecycle/hooks/use-open-transition-intent.js +17 -2
  144. package/lib/module/components/screen/lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  145. package/lib/module/constants.js +3 -1
  146. package/lib/module/constants.js.map +1 -1
  147. package/lib/module/hooks/navigation/use-navigation-helpers.js +16 -4
  148. package/lib/module/hooks/navigation/use-navigation-helpers.js.map +1 -1
  149. package/lib/module/providers/screen/motion/animation/helpers/build-screen-transition-options.js +0 -1
  150. package/lib/module/providers/screen/motion/animation/helpers/build-screen-transition-options.js.map +1 -1
  151. package/lib/module/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js +3 -2
  152. package/lib/module/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  153. package/lib/module/providers/screen/motion/options/helpers.js +1 -3
  154. package/lib/module/providers/screen/motion/options/helpers.js.map +1 -1
  155. package/lib/module/providers/screen/orchestrator/helpers/use-interpolator-state.js +6 -4
  156. package/lib/module/providers/screen/orchestrator/helpers/use-interpolator-state.js.map +1 -1
  157. package/lib/module/providers/screen/orchestrator/helpers/use-pair-presentation.js +73 -0
  158. package/lib/module/providers/screen/orchestrator/helpers/use-pair-presentation.js.map +1 -0
  159. package/lib/module/providers/screen/orchestrator/orchestrator.provider.js +3 -0
  160. package/lib/module/providers/screen/orchestrator/orchestrator.provider.js.map +1 -1
  161. package/lib/module/providers/screen/orchestrator/styles/constants.js +1 -0
  162. package/lib/module/providers/screen/orchestrator/styles/constants.js.map +1 -1
  163. package/lib/module/providers/screen/orchestrator/styles/hooks/slot-resolvers.js +5 -8
  164. package/lib/module/providers/screen/orchestrator/styles/hooks/slot-resolvers.js.map +1 -1
  165. package/lib/module/types/animation.types.js +3 -1
  166. package/lib/module/types/animation.types.js.map +1 -1
  167. package/lib/module/utils/bounds/navigation/reveal/build.js +30 -63
  168. package/lib/module/utils/bounds/navigation/reveal/build.js.map +1 -1
  169. package/lib/module/utils/bounds/navigation/reveal/config.js +2 -3
  170. package/lib/module/utils/bounds/navigation/reveal/config.js.map +1 -1
  171. package/lib/module/utils/bounds/navigation/reveal/math.js +7 -7
  172. package/lib/module/utils/bounds/navigation/reveal/math.js.map +1 -1
  173. package/lib/module/utils/bounds/navigation/reveal/types.js +1 -1
  174. package/lib/module/utils/bounds/navigation/reveal/types.js.map +1 -1
  175. package/lib/module/utils/bounds/navigation/zoom/build.js +5 -7
  176. package/lib/module/utils/bounds/navigation/zoom/build.js.map +1 -1
  177. package/lib/module/utils/bounds/navigation/zoom/clip.js +59 -0
  178. package/lib/module/utils/bounds/navigation/zoom/clip.js.map +1 -0
  179. package/lib/module/utils/bounds/navigation/zoom/drag.js +1 -1
  180. package/lib/module/utils/bounds/navigation/zoom/drag.js.map +1 -1
  181. package/lib/module/utils/bounds/navigation/zoom/types.js +1 -1
  182. package/lib/module/utils/bounds/navigation/zoom/types.js.map +1 -1
  183. package/lib/typescript/components/boundary/components/boundary-lifecycle.d.ts.map +1 -1
  184. package/lib/typescript/components/boundary/components/boundary-target.d.ts.map +1 -1
  185. package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
  186. package/lib/typescript/components/boundary/helpers/presentation.d.ts +14 -0
  187. package/lib/typescript/components/boundary/helpers/presentation.d.ts.map +1 -0
  188. package/lib/typescript/components/boundary/hooks/use-boundary-presentation.d.ts +9 -0
  189. package/lib/typescript/components/boundary/hooks/use-boundary-presentation.d.ts.map +1 -0
  190. package/lib/typescript/components/boundary/hooks/use-composed-boundary-style.d.ts +4 -0
  191. package/lib/typescript/components/boundary/hooks/use-composed-boundary-style.d.ts.map +1 -0
  192. package/lib/typescript/components/boundary/index.d.ts +3 -2
  193. package/lib/typescript/components/boundary/index.d.ts.map +1 -1
  194. package/lib/typescript/components/boundary/portal/components/portal-host.d.ts +15 -0
  195. package/lib/typescript/components/boundary/portal/components/portal-host.d.ts.map +1 -0
  196. package/lib/typescript/components/boundary/portal/components/portal-overlay.d.ts +20 -0
  197. package/lib/typescript/components/boundary/portal/components/portal-overlay.d.ts.map +1 -0
  198. package/lib/typescript/components/boundary/portal/components/portal.d.ts +23 -0
  199. package/lib/typescript/components/boundary/portal/components/portal.d.ts.map +1 -0
  200. package/lib/typescript/components/boundary/portal/helpers/offset-style.d.ts.map +1 -0
  201. package/lib/typescript/components/boundary/portal/hooks/use-active-portal-boundary-host.d.ts +11 -0
  202. package/lib/typescript/components/boundary/portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -0
  203. package/lib/typescript/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
  204. package/lib/typescript/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
  205. package/lib/typescript/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +1 -0
  206. package/lib/typescript/components/boundary/portal/hooks/use-portal-destination.d.ts +8 -0
  207. package/lib/typescript/components/boundary/portal/hooks/use-portal-destination.d.ts.map +1 -0
  208. package/lib/typescript/components/boundary/portal/index.d.ts +0 -1
  209. package/lib/typescript/components/boundary/portal/index.d.ts.map +1 -1
  210. package/lib/typescript/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
  211. package/lib/typescript/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.d.ts +2 -3
  212. package/lib/typescript/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  213. package/lib/typescript/components/boundary/portal/utils/naming.d.ts +1 -0
  214. package/lib/typescript/components/boundary/portal/utils/naming.d.ts.map +1 -1
  215. package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -7
  216. package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
  217. package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +5 -2
  218. package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  219. package/lib/typescript/components/screen/container/helpers/layer-component.d.ts +10 -0
  220. package/lib/typescript/components/screen/container/helpers/layer-component.d.ts.map +1 -0
  221. package/lib/typescript/components/screen/container/{layers/render-component.d.ts → helpers/uses-layer-render-props.d.ts} +1 -1
  222. package/lib/typescript/components/screen/container/helpers/uses-layer-render-props.d.ts.map +1 -0
  223. package/lib/typescript/components/screen/container/layers/backdrop.d.ts.map +1 -1
  224. package/lib/typescript/components/screen/container/layers/clip.d.ts +7 -0
  225. package/lib/typescript/components/screen/container/layers/clip.d.ts.map +1 -0
  226. package/lib/typescript/components/screen/container/layers/content.d.ts.map +1 -1
  227. package/lib/typescript/components/screen/container/layers/surface.d.ts.map +1 -1
  228. package/lib/typescript/components/screen/lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -1
  229. package/lib/typescript/constants.d.ts +3 -1
  230. package/lib/typescript/constants.d.ts.map +1 -1
  231. package/lib/typescript/hooks/navigation/use-navigation-helpers.d.ts.map +1 -1
  232. package/lib/typescript/index.d.ts +1 -1
  233. package/lib/typescript/index.d.ts.map +1 -1
  234. package/lib/typescript/providers/screen/motion/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
  235. package/lib/typescript/providers/screen/motion/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  236. package/lib/typescript/providers/screen/motion/options/helpers.d.ts.map +1 -1
  237. package/lib/typescript/providers/screen/motion/options/types.d.ts +0 -1
  238. package/lib/typescript/providers/screen/motion/options/types.d.ts.map +1 -1
  239. package/lib/typescript/providers/screen/orchestrator/helpers/use-interpolator-state.d.ts.map +1 -1
  240. package/lib/typescript/providers/screen/orchestrator/helpers/use-pair-presentation.d.ts +21 -0
  241. package/lib/typescript/providers/screen/orchestrator/helpers/use-pair-presentation.d.ts.map +1 -0
  242. package/lib/typescript/providers/screen/orchestrator/orchestrator.provider.d.ts +2 -0
  243. package/lib/typescript/providers/screen/orchestrator/orchestrator.provider.d.ts.map +1 -1
  244. package/lib/typescript/providers/screen/orchestrator/styles/constants.d.ts.map +1 -1
  245. package/lib/typescript/providers/screen/orchestrator/styles/hooks/slot-resolvers.d.ts +1 -1
  246. package/lib/typescript/providers/screen/orchestrator/styles/hooks/slot-resolvers.d.ts.map +1 -1
  247. package/lib/typescript/providers/screen/orchestrator/styles/types.d.ts +1 -1
  248. package/lib/typescript/providers/screen/orchestrator/styles/types.d.ts.map +1 -1
  249. package/lib/typescript/types/animation.types.d.ts +16 -4
  250. package/lib/typescript/types/animation.types.d.ts.map +1 -1
  251. package/lib/typescript/types/bounds.types.d.ts +7 -15
  252. package/lib/typescript/types/bounds.types.d.ts.map +1 -1
  253. package/lib/typescript/types/index.d.ts +1 -1
  254. package/lib/typescript/types/index.d.ts.map +1 -1
  255. package/lib/typescript/types/screen.types.d.ts +1 -8
  256. package/lib/typescript/types/screen.types.d.ts.map +1 -1
  257. package/lib/typescript/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  258. package/lib/typescript/utils/bounds/navigation/reveal/config.d.ts +2 -3
  259. package/lib/typescript/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
  260. package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts +3 -3
  261. package/lib/typescript/utils/bounds/navigation/reveal/types.d.ts +1 -5
  262. package/lib/typescript/utils/bounds/navigation/reveal/types.d.ts.map +1 -1
  263. package/lib/typescript/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  264. package/lib/typescript/utils/bounds/navigation/zoom/{mask.d.ts → clip.d.ts} +5 -5
  265. package/lib/typescript/utils/bounds/navigation/zoom/clip.d.ts.map +1 -0
  266. package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts +1 -1
  267. package/lib/typescript/utils/bounds/navigation/zoom/types.d.ts +1 -5
  268. package/lib/typescript/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
  269. package/package.json +1 -1
  270. package/src/components/boundary/components/boundary-lifecycle.tsx +44 -8
  271. package/src/components/boundary/components/boundary-target.tsx +14 -36
  272. package/src/components/boundary/create-boundary-component.tsx +16 -17
  273. package/src/components/boundary/helpers/presentation.ts +88 -0
  274. package/src/components/boundary/hooks/use-boundary-presentation.ts +82 -0
  275. package/src/components/boundary/hooks/use-composed-boundary-style.ts +58 -0
  276. package/src/components/boundary/index.tsx +10 -5
  277. package/src/components/boundary/portal/components/portal-host.tsx +36 -0
  278. package/src/components/boundary/portal/components/portal-overlay.tsx +223 -0
  279. package/src/components/boundary/portal/components/portal.tsx +124 -0
  280. package/src/components/boundary/portal/hooks/use-active-portal-boundary-host.ts +52 -0
  281. package/src/components/boundary/portal/hooks/use-host-measurement.ts +101 -0
  282. package/src/components/boundary/portal/hooks/use-portal-destination.ts +53 -0
  283. package/src/components/boundary/portal/index.ts +0 -1
  284. package/src/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.ts +1 -20
  285. package/src/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.ts +19 -26
  286. package/src/components/boundary/portal/utils/naming.ts +10 -0
  287. package/src/components/boundary/portal/utils/resolve-portal.ts +9 -48
  288. package/src/components/boundary/providers/boundary-root.provider.tsx +34 -22
  289. package/src/components/screen/container/helpers/layer-component.tsx +38 -0
  290. package/src/components/screen/container/layers/backdrop.tsx +8 -31
  291. package/src/components/screen/container/layers/clip.tsx +124 -0
  292. package/src/components/screen/container/layers/content.tsx +21 -62
  293. package/src/components/screen/container/layers/surface.tsx +5 -23
  294. package/src/components/screen/lifecycle/hooks/use-open-transition-intent.ts +26 -2
  295. package/src/constants.ts +3 -1
  296. package/src/hooks/navigation/use-navigation-helpers.ts +13 -7
  297. package/src/index.ts +1 -0
  298. package/src/providers/screen/motion/animation/helpers/build-screen-transition-options.ts +0 -1
  299. package/src/providers/screen/motion/animation/helpers/hydrate-transition-state/index.ts +3 -2
  300. package/src/providers/screen/motion/options/helpers.ts +0 -6
  301. package/src/providers/screen/motion/options/types.ts +0 -1
  302. package/src/providers/screen/orchestrator/helpers/use-interpolator-state.ts +13 -8
  303. package/src/providers/screen/orchestrator/helpers/use-pair-presentation.ts +103 -0
  304. package/src/providers/screen/orchestrator/orchestrator.provider.tsx +4 -0
  305. package/src/providers/screen/orchestrator/styles/constants.ts +1 -0
  306. package/src/providers/screen/orchestrator/styles/hooks/slot-resolvers.tsx +8 -11
  307. package/src/providers/screen/orchestrator/styles/types.ts +1 -0
  308. package/src/types/animation.types.ts +35 -4
  309. package/src/types/bounds.types.ts +7 -15
  310. package/src/types/index.ts +1 -0
  311. package/src/types/screen.types.ts +1 -8
  312. package/src/utils/bounds/navigation/reveal/build.ts +46 -80
  313. package/src/utils/bounds/navigation/reveal/config.ts +2 -4
  314. package/src/utils/bounds/navigation/reveal/math.ts +9 -9
  315. package/src/utils/bounds/navigation/reveal/types.ts +1 -8
  316. package/src/utils/bounds/navigation/zoom/build.ts +16 -26
  317. package/src/utils/bounds/navigation/zoom/{mask.ts → clip.ts} +42 -48
  318. package/src/utils/bounds/navigation/zoom/drag.ts +2 -2
  319. package/src/utils/bounds/navigation/zoom/types.ts +1 -8
  320. package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +0 -83
  321. package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +0 -1
  322. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js +0 -45
  323. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js.map +0 -1
  324. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +0 -119
  325. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +0 -1
  326. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js +0 -20
  327. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js.map +0 -1
  328. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +0 -14
  329. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +0 -1
  330. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +0 -136
  331. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +0 -1
  332. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js +0 -53
  333. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js.map +0 -1
  334. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js +0 -99
  335. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js.map +0 -1
  336. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +0 -104
  337. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +0 -1
  338. package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +0 -13
  339. package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +0 -1
  340. package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +0 -1
  341. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +0 -82
  342. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +0 -1
  343. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +0 -58
  344. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +0 -1
  345. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +0 -67
  346. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +0 -1
  347. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +0 -1
  348. package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js +0 -68
  349. package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +0 -1
  350. package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +0 -1
  351. package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +0 -1
  352. package/lib/commonjs/components/screen/container/layers/maybe-masked-navigation-container.js +0 -83
  353. package/lib/commonjs/components/screen/container/layers/maybe-masked-navigation-container.js.map +0 -1
  354. package/lib/commonjs/components/screen/container/layers/render-component.js.map +0 -1
  355. package/lib/commonjs/utils/bounds/navigation/zoom/mask.js +0 -73
  356. package/lib/commonjs/utils/bounds/navigation/zoom/mask.js.map +0 -1
  357. package/lib/module/components/boundary/hooks/use-boundary-measurement.js +0 -78
  358. package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +0 -1
  359. package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js +0 -40
  360. package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js.map +0 -1
  361. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +0 -110
  362. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +0 -1
  363. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js +0 -16
  364. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js.map +0 -1
  365. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +0 -9
  366. package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +0 -1
  367. package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +0 -131
  368. package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +0 -1
  369. package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js +0 -42
  370. package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map +0 -1
  371. package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js +0 -94
  372. package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map +0 -1
  373. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +0 -99
  374. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +0 -1
  375. package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +0 -8
  376. package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +0 -1
  377. package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +0 -1
  378. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +0 -76
  379. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +0 -1
  380. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +0 -53
  381. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +0 -1
  382. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +0 -62
  383. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +0 -1
  384. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +0 -1
  385. package/lib/module/components/boundary/portal/components/boundary-portal/index.js +0 -63
  386. package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +0 -1
  387. package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +0 -1
  388. package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +0 -1
  389. package/lib/module/components/screen/container/layers/maybe-masked-navigation-container.js +0 -78
  390. package/lib/module/components/screen/container/layers/maybe-masked-navigation-container.js.map +0 -1
  391. package/lib/module/components/screen/container/layers/render-component.js.map +0 -1
  392. package/lib/module/utils/bounds/navigation/zoom/mask.js +0 -68
  393. package/lib/module/utils/bounds/navigation/zoom/mask.js.map +0 -1
  394. package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +0 -28
  395. package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +0 -1
  396. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +0 -10
  397. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +0 -1
  398. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +0 -45
  399. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +0 -1
  400. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.d.ts +0 -8
  401. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.d.ts.map +0 -1
  402. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +0 -2
  403. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +0 -1
  404. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +0 -10
  405. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +0 -1
  406. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts +0 -9
  407. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +0 -1
  408. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts +0 -7
  409. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +0 -1
  410. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts +0 -13
  411. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +0 -1
  412. package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +0 -4
  413. package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +0 -1
  414. package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +0 -1
  415. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +0 -21
  416. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +0 -1
  417. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +0 -10
  418. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +0 -1
  419. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts +0 -12
  420. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +0 -1
  421. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +0 -1
  422. package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts +0 -12
  423. package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts.map +0 -1
  424. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +0 -1
  425. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +0 -1
  426. package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts +0 -9
  427. package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts.map +0 -1
  428. package/lib/typescript/components/screen/container/layers/render-component.d.ts.map +0 -1
  429. package/lib/typescript/utils/bounds/navigation/zoom/mask.d.ts.map +0 -1
  430. package/src/components/boundary/hooks/use-boundary-measurement.ts +0 -98
  431. package/src/components/boundary/portal/components/boundary-content-portal/components/host.tsx +0 -56
  432. package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +0 -192
  433. package/src/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.ts +0 -23
  434. package/src/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +0 -9
  435. package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +0 -252
  436. package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +0 -81
  437. package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +0 -119
  438. package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +0 -139
  439. package/src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +0 -10
  440. package/src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +0 -118
  441. package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +0 -64
  442. package/src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +0 -90
  443. package/src/components/boundary/portal/components/boundary-portal/index.tsx +0 -97
  444. package/src/components/screen/container/layers/maybe-masked-navigation-container.tsx +0 -113
  445. /package/lib/commonjs/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.js +0 -0
  446. /package/lib/commonjs/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.js +0 -0
  447. /package/lib/module/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.js +0 -0
  448. /package/lib/module/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.js +0 -0
  449. /package/lib/typescript/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.d.ts +0 -0
  450. /package/lib/typescript/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.d.ts +0 -0
  451. /package/lib/typescript/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.d.ts +0 -0
  452. /package/src/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.ts +0 -0
  453. /package/src/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.ts +0 -0
  454. /package/src/components/screen/container/{layers/render-component.ts → helpers/uses-layer-render-props.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_builder","_motion","_transitionVisualState","_orchestrator","_blankStack","_linkPairs","_entries","_links","_state","_naming","_activeHandoffReceiver","_handoffVisibility","_hostName","isCompleteActiveLink","pair","link","boundaryLinkKey","status","group","groups","activeId","useBoundaryContentPortalAttachment","boundaryId","slotsMap","useOrchestratorStore","store","currentScreenKey","useBuilderStore","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","destinationIsScreenReady","useOptionalMotionStore","isScreenReady","unavailableIsScreenReady","useSharedValue","screenReadiness","activeReceiverScreenKey","useBlankStackStore","resolveActiveHandoffReceiver","previousReceiverScreenKey","resolvePreviousHandoffReceiver","localAnimationProgress","useMotionStore","state","animationProgress","receiverAnimationProgress","activeReceiverAnimationProgress","activeReceiverClosing","closing","activeReceiverIsScreenReady","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","slotProps","props","set","pairChangedDuringClose","hasActiveCloseFinished","hasCloseTransitionFinished","automaticPair","pairs","getLinkKeyFromTag","automaticLink","links","requestedSourcePairKey","getPairKeyForSource","requestedSourcePair","requestedSourceLink","pairDestination","destination","screenKey","requestedDestinationPairKey","getPairKeyForDestination","destinationPair","destinationLink","retainedSourcePairKey","undefined","retainedSourcePair","retainedSourceLink","requestedPairKey","resolveRequestedHandoffPairKey","destinationPairHasCompleteLink","retainedSourcePairHasCompleteLink","sourcePairHasCompleteLink","requestedPair","requestedLink","attachedScreenKey","automaticReceiverScreenKey","resolveHandoffAttachmentCandidate","pairDestinationScreenKey","pairHasBoundaryLink","requestedDestinationScreenKey","nextReceiverScreenKey","resolveRequestedHandoffReceiver","automaticScreenKey","destinationReady","destinationScreenKey","sourceScreenKey","source","receiverEntry","getEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","canActivateHandoffReceiver","receiverIsActiveDestination","targetScreenKey","targetHostName","createBoundaryContentPortalHostName","PORTAL_HOST_NAME_RESET_VALUE","hostName","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAIA,IAAAS,MAAA,GAAAT,OAAA;AAKA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,sBAAA,GAAAX,OAAA;AAOA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AAMA,MAAMc,oBAAoB,GAAGA,CAC5BC,IAAsC,EACtCC,IAAyB,EACzBC,eAAuB,KACnB;EACJ,SAAS;;EAET,OACCD,IAAI,EAAEE,MAAM,KAAK,UAAU,KAC1B,CAACF,IAAI,CAACG,KAAK,IAAIJ,IAAI,EAAEK,MAAM,CAACJ,IAAI,CAACG,KAAK,CAAC,EAAEE,QAAQ,KAAKJ,eAAe,CAAC;AAEzE,CAAC;AAEM,MAAMK,kCAAkC,GAAGA,CAAC;EAClDC;AACyC,CAAC,KAAK;EAC/C,MAAMC,QAAQ,GAAG,IAAAC,kCAAoB,EAAEC,KAAK,IAAKA,KAAK,CAACF,QAAQ,CAAC;EAEhE,MAAMG,gBAAgB,GAAG,IAAAC,wBAAe,EACtCC,CAAC,IAA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,MAAMC,wBAAwB,GAC7B9C,sBAAsB,IAAI6B,iBAAiB,KAAKxD,uBAAuB;IAExE,MAAM0E,yBAAyB,GAC9B,CAAC,CAACpC,eAAe,IACjB1C,aAAa,IACbkE,qBAAqB,KAAKxB,eAAe;IAE1C,MAAMqC,mBAAmB,GAAG,IAAAC,6CAA0B,EAAC;MACtDH,wBAAwB;MACxBC,yBAAyB;MACzBlE,iBAAiB;MACjBqE,2BAA2B,EAC1B,CAACJ,wBAAwB,IACzBX,qBAAqB,KAAK9D,uBAAuB;MAClDN,wBAAwB,EAAEmB,2BAA2B,EAAEM,GAAG,CAAC;IAC5D,CAAC,CAAC;IAEF,IAAI2C,qBAAqB,IAAIS,aAAa,IAAII,mBAAmB,EAAE;MAClE7D,yBAAyB,CAACW,GAAG,CAACqC,qBAAqB,CAAC;IACrD;IAEA,MAAMgB,eAAe,GAAGhE,yBAAyB,CAACK,GAAG,CAAC,CAAC;IAEvD,MAAM4D,cAAc,GAAGD,eAAe,GACnC,IAAAE,6CAAmC,EAACF,eAAe,EAAE/F,UAAU,CAAC,GAChEkG,oCAA4B;IAE/B,OAAO;MACN,GAAG1D,SAAS;MACZ2D,QAAQ,EAAEH;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAE/D;EAAc,CAAC;AACzB,CAAC;AAACmE,OAAA,CAAArG,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.BoundaryContentPortal = void 0;
7
- Object.defineProperty(exports, "BoundaryContentPortalHost", {
8
- enumerable: true,
9
- get: function () {
10
- return _host.BoundaryContentPortalHost;
11
- }
12
- });
13
- var _react = require("react");
14
- var _reactNative = require("react-native");
15
- var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
16
- var _teleport = require("../../teleport");
17
- var _useBoundaryContentPortalAttachment = require("./hooks/use-boundary-content-portal-attachment");
18
- var _jsxRuntime = require("react/jsx-runtime");
19
- var _host = require("./components/host");
20
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
- const AnimatedNativePortal = _teleport.NativePortal ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortal) : null;
22
- const EnabledNativePortal = AnimatedNativePortal;
23
- const BoundaryContentPortal = exports.BoundaryContentPortal = /*#__PURE__*/(0, _react.memo)(function BoundaryContentPortal({
24
- boundaryId,
25
- children,
26
- enabled
27
- }) {
28
- if (!enabled || boundaryId === undefined || !_teleport.isTeleportAvailable || !AnimatedNativePortal) {
29
- return children;
30
- }
31
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(EnabledBoundaryContentPortal, {
32
- boundaryId: boundaryId,
33
- children: children
34
- });
35
- });
36
- const EnabledBoundaryContentPortal = /*#__PURE__*/(0, _react.memo)(function EnabledBoundaryContentPortal({
37
- boundaryId,
38
- children
39
- }) {
40
- const {
41
- teleportProps
42
- } = (0, _useBoundaryContentPortalAttachment.useBoundaryContentPortalAttachment)({
43
- boundaryId
44
- });
45
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(EnabledNativePortal, {
46
- animatedProps: teleportProps,
47
- name: boundaryId,
48
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
49
- style: _reactNative.StyleSheet.absoluteFill,
50
- children: children
51
- });
52
- });
53
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_teleport","_useBoundaryContentPortalAttachment","_jsxRuntime","_host","e","__esModule","default","AnimatedNativePortal","NativePortal","Animated","createAnimatedComponent","EnabledNativePortal","BoundaryContentPortal","exports","memo","boundaryId","children","enabled","undefined","isTeleportAvailable","jsx","EnabledBoundaryContentPortal","teleportProps","useBoundaryContentPortalAttachment","animatedProps","name","pointerEvents","PORTAL_POINTER_EVENTS","style","StyleSheet","absoluteFill"],"sourceRoot":"../../../../../../../src","sources":["components/boundary/portal/components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,UAAW;IACjBW,aAAa,EAAEC,+BAAsB;IACrCC,KAAK,EAAEC,uBAAU,CAACC,YAAa;IAAAd,QAAA,EAE9BA;EAAQ,CACW,CAAC;AAExB,CACD,CAAC","ignoreList":[]}
@@ -1,99 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ScreenFallbackHost = exports.Host = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
10
- var _builder = require("../../../../../../providers/screen/builder");
11
- var _teleport = require("../../../teleport");
12
- var _useHostMeasurement = require("../hooks/use-host-measurement");
13
- var _hostRegistry = require("../stores/host-registry.store");
14
- var _portalBoundaryHost = require("../stores/portal-boundary-host.store");
15
- var _portalBoundaryHost2 = require("./portal-boundary-host");
16
- var _jsxRuntime = require("react/jsx-runtime");
17
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
- let nextHostId = 0;
19
- function HostImpl({
20
- fallback = false,
21
- style
22
- }) {
23
- const screenKey = (0, _builder.useBuilderStore)(s => s.derivations.currentScreenKey);
24
- const generatedHostKeyRef = (0, _react.useRef)(null);
25
- if (generatedHostKeyRef.current === null) {
26
- generatedHostKeyRef.current = `${screenKey}-host-${nextHostId++}`;
27
- }
28
- const hostKey = fallback ? screenKey : generatedHostKeyRef.current;
29
- const activeBoundaryHosts = (0, _portalBoundaryHost.useActivePortalBoundaryHosts)(hostKey);
30
- const {
31
- height: viewportHeight,
32
- width: viewportWidth
33
- } = (0, _reactNative.useWindowDimensions)();
34
- const measurementKey = activeBoundaryHosts.length ? activeBoundaryHosts.map(host => host.portalHostName).join("|") : null;
35
- const measurement = (0, _useHostMeasurement.useHostMeasurement)({
36
- measurementKey
37
- });
38
- (0, _react.useLayoutEffect)(() => {
39
- (0, _hostRegistry.registerHost)({
40
- fallback,
41
- hostKey,
42
- screenKey
43
- });
44
- return () => {
45
- (0, _hostRegistry.unregisterHost)(screenKey, hostKey);
46
- };
47
- }, [fallback, hostKey, screenKey]);
48
- const boundaryHosts = activeBoundaryHosts.map(host => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
49
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
50
- style: [styles.boundaryHostViewport, {
51
- width: viewportWidth,
52
- height: viewportHeight
53
- }],
54
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_portalBoundaryHost2.PortalBoundaryHost, {
55
- host: host,
56
- hostBounds: measurement.hostBounds,
57
- hostMeasurementKey: measurementKey,
58
- measuredHostKey: measurement.measuredKey,
59
- style: _reactNative.StyleSheet.absoluteFill
60
- })
61
- }, host.portalHostName));
62
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
63
- ref: measurement.hostRef,
64
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
65
- style: [styles.host, {
66
- width: viewportWidth,
67
- height: viewportHeight
68
- }, style],
69
- collapsable: false,
70
- children: boundaryHosts
71
- });
72
- }
73
- const Host = exports.Host = /*#__PURE__*/(0, _react.memo)(function Host(props) {
74
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(HostImpl, {
75
- ...props
76
- });
77
- });
78
- const ScreenFallbackHost = exports.ScreenFallbackHost = /*#__PURE__*/(0, _react.memo)(function ScreenFallbackHost() {
79
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(HostImpl, {
80
- fallback: true
81
- });
82
- });
83
- const styles = _reactNative.StyleSheet.create({
84
- host: {
85
- elevation: 999999,
86
- left: 0,
87
- overflow: "visible",
88
- position: "absolute",
89
- top: 0,
90
- zIndex: 999999
91
- },
92
- boundaryHostViewport: {
93
- left: 0,
94
- overflow: "visible",
95
- position: "absolute",
96
- top: 0
97
- }
98
- });
99
- //# sourceMappingURL=host.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_builder","_teleport","_useHostMeasurement","_hostRegistry","_portalBoundaryHost","_portalBoundaryHost2","_jsxRuntime","e","__esModule","default","nextHostId","HostImpl","fallback","style","screenKey","useBuilderStore","s","derivations","currentScreenKey","generatedHostKeyRef","useRef","current","hostKey","activeBoundaryHosts","useActivePortalBoundaryHosts","height","viewportHeight","width","viewportWidth","useWindowDimensions","measurementKey","length","map","host","portalHostName","join","measurement","useHostMeasurement","useLayoutEffect","registerHost","unregisterHost","boundaryHosts","jsx","View","pointerEvents","PORTAL_POINTER_EVENTS","styles","boundaryHostViewport","children","PortalBoundaryHost","hostBounds","hostMeasurementKey","measuredHostKey","measuredKey","StyleSheet","absoluteFill","ref","hostRef","collapsable","Host","exports","memo","props","ScreenFallbackHost","create","elevation","left","overflow","position","top","zIndex"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AACA,IAAAS,oBAAA,GAAAT,OAAA;AAA4D,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAG,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5D,IAAIG,UAAU,GAAG,CAAC;AAUlB,SAASC,QAAQA,CAAC;EAAEC,QAAQ,GAAG,KAAK;EAAEC;AAAqB,CAAC,EAAE;EAC7D,MAAMC,SAAS,GAAG,IAAAC,wBAAe,EAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACC,gBAAgB,CAAC;EACxE,MAAMC,mBAAmB,GAAG,IA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AAC;IACNC,MAAM,EAAE;EACT,CAAC;EACDvB,oBAAoB,EAAE;IACrBmB,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,SAAS;IACnBC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1,104 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PortalBoundaryHost = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
- var _constants = require("../../../../../../constants");
11
- var _composeSlotStyle = require("../../../../../../providers/screen/orchestrator/styles/helpers/compose-slot-style");
12
- var _teleport = require("../../../teleport");
13
- var _localMeasurement = require("../helpers/local-measurement");
14
- var _offsetStyle = require("../helpers/offset-style");
15
- var _jsxRuntime = require("react/jsx-runtime");
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
- const AnimatedPortalBoundaryHost = _teleport.NativePortalHost ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortalHost) : null;
18
- const getCurrentBoundaryBounds = host => {
19
- "worklet";
20
-
21
- return (0, _localMeasurement.resolveBoundaryLocalMeasurement)(host.localMeasurement.get(), host.pairKey);
22
- };
23
- const PortalBoundaryHost = exports.PortalBoundaryHost = /*#__PURE__*/(0, _react.memo)(function PortalBoundaryHost({
24
- host,
25
- hostBounds,
26
- hostMeasurementKey,
27
- measuredHostKey,
28
- style
29
- }) {
30
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
31
- "worklet";
32
-
33
- return getCurrentBoundaryBounds(host) !== null && hostBounds.get() !== null && !!hostMeasurementKey && measuredHostKey.get() === hostMeasurementKey;
34
- }, ready => {
35
- "worklet";
36
-
37
- if (ready) {
38
- host.portalHostReady.set(true);
39
- }
40
- });
41
- const hostStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
42
- "worklet";
43
-
44
- const boundaryBounds = getCurrentBoundaryBounds(host);
45
- if (!boundaryBounds) {
46
- return _constants.NO_STYLES;
47
- }
48
- return (0, _offsetStyle.resolvePortalOffsetStyle)({
49
- bounds: boundaryBounds,
50
- hostBounds: hostBounds.get()
51
- });
52
- });
53
- const contentFrameStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
54
- "worklet";
55
-
56
- const boundaryBounds = getCurrentBoundaryBounds(host);
57
- if (!boundaryBounds) {
58
- return _constants.NO_STYLES;
59
- }
60
- return {
61
- height: boundaryBounds.height,
62
- width: boundaryBounds.width
63
- };
64
- });
65
- const slotStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
66
- "worklet";
67
-
68
- const slot = host.slotsMap.get()[host.boundaryId];
69
- return (0, _composeSlotStyle.composeSlotStyleWithLocalTransform)(slot?.style ?? _constants.NO_STYLES, undefined, slot?.boundsLocalTransform);
70
- });
71
-
72
- // Without `react-native-teleport` no portal ever mounts a boundary host, so
73
- // this never renders - the guard just narrows the nullable animated host.
74
- if (!AnimatedPortalBoundaryHost) {
75
- return null;
76
- }
77
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
78
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
79
- style: [style, hostStyle],
80
- collapsable: false,
81
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedPortalBoundaryHost, {
82
- name: host.portalHostName,
83
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
84
- style: [styles.content, contentFrameStyle, slotStyle]
85
- })
86
- });
87
- });
88
-
89
- // The teleport offset is a physical page delta measured from the screen's
90
- // left edge, so the content box must anchor there too. Under native RTL,
91
- // `left: 0` swaps to a right-edge anchor; `end: 0` is the physical left edge
92
- // in RTL regardless of the swap setting.
93
- const styles = _reactNative.StyleSheet.create({
94
- content: _reactNative.I18nManager.isRTL ? {
95
- end: 0,
96
- position: "absolute",
97
- top: 0
98
- } : {
99
- left: 0,
100
- position: "absolute",
101
- top: 0
102
- }
103
- });
104
- //# sourceMappingURL=portal-boundary-host.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_constants","_composeSlotStyle","_teleport","_localMeasurement","_offsetStyle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedPortalBoundaryHost","NativePortalHost","Animated","createAnimatedComponent","getCurrentBoundaryBounds","host","resolveBoundaryLocalMeasurement","localMeasurement","pairKey","PortalBoundaryHost","exports","memo","hostBounds","hostMeasurementKey","measuredHostKey","style","useAnimatedReaction","ready","portalHostReady","hostStyle","useAnimatedStyle","boundaryBounds","NO_STYLES","resolvePortalOffsetStyle","bounds","contentFrameStyle","height","width","slotStyle","slot","slotsMap","boundaryId","composeSlotStyleWithLocalTransform","undefined","boundsLocalTransform","jsx","View","pointerEvents","PORTAL_POINTER_EVENTS","collapsable","children","name","portalHostName","styles","content","StyleSheet","create","I18nManager","isRTL","end","position","top","left"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAA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3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.resolveBoundaryLocalMeasurement = void 0;
7
- const resolveBoundaryLocalMeasurement = (measurement, pairKey) => {
8
- "worklet";
9
-
10
- return measurement?.pairKey === pairKey ? measurement.bounds : null;
11
- };
12
- exports.resolveBoundaryLocalMeasurement = resolveBoundaryLocalMeasurement;
13
- //# sourceMappingURL=local-measurement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["resolveBoundaryLocalMeasurement","measurement","pairKey","bounds","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts"],"mappings":";;;;;;AAGO,MAAMA,+BAA+B,GAAGA,CAC9CC,WAA4C,EAC5CC,OAAsB,KAClB;EACJ,SAAS;;EACT,OAAOD,WAAW,EAAEC,OAAO,KAAKA,OAAO,GAAGD,WAAW,CAACE,MAAM,GAAG,IAAI;AACpE,CAAC;AAACC,OAAA,CAAAJ,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["resolvePortalOffsetStyle","bounds","hostBounds","hostPageX","pageX","hostPageY","pageY","transform","translateY","translateX","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/helpers/offset-style.ts"],"mappings":";;;;;;AAOO,MAAMA,wBAAwB,GAAGA,CAAC;EACxCC,MAAM;EACNC;AAC+B,CAAC,KAAiB;EACjD,SAAS;;EACT;EACA;EACA;EACA,MAAMC,SAAS,GAAGD,UAAU,EAAEE,KAAK,IAAI,CAAC;EACxC,MAAMC,SAAS,GAAGH,UAAU,EAAEI,KAAK,IAAI,CAAC;EAExC,OAAO;IACNC,SAAS,EAAE,CACV;MAAEC,UAAU,EAAEP,MAAM,CAACK,KAAK,GAAGD;IAAU,CAAC,EACxC;MAAEI,UAAU,EAAER,MAAM,CAACG,KAAK,GAAGD;IAAU,CAAC;EAE1C,CAAC;AACF,CAAC;AAACO,OAAA,CAAAV,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useActivePortalBoundaryHost = exports.resolveActivePortalPairKey = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- var _reactNativeWorklets = require("react-native-worklets");
10
- var _links = require("../../../../../../stores/bounds/internals/links");
11
- var _naming = require("../../../utils/naming");
12
- var _portalBoundaryHost = require("../stores/portal-boundary-host.store");
13
- const resolveActivePortalPairKey = ({
14
- pairKey,
15
- measurementPairKey,
16
- hasAnimatedSlot
17
- }) => {
18
- "worklet";
19
-
20
- if (!pairKey || measurementPairKey !== pairKey || !hasAnimatedSlot) {
21
- return null;
22
- }
23
- return pairKey;
24
- };
25
- exports.resolveActivePortalPairKey = resolveActivePortalPairKey;
26
- const useActivePortalBoundaryHost = ({
27
- boundaryId,
28
- currentScreenKey,
29
- escapeHostKey,
30
- localMeasurement,
31
- portalHostName,
32
- portalHostReady,
33
- slotsMap
34
- }) => {
35
- const [activePairKey, setActivePairKey] = (0, _react.useState)(null);
36
- const updateActivePairKey = (0, _react.useCallback)(pairKey => {
37
- setActivePairKey(pairKey);
38
- }, []);
39
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
40
- "worklet";
41
-
42
- const pairKey = (0, _links.getPairKeyForSource)(boundaryId, currentScreenKey);
43
- const measurement = localMeasurement.get();
44
- return resolveActivePortalPairKey({
45
- pairKey,
46
- measurementPairKey: measurement?.pairKey,
47
- hasAnimatedSlot: slotsMap.get()[boundaryId] !== undefined
48
- });
49
- }, (pairKey, previousPairKey) => {
50
- "worklet";
51
-
52
- if (pairKey === previousPairKey) {
53
- return;
54
- }
55
- (0, _reactNativeWorklets.scheduleOnRN)(updateActivePairKey, pairKey);
56
- });
57
- (0, _react.useLayoutEffect)(() => {
58
- if (!activePairKey || !escapeHostKey) {
59
- portalHostName.set(null);
60
- portalHostReady.set(false);
61
- return;
62
- }
63
- const nextPortalHostName = (0, _naming.createBoundaryPortalHostName)(escapeHostKey, boundaryId, activePairKey);
64
- (0, _portalBoundaryHost.mountPortalBoundaryHost)({
65
- boundaryId,
66
- hostKey: escapeHostKey,
67
- localMeasurement,
68
- pairKey: activePairKey,
69
- portalHostName: nextPortalHostName,
70
- portalHostReady,
71
- slotsMap
72
- });
73
- portalHostName.set(nextPortalHostName);
74
- return () => {
75
- portalHostName.set(null);
76
- portalHostReady.set(false);
77
- (0, _portalBoundaryHost.unmountPortalBoundaryHostByName)(nextPortalHostName);
78
- };
79
- }, [activePairKey, boundaryId, escapeHostKey, localMeasurement, portalHostName, portalHostReady, slotsMap]);
80
- };
81
- exports.useActivePortalBoundaryHost = useActivePortalBoundaryHost;
82
- //# sourceMappingURL=use-active-portal-boundary-host.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_reactNativeWorklets","_links","_naming","_portalBoundaryHost","resolveActivePortalPairKey","pairKey","measurementPairKey","hasAnimatedSlot","exports","useActivePortalBoundaryHost","boundaryId","currentScreenKey","escapeHostKey","localMeasurement","portalHostName","portalHostReady","slotsMap","activePairKey","setActivePairKey","useState","updateActivePairKey","useCallback","useAnimatedReaction","getPairKeyForSource","measurement","get","undefined","previousPairKey","scheduleOnRN","useLayoutEffect","set","nextPortalHostName","createBoundaryPortalHostName","mountPortalBoundaryHost","hostKey","unmountPortalBoundaryHostByName"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAeO,MAAMM,0BAA0B,GAAGA,CAAC;EAC1CC,OAAO;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GAAG,CAAC,IAAI,CAAC;MACxBf,eAAe,CAACe,GAAG,CAAC,KAAK,CAAC;MAC1B;IACD;IAEA,MAAMC,kBAAkB,GAAG,IAAAC,oCAA4B,EACtDpB,aAAa,EACbF,UAAU,EACVO,aACD,CAAC;IAED,IAAAgB,2CAAuB,EAAC;MACvBvB,UAAU;MACVwB,OAAO,EAAEtB,aAAa;MACtBC,gBAAgB;MAChBR,OAAO,EAAEY,aAAa;MACtBH,cAAc,EAAEiB,kBAAkB;MAClChB,eAAe;MACfC;IACD,CAAC,CAAC;IACFF,cAAc,CAACgB,GAAG,CAACC,kBAAkB,CAAC;IAEtC,OAAO,MAAM;MACZjB,cAAc,CAACgB,GAAG,CAAC,IAAI,CAAC;MACxBf,eAAe,CAACe,GAAG,CAAC,KAAK,CAAC;MAC1B,IAAAK,mDAA+B,EAACJ,kBAAkB,CAAC;IACpD,CAAC;EACF,CAAC,EAAE,CACFd,aAAa,EACbP,UAAU,EACVE,aAAa,EACbC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC,QAAQ,CACR,CAAC;AACH,CAAC;AAACR,OAAA,CAAAC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useBoundaryPortalAttachment = void 0;
7
- var _reactNativeReanimated = require("react-native-reanimated");
8
- var _builder = require("../../../../../../providers/screen/builder");
9
- var _orchestrator = require("../../../../../../providers/screen/orchestrator");
10
- var _boundaryRoot = require("../../../../providers/boundary-root.provider");
11
- var _naming = require("../../../utils/naming");
12
- var _hostRegistry = require("../stores/host-registry.store");
13
- var _useActivePortalBoundaryHost = require("./use-active-portal-boundary-host");
14
- const useBoundaryPortalAttachment = ({
15
- boundaryId
16
- }) => {
17
- const localMeasurement = (0, _boundaryRoot.useBoundaryRootStore)(root => {
18
- if (!root) {
19
- throw new Error("Boundary portal attachment requires a boundary root.");
20
- }
21
- return root.localMeasurement;
22
- });
23
- const currentScreenKey = (0, _builder.useBuilderStore)(s => s.derivations.currentScreenKey);
24
- const slotsMap = (0, _orchestrator.useOrchestratorStore)(store => store.slotsMap);
25
- const portalHostName = (0, _reactNativeReanimated.useSharedValue)(null);
26
- const portalHostReady = (0, _reactNativeReanimated.useSharedValue)(false);
27
- const escapeHostKey = (0, _hostRegistry.useActiveHostKey)(currentScreenKey);
28
- (0, _useActivePortalBoundaryHost.useActivePortalBoundaryHost)({
29
- boundaryId,
30
- currentScreenKey,
31
- escapeHostKey,
32
- localMeasurement,
33
- portalHostName,
34
- portalHostReady,
35
- slotsMap
36
- });
37
- const teleportProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
38
- "worklet";
39
-
40
- const slot = slotsMap.get()[boundaryId];
41
- const {
42
- pointerEvents: _pointerEvents,
43
- handoffTarget: _handoffTarget,
44
- ...slotProps
45
- } = slot?.props ?? {};
46
- const shouldAttach = slot !== undefined && portalHostReady.get();
47
- const hostName = shouldAttach ? portalHostName.get() : _naming.PORTAL_HOST_NAME_RESET_VALUE;
48
- return {
49
- ...slotProps,
50
- hostName
51
- };
52
- });
53
- return {
54
- teleportProps
55
- };
56
- };
57
- exports.useBoundaryPortalAttachment = useBoundaryPortalAttachment;
58
- //# sourceMappingURL=use-boundary-portal-attachment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_builder","_orchestrator","_boundaryRoot","_naming","_hostRegistry","_useActivePortalBoundaryHost","useBoundaryPortalAttachment","boundaryId","localMeasurement","useBoundaryRootStore","root","Error","currentScreenKey","useBuilderStore","s","derivations","slotsMap","useOrchestratorStore","store","portalHostName","useSharedValue","portalHostReady","escapeHostKey","useActiveHostKey","useActivePortalBoundaryHost","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","_handoffTarget","slotProps","props","shouldAttach","undefined","hostName","PORTAL_HOST_NAME_RESET_VALUE","exports"],"sourceRoot":"../../../../../../../../src","sources":["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Aa,EAAEC,cAAc;MAC7B,GAAGC;IACJ,CAAC,GAAGN,IAAI,EAAEO,KAAK,IAAI,CAAC,CAAC;IAErB,MAAMC,YAAY,GAAGR,IAAI,KAAKS,SAAS,IAAIf,eAAe,CAACO,GAAG,CAAC,CAAC;IAEhE,MAAMS,QAAQ,GAAGF,YAAY,GAC1BhB,cAAc,CAACS,GAAG,CAAC,CAAC,GACpBU,oCAA4B;IAE/B,OAAO;MACN,GAAGL,SAAS;MACZI;IACD,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEZ;EAAc,CAAC;AACzB,CAAC;AAACc,OAAA,CAAAjC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1,67 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useHostMeasurement = void 0;
7
- var _reactNativeReanimated = require("react-native-reanimated");
8
- const HOST_MEASUREMENT_RETRY_DELAY_MS = 16;
9
- const useHostMeasurement = ({
10
- measurementKey
11
- }) => {
12
- const hostRef = (0, _reactNativeReanimated.useAnimatedRef)();
13
- const hostBounds = (0, _reactNativeReanimated.useSharedValue)(null);
14
- const measuredKey = (0, _reactNativeReanimated.useSharedValue)(null);
15
- const retryToken = (0, _reactNativeReanimated.useSharedValue)(0);
16
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
17
- "worklet";
18
-
19
- if (!measurementKey) {
20
- return null;
21
- }
22
- return [measurementKey, measuredKey.get(), retryToken.get()];
23
- }, state => {
24
- "worklet";
25
-
26
- if (!state) {
27
- (0, _reactNativeReanimated.cancelAnimation)(retryToken);
28
- return;
29
- }
30
- const [requestedKey, completedKey] = state;
31
- if (requestedKey === completedKey) {
32
- return;
33
- }
34
- const measured = (0, _reactNativeReanimated.measure)(hostRef);
35
- if (!measured) {
36
- (0, _reactNativeReanimated.cancelAnimation)(retryToken);
37
- retryToken.set((0, _reactNativeReanimated.withDelay)(HOST_MEASUREMENT_RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryToken.get() + 1, {
38
- duration: 0
39
- })));
40
- return;
41
- }
42
- (0, _reactNativeReanimated.cancelAnimation)(retryToken);
43
- if (measured.width <= 0 || measured.height <= 0) {
44
- (0, _reactNativeReanimated.cancelAnimation)(retryToken);
45
- retryToken.set((0, _reactNativeReanimated.withDelay)(HOST_MEASUREMENT_RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryToken.get() + 1, {
46
- duration: 0
47
- })));
48
- return;
49
- }
50
- hostBounds.set({
51
- x: measured.x,
52
- y: measured.y,
53
- width: measured.width,
54
- height: measured.height,
55
- pageX: measured.pageX,
56
- pageY: measured.pageY
57
- });
58
- measuredKey.set(requestedKey);
59
- });
60
- return {
61
- hostBounds,
62
- hostRef,
63
- measuredKey
64
- };
65
- };
66
- exports.useHostMeasurement = useHostMeasurement;
67
- //# sourceMappingURL=use-host-measurement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","HOST_MEASUREMENT_RETRY_DELAY_MS","useHostMeasurement","measurementKey","hostRef","useAnimatedRef","hostBounds","useSharedValue","measuredKey","retryToken","useAnimatedReaction","get","state","cancelAnimation","requestedKey","completedKey","measured","measure","set","withDelay","withTiming","duration","width","height","x","y","pageX","pageY","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAWA,MAAMC,+BAA+B,GAAG,EAAE;AAMnC,MAAMC,kBAAkB,GAAGA,CAAC;EAClCC;AACyB,CAAC,KAAK;EAC/B,MAAMC,OAAO,GAAG,IAAAC,qCAAc,EAAO,CAAC;EACtC,MAAMC,UAAU,GAAG,IAAAC,qCAAc,EAA4B,IAAI,CAAC;EAClE,MAAMC,WAAW,GAAG,IAAAD,qCAAc,EAAgB,IAAI,CAAC;EACvD,MAAME,UAAU,GAAG,IAAAF,qCAAc,EAAC,CAAC,CAAC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AAC;MACbH,KAAK,EAAEN,QAAQ,CAACM,KAAK;MACrBC,MAAM,EAAEP,QAAQ,CAACO,MAAM;MACvBG,KAAK,EAAEV,QAAQ,CAACU,KAAK;MACrBC,KAAK,EAAEX,QAAQ,CAACW;IACjB,CAAC,CAAC;IACFnB,WAAW,CAACU,GAAG,CAACJ,YAAY,CAAC;EAC9B,CACD,CAAC;EACD,OAAO;IACNR,UAAU;IACVF,OAAO;IACPI;EACD,CAAC;AACF,CAAC;AAACoB,OAAA,CAAA1B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","usePlaceholderStyles","placeholderWidth","useSharedValue","placeholderHeight","placeholderStyle","useAnimatedStyle","width","get","height","handleOnLayout","useCallback","layout","hasValidDimensions","set","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AAEO,MAAME,oBAAoB,GAAGA,CAAA,KAAM;EACzC,MAAMC,gBAAgB,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAC1C,MAAMC,iBAAiB,GAAG,IAAAD,qCAAc,EAAC,CAAC,CAAC;EAC3C;EACA;EACA;EACA;EACA,MAAME,gBAAgB,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC/C,SAAS;;IACT,MAAMC,KAAK,GAAGL,gBAAgB,CAACM,GAAG,CAAC,CAAC;IACpC,MAAMC,MAAM,GAAGL,iBAAiB,CAACI,GAAG,CAAC,CAAC;IAEtC,IAAID,KAAK,KAAK,CAAC,EAAE;MAChB,OAAO;QAAEA,KAAK,EAAE,MAAM;QAAEE,MAAM,EAAE;MAAO,CAAC;IACzC;IAEA,OAAO;MAAEF,KAAK;MAAEE;IAAO,CAAC;EACzB,CAAC,CAAC;EAEF,MAAMC,cAAc,GAAG,IAAAC,kBAAW,EAChCC,MAAuB,IAAK;IAC5B,SAAS;;IACT,MAAM;MAAEL,KAAK;MAAEE;IAAO,CAAC,GAAGG,MAAM;IAChC,IAAIL,KAAK,KAAK,CAAC,IAAIE,MAAM,KAAK,CAAC,EAAE;MAChC;IACD;IAEA,MAAMI,kBAAkB,GACvBT,iBAAiB,CAACI,GAAG,CAAC,CAAC,KAAK,CAAC,IAAIN,gBAAgB,CAACM,GAAG,CAAC,CAAC,KAAK,CAAC;IAE9D,IAAI,CAACK,kBAAkB,EAAE;MACxBX,gBAAgB,CAACY,GAAG,CAACP,KAAK,CAAC;MAC3BH,iBAAiB,CAACU,GAAG,CAACL,MAAM,CAAC;IAC9B;EACD,CAAC,EACD,CAACL,iBAAiB,EAAEF,gBAAgB,CACrC,CAAC;EAED,OAAO;IAAEG,gBAAgB;IAAEK;EAAe,CAAC;AAC5C,CAAC;AAACK,OAAA,CAAAd,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.BoundaryPortal = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
- var _reactNativeWorklets = require("react-native-worklets");
10
- var _logger = require("../../../../../utils/logger");
11
- var _teleport = require("../../teleport");
12
- var _useBoundaryPortalAttachment = require("./hooks/use-boundary-portal-attachment");
13
- var _usePlaceholderStyles = require("./hooks/use-placeholder-styles");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- const AnimatedNativePortal = _teleport.NativePortal ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortal) : null;
17
- const EnabledNativePortal = AnimatedNativePortal;
18
- const BoundaryPortal = exports.BoundaryPortal = /*#__PURE__*/(0, _react.memo)(function BoundaryPortal({
19
- boundaryId,
20
- children,
21
- enabled,
22
- placeholderRef
23
- }) {
24
- if (!enabled || !_teleport.isTeleportAvailable || !AnimatedNativePortal) {
25
- return children;
26
- }
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(EnabledBoundaryPortal, {
28
- boundaryId: boundaryId,
29
- placeholderRef: placeholderRef,
30
- children: children
31
- });
32
- });
33
- const EnabledBoundaryPortal = /*#__PURE__*/(0, _react.memo)(function EnabledBoundaryPortal({
34
- boundaryId,
35
- children,
36
- placeholderRef
37
- }) {
38
- if (__DEV__ && !boundaryId) {
39
- _logger.logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
40
- }
41
- const {
42
- teleportProps
43
- } = (0, _useBoundaryPortalAttachment.useBoundaryPortalAttachment)({
44
- boundaryId
45
- });
46
- const {
47
- handleOnLayout,
48
- placeholderStyle
49
- } = (0, _usePlaceholderStyles.usePlaceholderStyles)();
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
51
- ref: placeholderRef,
52
- onLayout: ({
53
- nativeEvent: {
54
- layout
55
- }
56
- }) => (0, _reactNativeWorklets.scheduleOnUI)(handleOnLayout, layout),
57
- style: placeholderStyle,
58
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
59
- collapsable: false,
60
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(EnabledNativePortal, {
61
- animatedProps: teleportProps,
62
- name: boundaryId,
63
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
64
- children: children
65
- })
66
- });
67
- });
68
- //# sourceMappingURL=index.js.map