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
@@ -6,7 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.BoundaryLifecycle = void 0;
7
7
  var _react = require("react");
8
8
  var _builder = require("../../../providers/screen/builder");
9
- var _useBoundaryMeasurement = require("../hooks/use-boundary-measurement");
9
+ var _styles = require("../../../utils/bounds/helpers/styles/styles");
10
+ var _useBoundaryPresence = require("../hooks/lifecycles/use-boundary-presence");
11
+ var _useInitialDestinationMeasurement = require("../hooks/lifecycles/use-initial-destination-measurement");
12
+ var _useInitialSourceMeasurement = require("../hooks/lifecycles/use-initial-source-measurement");
13
+ var _useRefreshBoundary = require("../hooks/lifecycles/use-refresh-boundary");
14
+ var _useMeasurer = require("../hooks/use-measurer");
10
15
  const BoundaryLifecycle = exports.BoundaryLifecycle = /*#__PURE__*/(0, _react.memo)(function BoundaryLifecycle({
11
16
  boundTag,
12
17
  config,
@@ -19,17 +24,44 @@ const BoundaryLifecycle = exports.BoundaryLifecycle = /*#__PURE__*/(0, _react.me
19
24
  style
20
25
  }) {
21
26
  const hasConfiguredInterpolator = (0, _builder.useBuilderStore)(s => s.derivations.hasConfiguredInterpolator);
22
- (0, _useBoundaryMeasurement.useBoundaryMeasurement)({
23
- boundTag,
27
+ const runtimeEnabled = enabled && hasConfiguredInterpolator;
28
+ const preparedStyles = (0, _react.useMemo)(() => (0, _styles.prepareStyleForBounds)(style), [style]);
29
+ const measureBoundary = (0, _useMeasurer.useMeasurer)({
24
30
  enabled,
25
- runtimeEnabled: enabled && hasConfiguredInterpolator,
31
+ boundTag,
26
32
  currentScreenKey,
27
- measuredRef,
28
- style,
33
+ preparedStyles,
34
+ measuredAnimatedRef: measuredRef,
29
35
  handoff,
30
36
  escapeClipping,
31
- localMeasurement,
32
- config
37
+ localMeasurement
38
+ });
39
+
40
+ // Presence and source capture must not depend on this screen owning an
41
+ // interpolator: a nested source can participate in a transition owned by a
42
+ // different navigator.
43
+ (0, _useBoundaryPresence.useBoundaryPresence)({
44
+ enabled,
45
+ boundTag,
46
+ currentScreenKey,
47
+ boundaryConfig: config,
48
+ handoff,
49
+ escapeClipping
50
+ });
51
+ (0, _useInitialSourceMeasurement.useInitialSourceMeasurement)({
52
+ enabled,
53
+ measureBoundary,
54
+ boundTag
55
+ });
56
+ (0, _useInitialDestinationMeasurement.useInitialDestinationMeasurement)({
57
+ boundTag,
58
+ enabled: runtimeEnabled,
59
+ measureBoundary
60
+ });
61
+ (0, _useRefreshBoundary.useRefreshBoundary)({
62
+ enabled: runtimeEnabled,
63
+ boundTag,
64
+ measureBoundary
33
65
  });
34
66
  return null;
35
67
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_builder","_useBoundaryMeasurement","BoundaryLifecycle","exports","memo","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style","hasConfiguredInterpolator","useBuilderStore","s","derivations","useBoundaryMeasurement","runtimeEnabled"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAF,OAAA;AAkBO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,iBAAiBA,CAAC;EAChEG,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1B,MAAMC,yBAAyB,GAAG,IAAAC,wBAAe,EAC/CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,yBACtB,CAAC;EAED,IAAAI,8CAAsB,EAAC;IACtBb,QAAQ;IACRG,OAAO;IACPW,cAAc,EAAEX,OAAO,IAAIM,yBAAyB;IACpDP,gBAAgB;IAChBK,WAAW;IACXC,KAAK;IACLH,OAAO;IACPD,cAAc;IACdE,gBAAgB;IAChBL;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_builder","_styles","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useRefreshBoundary","_useMeasurer","BoundaryLifecycle","exports","memo","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style","hasConfiguredInterpolator","useBuilderStore","s","derivations","runtimeEnabled","preparedStyles","useMemo","prepareStyleForBounds","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","boundaryConfig","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,iCAAA,GAAAJ,OAAA;AACA,IAAAK,4BAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAkBO,MAAMQ,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,iBAAiBA,CAAC;EAChEG,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1B,MAAMC,yBAAyB,GAAG,IAAAC,wBAAe,EAC/CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,yBACtB,CAAC;EAED,MAAMI,cAAc,GAAGV,OAAO,IAAIM,yBAAyB;EAC3D,MAAMK,cAAc,GAAG,IAAAC,cAAO,EAAC,MAAM,IAAAC,6BAAqB,EAACR,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMS,eAAe,GAAG,IAAAC,wBAAW,EAAC;IACnCf,OAAO;IACPH,QAAQ;IACRE,gBAAgB;IAChBY,cAAc;IACdK,mBAAmB,EAAEZ,WAAW;IAChCF,OAAO;IACPD,cAAc;IACdE;EACD,CAAC,CAAC;;EAEF;EACA;EACA;EACA,IAAAc,wCAAmB,EAAC;IACnBjB,OAAO;IACPH,QAAQ;IACRE,gBAAgB;IAChBmB,cAAc,EAAEpB,MAAM;IACtBI,OAAO;IACPD;EACD,CAAC,CAAC;EAEF,IAAAkB,wDAA2B,EAAC;IAC3BnB,OAAO;IACPc,eAAe;IACfjB;EACD,CAAC,CAAC;EAEF,IAAAuB,kEAAgC,EAAC;IAChCvB,QAAQ;IACRG,OAAO,EAAEU,cAAc;IACvBI;EACD,CAAC,CAAC;EAEF,IAAAO,sCAAkB,EAAC;IAClBrB,OAAO,EAAEU,cAAc;IACvBb,QAAQ;IACRiB;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.BoundaryTarget = exports.BOUNDARY_TARGET_ACTIVE_PROP = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
- var _styles = require("../../../providers/screen/orchestrator/styles");
10
9
  var _logger = require("../../../utils/logger");
11
- var _boundaryContentPortal = require("../portal/components/boundary-content-portal");
12
- var _boundaryPortal = require("../portal/components/boundary-portal");
10
+ var _useComposedBoundaryStyle = require("../hooks/use-composed-boundary-style");
11
+ var _portal = require("../portal/components/portal");
13
12
  var _boundaryRoot = require("../providers/boundary-root.provider");
14
13
  var _jsxRuntime = require("react/jsx-runtime");
15
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -28,17 +27,15 @@ const BoundaryTargetInner = props => {
28
27
  const portalRuntime = rootContext?.portalRuntime;
29
28
  const handoffEnabled = isActiveTarget && rootContext?.handoffEnabled === true;
30
29
  const shouldEscapeTargetToScreenHost = isActiveTarget && portalRuntime?.escapeClipping === true;
31
- const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.escapeClipping !== true;
32
- const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.escapeClipping === true;
33
- const associatedTargetStyles = (0, _styles.useComposedSlotStyles)(rootContext?.boundTag.tag, style);
34
- const portalLayoutStyle = (0, _styles.useSlotLayoutStyles)(rootContext?.boundTag.tag);
30
+ const associatedTargetStyles = (0, _useComposedBoundaryStyle.useComposedBoundaryStyle)(rootContext?.slotsMap, boundaryId, style, shouldEscapeTargetToScreenHost ? "layout" : "full");
35
31
  const measurementRef = isActiveTarget ? rootContext.measurementRef : undefined;
36
32
  (0, _react.useLayoutEffect)(() => {
37
33
  if (__DEV__ && rootContext === null) {
38
34
  _logger.logger.warn(_boundaryRoot.TARGET_OUTSIDE_ROOT_WARNING);
39
35
  }
40
36
  }, [rootContext]);
41
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryPortal.BoundaryPortal, {
37
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
38
+ mode: "escapeClipping",
42
39
  boundaryId: boundaryId ?? "",
43
40
  enabled: shouldEscapeTargetToScreenHost,
44
41
  placeholderRef: measurementRef,
@@ -46,17 +43,13 @@ const BoundaryTargetInner = props => {
46
43
  ...rest,
47
44
  pointerEvents: pointerEvents,
48
45
  ref: shouldEscapeTargetToScreenHost ? undefined : measurementRef,
49
- style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
46
+ style: [style, isActiveTarget ? associatedTargetStyles : undefined],
50
47
  collapsable: false,
51
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortalHost, {
52
- boundaryId: boundaryId ?? "",
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
49
+ mode: "handoff",
50
+ boundaryId: boundaryId,
53
51
  enabled: handoffEnabled,
54
- screenKey: rootContext?.currentScreenKey ?? "",
55
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortal, {
56
- boundaryId: boundaryId,
57
- enabled: handoffEnabled,
58
- children: children
59
- })
52
+ children: children
60
53
  })
61
54
  })
62
55
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_styles","_logger","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_jsxRuntime","e","__esModule","default","BOUNDARY_TARGET_ACTIVE_PROP","exports","BoundaryTargetInner","props","active","children","pointerEvents","style","rest","rootContext","useOptionalBoundaryRootStore","boundaryId","boundTag","tag","isActiveTarget","portalRuntime","handoffEnabled","shouldEscapeTargetToScreenHost","escapeClipping","shouldApplyAssociatedStyleInline","shouldApplyPortalLayoutStyle","associatedTargetStyles","useComposedSlotStyles","portalLayoutStyle","useSlotLayoutStyles","measurementRef","undefined","useLayoutEffect","__DEV__","logger","warn","TARGET_OUTSIDE_ROOT_WARNING","jsx","BoundaryPortal","enabled","placeholderRef","View","ref","collapsable","BoundaryContentPortalHost","screenKey","currentScreenKey","BoundaryContentPortal","BoundaryTarget","memo"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-target.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AAIA,IAAAM,eAAA,GAAAN,OAAA;AACA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,IAAInB,WAAW,KAAK,IAAI,EAAE;MACpCoB,cAAM,CAACC,IAAI,CAACC,yCAA2B,CAAC;IACzC;EACD,CAAC,EAAE,CAACtB,WAAW,CAAC,CAAC;EAEjB,oBACC,IAAAb,WAAA,CAAAoC,GAAA,EAACtC,eAAA,CAAAuC,cAAc;IACdtB,UAAU,EAAEA,UAAU,IAAI,EAAG;IAC7BuB,OAAO,EAAEjB,8BAA+B;IACxCkB,cAAc,EAAEV,cAAe;IAAApB,QAAA,eAE/B,IAAAT,WAAA,CAAAoC,GAAA,EAAC3C,sBAAA,CAAAU,OAAQ,CAACqC,IAAI;MAAA,GACT5B,IAAI;MACRF,aAAa,EAAEA,aAAc;MAC7B+B,GAAG,EAAEpB,8BAA8B,GAAGS,SAAS,GAAGD,cAAe;MACjElB,KAAK,EAAE,CACNA,KAAK,EACLY,gCAAgC,GAAGE,sBAAsB,GAAGK,SAAS,EACrEN,4BAA4B,GAAGG,iBAAiB,GAAGG,SAAS,CAC3D;MACFY,WAAW,EAAE,KAAM;MAAAjC,QAAA,eAEnB,IAAAT,WAAA,CAAAoC,GAAA,EAACvC,sBAAA,CAAA8C,yBAAyB;QACzB5B,UAAU,EAAEA,UAAU,IAAI,EAAG;QAC7BuB,OAAO,EAAElB,cAAe;QACxBwB,SAAS,EAAE/B,WAAW,EAAEgC,gBAAgB,IAAI,EAAG;QAAApC,QAAA,eAE/C,IAAAT,WAAA,CAAAoC,GAAA,EAACvC,sBAAA,CAAAiD,qBAAqB;UACrB/B,UAAU,EAAEA,UAAW;UACvBuB,OAAO,EAAElB,cAAe;UAAAX,QAAA,EAEvBA;QAAQ,CACa;MAAC,CACE;IAAC,CACd;EAAC,CACD,CAAC;AAEnB,CAAC;AAEM,MAAMsC,cAAc,GAAA1C,OAAA,CAAA0C,cAAA,gBAAG,IAAAC,WAAI,EACjC1C,mBACD,CAAoD","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_logger","_useComposedBoundaryStyle","_portal","_boundaryRoot","_jsxRuntime","e","__esModule","default","BOUNDARY_TARGET_ACTIVE_PROP","exports","BoundaryTargetInner","props","active","children","pointerEvents","style","rest","rootContext","useOptionalBoundaryRootStore","boundaryId","boundTag","tag","isActiveTarget","portalRuntime","handoffEnabled","shouldEscapeTargetToScreenHost","escapeClipping","associatedTargetStyles","useComposedBoundaryStyle","slotsMap","measurementRef","undefined","useLayoutEffect","__DEV__","logger","warn","TARGET_OUTSIDE_ROOT_WARNING","jsx","Portal","mode","enabled","placeholderRef","View","ref","collapsable","BoundaryTarget","memo"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-target.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,yBAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAG6C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAStC,MAAMG,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,GAAG,wBAAiC;AAK5E,MAAME,mBAAmB,GAAIC,KAAkC,IAAK;EACnE,MAAM;IACL,CAACH,2BAA2B,GAAGI,MAAM;IACrCC,QAAQ;IACRC,aAAa;IACbC,KAAK;IACL,GAAGC;EACJ,CAAC,GAAGL,KAAK;EACT,MAAMM,WAAW,GAAG,IAAAC,0CAA4B,EAAC,CAAC;EAClD,MAAMC,UAAU,GAAGF,WAAW,EAAEG,QAAQ,CAACC,GAAG;EAC5C,MAAMC,cAAc,GAAGV,MAAM,KAAK,IAAI,IAAIK,WAAW,KAAK,IAAI;EAC9D,MAAMM,aAAa,GAAGN,WAAW,EAAEM,aAAa;EAChD,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,CACT,CAAC;AAEX,CAAC;AAEM,MAAMgC,cAAc,GAAApC,OAAA,CAAAoC,cAAA,gBAAG,IAAAC,WAAI,EACjCpC,mBACD,CAAoD","ignoreList":[]}
@@ -7,8 +7,7 @@ exports.createBoundaryComponent = createBoundaryComponent;
7
7
  var _react = require("react");
8
8
  var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
9
  var _boundaryTarget = require("./components/boundary-target");
10
- var _boundaryContentPortal = require("./portal/components/boundary-content-portal");
11
- var _boundaryPortal = require("./portal/components/boundary-portal");
10
+ var _portal = require("./portal/components/portal");
12
11
  var _boundaryRoot = require("./providers/boundary-root.provider");
13
12
  var _resolveBoundaryTarget = require("./utils/resolve-boundary-target");
14
13
  var _jsxRuntime = require("react/jsx-runtime");
@@ -33,6 +32,12 @@ function createBoundaryComponent(Wrapped, options = {}) {
33
32
  children,
34
33
  ...rest
35
34
  } = props;
35
+ const config = (0, _react.useMemo)(() => ({
36
+ anchor,
37
+ scaleMode,
38
+ target,
39
+ method
40
+ }), [anchor, scaleMode, target, method]);
36
41
  const targetResolution = (0, _react.useMemo)(() => {
37
42
  return (0, _resolveBoundaryTarget.resolveBoundaryTarget)(children, {
38
43
  isTarget: element => element.type === _boundaryTarget.BoundaryTarget,
@@ -43,12 +48,7 @@ function createBoundaryComponent(Wrapped, options = {}) {
43
48
  }, [children]);
44
49
  const targetStyle = targetResolution.target?.props?.style;
45
50
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryRoot.BoundaryRootProvider, {
46
- config: {
47
- anchor,
48
- scaleMode,
49
- target,
50
- method
51
- },
51
+ config: config,
52
52
  enabled: enabled,
53
53
  escapeClipping: escapeClipping,
54
54
  forwardedRef: forwardedRef,
@@ -59,7 +59,8 @@ function createBoundaryComponent(Wrapped, options = {}) {
59
59
  style: style,
60
60
  targetCount: targetResolution.targetCount,
61
61
  targetStyle: targetStyle,
62
- children: root => /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryPortal.BoundaryPortal, {
62
+ children: root => /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
63
+ mode: "escapeClipping",
63
64
  boundaryId: root.boundTag.tag,
64
65
  enabled: root.shouldRenderBoundaryRootThroughPortal,
65
66
  placeholderRef: root.measurementRef,
@@ -68,15 +69,11 @@ function createBoundaryComponent(Wrapped, options = {}) {
68
69
  ref: root.ref,
69
70
  style: [style, root.attachedStyle],
70
71
  collapsable: false,
71
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortalHost, {
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
73
+ mode: "handoff",
72
74
  boundaryId: root.boundTag.tag,
73
75
  enabled: root.shouldRenderHandoffHost,
74
- screenKey: root.currentScreenKey,
75
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortal, {
76
- boundaryId: root.boundTag.tag,
77
- enabled: root.shouldRenderHandoffHost,
78
- children: targetResolution.children
79
- })
76
+ children: targetResolution.children
80
77
  })
81
78
  })
82
79
  })
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_boundaryTarget","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_resolveBoundaryTarget","_jsxRuntime","e","__esModule","default","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","targetResolution","useMemo","resolveBoundaryTarget","isTarget","element","type","BoundaryTarget","mapTarget","selected","cloneElement","BOUNDARY_TARGET_ACTIVE_PROP","targetStyle","jsx","BoundaryRootProvider","config","hasTarget","targetCount","root","BoundaryPortal","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","BoundaryContentPortalHost","shouldRenderHandoffHost","screenKey","currentScreenKey","BoundaryContentPortal","memo"],"sourceRoot":"../../../../src","sources":["components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;AAIA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAEA,IAAAO,sBAAA,GAAAP,OAAA;AAAwE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMjE,SAASG,uBAAuBA,CACtCC,OAAyB,EACzBC,OAAuC,GAAG,CAAC,CAAC,EAC3C;EACD,MAAM;IAAEC,eAAe,GAAG;EAAM,CAAC,GAAGD,OAAO;EAC3C,MAAME,iBAAiB,GAAGD,eAAe,GACtCF,OAAO,GACPI,8BAAQ,CAACC,uBAAuB,CAACL,OAAO,CAAC;EAE5C,MAAMM,KAAK,gBAAG,IAAAC,iBAAU,EAGtB,CAACC,KAAK,EAAEC,YAAY,KAAK;IAC1B,MAAM;MACLC,OAAO,GAAG,IAAI;MACdC,KAAK;MACLC,EAAE;MACFC,MAAM;MACNC,SAAS;MACTC,MAAM;MACNC,MAAM;MACNC,KAAK;MACLC,OAAO;MACPC,cAAc;MACdC,QAAQ;MACR,GAAGC;IACJ,CAAC,GAAGb,KAAY;IAChB,MAAMc,gBAAgB,GAAG,IAAAC,cAAO,EAAC,MAAM;MACtC,OAAO,IAAAC,4CAAqB,EAACJ,QAAQ,EAAE;QACtCK,QAAQ,EAAGC,OAAO,IAAKA,OAAO,CAACC,IAAI,KAAKC,8BAAc;QACtDC,SAAS,EAAEA,CAACH,OAAO,EAAEI,QAAQ,kBAC5B,IAAAC,mBAAY,EAACL,OAAO,EAAE;UACrB,CAACM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CAACY,uBAAwB;YACtCC,SAAS,EAAEb,IAAI,CAACc,gBAAiB;YAAAjC,QAAA,eAEjC,IAAAzB,WAAA,CAAAuC,GAAA,EAAC3C,sBAAA,CAAA+D,qBAAqB;cACrBb,UAAU,EAAEF,IAAI,CAACG,QAAQ,CAACC,GAAI;cAC9BjC,OAAO,EAAE6B,IAAI,CAACY,uBAAwB;cAAA/B,QAAA,EAErCE,gBAAgB,CAACF;YAAQ,CACJ;UAAC,CACE;QAAC,CACV;MAAC,CACL;IAChB,CACoB,CAAC;EAEzB,CAAC,CAAC;;EAEF;EACA;EACA,oBAAO,IAAAmC,WAAI,EAACjD,KAAK,CAAC;AAMnB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_boundaryTarget","_portal","_boundaryRoot","_resolveBoundaryTarget","_jsxRuntime","e","__esModule","default","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","config","useMemo","targetResolution","resolveBoundaryTarget","isTarget","element","type","BoundaryTarget","mapTarget","selected","cloneElement","BOUNDARY_TARGET_ACTIVE_PROP","targetStyle","jsx","BoundaryRootProvider","hasTarget","targetCount","root","Portal","mode","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","shouldRenderHandoffHost","memo"],"sourceRoot":"../../../../src","sources":["components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAEA,IAAAM,sBAAA,GAAAN,OAAA;AAAwE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE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B","ignoreList":[]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveBoundaryHandoff = resolveBoundaryHandoff;
7
+ exports.resolveBoundaryPresentation = resolveBoundaryPresentation;
8
+ exports.resolveBoundaryReceiver = resolveBoundaryReceiver;
9
+ var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
10
+ function resolveBoundaryPresentation(screenKey, boundaryId, state) {
11
+ "worklet";
12
+
13
+ const linkKey = (0, _linkPairs.getLinkKeyFromTag)(boundaryId);
14
+ let result;
15
+ for (const value of state.presentations) {
16
+ const presentation = value?.get();
17
+ if (!presentation) continue;
18
+ const pair = state.pairs[presentation.pairKey];
19
+ const link = pair?.links[linkKey];
20
+ if (!link || link.group && pair.groups[link.group]?.activeId !== linkKey) continue;
21
+ const sourceKey = link.source?.screenKey ?? presentation.sourceKey;
22
+ const destinationKey = link.destination?.screenKey ?? presentation.destinationKey;
23
+ if (sourceKey !== screenKey && destinationKey !== screenKey) continue;
24
+ // A preparing or completed pair cannot displace a live presentation.
25
+ if (result && !presentation.ready) continue;
26
+ result = {
27
+ ...presentation,
28
+ sourceKey,
29
+ destinationKey
30
+ };
31
+ }
32
+ return result;
33
+ }
34
+ function resolveBoundaryReceiver(presentation, target, screenKey) {
35
+ "worklet";
36
+
37
+ if (!presentation) return screenKey;
38
+ return presentation.ready && target !== "source" ? presentation.destinationKey : presentation.sourceKey;
39
+ }
40
+ function resolveBoundaryHandoff(screenKey, boundaryId, state) {
41
+ "worklet";
42
+
43
+ let receiver = screenKey;
44
+ const visited = {};
45
+ while (!visited[receiver]) {
46
+ visited[receiver] = true;
47
+ const p = resolveBoundaryPresentation(receiver, boundaryId, state);
48
+ if (!p) break;
49
+ const slot = (p.sourceKey === receiver ? p.source : p.destination)[boundaryId];
50
+ const next = resolveBoundaryReceiver(p, slot?.props?.handoffTarget ?? p.destination[boundaryId]?.props?.handoffTarget ?? p.source[boundaryId]?.props?.handoffTarget, receiver);
51
+ if (next === receiver || !state.entries[boundaryId]?.screens[next]?.handoff) break;
52
+ receiver = next;
53
+ }
54
+ return receiver;
55
+ }
56
+ //# sourceMappingURL=presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_linkPairs","require","resolveBoundaryPresentation","screenKey","boundaryId","state","linkKey","getLinkKeyFromTag","result","value","presentations","presentation","get","pair","pairs","pairKey","link","links","group","groups","activeId","sourceKey","source","destinationKey","destination","ready","resolveBoundaryReceiver","target","resolveBoundaryHandoff","receiver","visited","p","slot","next","props","handoffTarget","entries","screens","handoff"],"sourceRoot":"../../../../../src","sources":["components/boundary/helpers/presentation.ts"],"mappings":";;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAqBO,SAASC,2BAA2BA,CAC1CC,SAAiB,EACjBC,UAAkB,EAClBC,KAAgC,EAC/B;EACD,SAAS;;EACT,MAAMC,OAAO,GAAG,IAAAC,4BAAiB,EAACH,UAAU,CAAC;EAC7C,IAAII,MAA4C;EAChD,KAAK,MAAMC,KAAK,IAAIJ,KAAK,CAACK,aAAa,EAAE;IACxC,MAAMC,YAAY,GAAGF,KAAK,EAAEG,GAAG,CAAC,CAAC;IACjC,IAAI,CAACD,YAAY,EAAE;IACnB,MAAME,IAAI,GAAGR,KAAK,CAACS,KAAK,CAACH,YAAY,CAACI,OAAO,CAAC;IAC9C,MAAMC,IAAI,GAAGH,IAAI,EAAEI,KAAK,CAACX,OAAO,CAAC;IACjC,IAAI,CAACU,IAAI,IAAKA,IAAI,CAACE,KAAK,IAAIL,IAAI,CAACM,MAAM,CAACH,IAAI,CAACE,KAAK,CAAC,EAAEE,QAAQ,KAAKd,OAAQ,EACzE;IACD,MAAMe,SAAS,GAAGL,IAAI,CAACM,MAAM,EAAEnB,SAAS,IAAIQ,YAAY,CAACU,SAAS;IAClE,MAAME,cAAc,GACnBP,IAAI,CAACQ,WAAW,EAAErB,SAAS,IAAIQ,YAAY,CAACY,c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3CN,QACD,CAAC;IACD,IAAII,IAAI,KAAKJ,QAAQ,IAAI,CAACxB,KAAK,CAAC+B,OAAO,CAAChC,UAAU,CAAC,EAAEiC,OAAO,CAACJ,IAAI,CAAC,EAAEK,OAAO,EAC1E;IACDT,QAAQ,GAAGI,IAAI;EAChB;EACA,OAAOJ,QAAQ;AAChB","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useBoundaryPresentation = useBoundaryPresentation;
7
+ var _react = require("react");
8
+ var _reactNativeReanimated = require("react-native-reanimated");
9
+ var _constants = require("../../../constants");
10
+ var _builder = require("../../../providers/screen/builder");
11
+ var _topology = require("../../../providers/screen/builder/topology");
12
+ var _orchestrator = require("../../../providers/screen/orchestrator");
13
+ var _resolveSlotStyles = require("../../../providers/screen/orchestrator/styles/helpers/resolve-slot-styles");
14
+ var _blankStack = require("../../../providers/stack/blank-stack.provider");
15
+ var _state = require("../../../stores/bounds/internals/state");
16
+ var _presentation = require("../helpers/presentation");
17
+ // Screens are discovered through existing providers. React only wires subscriptions;
18
+ // their live UI values decide ownership, including retained closing screens.
19
+ function useBoundaryPresentation(boundaryId, enabled = true) {
20
+ const screenKey = (0, _builder.useBuilderStore)(s => s.derivations.currentScreenKey);
21
+ const scenes = (0, _blankStack.useOptionalBlankStackStore)(s => s?.scenes);
22
+ const keys = (0, _react.useMemo)(() => enabled ? scenes?.map(s => s.route.key) ?? [screenKey] : [], [scenes, screenKey, enabled]);
23
+ const pairPresentations = (0, _orchestrator.useOptionalOrchestratorStore)(keys, s => s.pairPresentation);
24
+ const localSlots = (0, _orchestrator.useOrchestratorStore)(s => s.slotsMap);
25
+ const {
26
+ parentScreenKey
27
+ } = (0, _topology.useScreenRelationships)();
28
+ const ancestorSlots = (0, _orchestrator.useOptionalOrchestratorStore)(parentScreenKey, s => s.slotsMap);
29
+ const previous = (0, _reactNativeReanimated.useSharedValue)(_constants.NO_PROPS);
30
+ const presentation = (0, _reactNativeReanimated.useDerivedValue)(() => {
31
+ const state = {
32
+ presentations: pairPresentations,
33
+ pairs: _state.pairs.get(),
34
+ entries: _state.boundaryRegistry.get()
35
+ };
36
+ const owner = (0, _presentation.resolveBoundaryPresentation)(screenKey, boundaryId, state);
37
+ const receiver = (0, _presentation.resolveBoundaryHandoff)(screenKey, boundaryId, state);
38
+ const ownedSlot = owner?.ready ? (owner.sourceKey === screenKey ? owner.source : owner.destination)[boundaryId] : undefined;
39
+ const fallback = localSlots.get()[boundaryId];
40
+ const {
41
+ resolvedStylesMap,
42
+ nextPreviousStyleStatesBySlot
43
+ } = (0, _resolveSlotStyles.resolveSlotStyles)({
44
+ localStylesMaps: [{
45
+ [boundaryId]: ownedSlot ?? fallback ?? {}
46
+ }],
47
+ ancestorStylesMap: ownedSlot ? ancestorSlots?.get() ?? _constants.NO_STYLES : _constants.NO_STYLES,
48
+ previousStyleStatesBySlot: previous.get()
49
+ });
50
+ if (!(0, _resolveSlotStyles.areResettableStatesBySlotEqual)(previous.get(), nextPreviousStyleStatesBySlot)) {
51
+ previous.set(nextPreviousStyleStatesBySlot);
52
+ }
53
+ return {
54
+ owner,
55
+ receiver,
56
+ slots: resolvedStylesMap
57
+ };
58
+ });
59
+ const slotsMap = (0, _reactNativeReanimated.useDerivedValue)(() => presentation.get().slots);
60
+ return {
61
+ presentation,
62
+ slotsMap
63
+ };
64
+ }
65
+ //# sourceMappingURL=use-boundary-presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_builder","_topology","_orchestrator","_resolveSlotStyles","_blankStack","_state","_presentation","useBoundaryPresentation","boundaryId","enabled","screenKey","useBuilderStore","s","derivations","currentScreenKey","scenes","useOptionalBlankStackStore","keys","useMemo","map","route","key","pairPresentations","useOptionalOrchestratorStore","pairPresentation","localSlots","useOrchestratorStore","slotsMap","parentScreenKey","useScreenRelationships","ancestorSlots","previous","useSharedValue","NO_PROPS","presentation","useDerivedValue","state","presentations","pairs","get","entries","boundaryRegistry","owner","resolveBoundaryPresentation","receiver","resolveBoundaryHandoff","ownedSlot","ready","sourceKey","source","destination","undefined","fallback","resolvedStylesMap","nextPreviousStyleStatesBySlot","resolveSlotStyles","localStylesMaps","ancestorStylesMap","NO_STYLES","previousStyleStatesBySlot","areResettableStatesBySlotEqual","set","slots"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-boundary-presentation.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAIA,IAAAM,kBAAA,GAAAN,OAAA;AAKA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAIA,IAAAS,aAAA,GAAAT,OAAA;AAMA;AACA;AACO,SAASU,uBAAuBA,CAACC,UAAkB,EAAEC,OAAO,GAAG,IAAI,EAAE;EAC3E,MAAMC,SAAS,GAAG,IAAAC,wBAAe,EAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACC,gBAAgB,CAAC;EACxE,MAAMC,MAAM,GAAG,IAAAC,sCAA0B,EAAEJ,CAAC,IAAKA,CAAC,EAAEG,MAAM,CAAC;EAC3D,MAAME,IAAI,GAAG,IAAAC,cAAO,EACnB,MAAOT,OAAO,GAAIM,MAAM,EAAEI,GAAG,CAAEP,CAAC,IAAKA,CAAC,CAACQ,KAAK,CAACC,GAAG,CAAC,IAAI,CAACX,SAAS,CAAC,GAAI,EAAG,EACvE,CAACK,MAAM,EAAEL,SAAS,EAAED,OAAO,CAC5B,CAAC;EACD,MAAMa,iBAAiB,GAAG,IAAAC,0CAA4B,EACrDN,IAAI,EACHL,CAAC,IAAKA,CAAC,CAACY,gBACV,CAAC;EACD,MA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,oBAAS;MACZC,yBAAyB,EAAE5B,QAAQ,CAACQ,GAAG,CAAC;IACzC,CAAC,CAAC;IACH,IACC,CAAC,IAAAqB,iDAA8B,EAC9B7B,QAAQ,CAACQ,GAAG,CAAC,CAAC,EACde,6BACD,CAAC,EACA;MACDvB,QAAQ,CAAC8B,GAAG,CAACP,6BAA6B,CAAC;IAC5C;IACA,OAAO;MAAEZ,KAAK;MAAEE,QAAQ;MAAEkB,KAAK,EAAET;IAAkB,CAAC;EACrD,CAAC,CAAC;EACF,MAAM1B,QAAQ,GAAG,IAAAQ,sCAAe,EAAC,MAAMD,YAAY,CAACK,GAAG,CAAC,CAAC,CAACuB,KAAK,CAAC;EAChE,OAAO;IAAE5B,YAAY;IAAEP;EAAS,CAAC;AAClC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useComposedBoundaryStyle = useComposedBoundaryStyle;
7
+ var _react = require("react");
8
+ var _reactNativeReanimated = require("react-native-reanimated");
9
+ var _constants = require("../../../constants");
10
+ var _composeSlotStyle = require("../../../providers/screen/orchestrator/styles/helpers/compose-slot-style");
11
+ function useComposedBoundaryStyle(slots, id, style, kind = "full") {
12
+ const local = (0, _react.useMemo)(() => (0, _composeSlotStyle.getLocalTransformForSlotComposition)(style), [style]);
13
+ return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
14
+ const slot = id ? slots?.get()[id] : undefined;
15
+ const value = slot?.style ?? _constants.NO_STYLES;
16
+ if (kind === "stacking") return {
17
+ zIndex: value.zIndex ?? 0,
18
+ elevation: value.elevation ?? 0
19
+ };
20
+ if (kind === "layout") {
21
+ const {
22
+ width,
23
+ height,
24
+ minWidth,
25
+ minHeight,
26
+ maxWidth,
27
+ maxHeight,
28
+ aspectRatio
29
+ } = value;
30
+ return {
31
+ width,
32
+ height,
33
+ minWidth,
34
+ minHeight,
35
+ maxWidth,
36
+ maxHeight,
37
+ aspectRatio
38
+ };
39
+ }
40
+ return (0, _composeSlotStyle.composeSlotStyleWithLocalTransform)(value, local, slot?.boundsLocalTransform);
41
+ });
42
+ }
43
+ //# sourceMappingURL=use-composed-boundary-style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_composeSlotStyle","useComposedBoundaryStyle","slots","id","style","kind","local","useMemo","getLocalTransformForSlotComposition","useAnimatedStyle","slot","get","undefined","value","NO_STYLES","zIndex","elevation","width","height","minWidth","minHeight","maxWidth","maxHeight","aspectRatio","composeSlotStyleWithLocalTransform","boundsLocalTransform"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-composed-boundary-style.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAKA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAMO,SAASI,wBAAwBA,CACvCC,KAAqE,EACrEC,EAAsB,EACtBC,KAAe,EACfC,IAAoC,GAAG,MAAM,EAC5C;EACD,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACpB,MAAM,IAAAC,qDAAmC,EAACJ,KAAK,CAAC,EAChD,CAACA,KAAK,CACP,CAAC;EAED,OAAO,IAAAK,uCAAgB,EAAC,MAAM;IAC7B,MAAMC,IAAI,GAAGP,EAAE,GAAGD,KAAK,EAAES,GAAG,CAAC,CAAC,CAACR,EAAE,CAAC,GAAGS,SAAS;IAC9C,MAAMC,KAAiB,GAAGH,IAAI,EAAEN,KAAK,IAAIU,oBAAS;IAClD,IAAIT,IAAI,KAAK,UAAU,EACtB,OAAO;MAAEU,MAAM,EAAEF,KAAK,CAACE,MAAM,IAAI,CAAC;MAAEC,SAAS,EAAEH,KAAK,CAACG,SAAS,IAAI;IAAE,CAAC;IAEtE,IAAIX,IAAI,KAAK,QAAQ,EAAE;MACtB,MAAM;QACLY,KAAK;QACLC,MAAM;QACNC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC;MACD,CAAC,GAAGV,KAAK;MAET,OAAO;QACNI,KAAK;QACLC,MAAM;QACNC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC;MACD,CAAC;IACF;IACA,OAAO,IAAAC,oDAAkC,EACxCX,KAAK,EACLP,KAAK,EACLI,IAAI,EAAEe,oBACP,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
@@ -15,7 +15,7 @@ var _reactNative = require("react-native");
15
15
  var _reactNativeGestureHandler = require("react-native-gesture-handler");
16
16
  var _boundaryTarget = require("./components/boundary-target");
17
17
  var _createBoundaryComponent = require("./create-boundary-component");
18
- var _portal = require("./portal");
18
+ var _portalOverlay = require("./portal/components/portal-overlay");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
20
  const BoundaryPrimitive = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
21
21
  const Component = "onPress" in props ? _reactNativeGestureHandler.Pressable : _reactNative.View;
@@ -28,7 +28,6 @@ BoundaryPrimitive.displayName = "Transition.Boundary.Primitive";
28
28
  const BoundaryRoot = (0, _createBoundaryComponent.createBoundaryComponent)(BoundaryPrimitive);
29
29
  BoundaryRoot.displayName = "Transition.Boundary";
30
30
  _boundaryTarget.BoundaryTarget.displayName = "Transition.Boundary.Target";
31
- _portal.Host.displayName = "Transition.Boundary.Host";
32
31
 
33
32
  /**
34
33
  * Shared-boundary component with static helpers.
@@ -50,6 +49,6 @@ _portal.Host.displayName = "Transition.Boundary.Host";
50
49
 
51
50
  const Boundary = exports.Boundary = Object.assign(BoundaryRoot, {
52
51
  Target: _boundaryTarget.BoundaryTarget,
53
- Host: _portal.Host
52
+ Host: _portalOverlay.PortalOverlay
54
53
  });
55
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_boundaryTarget","_createBoundaryComponent","_portal","_jsxRuntime","BoundaryPrimitive","forwardRef","props","ref","Component","Pressable","View","jsx","displayName","BoundaryRoot","createBoundaryComponent","BoundaryTarget","Host","Boundary","exports","Object","assign","Target"],"sourceRoot":"../../../../src","sources":["components/boundary/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAgC,IAAAM,WAAA,GAAAN,OAAA;AAUhC,MAAMO,iBAAiB,gBAAG,IAAAC,iBAAU,EACnC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACf,MAAMC,SAAS,GAAG,SAAS,IAAIF,KAAK,GAAGG,oCAAS,GAAGC,iBAAI;EAEvD,oBAAO,IAAAP,WAAA,CAAAQ,GAAA,EAACH,SAAS;IAAA,GAAMF,KAAK;IAAUC,GAAG,EAAEA;EAAW,CAAE,CAAC;AAC1D,CACD,CAAC;AAEDH,iBAAiB,CAACQ,WAAW,GAAG,+BAA+B;AAE/D,MAAMC,YAAY,GAAG,IAAAC,gDAAuB,EAACV,iBAAiB,CAAC;AAC/DS,YAAY,CAACD,WAAW,GAAG,qBAAqB;AAChDG,8BAAc,CAACH,WAAW,GAAG,4BAA4B;AACzDI,YAAI,CAACJ,WAAW,GAAG,0BAA0B;;AAI7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcO,MAAMK,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,MAAM,CAACC,MAAM,CAACP,YAAY,EAAE;EACnDQ,MAAM,EAAEN,8BAAc;EACtBC,IAAI,EAAJA;AACD,CAAC,CAAsB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_boundaryTarget","_createBoundaryComponent","_portalOverlay","_jsxRuntime","BoundaryPrimitive","forwardRef","props","ref","Component","Pressable","View","jsx","displayName","BoundaryRoot","createBoundaryComponent","BoundaryTarget","Boundary","exports","Object","assign","Target","Host","PortalOverlay"],"sourceRoot":"../../../../src","sources":["components/boundary/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAAmE,IAAAM,WAAA,GAAAN,OAAA;AAUnE,MAAMO,iBAAiB,gBAAG,IAAAC,iBAAU,EACnC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACf,MAAMC,SAAS,GAAG,SAAS,IAAIF,KAAK,GAAGG,oCAAS,GAAGC,iBAAI;EAEvD,oBAAO,IAAAP,WAAA,CAAAQ,GAAA,EAACH,SAAS;IAAA,GAAMF,KAAK;IAAUC,GAAG,EAAEA;EAAW,CAAE,CAAC;AAC1D,CACD,CAAC;AAEDH,iBAAiB,CAACQ,WAAW,GAAG,+BAA+B;AAE/D,MAAMC,YAAY,GAAG,IAAAC,gDAAuB,EAACV,iBAAiB,CAAC;AAC/DS,YAAY,CAACD,WAAW,GAAG,qBAAqB;AAChDG,8BAAc,CAACH,WAAW,GAAG,4BAA4B;;AAIzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBO,MAAMI,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,MAAM,CAACC,MAAM,CAACN,YAAY,EAAE;EACnDO,MAAM,EAAEL,8BAAc;EACtBM,IAAI,EAAEC;AACP,CAAC,CAAsB","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PortalHost = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
10
+ var _teleport = require("../teleport");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const AnimatedHost = _teleport.NativePortalHost ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortalHost) : null;
14
+
15
+ /**
16
+ * The native receiving point for a Portal whose destination matches `name`.
17
+ *
18
+ * Handoff places this inside a boundary, filling its local frame. Escape-clipping
19
+ * places it inside a PortalOverlay, which supplies
20
+ * the boundary's size, offset, and animated styles. This component only renders
21
+ * the receiver; destination selection and measurement belong to its callers.
22
+ */
23
+ const PortalHost = exports.PortalHost = /*#__PURE__*/(0, _react.memo)(function PortalHost({
24
+ name,
25
+ style = styles.inline
26
+ }) {
27
+ return AnimatedHost ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedHost, {
28
+ name: name,
29
+ pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
30
+ style: style
31
+ }) : null;
32
+ });
33
+ const styles = _reactNative.StyleSheet.create({
34
+ inline: {
35
+ ..._reactNative.StyleSheet.absoluteFill,
36
+ overflow: "visible"
37
+ }
38
+ });
39
+ //# sourceMappingURL=portal-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_teleport","_jsxRuntime","e","__esModule","default","AnimatedHost","NativePortalHost","Animated","createAnimatedComponent","PortalHost","exports","memo","name","style","styles","inline","jsx","pointerEvents","PORTAL_POINTER_EVENTS","StyleSheet","create","absoluteFill","overflow"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/components/portal-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAAsE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtE,MAAMG,YAAY,GAAGC,0BAAgB,GAClCC,8BAAQ,CAACC,uBAAuB,CAACF,0BAAgB,CAAC,GAClD,IAAI;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,UAAUA,CAAC;EAClDG,IAAI;EACJC,KAAK,GAAGC,MAAM,CAACC;AAIhB,CAAC,EAAE;EACF,OAAOV,YAAY,gBAClB,IAAAJ,WAAA,CAAAe,GAAA,EAACX,YAAY;IACZO,IAAI,EAAEA,IAAK;IACXK,aAAa,EAAEC,+BAAsB;IACrCL,KAAK,EAAEA;EAAM,CACb,CAAC,GACC,IAAI;AACT,CAAC,CAAC;AAEF,MAAMC,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAChCL,MAAM,EAAE;IAAE,GAAGI,uBAAU,CAACE,YAAY;IAAEC,QAAQ,EAAE;EAAU;AAC3D,CAAC,CAAC","ignoreList":[]}