react-native-screen-transitions 3.12.0 → 3.13.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/lib/commonjs/shared/components/activity/variants/activity-screen.js +1 -1
  2. package/lib/commonjs/shared/components/activity/variants/activity-screen.js.map +1 -1
  3. package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js +0 -3
  4. package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js.map +1 -1
  5. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js +69 -0
  6. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js.map +1 -0
  7. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +11 -10
  8. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -1
  9. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +3 -19
  10. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +6 -16
  12. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  13. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +27 -1
  14. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
  15. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +26 -8
  16. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  17. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +8 -1
  18. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  19. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js +19 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js.map +1 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js +18 -0
  22. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js.map +1 -0
  23. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +22 -1
  24. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -1
  25. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +10 -10
  26. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
  27. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +18 -6
  28. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  29. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -0
  30. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  31. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +4 -1
  32. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  33. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +5 -1
  34. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  35. package/lib/commonjs/shared/providers/screen/animation/helpers/interpolator-participation.js +9 -0
  36. package/lib/commonjs/shared/providers/screen/animation/helpers/interpolator-participation.js.map +1 -0
  37. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +13 -2
  38. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +40 -8
  40. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -0
  42. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  43. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js +12 -0
  44. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js.map +1 -0
  45. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
  46. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
  47. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-release.js +9 -2
  48. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
  49. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +1 -0
  50. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  51. package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -1
  52. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  53. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js +19 -0
  54. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
  55. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -15
  56. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  57. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +15 -6
  58. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
  59. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +11 -1
  60. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  61. package/lib/commonjs/shared/stores/bounds/internals/clear.js +6 -0
  62. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  63. package/lib/commonjs/shared/stores/bounds/internals/coordinator.js +298 -0
  64. package/lib/commonjs/shared/stores/bounds/internals/coordinator.js.map +1 -0
  65. package/lib/commonjs/shared/stores/bounds/internals/entries.js +0 -27
  66. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  67. package/lib/commonjs/shared/stores/bounds/internals/links.js +22 -32
  68. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  69. package/lib/commonjs/shared/stores/bounds/internals/screen-graph.js +45 -0
  70. package/lib/commonjs/shared/stores/bounds/internals/screen-graph.js.map +1 -0
  71. package/lib/commonjs/shared/stores/bounds/internals/state.js +4 -1
  72. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  73. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +7 -3
  74. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  75. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +11 -0
  76. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  77. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +6 -2
  78. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  79. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -1
  80. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +11 -5
  81. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  82. package/lib/module/shared/components/activity/variants/activity-screen.js +1 -1
  83. package/lib/module/shared/components/activity/variants/activity-screen.js.map +1 -1
  84. package/lib/module/shared/components/boundary/components/boundary-lifecycle.js +0 -3
  85. package/lib/module/shared/components/boundary/components/boundary-lifecycle.js.map +1 -1
  86. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js +64 -0
  87. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js.map +1 -0
  88. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +11 -10
  89. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -1
  90. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +3 -19
  91. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  92. package/lib/module/shared/components/boundary/hooks/use-measurer.js +6 -16
  93. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  94. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +24 -0
  95. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
  96. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +27 -9
  97. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  98. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +8 -1
  99. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  100. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js +14 -0
  101. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js.map +1 -0
  102. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js +13 -0
  103. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js.map +1 -0
  104. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +19 -0
  105. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -1
  106. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +10 -10
  107. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
  108. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +18 -6
  109. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  110. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -0
  111. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  112. package/lib/module/shared/providers/screen/animation/animation.provider.js +4 -1
  113. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  114. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +5 -1
  115. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  116. package/lib/module/shared/providers/screen/animation/helpers/interpolator-participation.js +4 -0
  117. package/lib/module/shared/providers/screen/animation/helpers/interpolator-participation.js.map +1 -0
  118. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +13 -2
  119. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  120. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +41 -9
  121. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  122. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -0
  123. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  124. package/lib/module/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js +7 -0
  125. package/lib/module/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js.map +1 -0
  126. package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
  127. package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
  128. package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-release.js +9 -2
  129. package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
  130. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +1 -0
  131. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  132. package/lib/module/shared/providers/screen/styles/constants.js +2 -1
  133. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  134. package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js +14 -0
  135. package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
  136. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -15
  137. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  138. package/lib/module/shared/providers/screen/styles/slot.provider.js +13 -5
  139. package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
  140. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +9 -0
  141. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  142. package/lib/module/shared/stores/bounds/internals/clear.js +7 -1
  143. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  144. package/lib/module/shared/stores/bounds/internals/coordinator.js +286 -0
  145. package/lib/module/shared/stores/bounds/internals/coordinator.js.map +1 -0
  146. package/lib/module/shared/stores/bounds/internals/entries.js +1 -27
  147. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  148. package/lib/module/shared/stores/bounds/internals/links.js +24 -32
  149. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  150. package/lib/module/shared/stores/bounds/internals/screen-graph.js +39 -0
  151. package/lib/module/shared/stores/bounds/internals/screen-graph.js.map +1 -0
  152. package/lib/module/shared/stores/bounds/internals/state.js +3 -0
  153. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  154. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +7 -3
  155. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  156. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +11 -0
  157. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  158. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +6 -2
  159. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  160. package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -1
  161. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +11 -5
  162. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  163. package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +1 -1
  164. package/lib/typescript/shared/components/boundary/components/boundary-lifecycle.d.ts.map +1 -1
  165. package/lib/typescript/shared/components/boundary/hooks/lifecycles/{use-initial-source-measurement.d.ts → use-boundary-measurement-request.d.ts} +4 -3
  166. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.d.ts.map +1 -0
  167. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -1
  168. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +1 -3
  169. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  170. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
  171. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +12 -0
  172. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -1
  173. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
  174. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
  175. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.d.ts +8 -0
  176. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.d.ts.map +1 -0
  177. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.d.ts +6 -0
  178. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.d.ts.map +1 -0
  179. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +4 -1
  180. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +1 -1
  181. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +2 -3
  182. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -1
  183. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
  184. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +2 -2
  185. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -1
  186. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
  187. package/lib/typescript/shared/components/boundary/types.d.ts +1 -1
  188. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
  189. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +5 -6
  190. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  191. package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts +1 -1
  192. package/lib/typescript/shared/index.d.ts +651 -703
  193. package/lib/typescript/shared/index.d.ts.map +1 -1
  194. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  195. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  196. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  197. package/lib/typescript/shared/providers/screen/animation/helpers/interpolator-participation.d.ts +3 -0
  198. package/lib/typescript/shared/providers/screen/animation/helpers/interpolator-participation.d.ts.map +1 -0
  199. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
  200. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  201. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  202. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +4 -0
  203. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  204. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.d.ts +5 -0
  205. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.d.ts.map +1 -0
  206. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
  207. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-release.d.ts.map +1 -1
  208. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
  209. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +1 -0
  210. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
  211. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  212. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-block-ownership.d.ts +10 -0
  213. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-block-ownership.d.ts.map +1 -0
  214. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts +4 -4
  215. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
  216. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +10 -4
  217. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  218. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +1 -0
  219. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
  220. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -0
  221. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  222. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  223. package/lib/typescript/shared/stores/bounds/internals/coordinator.d.ts +36 -0
  224. package/lib/typescript/shared/stores/bounds/internals/coordinator.d.ts.map +1 -0
  225. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +1 -2
  226. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  227. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +1 -3
  228. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  229. package/lib/typescript/shared/stores/bounds/internals/screen-graph.d.ts +5 -0
  230. package/lib/typescript/shared/stores/bounds/internals/screen-graph.d.ts.map +1 -0
  231. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +3 -1
  232. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  233. package/lib/typescript/shared/stores/bounds/types.d.ts +13 -1
  234. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  235. package/lib/typescript/shared/types/screen.types.d.ts +9 -0
  236. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  237. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  238. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  239. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  240. package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -1
  241. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  242. package/package.json +1 -1
  243. package/src/shared/components/activity/variants/activity-screen.tsx +1 -1
  244. package/src/shared/components/boundary/components/boundary-lifecycle.tsx +0 -6
  245. package/src/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.ts +102 -0
  246. package/src/shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts +20 -11
  247. package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +3 -22
  248. package/src/shared/components/boundary/hooks/use-measurer.ts +5 -20
  249. package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +40 -0
  250. package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +68 -20
  251. package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +10 -1
  252. package/src/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.ts +19 -0
  253. package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.ts +14 -0
  254. package/src/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +36 -1
  255. package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +22 -13
  256. package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +26 -9
  257. package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +1 -1
  258. package/src/shared/components/boundary/types.ts +1 -1
  259. package/src/shared/providers/helpers/measured-bounds-writes.ts +5 -0
  260. package/src/shared/providers/screen/animation/animation.provider.tsx +7 -1
  261. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +18 -3
  262. package/src/shared/providers/screen/animation/helpers/interpolator-participation.ts +6 -0
  263. package/src/shared/providers/screen/animation/helpers/pipeline.ts +54 -32
  264. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +80 -14
  265. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +6 -0
  266. package/src/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.ts +13 -0
  267. package/src/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
  268. package/src/shared/providers/screen/gestures/pan/behavior/pan-release.ts +12 -2
  269. package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +1 -0
  270. package/src/shared/providers/screen/gestures/types.ts +1 -0
  271. package/src/shared/providers/screen/styles/constants.ts +1 -0
  272. package/src/shared/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
  273. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +40 -15
  274. package/src/shared/providers/screen/styles/slot.provider.tsx +19 -5
  275. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +12 -0
  276. package/src/shared/stores/bounds/internals/clear.ts +12 -1
  277. package/src/shared/stores/bounds/internals/coordinator.ts +403 -0
  278. package/src/shared/stores/bounds/internals/entries.ts +1 -38
  279. package/src/shared/stores/bounds/internals/links.ts +28 -38
  280. package/src/shared/stores/bounds/internals/screen-graph.ts +45 -0
  281. package/src/shared/stores/bounds/internals/state.ts +10 -1
  282. package/src/shared/stores/bounds/types.ts +19 -1
  283. package/src/shared/types/screen.types.ts +10 -0
  284. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +8 -3
  285. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +11 -0
  286. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +3 -2
  287. package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +0 -1
  288. package/src/shared/utils/bounds/helpers/styles/compute.ts +12 -5
  289. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +0 -177
  290. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +0 -1
  291. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +0 -49
  292. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +0 -1
  293. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +0 -69
  294. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +0 -1
  295. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +0 -68
  296. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +0 -1
  297. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -97
  298. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +0 -1
  299. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +0 -43
  300. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +0 -1
  301. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -29
  302. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
  303. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +0 -173
  304. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +0 -1
  305. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +0 -44
  306. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +0 -1
  307. package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +0 -64
  308. package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +0 -1
  309. package/lib/module/shared/components/boundary/utils/destination-signals.js +0 -63
  310. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +0 -1
  311. package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -92
  312. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +0 -1
  313. package/lib/module/shared/components/boundary/utils/source-signals.js +0 -38
  314. package/lib/module/shared/components/boundary/utils/source-signals.js.map +0 -1
  315. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -25
  316. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
  317. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +0 -10
  318. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +0 -1
  319. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +0 -1
  320. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts +0 -10
  321. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +0 -1
  322. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +0 -16
  323. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +0 -1
  324. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts +0 -19
  325. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +0 -1
  326. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -14
  327. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +0 -1
  328. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +0 -6
  329. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +0 -1
  330. package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +0 -267
  331. package/src/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts +0 -51
  332. package/src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +0 -90
  333. package/src/shared/components/boundary/utils/destination-signals.ts +0 -75
  334. package/src/shared/components/boundary/utils/refresh-signals.ts +0 -164
  335. package/src/shared/components/boundary/utils/source-signals.ts +0 -51
  336. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +0 -28
@@ -65,7 +65,7 @@ const ActivityScreen = exports.ActivityScreen = /*#__PURE__*/(0, _react.memo)(fu
65
65
  if (!paintDriverAnimations) {
66
66
  return false;
67
67
  }
68
- return paintDriverAnimations.transitionProgress.get() >= 1;
68
+ return paintDriverAnimations.visualProgress.get() >= 1;
69
69
  });
70
70
  const isPaintDriverSettledOnJS = (0, _useSharedValueState.useSharedValueState)(isPaintDriverSettled);
71
71
  let activityState = ActivityStateByActivity[resolvedActivity];
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeScreens","_constants","_useStack","_useSharedValueState","_blankStack","_animation","_helpers","_jsxRuntime","ActivityStateByActivity","active","inert","inactive","closing","PointerEventsByActivity","ActivityScreen","exports","memo","activity","children","inactiveBehavior","paintDriverRouteKey","hasNestedState","routeKey","stackActivity","useBlankStackStore","store","scenesByKey","undefined","stackInactiveBehavior","descriptor","options","stackRoute","route","stackPaintDriverRouteKey","routeIndex","routeKeys","indexOf","resolvedActivity","resolvedInactiveBehavior","DEFAULT_INACTIVE_BEHAVIOR","resolvedPaintDriverRouteKey","resolvedHasNestedState","nativeScreenDisabled","useStack","s","flags","DISABLE_NATIVE_SCREENS","paintDriverAnimations","AnimationStore","getBag","isPaintDriverSettled","useDerivedValue","transitionProgress","get","isPaintDriverSettledOnJS","useSharedValueState","activityState","shouldFreeze","visible","shouldWaitForPaintDriver","shouldUnmount","pointerEvents","style","StyleSheet","absoluteFill","styles","hidden","IS_WEB","jsx","View","collapsable","Screen","HIDDEN_SCREEN_OFFSET","create","transform","translateY"],"sourceRoot":"../../../../../../src","sources":["shared/components/activity/variants/activity-screen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAEA,IAAAS,QAAA,GAAAT,OAAA;AAA8E,IAAAU,WAAA,GAAAV,OAAA;AAG9E,MAAMW,uBAAuB,GAAG;EAC/BC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,CAAC;EACRC,QAAQ,EAAE,CAAC;EACXC,OAAO,EAAE;AACV,CAAqD;AAErD,MAAMC,uBAAuB,GAAG;EAC/BJ,MAAM,EAAE,MAAM;EACdC,KAAK,EAAE,MAAM;EACbC,QAAQ,EAAE,MAAM;EAChBC,OAAO,EAAE;AACV,CAAkE;AAW3D,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG,IAAAE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a,wBAAwB;EAEzB,MAAMO,aAAa,GAAGhD,uBAAuB,CAACwB,gBAAgB,CAAC;EAE/D,IAAIuB,aAAa,EAAE;IAClB,OAAO,IAAI;EACZ;EAEA,MAAME,KAAK,GAAG,CAACC,uBAAU,CAACC,YAAY,EAAEN,OAAO,GAAG/B,SAAS,GAAGsC,MAAM,CAACC,MAAM,CAAC;EAE5E,IAAIC,iBAAM,IAAIzB,oBAAoB,EAAE;IACnC,oBACC,IAAAnC,WAAA,CAAA6D,GAAA,EAACtE,YAAA,CAAAuE,IAAI;MAACP,KAAK,EAAEA,KAAM;MAACD,aAAa,EAAEA,aAAc;MAACS,WAAW,EAAE,KAAM;MAAApD,QAAA,EACnEA;IAAQ,CACJ,CAAC;EAET;EAEA,oBACC,IAAAX,WAAA,CAAA6D,GAAA,EAACpE,mBAAA,CAAAuE,MAAM;IACNT,KAAK,EAAEA,KAAM;IACbN,aAAa,EAAEA,aAAc;IAC7BC,YAAY,EAAEA,YAAa;IAC3BI,aAAa,EAAEA,aAAc;IAC7BS,WAAW,EAAE,KAAM;IAAApD,QAAA,EAElBA;EAAQ,CACF,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMsD,oBAAoB,GAAG,MAAM;AACnC,MAAMP,MAAM,GAAGF,uBAAU,CAACU,MAAM,CAAC;EAChCP,MAAM,EAAE;IACP;IACA;IACA;IACA;IACA;IACAQ,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAEH;IAAqB,CAAC;EACjD;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeScreens","_constants","_useStack","_useSharedValueState","_blankStack","_animation","_helpers","_jsxRuntime","ActivityStateByActivity","active","inert","inactive","closing","PointerEventsByActivity","ActivityScreen","exports","memo","activity","children","inactiveBehavior","paintDriverRouteKey","hasNestedState","routeKey","stackActivity","useBlankStackStore","store","scenesByKey","undefined","stackInactiveBehavior","descriptor","options","stackRoute","route","stackPaintDriverRouteKey","routeIndex","routeKeys","indexOf","resolvedActivity","resolvedInactiveBehavior","DEFAULT_INACTIVE_BEHAVIOR","resolvedPaintDriverRouteKey","resolvedHasNestedState","nativeScreenDisabled","useStack","s","flags","DISABLE_NATIVE_SCREENS","paintDriverAnimations","AnimationStore","getBag","isPaintDriverSettled","useDerivedValue","visualProgress","get","isPaintDriverSettledOnJS","useSharedValueState","activityState","shouldFreeze","visible","shouldWaitForPaintDriver","shouldUnmount","pointerEvents","style","StyleSheet","absoluteFill","styles","hidden","IS_WEB","jsx","View","collapsable","Screen","HIDDEN_SCREEN_OFFSET","create","transform","translateY"],"sourceRoot":"../../../../../../src","sources":["shared/components/activity/variants/activity-screen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAEA,IAAAS,QAAA,GAAAT,OAAA;AAA8E,IAAAU,WAAA,GAAAV,OAAA;AAG9E,MAAMW,uBAAuB,GAAG;EAC/BC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,CAAC;EACRC,QAAQ,EAAE,CAAC;EACXC,OAAO,EAAE;AACV,CAAqD;AAErD,MAAMC,uBAAuB,GAAG;EAC/BJ,MAAM,EAAE,MAAM;EACdC,KAAK,EAAE,MAAM;EACbC,QAAQ,EAAE,MAAM;EAChBC,OAAO,EAAE;AACV,CAAkE;AAW3D,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,cAAcA,CAAC;EAC1DG,QAAQ;EACRC,QAAQ;EACRC,gBAAgB;EAChBC,mBAAmB;EACnBC,cAA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AO,IAAI;EACZ;EAEA,MAAME,KAAK,GAAG,CAACC,uBAAU,CAACC,YAAY,EAAEN,OAAO,GAAG/B,SAAS,GAAGsC,MAAM,CAACC,MAAM,CAAC;EAE5E,IAAIC,iBAAM,IAAIzB,oBAAoB,EAAE;IACnC,oBACC,IAAAnC,WAAA,CAAA6D,GAAA,EAACtE,YAAA,CAAAuE,IAAI;MAACP,KAAK,EAAEA,KAAM;MAACD,aAAa,EAAEA,aAAc;MAACS,WAAW,EAAE,KAAM;MAAApD,QAAA,EACnEA;IAAQ,CACJ,CAAC;EAET;EAEA,oBACC,IAAAX,WAAA,CAAA6D,GAAA,EAACpE,mBAAA,CAAAuE,MAAM;IACNT,KAAK,EAAEA,KAAM;IACbN,aAAa,EAAEA,aAAc;IAC7BC,YAAY,EAAEA,YAAa;IAC3BI,aAAa,EAAEA,aAAc;IAC7BS,WAAW,EAAE,KAAM;IAAApD,QAAA,EAElBA;EAAQ,CACF,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMsD,oBAAoB,GAAG,MAAM;AACnC,MAAMP,MAAM,GAAGF,uBAAU,CAACU,MAAM,CAAC;EAChCP,MAAM,EAAE;IACP;IACA;IACA;IACA;IACA;IACAQ,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAEH;IAAqB,CAAC;EACjD;AACD,CAAC,CAAC","ignoreList":[]}
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.BoundaryLifecycle = void 0;
7
7
  var _react = require("react");
8
- var _descriptors = require("../../../providers/screen/descriptors");
9
8
  var _useBoundaryMeasurement = require("../hooks/use-boundary-measurement");
10
9
  const BoundaryLifecycle = exports.BoundaryLifecycle = /*#__PURE__*/(0, _react.memo)(function BoundaryLifecycle({
11
10
  boundTag,
@@ -18,11 +17,9 @@ const BoundaryLifecycle = exports.BoundaryLifecycle = /*#__PURE__*/(0, _react.me
18
17
  measuredRef,
19
18
  style
20
19
  }) {
21
- const hasConfiguredInterpolator = (0, _descriptors.useDescriptorsStore)(s => s.derivations.hasConfiguredInterpolator);
22
20
  (0, _useBoundaryMeasurement.useBoundaryMeasurement)({
23
21
  boundTag,
24
22
  enabled,
25
- runtimeEnabled: enabled && hasConfiguredInterpolator,
26
23
  currentScreenKey,
27
24
  measuredRef,
28
25
  style,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_descriptors","_useBoundaryMeasurement","BoundaryLifecycle","exports","memo","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style","hasConfiguredInterpolator","useDescriptorsStore","s","derivations","useBoundaryMeasurement","runtimeEnabled"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAF,OAAA;AAkBO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,iBAAiBA,CAAC;EAChEG,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1B,MAAMC,yBAAyB,GAAG,IAAAC,gCAAmB,EACnDC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,yBACtB,CAAC;EAED,IAAAI,8CAAsB,EAAC;IACtBb,QAAQ;IACRG,OAAO;IACPW,cAAc,EAAEX,OAAO,IAAIM,yBAAyB;IACpDP,gBAAgB;IAChBK,WAAW;IACXC,KAAK;IACLH,OAAO;IACPD,cAAc;IACdE,gBAAgB;IAChBL;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_useBoundaryMeasurement","BoundaryLifecycle","exports","memo","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style","useBoundaryMeasurement"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,uBAAA,GAAAD,OAAA;AAkBO,MAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,iBAAiBA,CAAC;EAChEG,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1B,IAAAC,8CAAsB,EAAC;IACtBT,QAAQ;IACRG,OAAO;IACPD,gBAAgB;IAChBK,WAAW;IACXC,KAAK;IACLH,OAAO;IACPD,cAAc;IACdE,gBAAgB;IAChBL;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useBoundaryMeasurementRequest = void 0;
7
+ var _react = require("react");
8
+ var _reactNativeReanimated = require("react-native-reanimated");
9
+ var _coordinator = require("../../../../stores/bounds/internals/coordinator");
10
+ var _state = require("../../../../stores/bounds/internals/state");
11
+ var _logger = require("../../../../utils/logger");
12
+ const RETRY_DELAY_MS = 16;
13
+ const MAX_RETRIES = 20;
14
+ const useBoundaryMeasurementRequest = params => {
15
+ const {
16
+ enabled,
17
+ boundTag,
18
+ currentScreenKey,
19
+ measureBoundary
20
+ } = params;
21
+ const retryClock = (0, _reactNativeReanimated.useSharedValue)(0);
22
+ const fulfillRequest = (0, _react.useCallback)(function retry(request, attempt) {
23
+ "worklet";
24
+
25
+ if (!enabled) return;
26
+ const pending = (0, _coordinator.getBoundaryMeasurementRequest)(boundTag.tag, currentScreenKey, _state.pairs.get());
27
+ if (pending?.type !== request.type || pending.pairKey !== request.pairKey) {
28
+ return;
29
+ }
30
+ if (measureBoundary(request)) return;
31
+ if (attempt >= MAX_RETRIES) {
32
+ (0, _coordinator.abandonBoundaryMeasurement)({
33
+ ...request,
34
+ tag: boundTag.tag
35
+ });
36
+ _logger.logger.warn(`Boundary "${boundTag.tag}" on screen "${currentScreenKey}" could not complete its ${request.type} measurement after ${MAX_RETRIES} attempts; continuing without it.`);
37
+ return;
38
+ }
39
+ (0, _reactNativeReanimated.cancelAnimation)(retryClock);
40
+ retryClock.set((0, _reactNativeReanimated.withDelay)(RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryClock.get() + 1, {
41
+ duration: 0
42
+ }, finished => {
43
+ if (finished) retry(request, attempt + 1);
44
+ })));
45
+ }, [boundTag.tag, currentScreenKey, enabled, measureBoundary, retryClock]);
46
+ (0, _react.useEffect)(() => {
47
+ return () => {
48
+ (0, _reactNativeReanimated.cancelAnimation)(retryClock);
49
+ };
50
+ }, [retryClock]);
51
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => {
52
+ "worklet";
53
+
54
+ if (!enabled) return null;
55
+ // Read the mutable in the reaction itself. Hiding this read behind an
56
+ // imported helper prevented the mapper from subscribing to pair changes,
57
+ // so requests were only observed after a React refresh/remount.
58
+ return (0, _coordinator.getBoundaryMeasurementRequest)(boundTag.tag, currentScreenKey, _state.pairs.get());
59
+ }, (request, previousRequest) => {
60
+ "worklet";
61
+
62
+ if (!request || request.type === previousRequest?.type && request.pairKey === previousRequest.pairKey) {
63
+ return;
64
+ }
65
+ fulfillRequest(request, 0);
66
+ });
67
+ };
68
+ exports.useBoundaryMeasurementRequest = useBoundaryMeasurementRequest;
69
+ //# sourceMappingURL=use-boundary-measurement-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_coordinator","_state","_logger","RETRY_DELAY_MS","MAX_RETRIES","useBoundaryMeasurementRequest","params","enabled","boundTag","currentScreenKey","measureBoundary","retryClock","useSharedValue","fulfillRequest","useCallback","retry","request","attempt","pending","getBoundaryMeasurementRequest","tag","pairs","get","type","pairKey","abandonBoundaryMeasurement","logger","warn","cancelAnimation","set","withDelay","withTiming","duration","finished","useEffect","useAnimatedReaction","previousRequest","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAOA,IAAAE,YAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAGA,MAAMK,cAAc,GAAG,EAAE;AACzB,MAAMC,WAAW,GAAG,EAAE;AAEf,MAAMC,6BAA6B,GAAIC,MAK7C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAEC,gBAAgB;IAAEC;EAAgB,CAAC,GAAGJ,MAAM;EACvE,MAAMK,UAAU,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAEpC,MAAMC,cAAc,GAAG,IAAAC,kBAAW,EACjC,SAASC,KAAKA,CAACC,OAAsB,EAAEC,OAAe,EAAE;IACvD,SAAS;;IACT,IAAI,CAACV,OAAO,EAAE;IAEd,MAAMW,OAAO,GAAG,IAAAC,0CAA6B,EAC5CX,QAAQ,CAACY,GAAG,EACZX,gBAAgB,EAChBY,YAAK,CAACC,GAAG,CAAC,CACX,CAAC;IACD,IACCJ,OAAO,EAAEK,IAAI,KAAKP,OAAO,CAACO,IAAI,IAC9BL,OAAO,CAACM,OAAO,KAAKR,OAAO,CAACQ,OAAO,EAClC;MACD;IACD;IAEA,IAAId,eAAe,CAACM,OAAO,CAAC,EAAE;IAE9B,IAAIC,OAAO,IAAIb,WAAW,EAAE;MAC3B,IAAAqB,uCAA0B,EAAC;QAAE,GAAGT,OAAO;QAAEI,GAAG,EAAEZ,QAAQ,CAACY;MAAI,CAAC,CAAC;MAC7DM,cAAM,CAACC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AAA,GAAAA,6BAAA","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useBoundaryPresence = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNativeReanimated = require("react-native-reanimated");
9
- var _entries = require("../../../../stores/bounds/internals/entries");
9
+ var _coordinator = require("../../../../stores/bounds/internals/coordinator");
10
10
  const useBoundaryPresence = params => {
11
11
  const {
12
12
  enabled,
@@ -16,20 +16,21 @@ const useBoundaryPresence = params => {
16
16
  handoff,
17
17
  escapeClipping
18
18
  } = params;
19
- const {
20
- tag
21
- } = boundTag;
22
19
  (0, _react.useLayoutEffect)(() => {
23
20
  if (!enabled) return;
24
- (0, _reactNativeReanimated.runOnUI)(_entries.setEntry)(tag, currentScreenKey, {
25
- boundaryConfig,
26
- handoff: handoff ? true : null,
27
- escapeClipping: escapeClipping ? true : null
21
+ (0, _reactNativeReanimated.runOnUI)(_coordinator.registerBoundary)({
22
+ boundTag,
23
+ screenKey: currentScreenKey,
24
+ entry: {
25
+ boundaryConfig,
26
+ handoff: handoff ? true : null,
27
+ escapeClipping: escapeClipping ? true : null
28
+ }
28
29
  });
29
30
  return () => {
30
- (0, _reactNativeReanimated.runOnUI)(_entries.removeEntry)(tag, currentScreenKey);
31
+ (0, _reactNativeReanimated.runOnUI)(_coordinator.unregisterBoundary)(boundTag, currentScreenKey);
31
32
  };
32
- }, [enabled, tag, currentScreenKey, boundaryConfig, handoff, escapeClipping]);
33
+ }, [enabled, boundTag, currentScreenKey, boundaryConfig, handoff, escapeClipping]);
33
34
  };
34
35
  exports.useBoundaryPresence = useBoundaryPresence;
35
36
  //# sourceMappingURL=use-boundary-presence.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_entries","useBoundaryPresence","params","enabled","boundTag","currentScreenKey","boundaryConfig","handoff","escapeClipping","tag","useLayoutEffect","runOnUI","setEntry","removeEntry","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAOO,MAAMG,mBAAmB,GAAIC,MAOnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,cAAc;IACdC,OAAO;IACPC;EACD,CAAC,GAAGN,MAAM;EACV,MAAM;IAAEO;EAAI,CAAC,GAAGL,QAAQ;EAExB,IAAAM,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACP,OAAO,EAAE;IAEd,IAAAQ,8BAAO,EAACC,iBAAQ,CAAC,CAACH,GAAG,EAAEJ,gBAAgB,EAAE;MACxCC,cAAc;MACdC,OAAO,EAAEA,OAAO,GAAG,IAAI,GAAG,IAAI;MAC9BC,cAAc,EAAEA,cAAc,GAAG,IAAI,GAAG;IACzC,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAG,8BAAO,EAACE,oBAAW,CAAC,CAACJ,GAAG,EAAEJ,gBAAgB,CAAC;IAC5C,CAAC;EACF,CAAC,EAAE,CAACF,OAAO,EAAEM,GAAG,EAAEJ,gBAAgB,EAAEC,cAAc,EAAEC,OAAO,EAAEC,cAAc,CAAC,CAAC;AAC9E,CAAC;AAACM,OAAA,CAAAb,mBAAA,GAAAA,mBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_coordinator","useBoundaryPresence","params","enabled","boundTag","currentScreenKey","boundaryConfig","handoff","escapeClipping","useLayoutEffect","runOnUI","registerBoundary","screenKey","entry","unregisterBoundary","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAOO,MAAMG,mBAAmB,GAAIC,MAOnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,cAAc;IACdC,OAAO;IACPC;EACD,CAAC,GAAGN,MAAM;EACV,IAAAO,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACN,OAAO,EAAE;IAEd,IAAAO,8BAAO,EAACC,6BAAgB,CAAC,CAAC;MACzBP,QAAQ;MACRQ,SAAS,EAAEP,gBAAgB;MAC3BQ,KAAK,EAAE;QACNP,cAAc;QACdC,OAAO,EAAEA,OAAO,GAAG,IAAI,GAAG,IAAI;QAC9BC,cAAc,EAAEA,cAAc,GAAG,IAAI,GAAG;MACzC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAE,8BAAO,EAACI,+BAAkB,CAAC,CAACV,QAAQ,EAAEC,gBAAgB,CAAC;IACxD,CAAC;EACF,CAAC,EAAE,CACFF,OAAO,EACPC,QAAQ,EACRC,gBAAgB,EAChBC,cAAc,EACdC,OAAO,EACPC,cAAc,CACd,CAAC;AACH,CAAC;AAACO,OAAA,CAAAd,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -6,10 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useBoundaryMeasurement = void 0;
7
7
  var _react = require("react");
8
8
  var _styles = require("../../../utils/bounds/helpers/styles/styles");
9
+ var _useBoundaryMeasurementRequest = require("./lifecycles/use-boundary-measurement-request");
9
10
  var _useBoundaryPresence = require("./lifecycles/use-boundary-presence");
10
- var _useInitialDestinationMeasurement = require("./lifecycles/use-initial-destination-measurement");
11
- var _useInitialSourceMeasurement = require("./lifecycles/use-initial-source-measurement");
12
- var _useRefreshBoundary = require("./lifecycles/use-refresh-boundary");
13
11
  var _useMeasurer = require("./use-measurer");
14
12
  /**
15
13
  * Owns the full measurement lifecycle for a boundary: builds the measurer,
@@ -19,7 +17,6 @@ var _useMeasurer = require("./use-measurer");
19
17
  const useBoundaryMeasurement = ({
20
18
  boundTag,
21
19
  enabled,
22
- runtimeEnabled,
23
20
  currentScreenKey,
24
21
  measuredRef,
25
22
  style,
@@ -51,10 +48,6 @@ const useBoundaryMeasurement = ({
51
48
  escapeClipping,
52
49
  localMeasurement
53
50
  });
54
-
55
- // Presence and source capture must not depend on this screen owning an
56
- // interpolator: a nested source can participate in a transition owned by a
57
- // different navigator.
58
51
  (0, _useBoundaryPresence.useBoundaryPresence)({
59
52
  enabled,
60
53
  boundTag,
@@ -63,19 +56,10 @@ const useBoundaryMeasurement = ({
63
56
  handoff,
64
57
  escapeClipping
65
58
  });
66
- (0, _useInitialSourceMeasurement.useInitialSourceMeasurement)({
59
+ (0, _useBoundaryMeasurementRequest.useBoundaryMeasurementRequest)({
67
60
  enabled,
68
- measureBoundary,
69
- boundTag
70
- });
71
- (0, _useInitialDestinationMeasurement.useInitialDestinationMeasurement)({
72
- boundTag,
73
- enabled: runtimeEnabled,
74
- measureBoundary
75
- });
76
- (0, _useRefreshBoundary.useRefreshBoundary)({
77
- enabled: runtimeEnabled,
78
61
  boundTag,
62
+ currentScreenKey,
79
63
  measureBoundary
80
64
  });
81
65
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_styles","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useRefreshBoundary","_useMeasurer","useBoundaryMeasurement","boundTag","enabled","runtimeEnabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","localMeasurement","config","anchor","scaleMode","target","method","boundaryConfig","useMemo","preparedStyles","prepareStyleForBounds","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAKA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AACA,IA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AQ;IACRkB;EACD,CAAC,CAAC;AACH,CAAC;AAACO,OAAA,CAAA1B,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_styles","_useBoundaryMeasurementRequest","_useBoundaryPresence","_useMeasurer","useBoundaryMeasurement","boundTag","enabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","localMeasurement","config","anchor","scaleMode","target","method","boundaryConfig","useMemo","preparedStyles","prepareStyleForBounds","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","useBoundaryMeasurementRequest","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAKA,IAAAE,8BAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAiBA;AACA;AACA;AACA;AACA;AACO,MAAMK,sBAAsB,GAAGA,CAAC;EACtCC,QAAQ;EACRC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC,KAAK;EACLC,OAAO;EACPC,cAAc;EACdC,gBAAgB;EAChBC;AAC6B,CAAC,KAAK;EACnC,MAAM;IAAEC,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,MAAM;EACpD,MAAMK,cAAc,GAAG,IAAAC,cAAO,EAC7B,OAAO;IAAEL,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,CAAC,EAC7C,CAACH,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,CACnC,CAAC;EAED,MAAMG,cAAc,GAAG,IAAAD,cAAO,EAAC,MAAM,IAAAE,6BAAqB,EAACZ,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMa,eAAe,GAAG,IAAAC,wBAAW,EAAC;IACnCjB,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBa,cAAc;IACdI,mBAAmB,EAAEhB,WAAW;IAChCE,OAAO;IACPC,cAAc;IACdC;EACD,CAAC,CAAC;EAEF,IAAAa,wCAAmB,EAAC;IACnBnB,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBW,cAAc;IACdR,OAAO;IACPC;EACD,CAAC,CAAC;EAEF,IAAAe,4DAA6B,EAAC;IAC7BpB,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBe;EACD,CAAC,CAAC;AACH,CAAC;AAACK,OAAA,CAAAvB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _measuredBoundsWrites = require("../../../providers/helpers/measured-bounds-writes");
10
10
  var _styles = require("../../../providers/screen/styles");
11
11
  var _scroll = require("../../../stores/scroll.store");
12
- var _system = require("../../../stores/system.store");
13
12
  var _visibilityBlockOffset = require("../../../utils/visibility-block-offset");
14
13
  var _measuredBounds = require("../utils/measured-bounds");
15
14
  const useMeasurer = ({
@@ -28,16 +27,15 @@ const useMeasurer = ({
28
27
  } = (0, _reactNative.useWindowDimensions)();
29
28
  const scrollState = _scroll.ScrollStore.getValue(currentScreenKey, "coordination");
30
29
  const scrollMetadata = _scroll.ScrollStore.getValue(currentScreenKey, "metadata");
31
- const pendingLifecycleStartBlockCount = _system.SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
32
30
  const {
33
31
  visibilityBlocked
34
32
  } = (0, _styles.useScreenSlots)();
35
33
  return (0, _react.useCallback)(target => {
36
34
  "worklet";
37
35
 
38
- if (!enabled) return;
36
+ if (!enabled) return false;
39
37
  const measured = (0, _measuredBounds.measureWithOverscrollAwareness)(measuredAnimatedRef, scrollState.get());
40
- if (!measured) return;
38
+ if (!measured) return false;
41
39
  const correctedMeasured = (0, _measuredBounds.correctMeasuredBoundsForVisibilityGate)({
42
40
  measured,
43
41
  visibilityBlocked: visibilityBlocked.get(),
@@ -51,17 +49,8 @@ const useMeasurer = ({
51
49
  pairKey: target.pairKey
52
50
  });
53
51
  }
54
-
55
- /**
56
- * - Destination Pass -
57
- * Be strict while lifecycle start is blocked for destination capture.
58
- * This is the initial attach window: the transition has not started yet,
59
- * and malformed off-screen destination measurements should keep the
60
- * lifecycle blocked until a valid retry lands.
61
- */
62
- const shouldGuardDestinationViewport = pendingLifecycleStartBlockCount.get() > 0 || !!boundTag.group;
63
- const viewportAllowsDestinationWrite = target.type !== "destination" || !shouldGuardDestinationViewport || (0, _measuredBounds.isMeasurementInViewport)(correctedMeasured, viewportWidth, viewportHeight);
64
- if (!viewportAllowsDestinationWrite) return;
52
+ const viewportAllowsDestinationWrite = target.type !== "destination" || (0, _measuredBounds.isMeasurementInViewport)(correctedMeasured, viewportWidth, viewportHeight);
53
+ if (!viewportAllowsDestinationWrite) return false;
65
54
  const measuredWithScroll = (0, _measuredBounds.attachScrollSnapshotToMeasuredBounds)(correctedMeasured, scrollMetadata.get());
66
55
  (0, _measuredBoundsWrites.applyMeasuredBoundsWrites)({
67
56
  entryTag: boundTag.tag,
@@ -74,7 +63,8 @@ const useMeasurer = ({
74
63
  handoff,
75
64
  escapeClipping
76
65
  });
77
- }, [enabled, boundTag, currentScreenKey, preparedStyles, measuredAnimatedRef, handoff, escapeClipping, localMeasurement, viewportWidth, viewportHeight, scrollState, scrollMetadata, pendingLifecycleStartBlockCount, visibilityBlocked]);
66
+ return true;
67
+ }, [enabled, boundTag, currentScreenKey, preparedStyles, measuredAnimatedRef, handoff, escapeClipping, localMeasurement, viewportWidth, viewportHeight, scrollState, scrollMetadata, visibilityBlocked]);
78
68
  };
79
69
  exports.useMeasurer = useMeasurer;
80
70
  //# sourceMappingURL=use-measurer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_measuredBoundsWrites","_styles","_scroll","_system","_visibilityBlockOffset","_measuredBounds","useMeasurer","enabled","boundTag","currentScreenKey","preparedStyles","measuredAnimatedRef","handoff","escapeClipping","localMeasurement","width","viewportWidth","height","viewportHeight","useWindowDimensions","scrollState","ScrollStore","getValue","scrollMetadata","pendingLifecycleStartBlockCount","SystemStore","visibilityBlocked","useScreenSlots","useCallback","target","measured","measureWithOverscrollAwareness","get","correctedMeasured","correctMeasuredBoundsForVisibilityGate","visibilityBlockOffset","getVisibilityBlockOffset","type","set","bounds","pairKey","shouldGuardDestinationViewport","group","viewportAllowsDestinationWrite","isMeasurementInViewport","measuredWithScroll","attachScrollSnapshotToMeasuredBounds","applyMeasuredBoundsWrites","entryTag","tag","linkId","linkKey","linkWrite","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-measurer.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAEA,IAAAO,eAAA,GAAAP,OAAA;AAkBO,MAAMQ,WAAW,GAAGA,CAAC;EAC3BC,OAAO;EACPC,QAAQ;EACRC,gBAAgB;EAChBC,cAAc;EACdC,mBAAmB;EACnBC,OAAO;EACPC,cAAc;EACdC;AACkB,CAAC,KAAsB;EACzC,MAAM;IAAEC,KAAK,EAAEC,aAAa;IAAEC,MAAM,EAAEC;EAAe,CAAC,GACrD,IAAAC,gCAAmB,EAAC,CAAC;EAEtB,MAAMC,WAAW,GAAGC,mBAAW,CAACC,QAAQ,CAACb,gBAAgB,EAAE,cAAc,CAAC;EAC1E,MAAMc,cAAc,GAAGF,mBAAW,CAACC,QAAQ,CAACb,gBAAgB,EAAE,UAAU,CAAC;EACzE,MAAMe,+BAA+B,GAAGC,mBAAW,CAACH,QAAQ,CAC3Db,gBAAgB,EAChB,iCACD,CAAC;EACD,MAAM;IAAEiB;EAAkB,CAAC,G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,CAACkC,KAAK;MACrBjC,gBAAgB;MAChBqB,QAAQ,EAAEe,kBAAkB;MAC5BnC,cAAc;MACd0C,SAAS,EAAEvB,MAAM;MACjBjB,OAAO;MACPC;IACD,CAAC,CAAC;EACH,CAAC,EACD,CACCN,OAAO,EACPC,QAAQ,EACRC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,EACnBC,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBE,aAAa,EACbE,cAAc,EACdE,WAAW,EACXG,cAAc,EACdC,+BAA+B,EAC/BE,iBAAiB,CAEnB,CAAC;AACF,CAAC;AAAC2B,OAAA,CAAA/C,WAAA,GAAAA,WAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_measuredBoundsWrites","_styles","_scroll","_visibilityBlockOffset","_measuredBounds","useMeasurer","enabled","boundTag","currentScreenKey","preparedStyles","measuredAnimatedRef","handoff","escapeClipping","localMeasurement","width","viewportWidth","height","viewportHeight","useWindowDimensions","scrollState","ScrollStore","getValue","scrollMetadata","visibilityBlocked","useScreenSlots","useCallback","target","measured","measureWithOverscrollAwareness","get","correctedMeasured","correctMeasuredBoundsForVisibilityGate","visibilityBlockOffset","getVisibilityBlockOffset","type","set","bounds","pairKey","viewportAllowsDestinationWrite","isMeasurementInViewport","measuredWithScroll","attachScrollSnapshotToMeasuredBounds","applyMeasuredBoundsWrites","entryTag","tag","linkId","linkKey","group","linkWrite","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-measurer.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AAEA,IAAAM,eAAA,GAAAN,OAAA;AAkBO,MAAMO,WAAW,GAAGA,CAAC;EAC3BC,OAAO;E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B,8BAA8B,EAAE,OAAO,KAAK;IAEjD,MAAME,kBAAkB,GAAG,IAAAC,oDAAoC,EAC9DX,iBAAiB,EACjBR,cAAc,CAACO,GAAG,CAAC,CACpB,CAAC;IAED,IAAAa,+CAAyB,EAAC;MACzBC,QAAQ,EAAEpC,QAAQ,CAACqC,GAAG;MACtBC,MAAM,EAAEtC,QAAQ,CAACuC,OAAO;MACxBC,KAAK,EAAExC,QAAQ,CAACwC,KAAK;MACrBvC,gBAAgB;MAChBmB,QAAQ,EAAEa,kBAAkB;MAC5B/B,cAAc;MACduC,SAAS,EAAEtB,MAAM;MACjBf,OAAO;MACPC;IACD,CAAC,CAAC;IAEF,OAAO,IAAI;EACZ,CAAC,EACD,CACCN,OAAO,EACPC,QAAQ,EACRC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,EACnBC,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBE,aAAa,EACbE,cAAc,EACdE,WAAW,EACXG,cAAc,EACdC,iBAAiB,CAEnB,CAAC;AACF,CAAC;AAAC0B,OAAA,CAAA5C,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -3,7 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.resolvePreviousHandoffReceiver = exports.resolveHandoffAttachmentCandidate = exports.resolveActiveHandoffReceiver = void 0;
6
+ exports.resolvePreviousHandoffReceiver = exports.resolveNestedHandoffAttachmentCandidate = exports.resolveHandoffAttachmentCandidate = exports.resolveActiveHandoffReceiver = exports.hasNestedHandoffTopology = void 0;
7
+ const hasNestedHandoffTopology = ({
8
+ inheritedSourcePair,
9
+ pairDestinationScreenKey,
10
+ transitionDestinationScreenKey
11
+ }) => {
12
+ "worklet";
13
+
14
+ return inheritedSourcePair || !!pairDestinationScreenKey && pairDestinationScreenKey !== transitionDestinationScreenKey;
15
+ };
16
+ exports.hasNestedHandoffTopology = hasNestedHandoffTopology;
7
17
  const resolveActiveHandoffReceiver = ({
8
18
  focusedIndex,
9
19
  routes,
@@ -64,4 +74,20 @@ const resolveHandoffAttachmentCandidate = ({
64
74
  return activeReceiverScreenKey;
65
75
  };
66
76
  exports.resolveHandoffAttachmentCandidate = resolveHandoffAttachmentCandidate;
77
+ const resolveNestedHandoffAttachmentCandidate = ({
78
+ attachedReceiverScreenKey,
79
+ currentScreenKey,
80
+ hasActiveCloseFinished,
81
+ interpolatorReady,
82
+ pairDestinationScreenKey
83
+ }) => {
84
+ "worklet";
85
+
86
+ if (hasActiveCloseFinished) return currentScreenKey;
87
+ if (interpolatorReady && pairDestinationScreenKey) {
88
+ return pairDestinationScreenKey;
89
+ }
90
+ return attachedReceiverScreenKey;
91
+ };
92
+ exports.resolveNestedHandoffAttachmentCandidate = resolveNestedHandoffAttachmentCandidate;
67
93
  //# sourceMappingURL=active-handoff-receiver.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","exports","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","pairDestinationScreenKey","previousReceiverScreenKey"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;;;;;AAeO,MAAMA,4BAA4B,GAAGA,CAAC;EAC5CC,YAAY;EACZC,MAAM;EACNC;AACmC,CAAC,KAAoB;EACxD,KAAK,IAAIC,KAAK,GAAGD,MAAM,CAACE,MAAM,GAAG,CAAC,EAAED,KAAK,IAAI,CAAC,EAAEA,KAAK,EAAE,EAAE;IACxD,MAAME,KAAK,GAAGH,MAAM,CAACC,KAAK,CAAC;IAC3B,IAAIE,KAAK,EAAEC,QAAQ,KAAK,SAAS,EAAE;MAClC,OAAOD,KAAK,CAACE,KAAK,CAACC,GAAG;IACvB;EACD;EAEA,OAAOP,MAA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ACrBE,yBAAyB,KAAKD,uBAAuB,IACrDG,iBAAiB,IACjBE,wBAAwB,EACvB;IACD,OAAOA,wBAAwB;EAChC;EAEA,OAAOL,uBAAuB;AAC/B,CAAC;AAACN,OAAA,CAAAI,iCAAA,GAAAA,iCAAA","ignoreList":[]}
1
+ {"version":3,"names":["hasNestedHandoffTopology","inheritedSourcePair","pairDestinationScreenKey","transitionDestinationScreenKey","exports","resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","previousReceiverScreenKey","resolveNestedHandoffAttachmentCandidate","currentScreenKey"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;;;;;AAeO,MAAMA,wBAAwB,GAAGA,CAAC;EACxCC,mBAAmB;EACnBC,wBAAwB;EACxBC;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,OACCF,mBAAmB,IAClB,CAAC,CAACC,wBAAwB,IAC1BA,wBAAwB,KAAKC,8BAA+B;AAE/D,CAAC;AAACC,OAAA,CAAAJ,wBAAA,GAAAA,wBAAA;AAEK,MAAMK,4BAA4B,GAAGA,CAAC;EAC5CC,YAAY;EACZC,MAAM;EACNC;AACmC,CAAC,KAAoB;EACxD,KAAK,IAAIC,KAAK,GAAGD,MAAM,CAACE,MAAM,GAAG,CAAC,EAAED,KAAK,IAAI,CAAC,EAAEA,KAAK,EAAE,EAAE;IACxD,MAAME,KAAK,GAAGH,MAAM,CAACC,KAAK,CAAC;IAC3B,IAAIE,KAAK,EAAEC,QAAQ,KAAK,SAAS,EAAE;MAClC,OAAOD,KAAK,CAACE,KAAK,CAACC,GAAG;IACvB;EACD;EAEA,OAAOP,MAAM,CAACD,YAAY,CAAC,EAAEQ,GAAG,IAA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rDG,iBAAiB,IACjBrB,wBAAwB,EACvB;IACD,OAAOA,wBAAwB;EAChC;EAEA,OAAOkB,uBAAuB;AAC/B,CAAC;AAAChB,OAAA,CAAAc,iCAAA,GAAAA,iCAAA;AAEK,MAAMQ,uCAAuC,GAAGA,CAAC;EACvDL,yBAAyB;EACzBM,gBAAgB;EAChBL,sBAAsB;EACtBC,iBAAiB;EACjBrB;AAOD,CAAC,KAAK;EACL,SAAS;;EAET,IAAIoB,sBAAsB,EAAE,OAAOK,gBAAgB;EACnD,IAAIJ,iBAAiB,IAAIrB,wBAAwB,EAAE;IAClD,OAAOA,wBAAwB;EAChC;EAEA,OAAOmB,yBAAyB;AACjC,CAAC;AAACjB,OAAA,CAAAsB,uCAAA,GAAAA,uCAAA","ignoreList":[]}
@@ -27,13 +27,20 @@ const useBoundaryContentPortalAttachment = ({
27
27
  const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
28
28
  const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
29
29
  const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
30
- const destinationSlots = (0, _styles.useScreenSlots)(nextScreenKey ?? currentScreenKey);
30
+ const transitionSourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.transitionSourcePairKey);
31
+ const transitionDestinationScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.transitionDestinationScreenKey);
32
+ const isNestedSource = !sourcePairKey && !!transitionSourcePairKey;
33
+ const resolvedSourcePairKey = sourcePairKey ?? transitionSourcePairKey;
34
+ const resolvedDestinationScreenKey = nextScreenKey ?? transitionDestinationScreenKey;
35
+ const destinationSlots = (0, _styles.useScreenSlots)(resolvedDestinationScreenKey ?? currentScreenKey);
31
36
  const unavailableInterpolatorReady = (0, _reactNativeReanimated.useSharedValue)(0);
32
37
  const interpolatorReady = destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
33
38
  const activeReceiverScreenKey = (0, _useStack.useStack)(_activeHandoffReceiver.resolveActiveHandoffReceiver);
34
39
  const previousReceiverScreenKey = (0, _useStack.useStack)(_activeHandoffReceiver.resolvePreviousHandoffReceiver);
35
40
  const activeReceiverAnimationProgress = _system.SystemStore.getValue(activeReceiverScreenKey ?? currentScreenKey, "animationProgress");
36
41
  const activeReceiverClosing = _animation.AnimationStore.getValue(activeReceiverScreenKey ?? currentScreenKey, "closing");
42
+ const nestedDestinationAnimationProgress = _system.SystemStore.getValue(isNestedSource && resolvedDestinationScreenKey ? resolvedDestinationScreenKey : currentScreenKey, "animationProgress");
43
+ const nestedDestinationClosing = _animation.AnimationStore.getValue(isNestedSource && resolvedDestinationScreenKey ? resolvedDestinationScreenKey : currentScreenKey, "closing");
37
44
  const attachedReceiverScreenKey = (0, _reactNativeReanimated.useSharedValue)(currentScreenKey);
38
45
  const sourcePairBeforeClose = (0, _reactNativeReanimated.useSharedValue)(null);
39
46
  const teleportProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
@@ -46,22 +53,33 @@ const useBoundaryContentPortalAttachment = ({
46
53
  ...slotProps
47
54
  } = slot?.props ?? {};
48
55
  const shouldTeleport = (0, _teleportControl.isTeleportEnabled)(teleport);
49
- const closing = activeReceiverClosing.get();
50
- const animationProgress = activeReceiverAnimationProgress.get();
56
+ const closing = isNestedSource ? nestedDestinationClosing.get() : activeReceiverClosing.get();
57
+ const animationProgress = isNestedSource ? nestedDestinationAnimationProgress.get() : activeReceiverAnimationProgress.get();
51
58
  if (!closing) {
52
- sourcePairBeforeClose.set(sourcePairKey ?? null);
59
+ sourcePairBeforeClose.set(resolvedSourcePairKey ?? null);
53
60
  }
54
- const pairChangedDuringClose = !!closing && !!sourcePairKey && sourcePairKey !== sourcePairBeforeClose.get();
61
+ const pairChangedDuringClose = !!closing && !!resolvedSourcePairKey && resolvedSourcePairKey !== sourcePairBeforeClose.get();
55
62
  const hasActiveCloseFinished = (0, _transitionVisualState.hasCloseTransitionFinished)({
56
63
  closing,
57
64
  animationProgress
58
65
  });
59
- const pair = sourcePairKey ? _state.pairs.get()[sourcePairKey] : null;
66
+ const pair = resolvedSourcePairKey ? _state.pairs.get()[resolvedSourcePairKey] : null;
60
67
  const link = pair?.links[(0, _linkPairs.getLinkKeyFromTag)(boundaryId)];
61
68
  const pairDestination = link?.status === "complete" && (!link.group || pair?.groups[link.group]?.activeId === (0, _linkPairs.getLinkKeyFromTag)(boundaryId)) ? link.destination.screenKey : null;
62
69
  const isInterpolatorReady = interpolatorReady.get();
63
70
  const attachedScreenKey = attachedReceiverScreenKey.get();
64
- const nextReceiverScreenKey = (0, _activeHandoffReceiver.resolveHandoffAttachmentCandidate)({
71
+ const usesNestedReceiver = (0, _activeHandoffReceiver.hasNestedHandoffTopology)({
72
+ inheritedSourcePair: isNestedSource,
73
+ pairDestinationScreenKey: pairDestination,
74
+ transitionDestinationScreenKey: resolvedDestinationScreenKey
75
+ });
76
+ const nextReceiverScreenKey = usesNestedReceiver ? (0, _activeHandoffReceiver.resolveNestedHandoffAttachmentCandidate)({
77
+ attachedReceiverScreenKey: attachedScreenKey,
78
+ currentScreenKey,
79
+ hasActiveCloseFinished,
80
+ interpolatorReady: !!isInterpolatorReady,
81
+ pairDestinationScreenKey: pairDestination
82
+ }) : (0, _activeHandoffReceiver.resolveHandoffAttachmentCandidate)({
65
83
  activeReceiverClosing: !!closing,
66
84
  activeReceiverScreenKey,
67
85
  attachedReceiverScreenKey: attachedScreenKey,
@@ -75,7 +93,7 @@ const useBoundaryContentPortalAttachment = ({
75
93
  const receiverReady = receiverEntry?.handoff === true;
76
94
  const returningFromActiveClose = hasActiveCloseFinished && attachedScreenKey === activeReceiverScreenKey;
77
95
  const activatingPairDestination = !!pairDestination && !!isInterpolatorReady && nextReceiverScreenKey === pairDestination;
78
- const canActivateReceiver = returningFromActiveClose || activatingPairDestination || animationProgress > 0;
96
+ const canActivateReceiver = usesNestedReceiver ? nextReceiverScreenKey === attachedScreenKey || hasActiveCloseFinished || activatingPairDestination : returningFromActiveClose || activatingPairDestination || animationProgress > 0;
79
97
  if (nextReceiverScreenKey && receiverReady && canActivateReceiver) {
80
98
  attachedReceiverScreenKey.set(nextReceiverScreenKey);
81
99
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_useStack","_descriptors","_styles","_transitionVisualState","_animation","_linkPairs","_entries","_state","_system","_naming","_teleportControl","_activeHandoffReceiver","_hostName","useBoundaryContentPortalAttachment","boundaryId","slotsMap","useScreenSlots","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","sourcePairKey","destinationSlots","unavailableInterpolatorReady","useSharedValue","interpolatorReady","activeReceiverScreenKey","useStack","resolveActiveHandoffReceiver","previousReceiverScreenKey","resolvePreviousHandoffReceiver","activeReceiverAnimationProgress","SystemStore","getValue","activeReceiverClosing","AnimationStore","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","teleport","slotProps","props","shouldTeleport","isTeleportEnabled","closing","animationProgress","set","pairChangedDuringClose","hasActiveCloseFinished","hasCloseTransitionFinished","pair","pairs","link","links","getLinkKeyFromTag","pairDestination","status","group","groups","activeId","destination","screenKey","isInterpolatorReady","attachedScreenKey","nextReceiverScreenKey","resolveHandoffAttachmentCandidate","pairDestinationScreenKey","receiverEntry","getEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","targetScreenKey","targetHostName","createBoundaryContentPortalHostName","PORTAL_HOST_NAME_RESET_VALUE","hostName","exports"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,G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AU,CAAC,GAChEqE,oCAA4B;IAE/B,OAAO;MACN,GAAGrC,SAAS;MACZsC,QAAQ,EAAEH;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAE1C;EAAc,CAAC;AACzB,CAAC;AAAC8C,OAAA,CAAAxE,kCAAA,GAAAA,kCAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_useStack","_descriptors","_styles","_transitionVisualState","_animation","_linkPairs","_entries","_state","_system","_naming","_teleportControl","_activeHandoffReceiver","_hostName","useBoundaryContentPortalAttachment","boundaryId","slotsMap","useScreenSlots","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","sourcePairKey","transitionSourcePairKey","transitionDestinationScreenKey","isNestedSource","resolvedSourcePairKey","resolvedDestinationScreenKey","destinationSlots","unavailableInterpolatorReady","useSharedValue","interpolatorReady","activeReceiverScreenKey","useStack","resolveActiveHandoffReceiver","previousReceiverScreenKey","resolvePreviousHandoffReceiver","activeReceiverAnimationProgress","SystemStore","getValue","activeReceiverClosing","AnimationStore","nestedDestinationAnimationProgress","nestedDestinationClosing","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","teleport","slotProps","props","shouldTeleport","isTeleportEnabled","closing","animationProgress","set","pairChangedDuringClose","hasActiveCloseFinished","hasCloseTransitionFinished","pair","pairs","link","links","getLinkKeyFromTag","pairDestination","status","group","groups","activeId","destination","screenKey","isInterpolatorReady","attachedScreenKey","usesNestedReceiver","hasNestedHandoffTopology","inheritedSourcePair","pairDestinationScreenKey","nextReceiverScreenKey","resolveNestedHandoffAttachmentCandidate","resolveHandoffAttachmentCandidate","receiverEntry","getEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","targetScreenKey","targetHostName","createBoundaryContentPortalHostName","PORTAL_HOST_NAME_RESET_VALUE","hostName","exports"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-content-portal/hoo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AC;IACrD;IAEA,MAAMU,eAAe,GAAGpC,cAAc,GACnCX,yBAAyB,CAACK,GAAG,CAAC,CAAC,GAC/B,IAAI;IAEP,MAAM2C,cAAc,GAAGD,eAAe,GACnC,IAAAE,6CAAmC,EAACF,eAAe,EAAE7E,UAAU,CAAC,GAChEgF,oCAA4B;IAE/B,OAAO;MACN,GAAGzC,SAAS;MACZ0C,QAAQ,EAAEH;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAE9C;EAAc,CAAC;AACzB,CAAC;AAACkD,OAAA,CAAAnF,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -9,7 +9,9 @@ var _reactNative = require("react-native");
9
9
  var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
10
  var _constants = require("../../../../../../constants");
11
11
  var _composeSlotStyle = require("../../../../../../providers/screen/styles/helpers/compose-slot-style");
12
+ var _coordinator = require("../../../../../../stores/bounds/internals/coordinator");
12
13
  var _teleport = require("../../../teleport");
14
+ var _hostReadiness = require("../helpers/host-readiness");
13
15
  var _localMeasurement = require("../helpers/local-measurement");
14
16
  var _offsetStyle = require("../helpers/offset-style");
15
17
  var _jsxRuntime = require("react/jsx-runtime");
@@ -34,8 +36,13 @@ const PortalBoundaryHost = exports.PortalBoundaryHost = /*#__PURE__*/(0, _react.
34
36
  }, ready => {
35
37
  "worklet";
36
38
 
39
+ host.portalHostReady.set((0, _hostReadiness.resolveReadyPortalHostName)({
40
+ currentReadyHostName: host.portalHostReady.get(),
41
+ hostName: host.portalHostName,
42
+ ready
43
+ }));
37
44
  if (ready) {
38
- host.portalHostReady.set(true);
45
+ (0, _coordinator.markBoundaryPortalReady)(host.pairKey, host.boundaryId);
39
46
  }
40
47
  });
41
48
  const hostStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_constants","_composeSlotStyle","_teleport","_localMeasurement","_offsetStyle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedPortalBoundaryHost","NativePortalHost","Animated","createAnimatedComponent","getCurrentBoundaryBounds","host","resolveBoundaryLocalMeasurement","localMeasurement","pairKey","PortalBoundaryHost","exports","memo","hostBounds","hostMeasurementKey","measuredHostKey","style","useAnimatedReaction","ready","portalHostReady","hostStyle","useAnimatedStyle","boundaryBounds","NO_STYLES","resolvePortalOffsetStyle","bounds","contentFrameStyle","height","width","slotStyle","slot","slotsMap","boundaryId","composeSlotStyleWithLocalTransform","undefined","boundsLocalTransform","jsx","View","pointerEvents","PORTAL_POINTER_EVENTS","collapsable","children","name","portalHostName","styles","content","StyleSheet","create","I18nManager","isRTL","end","position","top","left"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AAAmE,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,C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AAAuD,GAAA,EAAC9D,sBAAA,CAAAkB,OAAQ,CAAC6C,IAAI;IACbC,aAAa,EAAEC,+BAAsB;IACrCvB,KAAK,EAAE,CAACA,KAAK,EAAEI,SAAS,CAAE;IAC1BoB,WAAW,EAAE,KAAM;IAAAC,QAAA,eAEnB,IAAA5D,WAAA,CAAAuD,GAAA,EAACnC,0BAA0B;MAC1ByC,IAAI,EAAEpC,IAAI,CAACqC,cAAe;MAC1BL,aAAa,EAAEC,+BAAsB;MACrCvB,KAAK,EAAE,CAAC4B,MAAM,CAACC,OAAO,EAAEnB,iBAAiB,EAAEG,SAAS;IAAE,CACtD;EAAC,CACY,CAAC;AAElB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,MAAMe,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAChCF,OAAO,EAAEG,wBAAW,CAACC,KAAK,GACvB;IACAC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAC,IAAI,EAAE,CAAC;IACPF,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN;AACH,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_constants","_composeSlotStyle","_coordinator","_teleport","_hostReadiness","_localMeasurement","_offsetStyle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedPortalBoundaryHost","NativePortalHost","Animated","createAnimatedComponent","getCurrentBoundaryBounds","host","resolveBoundaryLocalMeasurement","localMeasurement","pairKey","PortalBoundaryHost","exports","memo","hostBounds","hostMeasurementKey","measuredHostKey","style","useAnimatedReaction","ready","portalHostReady","resolveReadyPortalHostName","currentReadyHostName","hostName","portalHostName","markBoundaryPortalReady","boundaryId","hostStyle","useAnimatedStyle","boundaryBounds","NO_STYLES","resolvePortalOffsetStyle","bounds","contentFrameStyle","height","width","slotStyle","slot","slotsMap","composeSlotStyleWithLocalTransform","undefined","boundsLocalTransform","jsx","View","pointerEvents","PORTAL_POINTER_EVENTS","collapsable","children","name","styles","content","StyleSheet","create","I18nManager","isRTL","end","position","top","left"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AAAmE,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAG,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAA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AAI;IACbC,aAAa,EAAEC,+BAAsB;IACrC5B,KAAK,EAAE,CAACA,KAAK,EAAEU,SAAS,CAAE;IAC1BmB,WAAW,EAAE,KAAM;IAAAC,QAAA,eAEnB,IAAAjE,WAAA,CAAA4D,GAAA,EAACxC,0BAA0B;MAC1B8C,IAAI,EAAEzC,IAAI,CAACiB,cAAe;MAC1BoB,aAAa,EAAEC,+BAAsB;MACrC5B,KAAK,EAAE,CAACgC,MAAM,CAACC,OAAO,EAAEjB,iBAAiB,EAAEG,SAAS;IAAE,CACtD;EAAC,CACY,CAAC;AAElB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,MAAMa,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAChCF,OAAO,EAAEG,wBAAW,CAACC,KAAK,GACvB;IACAC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAC,IAAI,EAAE,CAAC;IACPF,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN;AACH,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.shouldAttachBoundaryPortal = void 0;
7
+ var _teleportControl = require("../../../utils/teleport-control");
8
+ const shouldAttachBoundaryPortal = ({
9
+ focused,
10
+ portalHostReady,
11
+ slotActive,
12
+ teleport
13
+ }) => {
14
+ "worklet";
15
+
16
+ return slotActive && !focused && portalHostReady && (0, _teleportControl.isTeleportEnabled)(teleport);
17
+ };
18
+ exports.shouldAttachBoundaryPortal = shouldAttachBoundaryPortal;
19
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_teleportControl","require","shouldAttachBoundaryPortal","focused","portalHostReady","slotActive","teleport","isTeleportEnabled","exports"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/helpers/attachment.ts"],"mappings":";;;;;;AACA,IAAAA,gBAAA,GAAAC,OAAA;AAEO,MAAMC,0BAA0B,GAAGA,CAAC;EAC1CC,OAAO;EACPC,eAAe;EACfC,UAAU;EACVC;AAMD,CAAC,KAAK;EACL,SAAS;;EACT,OACCD,UAAU,IAAI,CAACF,OAAO,IAAIC,eAAe,IAAI,IAAAG,kCAAiB,EAACD,QAAQ,CAAC;AAE1E,CAAC;AAACE,OAAA,CAAAN,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveReadyPortalHostName = void 0;
7
+ const resolveReadyPortalHostName = ({
8
+ currentReadyHostName,
9
+ hostName,
10
+ ready
11
+ }) => {
12
+ "worklet";
13
+
14
+ if (ready) return hostName;
15
+ return currentReadyHostName === hostName ? null : currentReadyHostName;
16
+ };
17
+ exports.resolveReadyPortalHostName = resolveReadyPortalHostName;
18
+ //# sourceMappingURL=host-readiness.js.map