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,78 +0,0 @@
1
- "use strict";
2
-
3
- import { memo, useCallback } from "react";
4
- import { I18nManager, StyleSheet, View } from "react-native";
5
- import Animated from "react-native-reanimated";
6
- import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../../constants";
7
- import { useSlotStyles } from "../../../../providers/screen/orchestrator/styles";
8
- import { logger } from "../../../../utils/logger";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- let LazyMaskedView = View;
11
- try {
12
- LazyMaskedView = require("@react-native-masked-view/masked-view").default;
13
- } catch (_) {
14
- // optional peer dependency
15
- }
16
- let hasWarnedMissingMaskedView = false;
17
- export const MaybeMaskedNavigationContainer = /*#__PURE__*/memo(({
18
- enabled,
19
- children,
20
- pointerEvents
21
- }) => {
22
- if (!enabled || LazyMaskedView === View) {
23
- return children;
24
- }
25
- return /*#__PURE__*/_jsx(MaskedNavigationContainer, {
26
- pointerEvents: pointerEvents,
27
- children: children
28
- });
29
- });
30
- const MaskedNavigationContainer = /*#__PURE__*/memo(({
31
- children,
32
- pointerEvents
33
- }) => {
34
- const maybeLogWarning = useCallback(() => {
35
- if (LazyMaskedView !== View) return;
36
- if (hasWarnedMissingMaskedView) return;
37
- hasWarnedMissingMaskedView = true;
38
- logger.warn("navigationMaskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.");
39
- }, []);
40
- const animatedNavigationMaskStyle = useSlotStyles(NAVIGATION_MASK_ELEMENT_STYLE_ID);
41
- const animatedNavigationMaskContainerStyle = useSlotStyles(NAVIGATION_MASK_CONTAINER_STYLE_ID);
42
- return /*#__PURE__*/_jsx(LazyMaskedView, {
43
- style: styles.navigationMaskedRoot
44
- // @ts-expect-error masked-view package types are too strict here
45
- ,
46
- maskElement: /*#__PURE__*/_jsx(Animated.View, {
47
- style: [styles.navigationMaskElement, animatedNavigationMaskStyle],
48
- pointerEvents: "none"
49
- }),
50
- pointerEvents: pointerEvents,
51
- onLayout: maybeLogWarning,
52
- children: /*#__PURE__*/_jsx(Animated.View, {
53
- style: [styles.navigationContainer, animatedNavigationMaskContainerStyle],
54
- collapsable: false,
55
- children: children
56
- })
57
- });
58
- });
59
- const styles = StyleSheet.create({
60
- navigationMaskedRoot: {
61
- flex: 1
62
- },
63
- navigationContainer: {
64
- flex: 1
65
- },
66
- // The mask rect's translate math assumes a physical top-left base. Under
67
- // native RTL a fixed-width flex child anchors to the right edge, so pin it
68
- // to the physical left (`end` = left edge in RTL).
69
- navigationMaskElement: I18nManager.isRTL ? {
70
- backgroundColor: "white",
71
- end: 0,
72
- position: "absolute",
73
- top: 0
74
- } : {
75
- backgroundColor: "white"
76
- }
77
- });
78
- //# sourceMappingURL=maybe-masked-navigation-container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["memo","useCallback","I18nManager","StyleSheet","View","Animated","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","useSlotStyles","logger","jsx","_jsx","LazyMaskedView","require","default","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","enabled","children","pointerEvents","MaskedNavigationContainer","maybeLogWarning","warn","animatedNavigationMaskStyle","animatedNavigationMaskContainerStyle","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","create","flex","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../../../../src","sources":["components/screen/container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAASC,WAAW,EAAEC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC5E,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SACCC,kCAAkC,EAClCC,gCAAgC,QAC1B,uBAAuB;AAC9B,SAASC,aAAa,QAAQ,kDAAkD;AAChF,SAASC,MAAM,QAAQ,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQlD,IAAIC,cAAc,GAAGR,IAAI;AAEzB,IAAI;EACHQ,cAAc,GAAGC,OAAO,CAAC,uCAAuC,CAAC,CAACC,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;AAGD,IAAIC,0BAA0B,GAAG,KAAK;AAEtC,OAAO,MAAMC,8BAA8B,gBAAGjB,IAAI,CACjD,CAAC;EAAEkB,OAAO;EAAEC,QAAQ;EAAEC;AAAqB,CAAC,KAAK;EAChD,IAAI,CAACF,OAAO,IAAIN,cAAc,KAAKR,IAAI,EAAE;IACxC,OAAOe,QAAQ;EAChB;EAEA,oBACCR,IAAA,CAACU,yBAAyB;IAACD,aAAa,EAAEA,aAAc;IAAAD,QAAA,EACtDA;EAAQ,CACiB,CAAC;AAE9B,CACD,CAAC;AAED,MAAME,yBAAyB,gBAAGrB,IAAI,CACrC,CAAC;EACAmB,QAAQ;EACRC;AAID,CAAC,KAAK;EACL,MAAME,eAAe,GAAGrB,WAAW,CAAC,MAAM;IACzC,IAAIW,cAAc,KAAKR,IAAI,EAAE;IAC7B,IAAIY,0BAA0B,EAAE;IAEhCA,0BAA0B,GAAG,IAAI;IACjCP,MAAM,CAACc,IAAI,CACV,uHACD,CAAC;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,2BAA2B,GAAGhB,aAAa,CAChDD,gCACD,CAAC;EACD,MAAMkB,oCAAoC,GAAGjB,aAAa,CACzDF,kCACD,CAAC;EAED,oBACCK,IAAA,CAACC,cAAc;IACdc,KAAK,EAAEC,MAAM,CAACC;IACd;IAAA;IACAC,WAAW,eACVlB,IAAA,CAACN,QAAQ,CAACD,IAAI;MACbsB,KAAK,EAAE,CAACC,MAAM,CAACG,qBAAqB,EAAEN,2BAA2B,CAAE;MACnEJ,aAAa,EAAC;IAAM,CACpB,CACD;IACDA,aAAa,EAAEA,aAAc;IAC7BW,QAAQ,EAAET,eAAgB;IAAAH,QAAA,eAE1BR,IAAA,CAACN,QAAQ,CAACD,IAAI;MACbsB,KAAK,EAAE,CACNC,MAAM,CAACK,mBAAmB,EAC1BP,oCAAoC,CACnC;MACFQ,WAAW,EAAE,KAAM;MAAAd,QAAA,EAElBA;IAAQ,CACK;EAAC,CACD,CAAC;AAEnB,CACD,CAAC;AAED,MAAMQ,MAAM,GAAGxB,UAAU,CAAC+B,MAAM,CAAC;EAChCN,oBAAoB,EAAE;IACrBO,IAAI,EAAE;EACP,CAAC;EACDH,mBAAmB,EAAE;IACpBG,IAAI,EAAE;EACP,CAAC;EACD;EACA;EACA;EACAL,qBAAqB,EAAE5B,WAAW,CAACkC,KAAK,GACrC;IACAC,eAAe,EAAE,OAAO;IACxBC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAH,eAAe,EAAE;EAClB;AACH,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["usesLayerRenderProps","component","prototype","isReactComponent"],"sourceRoot":"../../../../../../src","sources":["components/screen/container/layers/render-component.ts"],"mappings":";;AAEA,OAAO,SAASA,oBAAoBA,CACnCC,SAA6B,EACyB;EACtD,OACC,OAAOA,SAAS,KAAK,UAAU,IAAI,CAACA,SAAS,CAACC,SAAS,EAAEC,gBAAgB;AAE3E","ignoreList":[]}
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- import { interpolate } from "react-native-reanimated";
4
- import { toNumber } from "../helpers";
5
- import { DRAG_MASK_HEIGHT_COLLAPSE_END } from "../reveal/config";
6
- import { interpolateClamped, resolveAspectRatioMaskHeight } from "../reveal/math";
7
- import { ZOOM_SHARED_OPTIONS } from "./config";
8
- export const ZOOM_NAVIGATION_MASK_BORDER_RADIUS = 64;
9
- const ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE = 0.8;
10
- export function resolveZoomNavigationMaskStyle({
11
- scopedBounds,
12
- link,
13
- sourceBounds,
14
- screenLayout,
15
- transitionProgress,
16
- drag,
17
- contentTransform,
18
- sourceBorderRadius,
19
- expandedBorderRadius,
20
- active,
21
- anchor
22
- }) {
23
- "worklet";
24
-
25
- const maskRaw = scopedBounds.values({
26
- scaleMode: ZOOM_SHARED_OPTIONS.scaleMode,
27
- anchor,
28
- method: "size",
29
- space: "absolute",
30
- target: "fullscreen",
31
- progress: transitionProgress
32
- });
33
- const maskWidth = maskRaw.width;
34
- const maskHeight = maskRaw.height;
35
- const maskAspectBounds = link.initialSource?.bounds ?? sourceBounds;
36
- const minMaskHeight = resolveAspectRatioMaskHeight({
37
- maskWidth,
38
- maskHeight,
39
- targetWidth: maskAspectBounds.width,
40
- targetHeight: maskAspectBounds.height
41
- });
42
- const maskHeightCollapseDrag = drag.collapsesMask ? Math.max(0, drag.dismissNorm * ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE, drag.dismissProgress) : 0;
43
- const renderedMaskHeight = interpolateClamped(maskHeightCollapseDrag, 0, DRAG_MASK_HEIGHT_COLLAPSE_END, maskHeight, minMaskHeight);
44
- const maskCenterX = maskWidth / 2;
45
- const maskCenterY = renderedMaskHeight / 2;
46
- const contentCenterX = screenLayout.width / 2;
47
- const contentCenterY = screenLayout.height / 2;
48
- const maskOriginOffsetY = drag.isVerticalInverted ? maskHeight - renderedMaskHeight : 0;
49
- const compensatedMaskTranslateX = (maskRaw.translateX - contentTransform.translateX + (1 - contentTransform.scale) * (maskCenterX - contentCenterX)) / contentTransform.scale;
50
- const compensatedMaskTranslateY = (maskRaw.translateY - contentTransform.translateY + maskOriginOffsetY + (1 - contentTransform.scale) * (maskCenterY - contentCenterY)) / contentTransform.scale;
51
- const initialSourceBorderRadius = toNumber(link.initialSource?.styles.borderRadius, sourceBorderRadius);
52
- return {
53
- style: {
54
- width: maskWidth,
55
- height: renderedMaskHeight,
56
- borderRadius: interpolate(transitionProgress, [0, 1], [initialSourceBorderRadius, active.animating ? expandedBorderRadius : 0], "clamp"),
57
- borderCurve: "continuous",
58
- transform: [{
59
- translateX: compensatedMaskTranslateX
60
- }, {
61
- translateY: compensatedMaskTranslateY
62
- }, {
63
- scale: 1 / contentTransform.scale
64
- }]
65
- }
66
- };
67
- }
68
- //# sourceMappingURL=mask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["interpolate","toNumber","DRAG_MASK_HEIGHT_COLLAPSE_END","interpolateClamped","resolveAspectRatioMaskHeight","ZOOM_SHARED_OPTIONS","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","anchor","maskRaw","values","scaleMode","method","space","target","progress","maskWidth","width","maskHeight","height","maskAspectBounds","initialSource","bounds","minMaskHeight","targetWidth","targetHeight","maskHeightCollapseDrag","collapsesMask","Math","max","dismissNorm","dismissProgress","renderedMaskHeight","maskCenterX","maskCenterY","contentCenterX","contentCenterY","maskOriginOffsetY","isVerticalInverted","compensatedMaskTranslateX","translateX","scale","compensatedMaskTranslateY","translateY","initialSourceBorderRadius","styles","borderRadius","style","animating","borderCurve","transform"],"sourceRoot":"../../../../../../src","sources":["utils/bounds/navigation/zoom/mask.ts"],"mappings":";;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAWrD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,6BAA6B,QAAQ,kBAAkB;AAChE,SACCC,kBAAkB,EAClBC,4BAA4B,QACtB,gBAAgB;AACvB,SAASC,mBAAmB,QAAQ,UAAU;AAG9C,OAAO,MAAMC,kCAAkC,GAAG,EAAE;AACpD,MAAMC,sCAAsC,GAAG,GAAG;AAoBlD,OAAO,SAASC,8BAA8BA,CAAC;EAC9CC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,YAAY;EACZC,kBAAkB;EAClBC,IAAI;EACJC,gBAAgB;EAChBC,kBAAkB;EAClBC,oBAAoB;EACpBC,MAAM;EACNC;AAC6B,CAAC,EAAuB;EACrD,SAAS;;EAET,MAAMC,OAAO,GAAGX,YAAY,CAACY,MAAM,CAAC;IACnCC,SAAS,EAAEjB,mBAAmB,CAACiB,SAAS;IACxCH,MAAM;IACNI,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE,UAAU;IACjBC,MAAM,EAAE,YAAY;IACpBC,QAAQ,EAAEb;EACX,CAAC,CAAC;EACF,MAAMc,SAAS,GAAGP,OAAO,CAACQ,KAAK;EAC/B,MAAMC,UAAU,GAAGT,OAAO,CAACU,MAAM;EACjC,MAAMC,gBAAgB,GAAGrB,IAAI,CAACsB,aAAa,EAAEC,MAAM,IAAItB,YAAY;EACnE,MAAMuB,aAAa,GAAG9B,4BAA4B,CAAC;IAClDuB,SAAS;IACTE,UAAU;IACVM,WAAW,EAAEJ,gBAAgB,CAACH,KAAK;IACnCQ,YAAY,EAAEL,gBAAgB,CAACD;EAChC,CAAC,CAAC;EACF,MAAMO,sBAAsB,GAAGvB,IAAI,CAACwB,aAAa,GAC9CC,IAAI,CAACC,GAAG,CACR,CAAC,EACD1B,IAAI,CAAC2B,WAAW,GAAGlC,sCAAsC,EACzDO,IAAI,CAAC4B,eACN,CAAC,GACA,CAAC;EACJ,MAAMC,kBAAkB,GAAGxC,kBAAkB,CAC5CkC,sBAAsB,EACtB,CAAC,EACDnC,6BAA6B,EAC7B2B,UAAU,EACVK,aACD,CAAC;EACD,MAAMU,WAAW,GAAGjB,SAAS,GAAG,CAAC;EACjC,MAAMkB,WAAW,GAAGF,kBAAkB,GAAG,CAAC;EAC1C,MAAMG,cAAc,GAAGlC,YAAY,CAACgB,KAAK,GAAG,CAAC;EAC7C,MAAMmB,cAAc,GAAGnC,YAAY,CAACkB,MAAM,GAAG,CAAC;EAC9C,MAAMkB,iBAAiB,GAAGlC,IAAI,CAACmC,kBAAkB,GAC9CpB,UAAU,GAAGc,kBAAkB,GAC/B,CAAC;EACJ,MAAMO,yBAAyB,GAC9B,CAAC9B,OAAO,CAAC+B,UAAU,GAClBpC,gBAAgB,CAACoC,UAAU,GAC3B,CAAC,CAAC,GAAGpC,gBAAgB,CAACqC,KAAK,KAAKR,WAAW,GAAGE,cAAc,CAAC,IAC9D/B,gBAAgB,CAACqC,KAAK;EACvB,MAAMC,yBAAyB,GAC9B,CAACjC,OAAO,CAACkC,UAAU,GAClBvC,gBAAgB,CAACuC,UAAU,GAC3BN,iBAAiB,GACjB,CAAC,CAAC,GAAGjC,gBAAgB,CAACqC,KAAK,KAAKP,WAAW,GAAGE,cAAc,CAAC,IAC9DhC,gBAAgB,CAACqC,KAAK;EACvB,MAAMG,yBAAyB,GAAGtD,QAAQ,CACzCS,IAAI,CAACsB,aAAa,EAAEwB,MAAM,CAACC,YAAY,EACvCzC,kBACD,CAAC;EAED,OAAO;IACN0C,KAAK,EAAE;MACN9B,KAAK,EAAED,SAAS;MAChBG,MAAM,EAAEa,kBAAkB;MAC1Bc,YAAY,EAAEzD,WAAW,CACxBa,kBAAkB,EAClB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CACC0C,yBAAyB,EACzBrC,MAAM,CAACyC,SAAS,GAAG1C,oBAAoB,GAAG,CAAC,CAC3C,EACD,OACD,CAAC;MACD2C,WAAW,EAAE,YAAY;MACzBC,SAAS,EAAE,CACV;QAAEV,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAEI,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAED,KAAK,EAAE,CAAC,GAAGrC,gBAAgB,CAACqC;MAAM,CAAC;IAEvC;EACD,CAAC;AACF","ignoreList":[]}
@@ -1,28 +0,0 @@
1
- import type { View } from "react-native";
2
- import type { AnimatedRef } from "react-native-reanimated";
3
- import type { BoundTag } from "../../../stores/bounds/types";
4
- import type { BoundaryConfigProps, BoundaryLocalMeasurementValue } from "../types";
5
- interface UseBoundaryMeasurementParams {
6
- boundTag: BoundTag;
7
- /** Raw `enabled` prop — drives the measurer and the passive-source gate. */
8
- enabled: boolean;
9
- /** `enabled && hasConfiguredInterpolator` — gates presence + lifecycle. */
10
- runtimeEnabled: boolean;
11
- currentScreenKey: string;
12
- /** Surface to measure: a nested target's placeholder, else the root. */
13
- measuredRef: AnimatedRef<View>;
14
- /** Style belonging to the selected measurement surface. */
15
- style?: unknown;
16
- handoff: boolean;
17
- escapeClipping: boolean;
18
- localMeasurement: BoundaryLocalMeasurementValue;
19
- config: BoundaryConfigProps;
20
- }
21
- /**
22
- * Owns the full measurement lifecycle for a boundary: builds the measurer,
23
- * registers presence, runs the initial source/destination + refresh reactions,
24
- * and keeps the component itself away from the measurer.
25
- */
26
- export declare const useBoundaryMeasurement: ({ boundTag, enabled, runtimeEnabled, currentScreenKey, measuredRef, style, handoff, escapeClipping, localMeasurement, config, }: UseBoundaryMeasurementParams) => void;
27
- export {};
28
- //# sourceMappingURL=use-boundary-measurement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EACX,mBAAmB,EACnB,6BAA6B,EAC7B,MAAM,UAAU,CAAC;AAOlB,UAAU,4BAA4B;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,iIAWpC,4BAA4B,SAiD9B,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type ReactNode } from "react";
2
- type BoundaryContentPortalHostProps = {
3
- boundaryId: string;
4
- children: ReactNode;
5
- enabled: boolean;
6
- screenKey: string;
7
- };
8
- export declare const BoundaryContentPortalHost: import("react").MemoExoticComponent<({ boundaryId, children, enabled, screenKey, }: BoundaryContentPortalHostProps) => import("react").JSX.Element>;
9
- export {};
10
- //# sourceMappingURL=host.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/components/host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAU7C,KAAK,8BAA8B,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,yBAAyB,sFAMlC,8BAA8B,iCAqBjC,CAAC"}
@@ -1,45 +0,0 @@
1
- import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
2
- import type { BoundaryHandoffTarget } from "../../../../../../types/animation.types";
3
- type ReceiverRoute = {
4
- key: string;
5
- };
6
- type ReceiverScene = {
7
- activity: string;
8
- route: ReceiverRoute;
9
- };
10
- type ResolveActiveHandoffReceiverParams = {
11
- focusedIndex: number;
12
- routes: ReceiverRoute[];
13
- scenes: ReceiverScene[];
14
- };
15
- export declare const resolveActiveHandoffReceiver: ({ focusedIndex, routes, scenes, }: ResolveActiveHandoffReceiverParams) => string | null;
16
- export declare const resolvePreviousHandoffReceiver: ({ focusedIndex, routes, scenes, }: ResolveActiveHandoffReceiverParams) => string | null;
17
- export declare const resolveHandoffAttachmentCandidate: ({ activeReceiverClosing, activeReceiverScreenKey, attachedReceiverScreenKey, hasActiveCloseFinished, isScreenReady, pairChangedDuringClose, pairDestinationScreenKey, pairHasBoundaryLink, previousReceiverScreenKey, }: {
18
- activeReceiverClosing: boolean;
19
- activeReceiverScreenKey: string | null;
20
- attachedReceiverScreenKey: string;
21
- hasActiveCloseFinished: boolean;
22
- isScreenReady: boolean;
23
- pairChangedDuringClose?: boolean;
24
- pairDestinationScreenKey: string | null;
25
- pairHasBoundaryLink?: boolean;
26
- previousReceiverScreenKey: string | null;
27
- }) => string | null;
28
- export declare const resolveRequestedHandoffReceiver: ({ automaticScreenKey, destinationReady, destinationScreenKey, handoffTarget, sourceScreenKey, }: {
29
- automaticScreenKey: string | null;
30
- destinationReady?: boolean;
31
- destinationScreenKey: string | null;
32
- handoffTarget: BoundaryHandoffTarget | undefined;
33
- sourceScreenKey: string | null;
34
- }) => string | null;
35
- export declare const resolveRequestedHandoffPairKey: ({ destinationPairHasCompleteLink, destinationPairKey, handoffTarget, retainedSourcePairHasCompleteLink, retainedSourcePairKey, sourcePairHasCompleteLink, sourcePairKey, }: {
36
- destinationPairHasCompleteLink: boolean;
37
- destinationPairKey: ScreenPairKey | undefined;
38
- handoffTarget: BoundaryHandoffTarget | undefined;
39
- retainedSourcePairHasCompleteLink: boolean;
40
- retainedSourcePairKey: ScreenPairKey | undefined;
41
- sourcePairHasCompleteLink: boolean;
42
- sourcePairKey: ScreenPairKey | undefined;
43
- }) => string | undefined;
44
- export {};
45
- //# sourceMappingURL=active-handoff-receiver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"active-handoff-receiver.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,KAAK,aAAa,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,aAAa,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,KAAK,kCAAkC,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,mCAI1C,kCAAkC,KAAG,MAAM,GAAG,IAShD,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,mCAI5C,kCAAkC,KAAG,MAAM,GAAG,IAehD,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAAI,yNAU/C;IACF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,yBAAyB,EAAE,MAAM,CAAC;IAClC,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,kBAqDA,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,iGAM7C;IACF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,aAAa,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACjD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,kBAYA,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,4KAQ5C;IACF,8BAA8B,EAAE,OAAO,CAAC;IACxC,kBAAkB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACjD,iCAAiC,EAAE,OAAO,CAAC;IAC3C,qBAAqB,EAAE,aAAa,GAAG,SAAS,CAAC;IACjD,yBAAyB,EAAE,OAAO,CAAC;IACnC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;CACzC,uBAoBA,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare function canActivateHandoffReceiver({ returningFromActiveClose, activatingPairDestination, animationProgress, receiverIsActiveDestination, destinationIsScreenReady, }: {
2
- returningFromActiveClose: boolean;
3
- activatingPairDestination: boolean;
4
- animationProgress: number;
5
- receiverIsActiveDestination: boolean;
6
- destinationIsScreenReady: boolean | undefined;
7
- }): boolean;
8
- //# sourceMappingURL=handoff-visibility.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handoff-visibility.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CAAC,EAC1C,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,GACxB,EAAE;IACF,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B,EAAE,OAAO,CAAC;IACrC,wBAAwB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9C,WAUA"}
@@ -1,2 +0,0 @@
1
- export declare const createBoundaryContentPortalHostName: (screenKey: string, boundaryId: string) => string;
2
- //# sourceMappingURL=host-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"host-name.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,GAC/C,WAAW,MAAM,EACjB,YAAY,MAAM,WAIlB,CAAC"}
@@ -1,10 +0,0 @@
1
- interface UseBoundaryContentPortalAttachmentParams {
2
- boundaryId: string;
3
- }
4
- export declare const useBoundaryContentPortalAttachment: ({ boundaryId, }: UseBoundaryContentPortalAttachmentParams) => {
5
- teleportProps: Partial<{
6
- hostName: string | null;
7
- }>;
8
- };
9
- export {};
10
- //# sourceMappingURL=use-boundary-content-portal-attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-boundary-content-portal-attachment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"names":[],"mappings":"AA+BA,UAAU,wCAAwC;IACjD,UAAU,EAAE,MAAM,CAAC;CACnB;AAeD,eAAO,MAAM,kCAAkC,GAAI,iBAEhD,wCAAwC;;;;CAyM1C,CAAC"}
@@ -1,9 +0,0 @@
1
- import { type ReactNode } from "react";
2
- export { BoundaryContentPortalHost } from "./components/host";
3
- type BoundaryContentPortalProps = {
4
- boundaryId?: string;
5
- children: ReactNode;
6
- enabled: boolean;
7
- };
8
- export declare const BoundaryContentPortal: import("react").MemoExoticComponent<({ boundaryId, children, enabled, }: BoundaryContentPortalProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/boundary/portal/components/boundary-content-portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,KAAK,0BAA0B,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAkBF,eAAO,MAAM,qBAAqB,2EAI/B,0BAA0B,iUAe3B,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type StyleProp, type ViewStyle } from "react-native";
2
- export type PublicHostProps = {
3
- style?: StyleProp<ViewStyle>;
4
- };
5
- export declare const Host: import("react").MemoExoticComponent<(props: PublicHostProps) => import("react").JSX.Element>;
6
- export declare const ScreenFallbackHost: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
7
- //# sourceMappingURL=host.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/components/host.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,SAAS,EAId,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,eAAe,GAAG;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AA2EF,eAAO,MAAM,IAAI,8CAA6B,eAAe,iCAE3D,CAAC;AAEH,eAAO,MAAM,kBAAkB,wEAE7B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type StyleProp, type ViewStyle } from "react-native";
2
- import { type MeasuredDimensions, type SharedValue } from "react-native-reanimated";
3
- import type { ActivePortalBoundaryHost } from "../stores/portal-boundary-host.store";
4
- type PortalBoundaryHostProps = {
5
- host: ActivePortalBoundaryHost;
6
- hostBounds: SharedValue<MeasuredDimensions | null>;
7
- hostMeasurementKey: string | null;
8
- measuredHostKey: SharedValue<string | null>;
9
- style?: StyleProp<ViewStyle>;
10
- };
11
- export declare const PortalBoundaryHost: import("react").MemoExoticComponent<({ host, hostBounds, hostMeasurementKey, measuredHostKey, style, }: PortalBoundaryHostProps) => import("react").JSX.Element | null>;
12
- export {};
13
- //# sourceMappingURL=portal-boundary-host.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AACtB,OAAiB,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAcrF,KAAK,uBAAuB,GAAG;IAC9B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACnD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0GAM5B,uBAAuB,wCA0ExB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
2
- import type { BoundaryLocalMeasurement } from "../../../../types";
3
- export declare const resolveBoundaryLocalMeasurement: (measurement: BoundaryLocalMeasurement | null, pairKey: ScreenPairKey) => import("react-native-reanimated").MeasuredDimensions | null;
4
- //# sourceMappingURL=local-measurement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-measurement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,eAAO,MAAM,+BAA+B,GAC3C,aAAa,wBAAwB,GAAG,IAAI,EAC5C,SAAS,aAAa,gEAItB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"offset-style.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9E,KAAK,8BAA8B,GAAG;IACrC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,8BAA8B,KAAG,UAcnC,CAAC"}
@@ -1,21 +0,0 @@
1
- import { type SharedValue } from "react-native-reanimated";
2
- import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
3
- import type { NormalizedTransitionInterpolatedStyle } from "../../../../../../types/animation.types";
4
- import type { BoundaryLocalMeasurementValue } from "../../../../types";
5
- type UseActivePortalBoundaryHostParams = {
6
- boundaryId: string;
7
- currentScreenKey: string;
8
- escapeHostKey?: string;
9
- localMeasurement: BoundaryLocalMeasurementValue;
10
- portalHostName: SharedValue<string | null>;
11
- portalHostReady: SharedValue<boolean>;
12
- slotsMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
13
- };
14
- export declare const resolveActivePortalPairKey: ({ pairKey, measurementPairKey, hasAnimatedSlot, }: {
15
- pairKey: ScreenPairKey | null;
16
- measurementPairKey: ScreenPairKey | null | undefined;
17
- hasAnimatedSlot: boolean;
18
- }) => ScreenPairKey | null;
19
- export declare const useActivePortalBoundaryHost: ({ boundaryId, currentScreenKey, escapeHostKey, localMeasurement, portalHostName, portalHostReady, slotsMap, }: UseActivePortalBoundaryHostParams) => void;
20
- export {};
21
- //# sourceMappingURL=use-active-portal-boundary-host.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-active-portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,yBAAyB,CAAC;AAGhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAOvE,KAAK,iCAAiC,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,cAAc,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3C,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,mDAIxC;IACF,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,kBAAkB,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,eAAe,EAAE,OAAO,CAAC;CACzB,KAAG,aAAa,GAAG,IAOnB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,+GAQzC,iCAAiC,SAqEnC,CAAC"}
@@ -1,10 +0,0 @@
1
- interface UseBoundaryPortalAttachmentParams {
2
- boundaryId: string;
3
- }
4
- export declare const useBoundaryPortalAttachment: ({ boundaryId, }: UseBoundaryPortalAttachmentParams) => {
5
- teleportProps: Partial<{
6
- hostName: string | null;
7
- }>;
8
- };
9
- export {};
10
- //# sourceMappingURL=use-boundary-portal-attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-boundary-portal-attachment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts"],"names":[],"mappings":"AAQA,UAAU,iCAAiC;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,2BAA2B,GAAI,iBAEzC,iCAAiC;;;;CAiDnC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { View } from "react-native";
2
- import { type MeasuredDimensions } from "react-native-reanimated";
3
- type UseHostMeasurementParams = {
4
- measurementKey: string | null;
5
- };
6
- export declare const useHostMeasurement: ({ measurementKey, }: UseHostMeasurementParams) => {
7
- hostBounds: import("react-native-reanimated").SharedValue<MeasuredDimensions | null>;
8
- hostRef: import("react-native-reanimated").AnimatedRef<View>;
9
- measuredKey: import("react-native-reanimated").SharedValue<string | null>;
10
- };
11
- export {};
12
- //# sourceMappingURL=use-host-measurement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-host-measurement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAEN,KAAK,kBAAkB,EAOvB,MAAM,yBAAyB,CAAC;AAIjC,KAAK,wBAAwB,GAAG;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,qBAEhC,wBAAwB;;;;CAqE1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-placeholder-styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,oBAAoB;;;;;;;;6BAoBtB,eAAe;CAmBzB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type ReactNode } from "react";
2
- import type { View } from "react-native";
3
- import { type AnimatedRef } from "react-native-reanimated";
4
- type BoundaryPortalProps = {
5
- boundaryId: string;
6
- children: ReactNode;
7
- enabled: boolean;
8
- placeholderRef?: AnimatedRef<View>;
9
- };
10
- export declare const BoundaryPortal: import("react").MemoExoticComponent<({ boundaryId, children, enabled, placeholderRef, }: BoundaryPortalProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
11
- export {};
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/boundary/portal/components/boundary-portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA2BrE,KAAK,mBAAmB,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,2FAKxB,mBAAmB,iUAapB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"host-registry.store.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AA6DF,eAAO,MAAM,YAAY,GAAI,cAAc,gBAAgB,SA0B1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,SAoBhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,MAAM,WAEjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,GAAG,IAAI,uBAMzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAI7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-boundary-host.store.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;CAC7D,CAAC;AAoDF,eAAO,MAAM,uBAAuB,GAAI,MAAM,wBAAwB,SAQrE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC3C,gBAAgB,MAAM,GAAG,IAAI,GAAG,SAAS,SAOzC,CAAC;AAUF,eAAO,MAAM,4BAA4B,GAAI,SAAS,MAAM,+BAM3D,CAAC"}
@@ -1,9 +0,0 @@
1
- import { type ViewProps } from "react-native";
2
- type Props = {
3
- enabled: boolean;
4
- children: React.ReactNode;
5
- pointerEvents: ViewProps["pointerEvents"];
6
- };
7
- export declare const MaybeMaskedNavigationContainer: import("react").MemoExoticComponent<({ enabled, children, pointerEvents }: Props) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
8
- export {};
9
- //# sourceMappingURL=maybe-masked-navigation-container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"maybe-masked-navigation-container.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/container/layers/maybe-masked-navigation-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAS7E,KAAK,KAAK,GAAG;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC1C,CAAC;AAYF,eAAO,MAAM,8BAA8B,6EACH,KAAK,iWAW5C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-component.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/container/layers/render-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,wBAAgB,oBAAoB,CACnC,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,GAC3B,SAAS,IAAI,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAIrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/bounds/navigation/zoom/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAGrD,UAAU,4BAA4B;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,EACN,MAAM,GACN,EAAE,4BAA4B,GAAG,mBAAmB,CA8EpD"}
@@ -1,98 +0,0 @@
1
- import { useMemo } from "react";
2
- import type { View } from "react-native";
3
- import type { AnimatedRef } from "react-native-reanimated";
4
- import type { BoundTag } from "../../../stores/bounds/types";
5
- import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
6
- import type {
7
- BoundaryConfigProps,
8
- BoundaryLocalMeasurementValue,
9
- } from "../types";
10
- import { useBoundaryPresence } from "./lifecycles/use-boundary-presence";
11
- import { useInitialDestinationMeasurement } from "./lifecycles/use-initial-destination-measurement";
12
- import { useInitialSourceMeasurement } from "./lifecycles/use-initial-source-measurement";
13
- import { useRefreshBoundary } from "./lifecycles/use-refresh-boundary";
14
- import { useMeasurer } from "./use-measurer";
15
-
16
- interface UseBoundaryMeasurementParams {
17
- boundTag: BoundTag;
18
- /** Raw `enabled` prop — drives the measurer and the passive-source gate. */
19
- enabled: boolean;
20
- /** `enabled && hasConfiguredInterpolator` — gates presence + lifecycle. */
21
- runtimeEnabled: boolean;
22
- currentScreenKey: string;
23
- /** Surface to measure: a nested target's placeholder, else the root. */
24
- measuredRef: AnimatedRef<View>;
25
- /** Style belonging to the selected measurement surface. */
26
- style?: unknown;
27
- handoff: boolean;
28
- escapeClipping: boolean;
29
- localMeasurement: BoundaryLocalMeasurementValue;
30
- config: BoundaryConfigProps;
31
- }
32
-
33
- /**
34
- * Owns the full measurement lifecycle for a boundary: builds the measurer,
35
- * registers presence, runs the initial source/destination + refresh reactions,
36
- * and keeps the component itself away from the measurer.
37
- */
38
- export const useBoundaryMeasurement = ({
39
- boundTag,
40
- enabled,
41
- runtimeEnabled,
42
- currentScreenKey,
43
- measuredRef,
44
- style,
45
- handoff,
46
- escapeClipping,
47
- localMeasurement,
48
- config,
49
- }: UseBoundaryMeasurementParams) => {
50
- const { anchor, scaleMode, target, method } = config;
51
- const boundaryConfig = useMemo<BoundaryConfigProps>(
52
- () => ({ anchor, scaleMode, target, method }),
53
- [anchor, scaleMode, target, method],
54
- );
55
-
56
- const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
57
-
58
- const measureBoundary = useMeasurer({
59
- enabled,
60
- boundTag,
61
- currentScreenKey,
62
- preparedStyles,
63
- measuredAnimatedRef: measuredRef,
64
- handoff,
65
- escapeClipping,
66
- localMeasurement,
67
- });
68
-
69
- // Presence and source capture must not depend on this screen owning an
70
- // interpolator: a nested source can participate in a transition owned by a
71
- // different navigator.
72
- useBoundaryPresence({
73
- enabled,
74
- boundTag,
75
- currentScreenKey,
76
- boundaryConfig,
77
- handoff,
78
- escapeClipping,
79
- });
80
-
81
- useInitialSourceMeasurement({
82
- enabled,
83
- measureBoundary,
84
- boundTag,
85
- });
86
-
87
- useInitialDestinationMeasurement({
88
- boundTag,
89
- enabled: runtimeEnabled,
90
- measureBoundary,
91
- });
92
-
93
- useRefreshBoundary({
94
- enabled: runtimeEnabled,
95
- boundTag,
96
- measureBoundary,
97
- });
98
- };