react-native-screen-transitions 3.9.0-beta.1 → 3.9.0-beta.2

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 (330) hide show
  1. package/lib/commonjs/shared/adapters/with-screen-transitions/index.js +20 -4
  2. package/lib/commonjs/shared/adapters/with-screen-transitions/index.js.map +1 -1
  3. package/lib/commonjs/shared/animation/transition-blocking.js +71 -0
  4. package/lib/commonjs/shared/animation/transition-blocking.js.map +1 -0
  5. package/lib/commonjs/shared/components/boundary/components/boundary-target.js +30 -30
  6. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
  7. package/lib/commonjs/shared/components/boundary/create-boundary-component.js +30 -95
  8. package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
  9. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +68 -51
  10. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
  12. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  13. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +14 -2
  14. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  15. package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +32 -0
  16. package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +1 -0
  17. package/lib/commonjs/shared/components/boundary/index.js +1 -1
  18. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +40 -0
  19. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +14 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
  22. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +194 -0
  23. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
  24. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +44 -0
  25. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
  26. package/lib/commonjs/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +17 -16
  27. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
  28. package/lib/commonjs/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +11 -11
  29. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
  30. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +52 -0
  31. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
  32. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
  33. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +14 -0
  34. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
  35. package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
  36. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
  37. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +184 -0
  38. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
  39. package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
  40. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
  41. package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
  42. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
  43. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +33 -0
  44. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
  45. package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
  46. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
  48. package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +7 -12
  49. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
  50. package/lib/commonjs/shared/components/boundary/portal/index.js +1 -8
  51. package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -1
  52. package/lib/commonjs/shared/components/boundary/portal/teleport.js +2 -2
  53. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +1 -15
  54. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
  55. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +19 -56
  56. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  57. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +77 -23
  58. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  59. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +41 -12
  60. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
  61. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js +36 -1
  62. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -1
  63. package/lib/commonjs/shared/components/screen-container/layers/content.js +1 -1
  64. package/lib/commonjs/shared/configs/presets.js +2 -2
  65. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  66. package/lib/commonjs/shared/index.js +13 -0
  67. package/lib/commonjs/shared/index.js.map +1 -1
  68. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  69. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  70. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +5 -3
  71. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
  72. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
  73. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
  74. package/lib/commonjs/shared/stores/system.store.js +10 -2
  75. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  76. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
  77. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  78. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +2 -2
  79. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  80. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +3 -3
  81. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  82. package/lib/module/shared/adapters/with-screen-transitions/index.js +19 -5
  83. package/lib/module/shared/adapters/with-screen-transitions/index.js.map +1 -1
  84. package/lib/module/shared/animation/transition-blocking.js +66 -0
  85. package/lib/module/shared/animation/transition-blocking.js.map +1 -0
  86. package/lib/module/shared/components/boundary/components/boundary-target.js +32 -32
  87. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
  88. package/lib/module/shared/components/boundary/create-boundary-component.js +32 -97
  89. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
  90. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +72 -55
  91. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  92. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
  93. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  94. package/lib/module/shared/components/boundary/hooks/use-measurer.js +15 -3
  95. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  96. package/lib/module/shared/components/boundary/hooks/use-register-target.js +27 -0
  97. package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +1 -0
  98. package/lib/module/shared/components/boundary/index.js +1 -1
  99. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +35 -0
  100. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
  101. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +9 -0
  102. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
  103. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +189 -0
  104. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
  105. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +33 -0
  106. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
  107. package/lib/module/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +17 -16
  108. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
  109. package/lib/module/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +11 -11
  110. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
  111. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +47 -0
  112. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
  113. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
  114. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +9 -0
  115. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
  116. package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
  117. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
  118. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +179 -0
  119. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
  120. package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
  121. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
  122. package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
  123. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
  124. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +29 -0
  125. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
  126. package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
  127. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
  128. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
  129. package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +5 -10
  130. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
  131. package/lib/module/shared/components/boundary/portal/index.js +1 -2
  132. package/lib/module/shared/components/boundary/portal/index.js.map +1 -1
  133. package/lib/module/shared/components/boundary/portal/teleport.js +2 -2
  134. package/lib/module/shared/components/boundary/portal/utils/naming.js +0 -12
  135. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
  136. package/lib/module/shared/components/boundary/portal/utils/ownership.js +16 -52
  137. package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  138. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +74 -20
  139. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  140. package/lib/module/shared/components/boundary/utils/destination-signals.js +39 -10
  141. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
  142. package/lib/module/shared/components/boundary/utils/measured-bounds.js +34 -0
  143. package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -1
  144. package/lib/module/shared/components/screen-container/layers/content.js +1 -1
  145. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  146. package/lib/module/shared/configs/presets.js +2 -2
  147. package/lib/module/shared/configs/presets.js.map +1 -1
  148. package/lib/module/shared/index.js +1 -0
  149. package/lib/module/shared/index.js.map +1 -1
  150. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  151. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  152. package/lib/module/shared/providers/screen/styles/slot.provider.js +5 -3
  153. package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
  154. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
  155. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
  156. package/lib/module/shared/stores/system.store.js +10 -2
  157. package/lib/module/shared/stores/system.store.js.map +1 -1
  158. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
  159. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  160. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +2 -2
  161. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  162. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +3 -3
  163. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  164. package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts +4 -1
  165. package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts.map +1 -1
  166. package/lib/typescript/shared/animation/transition-blocking.d.ts +33 -0
  167. package/lib/typescript/shared/animation/transition-blocking.d.ts.map +1 -0
  168. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
  169. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
  170. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +2 -1
  171. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
  172. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  173. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
  174. package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +10 -0
  175. package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +1 -0
  176. package/lib/typescript/shared/components/boundary/index.d.ts +2 -2
  177. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +10 -0
  178. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -0
  179. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +2 -0
  180. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +1 -0
  181. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +12 -0
  182. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -0
  183. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +11 -0
  184. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -0
  185. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -0
  186. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -0
  187. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +14 -0
  188. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -0
  189. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts +3 -0
  190. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts.map +1 -0
  191. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts +2 -0
  192. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts.map +1 -0
  193. package/lib/typescript/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.d.ts +1 -1
  194. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -0
  195. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +12 -0
  196. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -0
  197. package/lib/typescript/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.d.ts +5 -1
  198. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -0
  199. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +12 -0
  200. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +1 -0
  201. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +13 -0
  202. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -0
  203. package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.d.ts +1 -1
  204. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +1 -0
  205. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -0
  206. package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.d.ts +3 -3
  207. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  208. package/lib/typescript/shared/components/boundary/portal/index.d.ts +1 -2
  209. package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -1
  210. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +0 -2
  211. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
  212. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +9 -10
  213. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
  214. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +21 -21
  215. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  216. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +9 -2
  217. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
  218. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +8 -0
  219. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -1
  220. package/lib/typescript/shared/index.d.ts +1 -0
  221. package/lib/typescript/shared/index.d.ts.map +1 -1
  222. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
  223. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  224. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +1 -0
  225. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
  226. package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -1
  227. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  228. package/lib/typescript/shared/types/animation.types.d.ts +3 -3
  229. package/lib/typescript/shared/types/bounds.types.d.ts +7 -2
  230. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  231. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/bounds/types/options.d.ts +6 -2
  233. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  234. package/package.json +1 -1
  235. package/src/shared/adapters/with-screen-transitions/index.tsx +30 -9
  236. package/src/shared/animation/transition-blocking.ts +79 -0
  237. package/src/shared/components/boundary/components/boundary-target.tsx +43 -50
  238. package/src/shared/components/boundary/create-boundary-component.tsx +35 -150
  239. package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +103 -81
  240. package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +1 -0
  241. package/src/shared/components/boundary/hooks/use-measurer.ts +12 -4
  242. package/src/shared/components/boundary/hooks/use-register-target.ts +43 -0
  243. package/src/shared/components/boundary/index.tsx +2 -2
  244. package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +48 -0
  245. package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +9 -0
  246. package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +274 -0
  247. package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +59 -0
  248. package/src/shared/components/boundary/portal/components/{host.tsx → boundary-portal/components/host.tsx} +14 -15
  249. package/src/shared/components/boundary/portal/components/{portal-boundary-host.tsx → boundary-portal/components/portal-boundary-host.tsx} +12 -12
  250. package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +80 -0
  251. package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.ts +1 -1
  252. package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.ts +10 -0
  253. package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.ts +2 -2
  254. package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +250 -0
  255. package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.ts +38 -8
  256. package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.ts +4 -15
  257. package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +38 -0
  258. package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.ts +2 -2
  259. package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.ts +10 -15
  260. package/src/shared/components/boundary/portal/index.ts +1 -2
  261. package/src/shared/components/boundary/portal/teleport.ts +2 -2
  262. package/src/shared/components/boundary/portal/utils/naming.ts +0 -19
  263. package/src/shared/components/boundary/portal/utils/ownership.ts +32 -88
  264. package/src/shared/components/boundary/providers/boundary-root.provider.tsx +198 -78
  265. package/src/shared/components/boundary/utils/destination-signals.ts +38 -14
  266. package/src/shared/components/boundary/utils/measured-bounds.ts +48 -0
  267. package/src/shared/components/screen-container/layers/content.tsx +1 -1
  268. package/src/shared/configs/presets.ts +2 -2
  269. package/src/shared/index.ts +4 -0
  270. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
  271. package/src/shared/providers/screen/styles/slot.provider.tsx +4 -2
  272. package/src/shared/providers/screen/styles/stores/slot-references.store.ts +2 -1
  273. package/src/shared/stores/system.store.ts +10 -4
  274. package/src/shared/types/animation.types.ts +3 -3
  275. package/src/shared/types/bounds.types.ts +9 -2
  276. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +18 -11
  277. package/src/shared/utils/bounds/navigation/reveal/build.ts +2 -2
  278. package/src/shared/utils/bounds/navigation/zoom/build.ts +3 -3
  279. package/src/shared/utils/bounds/types/options.ts +9 -2
  280. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -58
  281. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
  282. package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +0 -1
  283. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
  284. package/lib/commonjs/shared/components/boundary/portal/components/portal.js +0 -272
  285. package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +0 -1
  286. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
  287. package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
  288. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
  289. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
  290. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
  291. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
  292. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
  293. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -53
  294. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
  295. package/lib/module/shared/components/boundary/portal/components/host.js.map +0 -1
  296. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
  297. package/lib/module/shared/components/boundary/portal/components/portal.js +0 -267
  298. package/lib/module/shared/components/boundary/portal/components/portal.js.map +0 -1
  299. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
  300. package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
  301. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
  302. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
  303. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
  304. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
  305. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
  306. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +0 -8
  307. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +0 -1
  308. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +0 -1
  309. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +0 -1
  310. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +0 -20
  311. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +0 -1
  312. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +0 -1
  313. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +0 -17
  314. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +0 -1
  315. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +0 -1
  316. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +0 -1
  317. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +0 -1
  318. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +0 -3
  319. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +0 -1
  320. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +0 -1
  321. package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +0 -66
  322. package/src/shared/components/boundary/portal/components/portal.tsx +0 -412
  323. /package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
  324. /package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
  325. /package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
  326. /package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
  327. /package/lib/typescript/shared/components/boundary/portal/components/{host.d.ts → boundary-portal/components/host.d.ts} +0 -0
  328. /package/lib/typescript/shared/components/boundary/portal/components/{portal-boundary-host.d.ts → boundary-portal/components/portal-boundary-host.d.ts} +0 -0
  329. /package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.d.ts +0 -0
  330. /package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.ts +0 -0
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BoundaryPortal = void 0;
7
+ var _react = require("react");
8
+ var _portalSlot = require("./components/portal-slot");
9
+ var _useBoundaryPortalAttachment = require("./hooks/use-boundary-portal-attachment");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ const BoundaryPortal = exports.BoundaryPortal = /*#__PURE__*/(0, _react.memo)(function BoundaryPortal({
12
+ boundaryId,
13
+ children,
14
+ enabled,
15
+ placeholderRef,
16
+ pointerEvents
17
+ }) {
18
+ const {
19
+ teleportProps
20
+ } = (0, _useBoundaryPortalAttachment.useBoundaryPortalAttachment)({
21
+ boundaryId,
22
+ enabled
23
+ });
24
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_portalSlot.BoundaryPortalSlot, {
25
+ id: boundaryId,
26
+ enabled: enabled,
27
+ animatedProps: teleportProps,
28
+ placeholderRef: placeholderRef,
29
+ pointerEvents: pointerEvents,
30
+ children: children
31
+ });
32
+ });
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_portalSlot","_useBoundaryPortalAttachment","_jsxRuntime","BoundaryPortal","exports","memo","boundaryId","children","enabled","placeholderRef","pointerEvents","teleportProps","useBoundaryPortalAttachment","jsx","BoundaryPortalSlot","id","animatedProps"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,4BAAA,GAAAF,OAAA;AAAqF,IAAAG,WAAA,GAAAH,OAAA;AAU9E,MAAMI,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,cAAcA,CAAC;EAC1DG,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,cAAc;EACdC;AACoB,CAAC,EAAE;EACvB,MAAM;IAAEC;EAAc,CAAC,GAAG,IAAAC,wDAA2B,EAAC;IACrDN,UAAU;IACVE;EACD,CAAC,CAAC;EAEF,oBACC,IAAAN,WAAA,CAAAW,GAAA,EAACb,WAAA,CAAAc,kBAAkB;IAClBC,EAAE,EAAET,UAAW;IACfE,OAAO,EAAEA,OAAQ;IACjBQ,aAAa,EAAEL,aAAc;IAC7BF,cAAc,EAAEA,cAAe;IAC/BC,aAAa,EAAEA,aAAc;IAAAH,QAAA,EAE5BA;EAAQ,CACU,CAAC;AAEvB,CAAC,CAAC","ignoreList":[]}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.setPortalHostBounds = exports.getPortalHostBounds = exports.clearPortalHostBounds = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
- var _scroll = require("../../../../stores/scroll.store");
8
+ var _scroll = require("../../../../../../stores/scroll.store");
9
9
  const portalHostBounds = (0, _reactNativeReanimated.makeMutable)({});
10
10
  const getPortalHostBounds = hostKey => {
11
11
  "worklet";
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_scroll","portalHostBounds","makeMutable","getPortalHostBounds","hostKey","get","exports","setPortalHostBounds","bounds","nextBounds","scroll","cloneScrollMetadataState","set","state","clearPortalHostBounds","nextState"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AASA,MAAME,gBAAgB,GAAG,IAAAC,kCAAW,EAAwB,CAAC,CAAC,CAAC;AAExD,MAAMC,mBAAmB,GAAIC,OAAe,IAAK;EACvD,SAAS;;EACT,OAAOH,gBAAgB,CAACI,GAAG,CAAC,CAAC,CAACD,OAAO,CAAC,IAAI,IAAI;AAC/C,CAAC;AAACE,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,mBAAmB,GAAGA,CAClCH,OAAe,EACfI,MAAwB,KACpB;EACJ,SAAS;;EACT,MAAMC,UAA4B,GAAG;IACpC,GAAGD,MAAM;IACTE,MAAM,EAAE,IAAAC,gCAAwB,EAACH,MAAM,CAACE,MAAM;EAC/C,CAAC;EAEDT,gBAAgB,CAACW,GAAG,CAAEC,KAAK,IAAK;IAC/B,SAAS;;IACT,OAAO;MACN,GAAGA,KAAK;MACR,CAACT,OAAO,GAAGK;IACZ,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAACH,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAEK,MAAMO,qBAAqB,GAAIV,OAAe,IAAK;EACzD,SAAS;;EACTH,gBAAgB,CAACW,GAAG,CAAEC,KAAK,IAAK;IAC/B,SAAS;;IACT,MAAME,SAAgC,GAAG;MAAE,GAAGF;IAAM,CAAC;IACrD,OAAOE,SAAS,CAACX,OAAO,CAAC;IACzB,OAAOW,SAAS;EACjB,CAAC,CAAC;AACH,CAAC;AAACT,OAAA,CAAAQ,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","EMPTY_SNAPSHOT","listeners","Set","hostStacks","Map","snapshot","getActiveHostFromStack","screenKey","stack","length","index","host","fallback","hostKey","buildSnapshot","nextSnapshot","emit","listener","subscribe","add","delete","registerHost","registration","get","previousActiveHostKey","nextStack","filter","unshift","push","set","exports","unregisterHost","getActiveHostKey","useActiveHostKey","useSyncExternalStore","undefined","resetHostRegistry","clear"],"sourceRoot":"../../../../../../../../../src","sources":["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AIY,SAAS,CAAChB,MAAM,KAAK,CAAC,EAAE;IAC3BN,UAAU,CAACiB,MAAM,CAACb,SAAS,CAAC;EAC7B,CAAC,MAAM;IACNJ,UAAU,CAAC0B,GAAG,CAACtB,SAAS,EAAEkB,SAAS,CAAC;EACrC;EAEA,IAAID,qBAAqB,KAAKlB,sBAAsB,CAACC,SAAS,EAAEkB,SAAS,CAAC,EAAE;IAC3E;EACD;EAEAT,IAAI,CAAC,CAAC;AACP,CAAC;AAACc,OAAA,CAAAC,cAAA,GAAAA,cAAA;AAEK,MAAMC,gBAAgB,GAAIzB,SAAiB,IAAK;EACtD,OAAOF,QAAQ,CAACE,SAAS,CAAC,IAAIA,SAAS;AACxC,CAAC;AAACuB,OAAA,CAAAE,gBAAA,GAAAA,gBAAA;AAEK,MAAMC,gBAAgB,GAAI1B,SAAyB,IAAK;EAC9D,OAAO,IAAA2B,2BAAoB,EAC1BhB,SAAS,EACT,MAAOX,SAAS,GAAGyB,gBAAgB,CAACzB,SAAS,CAAC,GAAG4B,SAAU,EAC3D,MAAMA,SACP,CAAC;AACF,CAAC;AAACL,OAAA,CAAAG,gBAAA,GAAAA,gBAAA;AAEK,MAAMG,iBAAiB,GAAGA,CAAA,KAAM;EACtCjC,UAAU,CAACkC,KAAK,CAAC,CAAC;EAClBhC,QAAQ,GAAGL,cAAc;EACzBgB,IAAI,CAAC,CAAC;AACP,CAAC;AAACc,OAAA,CAAAM,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useActivePortalBoundaryHosts = exports.unmountPortalBoundaryHost = exports.mountPortalBoundaryHost = exports.dropStalePortalBoundaryHosts = void 0;
6
+ exports.useActivePortalBoundaryHosts = exports.unmountPortalBoundaryHostByName = exports.mountPortalBoundaryHost = exports.dropStalePortalBoundaryHosts = void 0;
7
7
  var _react = require("react");
8
8
  const EMPTY_HOSTS = [];
9
9
  const listeners = new Set();
@@ -40,16 +40,8 @@ const mountPortalBoundaryHost = host => {
40
40
  emit();
41
41
  };
42
42
  exports.mountPortalBoundaryHost = mountPortalBoundaryHost;
43
- const unmountPortalBoundaryHost = boundaryId => {
44
- let didDelete = false;
45
- for (const [hostEntryKey, host] of activeBoundaryHosts) {
46
- if (host.boundaryId !== boundaryId) {
47
- continue;
48
- }
49
- activeBoundaryHosts.delete(hostEntryKey);
50
- didDelete = true;
51
- }
52
- if (!didDelete) {
43
+ const unmountPortalBoundaryHostByName = portalHostName => {
44
+ if (!portalHostName || !activeBoundaryHosts.delete(portalHostName)) {
53
45
  return;
54
46
  }
55
47
  emit();
@@ -60,11 +52,14 @@ const unmountPortalBoundaryHost = boundaryId => {
60
52
  * visible (`keepPortalHostName`). Called once the new host is confirmed on
61
53
  * screen so the superseded receivers stop rendering.
62
54
  */
63
- exports.unmountPortalBoundaryHost = unmountPortalBoundaryHost;
55
+ exports.unmountPortalBoundaryHostByName = unmountPortalBoundaryHostByName;
64
56
  const dropStalePortalBoundaryHosts = ({
65
57
  boundaryId,
66
58
  keepPortalHostName
67
59
  }) => {
60
+ if (!activeBoundaryHosts.has(keepPortalHostName)) {
61
+ return;
62
+ }
68
63
  let didDelete = false;
69
64
  for (const [hostEntryKey, host] of activeBoundaryHosts) {
70
65
  if (host.boundaryId !== boundaryId || host.portalHostName === keepPortalHostName) {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","EMPTY_HOSTS","listeners","Set","activeBoundaryHosts","Map","snapshot","hostsByScope","buildSnapshot","host","values","hosts","hostKey","push","emit","listener","isSameHost","a","b","boundaryId","escapeClipping","localStylesMaps","pairKey","portalHostName","screenKey","slotsMap","mountPortalBoundaryHost","previous","get","set","exports","unmountPortalBoundaryHostByName","delete","dropStalePortalBoundaryHosts","keepPortalHostName","has","didDelete","hostEntryKey","subscribe","add","useActivePortalBoundaryHosts","useSyncExternalStore"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/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AAA,4BAAA;AAEF,MAAMK,SAAS,GAAIvB,QAAoB,IAAK;EAC3Cb,SAAS,CAACqC,GAAG,CAACxB,QAAQ,CAAC;EAEvB,OAAO,MAAM;IACZb,SAAS,CAAC8B,MAAM,CAACjB,QAAQ,CAAC;EAC3B,CAAC;AACF,CAAC;AAEM,MAAMyB,4BAA4B,GAAI5B,OAAe,IAAK;EAChE,OAAO,IAAA6B,2BAAoB,EAC1BH,SAAS,EACT,MAAMhC,QAAQ,CAACC,YAAY,CAACK,OAAO,CAAC,IAAIX,WAAW,EACnD,MAAMA,WACP,CAAC;AACF,CAAC;AAAC6B,OAAA,CAAAU,4BAAA,GAAAA,4BAAA","ignoreList":[]}
@@ -9,19 +9,12 @@ Object.defineProperty(exports, "Host", {
9
9
  return _host.Host;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Portal", {
13
- enumerable: true,
14
- get: function () {
15
- return _portal.Portal;
16
- }
17
- });
18
12
  Object.defineProperty(exports, "PortalProvider", {
19
13
  enumerable: true,
20
14
  get: function () {
21
15
  return _portalProvider.PortalProvider;
22
16
  }
23
17
  });
24
- var _host = require("./components/host");
25
- var _portal = require("./components/portal");
18
+ var _host = require("./components/boundary-portal/components/host");
26
19
  var _portalProvider = require("./components/portal-provider");
27
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_host","require","_portal","_portalProvider"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/portal/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_host","require","_portalProvider"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/portal/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA","ignoreList":[]}
@@ -10,8 +10,8 @@ var _react = require("react");
10
10
  * try/catch so Metro treats it as an optional dependency — an absent module no
11
11
  * longer fails the bundle, it throws at runtime and the catch swallows it.
12
12
  *
13
- * When teleport is missing, `portal`-enabled boundaries degrade to inline
14
- * rendering; everything else keeps working.
13
+ * When teleport is missing, handoff and escapeClipping boundaries degrade to
14
+ * inline rendering; everything else keeps working.
15
15
  */
16
16
  let mod = null;
17
17
  let managerMod = null;
@@ -3,20 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createPortalBoundaryHostName = exports.createBoundaryLocalPortalHostName = exports.PORTAL_HOST_NAME_RESET_VALUE = void 0;
6
+ exports.PORTAL_HOST_NAME_RESET_VALUE = void 0;
7
7
  const PORTAL_HOST_NAME_RESET_VALUE = exports.PORTAL_HOST_NAME_RESET_VALUE = null;
8
- const PORTAL_HOST_NAME_SUFFIX = "-portal-host";
9
- const BOUNDARY_LOCAL_PORTAL_HOST_NAME_SUFFIX = "-boundary-local-portal-host";
10
- const createPortalBoundaryHostName = (hostKey, boundaryId, pairKey) => {
11
- "worklet";
12
-
13
- return `${hostKey}-${pairKey ? `${pairKey}-` : ""}${boundaryId}${PORTAL_HOST_NAME_SUFFIX}`;
14
- };
15
- exports.createPortalBoundaryHostName = createPortalBoundaryHostName;
16
- const createBoundaryLocalPortalHostName = (screenKey, boundaryId) => {
17
- "worklet";
18
-
19
- return `${screenKey}-${boundaryId}${BOUNDARY_LOCAL_PORTAL_HOST_NAME_SUFFIX}`;
20
- };
21
- exports.createBoundaryLocalPortalHostName = createBoundaryLocalPortalHostName;
22
8
  //# sourceMappingURL=naming.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PORTAL_HOST_NAME_RESET_VALUE","exports","PORTAL_HOST_NAME_SUFFIX","BOUNDARY_LOCAL_PORTAL_HOST_NAME_SUFFIX","createPortalBoundaryHostName","hostKey","boundaryId","pairKey","createBoundaryLocalPortalHostName","screenKey"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/naming.ts"],"mappings":";;;;;;AAAO,MAAMA,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GAAG,IAAI;AAChD,MAAME,uBAAuB,GAAG,cAAc;AAC9C,MAAMC,sCAAsC,GAAG,6BAA6B;AAErE,MAAMC,4BAA4B,GAAGA,CAC3CC,OAAe,EACfC,UAAkB,EAClBC,OAAuB,KACnB;EACJ,SAAS;;EACT,OAAO,GAAGF,OAAO,IAAIE,OAAO,GAAG,GAAGA,OAAO,GAAG,GAAG,EAAE,GAAGD,UAAU,GAAGJ,uBAAuB,EAAE;AAC3F,CAAC;AAACD,OAAA,CAAAG,4BAAA,GAAAA,4BAAA;AAEK,MAAMI,iCAAiC,GAAGA,CAChDC,SAAiB,EACjBH,UAAkB,KACd;EACJ,SAAS;;EACT,OAAO,GAAGG,SAAS,IAAIH,UAAU,GAAGH,sCAAsC,EAAE;AAC7E,CAAC;AAACF,OAAA,CAAAO,iCAAA,GAAAA,iCAAA","ignoreList":[]}
1
+ {"version":3,"names":["PORTAL_HOST_NAME_RESET_VALUE","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/naming.ts"],"mappings":";;;;;;AAAO,MAAMA,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GAAG,IAAI","ignoreList":[]}
@@ -3,8 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usesEscapeClippingHost = exports.resolveBoundaryPortalOwnership = exports.hasHandoffEscapeContinuation = exports.canSwitchBoundaryLocalHandoffImmediately = void 0;
6
+ exports.resolveBoundaryPortalOwnership = exports.isHandoffHostClosingComplete = exports.canSwitchHandoffHostImmediately = void 0;
7
7
  var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
8
+ const isHandoffHostClosingComplete = ({
9
+ closing,
10
+ progressAnimating,
11
+ progressSettled,
12
+ willAnimate
13
+ }) => {
14
+ "worklet";
15
+
16
+ // A close request marks `closing` before its animation starts. Springs can
17
+ // also enter their settle-distance threshold before their final frame.
18
+ return !!closing && willAnimate === 0 && progressSettled === 1 && progressAnimating === 0;
19
+ };
20
+ exports.isHandoffHostClosingComplete = isHandoffHostClosingComplete;
8
21
  const hasSeenScreenKey = (screenKeys, screenKey) => {
9
22
  "worklet";
10
23
 
@@ -15,12 +28,6 @@ const hasSeenScreenKey = (screenKeys, screenKey) => {
15
28
  }
16
29
  return false;
17
30
  };
18
- const usesEscapeClippingHost = link => {
19
- "worklet";
20
-
21
- return link?.source?.handoff === true && link.source.escapeClipping === true;
22
- };
23
- exports.usesEscapeClippingHost = usesEscapeClippingHost;
24
31
  const isReturningToPreviousSourceHost = ({
25
32
  hostScreenKey,
26
33
  ownerPairKey,
@@ -33,7 +40,7 @@ const isReturningToPreviousSourceHost = ({
33
40
  const ownerDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(ownerPairKey);
34
41
  return previousDestinationScreenKey !== "" && ownerDestinationScreenKey !== "" && previousDestinationScreenKey !== previousSourceScreenKey && ownerDestinationScreenKey === previousSourceScreenKey && hostScreenKey === previousSourceScreenKey;
35
42
  };
36
- const canSwitchBoundaryLocalHandoffImmediately = ({
43
+ const canSwitchHandoffHostImmediately = ({
37
44
  hostScreenKey,
38
45
  ownerPairKey,
39
46
  previousOwnerPairKey
@@ -55,7 +62,7 @@ const canSwitchBoundaryLocalHandoffImmediately = ({
55
62
  previousOwnerPairKey
56
63
  });
57
64
  };
58
- exports.canSwitchBoundaryLocalHandoffImmediately = canSwitchBoundaryLocalHandoffImmediately;
65
+ exports.canSwitchHandoffHostImmediately = canSwitchHandoffHostImmediately;
59
66
  const isActiveHandoffLink = ({
60
67
  link,
61
68
  linkKey,
@@ -70,7 +77,7 @@ const isActiveHandoffLink = ({
70
77
  const activeId = pairsState[pairKey]?.groups?.[link.group]?.activeId;
71
78
  return !activeId || activeId === linkKey;
72
79
  };
73
- const resolveBoundaryLocalStyleOwnerScreenKey = ({
80
+ const resolveHandoffStyleOwnerScreenKey = ({
74
81
  hostScreenKey,
75
82
  isSettledHostReady,
76
83
  settledHostScreenKey,
@@ -106,7 +113,6 @@ const clearSignal = sourcePairKey => {
106
113
  const resolveBoundaryPortalOwnership = ({
107
114
  boundaryId,
108
115
  currentScreenKey,
109
- escapeClipping,
110
116
  handoff,
111
117
  isSettledHostClosingComplete = false,
112
118
  isSettledHostReady = false,
@@ -139,7 +145,6 @@ const resolveBoundaryPortalOwnership = ({
139
145
  }
140
146
  let hostScreenKey = link.destination.screenKey;
141
147
  let ownerPairKey = sourcePairKey;
142
- let previousOwnerPairKey = null;
143
148
  const seenScreenKeys = [(0, _linkPairs.getSourceScreenKeyFromPairKey)(sourcePairKey), hostScreenKey];
144
149
  const pairKeys = Object.keys(pairsState);
145
150
  for (let hop = 0; hop < pairKeys.length; hop++) {
@@ -171,7 +176,6 @@ const resolveBoundaryPortalOwnership = ({
171
176
  continue;
172
177
  }
173
178
  const nextHostScreenKey = candidate.destination.screenKey;
174
- previousOwnerPairKey = ownerPairKey;
175
179
  ownerPairKey = candidatePairKey;
176
180
  hostScreenKey = nextHostScreenKey;
177
181
  if (hasSeenScreenKey(seenScreenKeys, nextHostScreenKey)) {
@@ -193,12 +197,10 @@ const resolveBoundaryPortalOwnership = ({
193
197
  }
194
198
  break;
195
199
  }
196
- const ownerLink = (0, _linkPairs.getLink)(pairsState, ownerPairKey, linkKey);
197
- const ownerUsesEscapeClipping = ownerLink?.source?.escapeClipping ?? escapeClipping;
198
- if (!ownerUsesEscapeClipping && isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey && previousOwnerPairKey) {
200
+ if (isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey) {
199
201
  hostScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey);
200
202
  }
201
- const ownerScreenKey = ownerUsesEscapeClipping ? (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey) : resolveBoundaryLocalStyleOwnerScreenKey({
203
+ const ownerScreenKey = resolveHandoffStyleOwnerScreenKey({
202
204
  hostScreenKey,
203
205
  isSettledHostReady,
204
206
  settledHostScreenKey,
@@ -212,43 +214,4 @@ const resolveBoundaryPortalOwnership = ({
212
214
  };
213
215
  };
214
216
  exports.resolveBoundaryPortalOwnership = resolveBoundaryPortalOwnership;
215
- const hasHandoffEscapeContinuation = ({
216
- linkKey,
217
- linkState,
218
- sourceScreenKey
219
- }) => {
220
- "worklet";
221
-
222
- const pairKeys = Object.keys(linkState);
223
- const visitedScreenKeys = [];
224
- let cursorScreenKey = sourceScreenKey;
225
- for (let hop = 0; hop < pairKeys.length; hop++) {
226
- if (hasSeenScreenKey(visitedScreenKeys, cursorScreenKey)) {
227
- return false;
228
- }
229
- visitedScreenKeys.push(cursorScreenKey);
230
- let previousScreenKey = null;
231
- for (let index = 0; index < pairKeys.length; index++) {
232
- const candidatePairKey = pairKeys[index];
233
- const link = candidatePairKey ? linkState[candidatePairKey]?.links?.[linkKey] : null;
234
- if (!link?.source || !link.destination || link.destination.screenKey !== cursorScreenKey) {
235
- continue;
236
- }
237
- if (usesEscapeClippingHost(link)) {
238
- return true;
239
- }
240
- if (!link.source.handoff) {
241
- return false;
242
- }
243
- previousScreenKey = link.source.screenKey;
244
- break;
245
- }
246
- if (!previousScreenKey) {
247
- return false;
248
- }
249
- cursorScreenKey = previousScreenKey;
250
- }
251
- return false;
252
- };
253
- exports.hasHandoffEscapeContinuation = hasHandoffEscapeContinuation;
254
217
  //# sourceMappingURL=ownership.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_linkPairs","require","hasSeenScreenKey","screenKeys","screenKey","index","length","usesEscapeClippingHost","link","source","handoff","escapeClipping","exports","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","getSourceScreenKeyFromPairKey","previousDestinationScreenKey","getDestinationScreenKeyFromPairKey","ownerDestinationScreenKey","canSwitchBoundaryLocalHandoffImmediately","isActiveHandoffLink","linkKey","pairKey","pairsState","group","activeId","groups","resolveBoundaryLocalStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","isSettledHostClosingComplete","getLinkKeyFromTag","getPairLink","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","nextHostScreenKey","push","ownerLink","ownerUsesEscapeClipping","hasHandoffEscapeContinuation","linkState","visitedScreenKeys","cursorScreenKey","previousScreenKey","links"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/ownership.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AA4BA,MAAMC,gBAAgB,GAAGA,CAACC,UAAuB,EAAEC,SAAoB,KAAK;EAC3E,SAAS;;EACT,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,UAAU,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACvD,IAAIF,UAAU,CAACE,KAAK,CAAC,KAAKD,SAAS,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EACA,OAAO,KAAK;AACb,CAAC;AAEM,MAAMG,sBAAsB,GAClCC,IAAgC,IACnB;EACb,SAAS;;EACT,OAAOA,IAAI,EAAEC,MAAM,EAAEC,OAAO,KAAK,IAAI,IAAIF,IAAI,CAACC,MAAM,CAACE,cAAc,KAAK,IAAI;AAC7E,CAAC;AAACC,OAAA,CAAAL,sBAAA,GAAAA,sBAAA;AAEF,MAAMM,+BAA+B,GAAGA,CAAC;EACxCC,aAAa;EACbC,YAAY;EACZC;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMC,uBAAuB,GAC5B,IAAAC,wCAA6B,EAACF,oBAAoB,CAAC;EACpD,MAAMG,4BAA4B,GACjC,IAAAC,6CAAkC,EAACJ,oBAAoB,CAAC;EACzD,MAAM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isHandoffHostClosingComplete","closing","progressAnimating","progressSettled","willAnimate","exports","hasSeenScreenKey","screenKeys","screenKey","index","length","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","getSourceScreenKeyFromPairKey","previousDestinationScreenKey","getDestinationScreenKeyFromPairKey","ownerDestinationScreenKey","canSwitchHandoffHostImmediately","isActiveHandoffLink","link","linkKey","pairKey","pairsState","group","activeId","groups","resolveHandoffStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","handoff","isSettledHostClosingComplete","getLinkKeyFromTag","getPairLink","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","source","nextHostScreenKey","push"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/ownership.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AA4BO,MAAMC,4BAA4B,GAAGA,CAAC;EAC5CC,OAAO;EACPC,iBAAiB;EACjBC,eAAe;EACfC;AAMD,CAAC,KAAK;EACL,SAAS;;EAET;EACA;EACA,OACC,CAAC,CAACH,OAAO,IACTG,WAAW,KAAK,CAAC,IACjBD,eAAe,KAAK,CAAC,IACrBD,iBAAiB,KAAK,CAAC;AAEzB,CAAC;AAACG,OAAA,CAAAL,4BAAA,GAAAA,4BAAA;AAEF,MAAMM,gBAAgB,GAAGA,CAACC,UAAuB,EAAEC,SAAoB,KAAK;EAC3E,SAAS;;EACT,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,UAAU,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACvD,IAAIF,UAAU,CAACE,KAAK,CAAC,KAAKD,SAAS,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EACA,OAAO,KAAK;AACb,CAAC;AAED,MAAMG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C,CAAC,EACD;QACD;MACD;MAEA,IAAI8B,SAAS,CAACnB,MAAM,KAAK,UAAU,EAAE;QACpCgB,iBAAiB,GAAG,IAAI;QACxB;MACD;MAEA,MAAMK,iBAAiB,GAAGF,SAAS,CAACV,WAAW,CAACrC,SAAS;MAEzDK,YAAY,GAAGyC,gBAAgB;MAC/B1C,aAAa,GAAG6C,iBAAiB;MAEjC,IAAInD,gBAAgB,CAACwC,cAAc,EAAEW,iBAAiB,CAAC,EAAE;QACxDJ,mBAAmB,GAAG,IAAI;QAC1B;MACD;MAEAP,cAAc,CAACY,IAAI,CAACD,iBAAiB,CAAC;MACtCN,UAAU,GAAG,IAAI;MACjB;IACD;IAEA,IAAIE,mBAAmB,EAAE;MACxB;IACD;IAEA,IAAIF,UAAU,EAAE;MACf;IACD;IAEA,IAAIC,iBAAiB,EAAE;MACtB,OAAOnB,aAAa,CAACpB,YAAY,CAAC;IACnC;IAEA;EACD;EAEA,IAAI6B,4BAA4B,IAAIX,oBAAoB,KAAKnB,aAAa,EAAE;IAC3EA,aAAa,GAAG,IAAAI,wCAA6B,EAACH,YAAY,CAAC;EAC5D;EAEA,MAAMsB,cAAc,GAAGN,iCAAiC,CAAC;IACxDjB,aAAa;IACbkB,kBAAkB;IAClBC,oBAAoB;IACpBC,eAAe,EAAE,IAAAhB,wCAA6B,EAACH,YAAY;EAC5D,CAAC,CAAC;EAEF,OAAO;IACND,aAAa;IACbC,YAAY;IACZsB,cAAc;IACdC,MAAM,EAAE;EACT,CAAC;AACF,CAAC;AAAC/B,OAAA,CAAAiC,8BAAA,GAAAA,8BAAA","ignoreList":[]}
@@ -3,30 +3,53 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useBoundaryRootState = exports.useBoundaryRootContext = exports.TARGET_OUTSIDE_ROOT_WARNING = exports.BoundaryRootProvider = void 0;
6
+ exports.useBoundaryRootStore = exports.useBoundaryRootContext = exports.TARGET_OUTSIDE_ROOT_WARNING = exports.BoundaryRootProvider = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNativeReanimated = require("react-native-reanimated");
9
+ var _descriptors = require("../../../providers/screen/descriptors");
10
+ var _styles = require("../../../providers/screen/styles");
11
+ var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
9
12
  var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
10
13
  var _logger = require("../../../utils/logger");
14
+ var _useBoundaryMeasurement = require("../hooks/use-boundary-measurement");
15
+ var _resolvePortal = require("../portal/utils/resolve-portal");
11
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
17
  // logger.warn prepends the library prefix.
13
18
  const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first registered target will be measured.";
14
19
  const TARGET_OUTSIDE_ROOT_WARNING = exports.TARGET_OUTSIDE_ROOT_WARNING = "Boundary.Target must be rendered inside Transition.Boundary or a component created by createBoundaryComponent.";
15
20
  const {
16
21
  BoundaryRootProvider,
17
- useBoundaryRootContext
22
+ useBoundaryRootContext,
23
+ useBoundaryRootStore
18
24
  } = (0, _createProvider.default)("BoundaryRoot", {
19
25
  guarded: false
20
- })(props => props);
21
- exports.useBoundaryRootContext = useBoundaryRootContext;
22
- exports.BoundaryRootProvider = BoundaryRootProvider;
23
- const useBoundaryRootState = params => {
24
- const {
25
- boundTag,
26
- portalRuntime,
27
- rootMeasurementRef
28
- } = params;
26
+ })(({
27
+ children,
28
+ config,
29
+ enabled = true,
30
+ escapeClipping,
31
+ forwardedRef,
32
+ group,
33
+ handoff,
34
+ id,
35
+ style
36
+ }) => {
37
+ const boundTag = (0, _react.useMemo)(() => (0, _linkPairs.createBoundTag)(String(id), group), [id, group]);
38
+ const portalRuntime = (0, _resolvePortal.resolveBoundaryPortal)({
39
+ handoff,
40
+ escapeClipping
41
+ });
42
+ const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
43
+ const hasConfiguredInterpolator = (0, _descriptors.useDescriptorsStore)(s => s.derivations.hasConfiguredInterpolator);
44
+ const runtimeEnabled = enabled && hasConfiguredInterpolator;
45
+ // Associated slot styles attach whenever the boundary is enabled,
46
+ // independent of whether an interpolator is configured for this transition.
47
+ const shouldAttachAssociatedStyles = enabled;
48
+ const shouldEscapeBoundaryRootToScreenHost = portalRuntime.escapeClipping;
49
+ const associatedStyles = (0, _styles.useComposedSlotStyles)(boundTag.tag, style);
50
+ const associatedStackingStyles = (0, _styles.useSlotStackingStyles)(boundTag.tag);
29
51
  const rootRef = (0, _reactNativeReanimated.useAnimatedRef)();
52
+ const rootEscapePlaceholderRef = (0, _reactNativeReanimated.useAnimatedRef)();
30
53
  const [targetEntry, setTargetEntry] = (0, _react.useState)(null);
31
54
  const registerTargetRef = (0, _react.useCallback)((targetRef, preparedStyles, measurementRef) => {
32
55
  setTargetEntry(prev => {
@@ -46,20 +69,51 @@ const useBoundaryRootState = params => {
46
69
  const unregisterTargetRef = (0, _react.useCallback)(targetRef => {
47
70
  setTargetEntry(prev => prev?.ref === targetRef ? null : prev);
48
71
  }, []);
49
- const contextValue = (0, _react.useMemo)(() => ({
50
- registerTargetRef,
51
- unregisterTargetRef,
72
+ const rootMeasurementRef = shouldEscapeBoundaryRootToScreenHost ? rootEscapePlaceholderRef : rootRef;
73
+ const measuredRef = targetEntry?.measurementRef ?? rootMeasurementRef;
74
+ const hasActiveTarget = targetEntry !== null;
75
+ const targetPreparedStyles = targetEntry?.preparedStyles;
76
+ (0, _react.useImperativeHandle)(forwardedRef, () => rootRef.current, [rootRef]);
77
+ (0, _useBoundaryMeasurement.useBoundaryMeasurement)({
78
+ boundTag,
79
+ enabled,
80
+ runtimeEnabled,
81
+ currentScreenKey,
82
+ measuredRef,
83
+ style,
84
+ targetPreparedStyles,
85
+ handoff: portalRuntime.handoff,
86
+ escapeClipping: portalRuntime.escapeClipping,
87
+ config
88
+ });
89
+ const shouldRenderBoundaryRootThroughPortal = shouldEscapeBoundaryRootToScreenHost && !hasActiveTarget;
90
+ // A nested active target takes the full associated style, so the root keeps
91
+ // only its stacking context. Root-owned escape-clipping moves the root
92
+ // through a screen host, so its associated style is applied through the
93
+ // host instead of inline on the escaped element.
94
+ // Host-only handoff receivers still need the associated style: their
95
+ // handoff host is absolute-filled inside this root, so the root is the
96
+ // visual frame that animates the received payload.
97
+ const attachedStyle = shouldAttachAssociatedStyles ? hasActiveTarget ? associatedStackingStyles : shouldRenderBoundaryRootThroughPortal ? undefined : associatedStyles : undefined;
98
+ const value = (0, _react.useMemo)(() => ({
99
+ attachedStyle,
52
100
  activeTargetRef: targetEntry?.ref ?? null,
53
101
  boundTag,
54
- portalRuntime
55
- }), [registerTargetRef, unregisterTargetRef, targetEntry, boundTag, portalRuntime]);
56
- return {
102
+ currentScreenKey,
103
+ portalRuntime,
104
+ registerTargetRef,
57
105
  ref: rootRef,
58
- contextValue,
59
- hasActiveTarget: targetEntry !== null,
60
- measuredRef: targetEntry?.measurementRef ?? rootMeasurementRef ?? rootRef,
61
- targetPreparedStyles: targetEntry?.preparedStyles
106
+ rootEscapePlaceholderRef,
107
+ shouldRenderBoundaryRootThroughPortal,
108
+ shouldRenderHandoffHost: enabled && portalRuntime.handoff,
109
+ unregisterTargetRef
110
+ }), [attachedStyle, boundTag, currentScreenKey, enabled, portalRuntime, registerTargetRef, rootRef, rootEscapePlaceholderRef, shouldRenderBoundaryRootThroughPortal, targetEntry, unregisterTargetRef]);
111
+ return {
112
+ value,
113
+ children: children(value)
62
114
  };
63
- };
64
- exports.useBoundaryRootState = useBoundaryRootState;
115
+ });
116
+ exports.useBoundaryRootStore = useBoundaryRootStore;
117
+ exports.useBoundaryRootContext = useBoundaryRootContext;
118
+ exports.BoundaryRootProvider = BoundaryRootProvider;
65
119
  //# sourceMappingURL=boundary-root.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_createProvider","_interopRequireDefault","_logger","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","createProvider","guarded","props","useBoundaryRootState","params","boundTag","portalRuntime","rootMeasurementRef","rootRef","useAnimatedRef","targetEntry","setTargetEntry","useState","registerTargetRef","useCallback","targetRef","preparedStyles","measurementRef","prev","ref","__DEV__","logger","warnOnce","unregisterTargetRef","contextValue","useMemo","activeTargetRef","hasActiveTarget","measuredRef","targetPreparedStyles"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA+C,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAsB/C;AACA,MAAMG,wBAAwB,GAC7B,6HAA6H;AAEvH,MAAMC,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,GACvC,gHAAgH;AAO1G,MAAM;EAAEE,oBAAoB;EAAEC;AAAuB,CAAC,GAAG,IAAAC,uBAAc,EAC7E,cAAc,EACd;EAAEC,OAAO,EAAE;AAAM,CAClB,CAAC,CAA+CC,KAAK,IAAKA,KAAK,CAAC;AAACL,OAAA,CAAAE,sBAAA,GAAAA,sBAAA;AAAAF,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAE1D,MAAMK,oBAAoB,GAAIC,MAIpC,IAAK;EACL,MAAM;IAAEC,QAAQ;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGH,MAAM;EAC9D,MAAMI,OAAO,GAAG,IAAAC,qCAAc,EAAO,CAAC;EACtC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAC7C,IACD,CAAC;EAED,MAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EACpC,CACCC,SAA4B,EAC5BC,cAA0B,EAC1BC,cAAkC,KAC9B;IACJN,cAAc,CAAEO,IAAI,IAAK;MACxB,IAAIA,IAAI,EAAEC,GAAG,KAAKJ,SAAS,EAAE;QAC5B,OAAOG,IAAI;MACZ;MAEA,IAAIE,OAAO,IAAIF,IAAI,KAAK,IAAI,EAAE;QAC7BG,cAAM,CAACC,QAAQ,CACd,2BAA2B,EAC3B3B,wBACD,CAAC;MACF;MAEA,OACCuB,IAAI,IAAI;QACPC,GAAG,EAAEJ,SAAS;QACdE,cAAc,EAAEA,cAAc,IAAIF,SAAS;QAC3CC;MACD,CAAC;IAEH,CAAC,CAAC;EACH,CAAC,EACD,EACD,CAAC;EAED,MAAMO,mBAAmB,GAAG,IAAAT,kBAAW,EAAEC,SAA4B,IAAK;IACzEJ,cAAc,CAAEO,IAAI,IAAMA,IAAI,EAAEC,GAAG,KAAKJ,SAAS,GAAG,IAAI,GAAGG,IAAK,CAAC;EAClE,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMM,YAAY,GAAG,IAAAC,cAAO,EAC3B,OAAO;IACNZ,iBAAiB;IACjBU,mBAAmB;IACnBG,eAAe,EAAEhB,WAAW,EAAES,GAAG,IAAI,IAAI;IACzCd,QAAQ;IACRC;EACD,CAAC,CAAC,EACF,CACCO,iBAAiB,EACjBU,mBAAmB,EACnBb,WAAW,EACXL,QAAQ,EACRC,aAAa,CAEf,CAAC;EAED,OAAO;IACNa,GAAG,EAAEX,OAAO;IACZgB,YAAY;IACZG,eAAe,EAAEjB,WAAW,KAAK,IAAI;IACrCkB,WAAW,EAAElB,WAAW,EAAEO,cAAc,IAAIV,kBAAkB,IAAIC,OAAO;IACzEqB,oBAAoB,EAAEnB,WAAW,EAAEM;EACpC,CAAC;AACF,CAAC;AAACnB,OAAA,CAAAM,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_descriptors","_styles","_linkPairs","_createProvider","_interopRequireDefault","_logger","_useBoundaryMeasurement","_resolvePortal","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","useBoundaryRootStore","createProvider","guarded","children","config","enabled","escapeClipping","forwardedRef","group","handoff","id","style","boundTag","useMemo","createBoundTag","String","portalRuntime","resolveBoundaryPortal","currentScreenKey","useDescriptorsStore","s","derivations","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","shouldEscapeBoundaryRootToScreenHost","associatedStyles","useComposedSlotStyles","tag","associatedStackingStyles","useSlotStackingStyles","rootRef","useAnimatedRef","rootEscapePlaceholderRef","targetEntry","setTargetEntry","useState","registerTargetRef","useCallback","targetRef","preparedStyles","measurementRef","prev","ref","__DEV__","logger","warnOnce","unregisterTargetRef","rootMeasurementRef","measuredRef","hasActiveTarget","targetPreparedStyles","useImperativeHandle","current","useBoundaryMeasurement","shouldRenderBoundaryRootThroughPortal","attachedStyle","undefined","value","activeTargetRef","shouldRenderHandoffHost"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AAGwC,SAAAM,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA0BxC;AACA,MAAMG,wBAAwB,GAC7B,6HAA6H;AAEvH,MAAMC,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA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ACD,CAAC,CAAC;EAEF,MAAMmD,qCAAqC,GAC1C9B,oCAAoC,IAAI,CAACyB,eAAe;EACzD;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMM,aAAa,GAAGhC,4BAA4B,GAC/C0B,eAAe,GACdrB,wBAAwB,GACxB0B,qCAAqC,GACpCE,SAAS,GACT/B,gBAAgB,GAClB+B,SAAS;EAEZ,MAAMC,KAAK,GAAG,IAAA7C,cAAO,EACpB,OAAO;IACN2C,aAAa;IACbG,eAAe,EAAEzB,WAAW,EAAES,GAAG,IAAI,IAAI;IACzC/B,QAAQ;IACRM,gBAAgB;IAChBF,aAAa;IACbqB,iBAAiB;IACjBM,GAAG,EAAEZ,OAAO;IACZE,wBAAwB;IACxBsB,qCAAqC;IACrCK,uBAAuB,EAAEvD,OAAO,IAAIW,aAAa,CAACP,OAAO;IACzDsC;EACD,CAAC,CAAC,EACF,CACCS,aAAa,EACb5C,QAAQ,EACRM,gBAAgB,EAChBb,OAAO,EACPW,aAAa,EACbqB,iBAAiB,EACjBN,OAAO,EACPE,wBAAwB,EACxBsB,qCAAqC,EACrCrB,WAAW,EACXa,mBAAmB,CAErB,CAAC;EAED,OAAO;IACNW,KAAK;IACLvD,QAAQ,EAAEA,QAAQ,CAACuD,KAAK;EACzB,CAAC;AACF,CACD,CAAC;AAAC7D,OAAA,CAAAG,oBAAA,GAAAA,oBAAA;AAAAH,OAAA,CAAAE,sBAAA,GAAAA,sBAAA;AAAAF,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getInitialDestinationMeasurePairKey = void 0;
6
+ exports.getInitialDestinationMeasurementSignal = void 0;
7
7
  var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
8
- const getInitialDestinationMeasurePairKey = params => {
8
+ const getInitialDestinationMeasurementSignal = params => {
9
9
  "worklet";
10
10
 
11
11
  const {
@@ -14,22 +14,51 @@ const getInitialDestinationMeasurePairKey = params => {
14
14
  ancestorDestinationPairKey,
15
15
  linkId,
16
16
  group,
17
+ destinationPresent,
18
+ sourcePresent,
17
19
  linkState
18
20
  } = params;
19
- const measurePairKey = destinationPairKey ?? ancestorDestinationPairKey;
20
- if (!enabled || !measurePairKey) {
21
+ const pairKey = destinationPairKey ?? ancestorDestinationPairKey;
22
+ if (!enabled || !pairKey) {
21
23
  return null;
22
24
  }
23
- const linkKey = (0, _linkPairs.getLinkKeyFromTag)(linkId);
24
- const hasDestination = linkState?.[measurePairKey]?.links?.[linkKey]?.destination;
25
- if (hasDestination) {
26
- return null;
25
+ if (!destinationPresent) {
26
+ return {
27
+ pairKey,
28
+ action: "wait"
29
+ };
27
30
  }
28
- const activeGroupId = group && linkState ? (0, _linkPairs.getActiveGroupId)(linkState, measurePairKey, group) : null;
31
+ if (!sourcePresent) {
32
+ return {
33
+ pairKey,
34
+ action: "release"
35
+ };
36
+ }
37
+ const linkKey = (0, _linkPairs.getLinkKeyFromTag)(linkId);
38
+ const activeGroupId = group && linkState ? (0, _linkPairs.getActiveGroupId)(linkState, pairKey, group) : null;
29
39
  if (activeGroupId && activeGroupId !== linkKey) {
30
- return null;
40
+ return {
41
+ pairKey,
42
+ action: "release"
43
+ };
44
+ }
45
+ const link = linkState?.[pairKey]?.links?.[linkKey];
46
+ if (!link?.destination) {
47
+ return {
48
+ pairKey,
49
+ action: "measure"
50
+ };
51
+ }
52
+ if (!link.source) {
53
+ return {
54
+ pairKey,
55
+ action: "wait"
56
+ };
31
57
  }
32
- return measurePairKey;
58
+ return {
59
+ pairKey,
60
+ action: "complete"
61
+ };
33
62
  };
34
- exports.getInitialDestinationMeasurePairKey = getInitialDestinationMeasurePairKey;
63
+ exports.getInitialDestinationMeasurementSignal = getInitialDestinationMeasurementSignal;
35
64
  //# sourceMappingURL=destination-signals.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_linkPairs","require","getInitialDestinationMeasurePairKey","params","enabled","destinationPairKey","ancestorDestinationPairKey","linkId","group","linkState","measurePairKey","linkKey","getLinkKeyFromTag","hasDestination","links","destination","activeGroupId","getActiveGroupId","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/destination-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AASO,MAAMC,mCAAmC,GAAIC,MAOnD,IAA2B;EAC3B,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,kBAAkB;IAClBC,0BAA0B;IAC1BC,MAAM;IACNC,KAAK;IACLC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,cAAc,GAAGL,kBAAkB,IAAIC,0BAA0B;EAEvE,IAAI,CAACF,OAAO,IAAI,CAACM,cAAc,EAAE;IAChC,OAAO,IAAI;EACZ;EAEA,MAAMC,OAAO,GAAG,IAAAC,4BAAiB,EAACL,MAAM,CAAC;EACzC,MAAMM,cAAc,GACnBJ,SAAS,GAAGC,cAAc,CAAC,EAAEI,KAAK,GAAGH,OAAO,CAAC,EAAEI,WAAW;EAE3D,IAAIF,cAAc,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,MAAMG,aAAa,GAClBR,KAAK,IAAIC,SAAS,GACf,IAAAQ,2BAAgB,EAACR,SAAS,EAAEC,cAAc,EAAEF,KAAK,CAAC,GAClD,IAAI;EAER,IAAIQ,aAAa,IAAIA,aAAa,KAAKL,OAAO,EAAE;IAC/C,OAAO,IAAI;EACZ;EAEA,OAAOD,cAAc;AACtB,CAAC;AAACQ,OAAA,CAAAhB,mCAAA,GAAAA,mCAAA","ignoreList":[]}
1
+ {"version":3,"names":["_linkPairs","require","getInitialDestinationMeasurementSignal","params","enabled","destinationPairKey","ancestorDestinationPairKey","linkId","group","destinationPresent","sourcePresent","linkState","pairKey","action","linkKey","getLinkKeyFromTag","activeGroupId","getActiveGroupId","link","links","destination","source","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/destination-signals.ts"],"mappings":";;;;;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