react-native-screen-transitions 3.6.0-alpha.1 → 3.6.0-alpha.3

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 (513) hide show
  1. package/lib/commonjs/component-stack/components/component-screen.js +1 -7
  2. package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +27 -34
  4. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +17 -19
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +27 -7
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +23 -51
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  15. package/lib/commonjs/shared/components/create-boundary-component/index.js +3 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  17. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +75 -0
  18. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +15 -2
  20. package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
  21. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +103 -0
  22. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
  23. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +52 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
  25. package/lib/commonjs/shared/components/native-screen.js +2 -13
  26. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  27. package/lib/commonjs/shared/components/screen-container/layers/content.js +11 -1
  28. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  29. package/lib/commonjs/shared/constants.js +5 -12
  30. package/lib/commonjs/shared/constants.js.map +1 -1
  31. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +35 -0
  32. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
  33. package/lib/commonjs/shared/providers/register-bounds.provider.js +48 -55
  34. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  35. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
  36. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +1 -0
  38. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +26 -8
  40. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +1 -2
  42. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  43. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
  44. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
  45. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -4
  46. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  47. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
  48. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
  49. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +9 -2
  50. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
  51. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +19 -0
  52. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
  53. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
  54. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
  55. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +2 -2
  56. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
  57. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +2 -2
  58. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
  59. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
  60. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
  61. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +2 -2
  62. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
  63. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +18 -2
  64. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -1
  65. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +1 -5
  66. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
  67. package/lib/commonjs/shared/providers/screen/options/helpers.js +3 -1
  68. package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -1
  69. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
  70. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  71. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +125 -0
  72. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
  73. package/lib/commonjs/shared/stores/bounds/index.js +6 -12
  74. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  75. package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -21
  76. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  77. package/lib/commonjs/shared/stores/bounds/internals/entries.js +49 -9
  78. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  79. package/lib/commonjs/shared/stores/bounds/internals/links.js +143 -82
  80. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  81. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +17 -43
  82. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  83. package/lib/commonjs/shared/stores/bounds/internals/state.js +26 -3
  84. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  85. package/lib/commonjs/shared/stores/gesture.store.js +2 -0
  86. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  87. package/lib/commonjs/shared/types/gesture.types.js +2 -2
  88. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  89. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
  90. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  91. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
  92. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  93. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
  94. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  95. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +23 -0
  96. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
  97. package/lib/commonjs/shared/utils/bounds/index.js +3 -2
  98. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  99. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +120 -205
  100. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  101. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +15 -2
  102. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
  103. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +175 -14
  104. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  105. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +2 -2
  106. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  107. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
  108. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
  109. package/lib/module/component-stack/components/component-screen.js +2 -8
  110. package/lib/module/component-stack/components/component-screen.js.map +1 -1
  111. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +27 -34
  112. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  113. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
  114. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  115. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +18 -20
  116. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
  117. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +28 -8
  118. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
  119. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +22 -50
  120. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  121. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
  122. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  123. package/lib/module/shared/components/create-boundary-component/index.js +3 -1
  124. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  125. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +70 -0
  126. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
  127. package/lib/module/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +13 -1
  128. package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
  129. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +98 -0
  130. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
  131. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +47 -0
  132. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
  133. package/lib/module/shared/components/native-screen.js +3 -14
  134. package/lib/module/shared/components/native-screen.js.map +1 -1
  135. package/lib/module/shared/components/screen-container/layers/content.js +13 -3
  136. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  137. package/lib/module/shared/constants.js +4 -11
  138. package/lib/module/shared/constants.js.map +1 -1
  139. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +30 -0
  140. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
  141. package/lib/module/shared/providers/register-bounds.provider.js +48 -55
  142. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  143. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
  144. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
  145. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +1 -0
  146. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
  147. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +26 -3
  148. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  149. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +1 -2
  150. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  151. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
  152. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
  153. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -4
  154. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  155. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
  156. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
  157. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +10 -3
  158. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
  159. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +20 -1
  160. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
  161. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
  162. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
  163. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +3 -3
  164. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
  165. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +3 -3
  166. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
  167. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
  168. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
  169. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +3 -3
  170. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
  171. package/lib/module/shared/providers/screen/gestures/shared/physics.js +15 -0
  172. package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -1
  173. package/lib/module/shared/providers/screen/gestures/shared/policy.js +3 -3
  174. package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
  175. package/lib/module/shared/providers/screen/options/helpers.js +3 -1
  176. package/lib/module/shared/providers/screen/options/helpers.js.map +1 -1
  177. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
  178. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  179. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  180. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
  181. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +105 -0
  182. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
  183. package/lib/module/shared/stores/bounds/index.js +7 -13
  184. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  185. package/lib/module/shared/stores/bounds/internals/clear.js +14 -22
  186. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  187. package/lib/module/shared/stores/bounds/internals/entries.js +49 -9
  188. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  189. package/lib/module/shared/stores/bounds/internals/links.js +139 -80
  190. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  191. package/lib/module/shared/stores/bounds/internals/resolver.js +17 -43
  192. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  193. package/lib/module/shared/stores/bounds/internals/state.js +25 -2
  194. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  195. package/lib/module/shared/stores/gesture.store.js +2 -0
  196. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  197. package/lib/module/shared/types/animation.types.js +0 -4
  198. package/lib/module/shared/types/animation.types.js.map +1 -1
  199. package/lib/module/shared/types/bounds.types.js.map +1 -1
  200. package/lib/module/shared/types/gesture.types.js +0 -1
  201. package/lib/module/shared/types/gesture.types.js.map +1 -1
  202. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
  203. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  204. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
  205. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  206. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
  207. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  208. package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +18 -0
  209. package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
  210. package/lib/module/shared/utils/bounds/index.js +3 -2
  211. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  212. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +120 -205
  213. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  214. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +14 -1
  215. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
  216. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +163 -12
  217. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  218. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +2 -2
  219. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  220. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
  221. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
  222. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
  223. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +4 -207
  224. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  225. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +1 -0
  226. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  227. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +1 -1
  228. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  229. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +5 -4
  230. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
  231. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +6 -2
  232. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -1
  233. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +5 -4
  234. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  235. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +7 -7
  236. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  237. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -2
  238. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  239. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +11 -7
  240. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  241. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts +10 -0
  242. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +1 -0
  243. package/lib/typescript/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.d.ts → utils/measured-bounds.d.ts} +3 -2
  244. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -0
  245. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts +22 -0
  246. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +1 -0
  247. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts +16 -0
  248. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +1 -0
  249. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  250. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  251. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  252. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  253. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  254. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
  255. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  256. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  257. package/lib/typescript/shared/constants.d.ts +1 -6
  258. package/lib/typescript/shared/constants.d.ts.map +1 -1
  259. package/lib/typescript/shared/index.d.ts +3 -3
  260. package/lib/typescript/shared/index.d.ts.map +1 -1
  261. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +21 -0
  262. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -0
  263. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  264. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
  265. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
  266. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +1 -2
  267. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  268. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +1 -1
  269. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
  270. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +1 -1
  271. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  272. package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -1
  273. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +1 -1
  274. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  275. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -1
  276. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
  277. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -1
  278. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +2 -1
  279. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -1
  280. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
  281. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -1
  282. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
  283. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
  284. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +7 -0
  285. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -1
  286. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +0 -10
  287. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
  288. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
  289. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
  290. package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -1
  291. package/lib/typescript/shared/providers/screen/options/types.d.ts +1 -0
  292. package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -1
  293. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +1 -1
  294. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  295. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  296. package/lib/typescript/shared/providers/stack/direct.provider.d.ts +1 -1
  297. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  298. package/lib/typescript/shared/providers/stack/managed.provider.d.ts +1 -1
  299. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
  300. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +18 -0
  301. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -0
  302. package/lib/typescript/shared/stores/bounds/index.d.ts +6 -12
  303. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  304. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  305. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  306. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +13 -10
  307. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  308. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  309. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +26 -5
  310. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  311. package/lib/typescript/shared/stores/bounds/types.d.ts +14 -7
  312. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  313. package/lib/typescript/shared/stores/gesture.store.d.ts +1 -0
  314. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  315. package/lib/typescript/shared/types/animation.types.d.ts +4 -19
  316. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  317. package/lib/typescript/shared/types/bounds.types.d.ts +69 -1
  318. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  319. package/lib/typescript/shared/types/gesture.types.d.ts +8 -1
  320. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  321. package/lib/typescript/shared/types/index.d.ts +2 -2
  322. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  323. package/lib/typescript/shared/types/screen.types.d.ts +4 -14
  324. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  325. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  326. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  327. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  328. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  329. package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts +4 -0
  330. package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -0
  331. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  332. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +1 -1
  333. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  334. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +14 -1
  335. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
  336. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +58 -7
  337. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
  338. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +2 -1
  339. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -1
  340. package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -3
  341. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  342. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +3 -2
  343. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
  344. package/package.json +4 -3
  345. package/src/component-stack/components/component-screen.tsx +3 -11
  346. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -27
  347. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +5 -5
  348. package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +25 -24
  349. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +41 -11
  350. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +49 -64
  351. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +44 -83
  352. package/src/shared/components/create-boundary-component/index.tsx +3 -1
  353. package/src/shared/components/create-boundary-component/types.ts +13 -11
  354. package/src/shared/components/create-boundary-component/utils/destination-signals.ts +129 -0
  355. package/src/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.ts → utils/measured-bounds.ts} +25 -1
  356. package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +164 -0
  357. package/src/shared/components/create-boundary-component/utils/source-signals.ts +72 -0
  358. package/src/shared/components/native-screen.tsx +3 -12
  359. package/src/shared/components/screen-container/layers/content.tsx +21 -2
  360. package/src/shared/constants.ts +1 -9
  361. package/src/shared/index.ts +0 -3
  362. package/src/shared/providers/helpers/measured-bounds-writes.ts +67 -0
  363. package/src/shared/providers/register-bounds.provider.tsx +68 -91
  364. package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +0 -14
  365. package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +1 -0
  366. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +49 -4
  367. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +1 -1
  368. package/src/shared/providers/screen/animation/helpers/pipeline.ts +2 -5
  369. package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +1 -0
  370. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +3 -12
  371. package/src/shared/providers/screen/gestures/pan/pan-activation.ts +4 -1
  372. package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +18 -2
  373. package/src/shared/providers/screen/gestures/pan/pan-release.ts +33 -0
  374. package/src/shared/providers/screen/gestures/pan/pan-reset.ts +3 -0
  375. package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +9 -6
  376. package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +5 -2
  377. package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +1 -0
  378. package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +9 -6
  379. package/src/shared/providers/screen/gestures/shared/physics.ts +25 -0
  380. package/src/shared/providers/screen/gestures/shared/policy.ts +3 -5
  381. package/src/shared/providers/screen/gestures/types.ts +2 -0
  382. package/src/shared/providers/screen/options/helpers.ts +9 -0
  383. package/src/shared/providers/screen/options/types.ts +1 -0
  384. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
  385. package/src/shared/providers/stack/direct.provider.tsx +1 -1
  386. package/src/shared/providers/stack/managed.provider.tsx +1 -1
  387. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +161 -0
  388. package/src/shared/stores/bounds/index.ts +10 -20
  389. package/src/shared/stores/bounds/internals/clear.ts +17 -41
  390. package/src/shared/stores/bounds/internals/entries.ts +56 -13
  391. package/src/shared/stores/bounds/internals/links.ts +222 -113
  392. package/src/shared/stores/bounds/internals/resolver.ts +23 -87
  393. package/src/shared/stores/bounds/internals/state.ts +27 -5
  394. package/src/shared/stores/bounds/types.ts +17 -7
  395. package/src/shared/stores/gesture.store.ts +3 -0
  396. package/src/shared/types/animation.types.ts +4 -23
  397. package/src/shared/types/bounds.types.ts +72 -1
  398. package/src/shared/types/gesture.types.ts +8 -2
  399. package/src/shared/types/index.ts +1 -4
  400. package/src/shared/types/screen.types.ts +4 -14
  401. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
  402. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +6 -6
  403. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +20 -11
  404. package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +22 -0
  405. package/src/shared/utils/bounds/index.ts +3 -1
  406. package/src/shared/utils/bounds/navigation/reveal/build.ts +198 -308
  407. package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
  408. package/src/shared/utils/bounds/navigation/reveal/math.ts +264 -18
  409. package/src/shared/utils/bounds/navigation/reveal/types.ts +2 -0
  410. package/src/shared/utils/bounds/navigation/zoom/build.ts +2 -2
  411. package/src/shared/utils/bounds/types/options.ts +2 -3
  412. package/src/shared/utils/navigation/resolve-scene-neighbors.ts +36 -23
  413. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -43
  414. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
  415. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -17
  416. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
  417. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -28
  418. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
  419. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -75
  420. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
  421. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -20
  422. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
  423. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
  424. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -16
  425. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
  426. package/lib/commonjs/shared/providers/layout-anchor.provider.js +0 -86
  427. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +0 -1
  428. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +0 -49
  429. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
  430. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +0 -25
  431. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +0 -1
  432. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +0 -30
  433. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
  434. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +0 -79
  435. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
  436. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +0 -13
  437. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +0 -1
  438. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +0 -30
  439. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
  440. package/lib/commonjs/shared/stores/bounds/internals/groups.js +0 -102
  441. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +0 -1
  442. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -38
  443. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
  444. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -12
  445. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
  446. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -23
  447. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
  448. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -68
  449. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
  450. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -15
  451. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
  452. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
  453. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -12
  454. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
  455. package/lib/module/shared/providers/layout-anchor.provider.js +0 -80
  456. package/lib/module/shared/providers/layout-anchor.provider.js.map +0 -1
  457. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +0 -42
  458. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
  459. package/lib/module/shared/stores/bounds/helpers/find-latest.js +0 -19
  460. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +0 -1
  461. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +0 -23
  462. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
  463. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +0 -69
  464. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
  465. package/lib/module/shared/stores/bounds/helpers/matching.js +0 -9
  466. package/lib/module/shared/stores/bounds/helpers/matching.js.map +0 -1
  467. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +0 -24
  468. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
  469. package/lib/module/shared/stores/bounds/internals/groups.js +0 -95
  470. package/lib/module/shared/stores/bounds/internals/groups.js.map +0 -1
  471. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -15
  472. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  473. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +0 -2
  474. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +0 -1
  475. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +0 -22
  476. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +0 -1
  477. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +0 -29
  478. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +0 -1
  479. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -3
  480. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +0 -1
  481. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +0 -1
  482. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -8
  483. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +0 -1
  484. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +0 -39
  485. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +0 -1
  486. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +0 -5
  487. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +0 -1
  488. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +0 -3
  489. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +0 -1
  490. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +0 -10
  491. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +0 -1
  492. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -14
  493. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +0 -1
  494. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +0 -3
  495. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +0 -1
  496. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +0 -5
  497. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +0 -1
  498. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +0 -16
  499. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +0 -1
  500. package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -83
  501. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +0 -20
  502. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +0 -48
  503. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +0 -101
  504. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -25
  505. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -14
  506. package/src/shared/providers/layout-anchor.provider.tsx +0 -112
  507. package/src/shared/stores/bounds/helpers/entries.helpers.ts +0 -55
  508. package/src/shared/stores/bounds/helpers/find-latest.ts +0 -22
  509. package/src/shared/stores/bounds/helpers/groups.helpers.ts +0 -27
  510. package/src/shared/stores/bounds/helpers/link.helpers.ts +0 -131
  511. package/src/shared/stores/bounds/helpers/matching.ts +0 -11
  512. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +0 -24
  513. package/src/shared/stores/bounds/internals/groups.ts +0 -116
@@ -6,60 +6,53 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useRefreshBoundary = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  var _animation = require("../../../stores/animation.store");
9
- var _groups = require("../../../stores/bounds/internals/groups");
10
- var _links = require("../../../stores/bounds/internals/links");
9
+ var _state = require("../../../stores/bounds/internals/state");
10
+ var _refreshSignals = require("../utils/refresh-signals");
11
11
  const useRefreshBoundary = ({
12
12
  enabled,
13
- sharedBoundTag,
14
- id,
15
- group,
16
13
  currentScreenKey,
14
+ preferredSourceScreenKey,
17
15
  nextScreenKey,
18
- hasNextScreen,
16
+ linkId,
17
+ group,
18
+ ancestorScreenKeys,
19
19
  measureBoundary
20
20
  }) => {
21
- const currentWillAnimate = _animation.AnimationStore.getValue(currentScreenKey, "willAnimate");
22
- const currentClosing = _animation.AnimationStore.getValue(currentScreenKey, "closing");
23
- const currentEntering = _animation.AnimationStore.getValue(currentScreenKey, "entering");
24
- const currentAnimating = _animation.AnimationStore.getValue(currentScreenKey, "progressAnimating");
25
- const currentProgress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
26
- const nextWillAnimate = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "willAnimate") : null;
27
- const nextClosing = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "closing") : null;
28
- const nextEntering = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "entering") : null;
21
+ // Source-side boundaries refresh from the next screen's lifecycle pulse.
22
+ // Destination-side boundaries have no next screen, so they refresh from self.
23
+ const refreshScreenKey = nextScreenKey ?? currentScreenKey;
24
+ const refreshWillAnimate = _animation.AnimationStore.getValue(refreshScreenKey, "willAnimate");
25
+ const refreshClosing = _animation.AnimationStore.getValue(refreshScreenKey, "closing");
26
+ const refreshEntering = _animation.AnimationStore.getValue(refreshScreenKey, "entering");
27
+ const refreshAnimating = _animation.AnimationStore.getValue(refreshScreenKey, "progressAnimating");
28
+ const refreshProgress = _animation.AnimationStore.getValue(refreshScreenKey, "progress");
29
29
  (0, _reactNativeReanimated.useAnimatedReaction)(() => {
30
30
  "worklet";
31
31
 
32
- const shouldRefresh = hasNextScreen ? nextWillAnimate?.get() ?? 0 : currentWillAnimate.get();
33
- const closing = hasNextScreen ? nextClosing?.get() ?? 0 : currentClosing.get();
34
- const entering = hasNextScreen ? nextEntering?.get() ?? 0 : currentEntering.get();
35
-
36
- // Programmatic close marks `closing` before pulsing `willAnimate`.
37
- // This frame is still settled, so destination refresh is valid and
38
- // reveal can compute initial/current destination delta before progress moves.
39
- const canRefreshPreCloseDestination = !hasNextScreen && shouldRefresh && closing && !entering && !currentAnimating.get() && currentProgress.get() >= 1;
40
- if (canRefreshPreCloseDestination || shouldRefresh && !closing && !entering) {
41
- return 1;
42
- }
43
- return 0;
44
- }, (shouldRefresh, prevShouldRefresh) => {
32
+ return (0, _refreshSignals.getRefreshBoundarySignal)({
33
+ enabled,
34
+ currentScreenKey,
35
+ preferredSourceScreenKey,
36
+ nextScreenKey,
37
+ linkId,
38
+ group,
39
+ ancestorScreenKeys,
40
+ shouldRefresh: !!refreshWillAnimate.get(),
41
+ closing: !!refreshClosing.get(),
42
+ entering: !!refreshEntering.get(),
43
+ animating: !!refreshAnimating.get(),
44
+ progress: refreshProgress.get(),
45
+ linkState: group || ancestorScreenKeys.length ? _state.pairs.get() : undefined
46
+ });
47
+ }, (refreshSignal, prevRefreshSignal) => {
45
48
  "worklet";
46
49
 
47
- if (!enabled || !shouldRefresh || shouldRefresh === prevShouldRefresh) return;
48
- const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
49
- if (group && currentGroupActiveId !== String(id)) {
50
- return;
51
- }
52
- if (hasNextScreen) {
53
- if (!nextScreenKey || !(0, _links.hasSourceLink)(sharedBoundTag, currentScreenKey) || !(0, _links.hasDestinationLink)(sharedBoundTag, nextScreenKey)) {
54
- return;
55
- }
56
- measureBoundary({
57
- intent: "refresh-source"
58
- });
50
+ if (!refreshSignal || refreshSignal.signal === prevRefreshSignal?.signal) {
59
51
  return;
60
52
  }
61
53
  measureBoundary({
62
- intent: "refresh-destination"
54
+ type: refreshSignal.type,
55
+ pairKey: refreshSignal.pairKey
63
56
  });
64
57
  });
65
58
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_animation","_groups","_links","useRefreshBoundary","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","measureBoundary","currentWillAnimate","AnimationStore","getValue","currentClosing","currentEntering","currentAnimating","currentProgress","nextWillAnimate","nextClosing","nextEntering","useAnimatedReaction","shouldRefresh","get","closing","entering","canRefreshPreCloseDestination","prevShouldRefresh","currentGroupActiveId","getGroupActiveId","String","hasSourceLink","hasDestinationLink","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAiBO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,cAAc;EACdC,EAAE;EACFC,KAAK;EACLC,gBAAgB;EAChBC,aA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ACda,aAAa,IACbE,OAAO,IACP,CAACC,QAAQ,IACT,CAACT,gBAAgB,CAACO,GAAG,CAAC,CAAC,IACvBN,eAAe,CAACM,GAAG,CAAC,CAAC,IAAI,CAAC;IAE3B,IACCG,6BAA6B,IAC5BJ,aAAa,IAAI,CAACE,OAAO,IAAI,CAACC,QAAS,EACvC;MACD,OAAO,CAAC;IACT;IAEA,OAAO,CAAC;EACT,CAAC,EACD,CAACH,aAAa,EAAEK,iBAAiB,KAAK;IACrC,SAAS;;IAET,IAAI,CAACxB,OAAO,IAAI,CAACmB,aAAa,IAAIA,aAAa,KAAKK,iBAAiB,EACpE;IAED,MAAMC,oBAAoB,GAAGtB,KAAK,GAAG,IAAAuB,wBAAgB,EAACvB,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIsB,oBAAoB,KAAKE,MAAM,CAACzB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,IAAII,aAAa,EAAE;MAClB,IACC,CAACD,aAAa,IACd,CAAC,IAAAuB,oBAAa,EAAC3B,cAAc,EAAEG,gBAAgB,CAAC,IAChD,CAAC,IAAAyB,yBAAkB,EAAC5B,cAAc,EAAEI,aAAa,CAAC,EACjD;QACD;MACD;MAEAE,eAAe,CAAC;QAAEuB,MAAM,EAAE;MAAiB,CAAC,CAAC;MAC7C;IACD;IAEAvB,eAAe,CAAC;MACfuB,MAAM,EAAE;IACT,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAhC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_animation","_state","_refreshSignals","useRefreshBoundary","enabled","currentScreenKey","preferredSourceScreenKey","nextScreenKey","linkId","group","ancestorScreenKeys","measureBoundary","refreshScreenKey","refreshWillAnimate","AnimationStore","getValue","refreshClosing","refreshEntering","refreshAnimating","refreshProgress","useAnimatedReaction","getRefreshBoundarySignal","shouldRefresh","get","closing","entering","animating","progress","linkState","length","pairs","undefined","refreshSignal","prevRefreshSignal","signal","type","pairKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAaO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,gBAAgB;EAChBC,wBAAwB;EACxBC,aAAa;EACbC,MAAM;EACNC,KAAK;EACLC,kBAAkB;EAClBC;AACyB,CAAC,KAAK;EAC/B;EACA;EACA,MAAMC,gBAAgB,GAAGL,aAAa,IAAIF,gBAAgB;EAC1D,MAAMQ,kBAAkB,GAAGC,yBAAc,CAACC,QAAQ,CACjDH,gBAAgB,EAChB,aACD,CAAC;EACD,MAAMI,cAAc,GAAGF,yBAAc,CAACC,QAAQ,CAACH,gBAAgB,EAAE,SAAS,CAAC;EAC3E,MAAMK,eAAe,GAAGH,yBAAc,CAACC,QAAQ,CAACH,gBAAgB,EAAE,UAAU,CAAC;EAC7E,MAAMM,gBAAgB,GAAGJ,yBAAc,CAACC,QAAQ,CAC/CH,gBAAgB,EAChB,mBACD,CAAC;EACD,MAAMO,eAAe,GAAGL,yBAAc,CAACC,QAAQ,CAACH,gBAAgB,EAAE,UAAU,CAAC;EAE7E,IAAAQ,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,OAAO,IAAAC,wCAAwB,EAAC;MAC/BjB,OAAO;MACPC,gBAAgB;MAChBC,wBAAwB;MACxBC,aAAa;MACbC,MAAM;MACNC,KAAK;MACLC,kBAAkB;MAClBY,aAAa,EAAE,CAAC,CAACT,kBAAkB,CAACU,GAAG,CAAC,CAAC;MACzCC,OAAO,EAAE,CAAC,CAACR,cAAc,CAACO,GAAG,CAAC,CAAC;MAC/BE,QAAQ,EAAE,CAAC,CAACR,eAAe,CAACM,GAAG,CAAC,CAAC;MACjCG,SAAS,EAAE,CAAC,CAACR,gBAAgB,CAACK,GAAG,CAAC,CAAC;MACnCI,QAAQ,EAAER,eAAe,CAACI,GAAG,CAAC,CAAC;MAC/BK,SAAS,EAAEnB,KAAK,IAAIC,kBAAkB,CAACmB,MAAM,GAAGC,YAAK,CAACP,GAAG,CAAC,CAAC,GAAGQ;IAC/D,CAAC,CAAC;EACH,CAAC,EACD,CAACC,aAAa,EAAEC,iBAAiB,KAAK;IACrC,SAAS;;IAET,IACC,CAACD,aAAa,IACdA,aAAa,CAACE,MAAM,KAAKD,iBAAiB,EAAEC,MAAM,EACjD;MACD;IACD;IAEAvB,eAAe,CAAC;MACfwB,IAAI,EAAEH,aAAa,CAACG,IAAI;MACxBC,OAAO,EAAEJ,aAAa,CAACI;IACxB,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAlC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -13,7 +13,9 @@ Object.defineProperty(exports, "createBoundaryComponent", {
13
13
  var _reactNative = require("react-native");
14
14
  var _boundaryTarget = require("./components/boundary-target");
15
15
  var _createBoundaryComponent = require("./create-boundary-component");
16
- const BoundaryView = (0, _createBoundaryComponent.createBoundaryComponent)(_reactNative.View);
16
+ const BoundaryView = (0, _createBoundaryComponent.createBoundaryComponent)(_reactNative.View, {
17
+ shouldAutoMeasure: true
18
+ });
17
19
  const BoundaryTrigger = (0, _createBoundaryComponent.createBoundaryComponent)(_reactNative.Pressable);
18
20
  BoundaryView.displayName = "Transition.Boundary.View";
19
21
  BoundaryTrigger.displayName = "Transition.Boundary.Trigger";
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_boundaryTarget","_createBoundaryComponent","BoundaryView","createBoundaryComponent","View","BoundaryTrigger","Pressable","displayName","BoundaryTarget","Boundary","exports","Trigger","Target"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAIA,MAAMG,YAAY,GAAG,IAAAC,gDAAuB,EAACC,iBAAI,CAAC;AAClD,MAAMC,eAAe,GAAG,IAAAF,gDAAuB,EAACG,sBAAS,CAAC;AAC1DJ,YAAY,CAACK,WAAW,GAAG,0BAA0B;AACrDF,eAAe,CAACE,WAAW,GAAG,6BAA6B;AAC3DC,8BAAc,CAACD,WAAW,GAAG,4BAA4B;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;AACD;AACA;EACCL,IAAI,EAAEF,YAAY;EAClB;AACD;AACA;EACCS,OAAO,EAAEN,eAAe;EACxB;AACD;AACA;EACCO,MAAM,EAAEJ;AACT,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_boundaryTarget","_createBoundaryComponent","BoundaryView","createBoundaryComponent","View","shouldAutoMeasure","BoundaryTrigger","Pressable","displayName","BoundaryTarget","Boundary","exports","Trigger","Target"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAIA,MAAMG,YAAY,GAAG,IAAAC,gDAAuB,EAACC,iBAAI,EAAE;EAClDC,iBAAiB,EAAE;AACpB,CAAC,CAAC;AACF,MAAMC,eAAe,GAAG,IAAAH,gDAAuB,EAACI,sBAAS,CAAC;AAC1DL,YAAY,CAACM,WAAW,GAAG,0BAA0B;AACrDF,eAAe,CAACE,WAAW,GAAG,6BAA6B;AAC3DC,8BAAc,CAACD,WAAW,GAAG,4BAA4B;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;AACD;AACA;EACCN,IAAI,EAAEF,YAAY;EAClB;AACD;AACA;EACCU,OAAO,EAAEN,eAAe;EACxB;AACD;AACA;EACCO,MAAM,EAAEJ;AACT,CAAC","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getInitialDestinationMeasurePairKey = void 0;
7
+ var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
8
+ var _links = require("../../../stores/bounds/internals/links");
9
+ const findPendingSourcePairKey = (linkState, linkId) => {
10
+ "worklet";
11
+
12
+ if (!linkState) return null;
13
+ for (const pairKey in linkState) {
14
+ const sourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(pairKey);
15
+ if (pairKey !== (0, _linkPairs.createPendingPairKey)(sourceScreenKey)) {
16
+ continue;
17
+ }
18
+ if (linkState[pairKey]?.links?.[linkId]?.source) {
19
+ return pairKey;
20
+ }
21
+ }
22
+ return null;
23
+ };
24
+
25
+ // Passive Boundary.View sources in nested routes can already live in the final
26
+ // ancestor pair, even before the destination side has attached.
27
+ const findAncestorSourcePairKey = (linkState, linkId, destinationScreenKey) => {
28
+ "worklet";
29
+
30
+ if (!linkState || !destinationScreenKey) return null;
31
+ for (const pairKey in linkState) {
32
+ if ((0, _linkPairs.getDestinationScreenKeyFromPairKey)(pairKey) !== destinationScreenKey) {
33
+ continue;
34
+ }
35
+ if (linkState[pairKey]?.links?.[linkId]?.source) {
36
+ return pairKey;
37
+ }
38
+ }
39
+ return null;
40
+ };
41
+ const getInitialDestinationMeasurePairKey = params => {
42
+ "worklet";
43
+
44
+ const {
45
+ enabled,
46
+ currentScreenKey,
47
+ preferredSourceScreenKey,
48
+ ancestorScreenKeys,
49
+ linkId,
50
+ linkState
51
+ } = params;
52
+ if (!enabled) {
53
+ return null;
54
+ }
55
+
56
+ // Initial screens inside nested navigators measure concrete child views, but
57
+ // the transition pair belongs to the nearest animated ancestor route.
58
+ const ancestorPairKey = findAncestorSourcePairKey(linkState, linkId, ancestorScreenKeys?.[0]);
59
+
60
+ // Trigger sources start as pending screen<> links. Boundary.View sources may
61
+ // already be in the ancestor pair, so only scan pending when needed.
62
+ const pendingSourcePairKey = preferredSourceScreenKey ? (0, _linkPairs.createPendingPairKey)(preferredSourceScreenKey) : ancestorPairKey ? null : findPendingSourcePairKey(linkState, linkId);
63
+ const sourceScreenKey = preferredSourceScreenKey ? preferredSourceScreenKey : (0, _linkPairs.getSourceScreenKeyFromPairKey)(ancestorPairKey ?? pendingSourcePairKey ?? "");
64
+ if (!sourceScreenKey) return null;
65
+
66
+ // Non-nested destinations attach to their own route. Nested initial screens
67
+ // attach to the animated ancestor route unless that pair already exists.
68
+ const destinationScreenKey = ancestorPairKey || preferredSourceScreenKey || !ancestorScreenKeys?.[0] ? currentScreenKey : ancestorScreenKeys[0];
69
+ const destinationPairKey = ancestorPairKey ?? (0, _linkPairs.createScreenPairKey)(sourceScreenKey, destinationScreenKey);
70
+ const hasDestinationLink = (0, _links.getDestination)(destinationPairKey, linkId) !== null;
71
+ const hasAttachableSourceLink = (0, _links.getSource)(destinationPairKey, linkId) !== null || !!pendingSourcePairKey && (0, _links.getSource)(pendingSourcePairKey, linkId) !== null;
72
+ return hasAttachableSourceLink && !hasDestinationLink ? destinationPairKey : null;
73
+ };
74
+ exports.getInitialDestinationMeasurePairKey = getInitialDestinationMeasurePairKey;
75
+ //# sourceMappingURL=destination-signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_linkPairs","require","_links","findPendingSourcePairKey","linkState","linkId","pairKey","sourceScreenKey","getSourceScreenKeyFromPairKey","createPendingPairKey","links","source","findAncestorSourcePairKey","destinationScreenKey","getDestinationScreenKeyFromPairKey","getInitialDestinationMeasurePairKey","params","enabled","currentScreenKey","preferredSourceScreenKey","ancestorScreenKeys","ancestorPairKey","pendingSourcePairKey","destinationPairKey","createScreenPairKey","hasDestinationLink","getDestination","hasAttachableSourceLink","getSource","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/destination-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AASA,MAAME,wBAAwB,GAAGA,CAChCC,SAAqC,EACrCC,MAAc,KACY;EAC1B,SAAS;;EACT,IAAI,CAACD,SAAS,EAAE,OAAO,IAAI;EAE3B,KAAK,MAAME,OAAO,IAAIF,SAAS,EAAE;IAChC,MAAMG,eAAe,GAAG,IAAAC,wCAA6B,EAACF,OAAO,CAAC;IAE9D,IAAIA,OAAO,KAAK,IAAAG,+BAAoB,EAACF,eAAe,CAAC,EAAE;MACtD;IACD;IAEA,IAAIH,SAAS,CAACE,OAAO,CAAC,EAAEI,KAAK,GAAGL,MAAM,CAAC,EAAEM,MAAM,EAAE;MAChD,OAAOL,OAAO;IACf;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;;AAED;AACA;AACA,MAAMM,yBAAyB,GAAGA,CACjCR,SAAqC,EACrCC,MAAc,EACdQ,oBAAwC,KACd;EAC1B,SAAS;;EACT,IAAI,CAACT,SAAS,IAAI,CAACS,oBAAoB,EAAE,OAAO,IAAI;EAEpD,KAAK,MAAMP,OAAO,IAAIF,SAAS,EAAE;IAChC,IAAI,IAAAU,6CAAkC,EAACR,OAAO,CAAC,KAAKO,oBAAoB,EAAE;MACzE;IACD;IAEA,IAAIT,SAAS,CAACE,OAAO,CAAC,EAAEI,KAAK,GAAGL,MAAM,CAAC,EAAEM,MAAM,EAAE;MAChD,OAAOL,OAAO;IACf;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAEM,MAAMS,mCAAmC,GAAIC,MAOnD,IAA2B;EAC3B,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,gBAAgB;IAChBC,wBAA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object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.measureWithOverscrollAwareness = exports.adjustedMeasuredBoundsForOverscrollDeltas = void 0;
6
+ exports.measureWithOverscrollAwareness = exports.isMeasurementInViewport = exports.adjustedMeasuredBoundsForOverscrollDeltas = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  const SCROLL_MEASUREMENT_EPSILON = 1;
9
9
  const getOverscrollDelta = axisState => {
@@ -34,6 +34,19 @@ const adjustedMeasuredBoundsForOverscrollDeltas = (measured, scrollState) => {
34
34
  };
35
35
  };
36
36
  exports.adjustedMeasuredBoundsForOverscrollDeltas = adjustedMeasuredBoundsForOverscrollDeltas;
37
+ const isMeasurementInViewport = (measured, viewportWidth, viewportHeight) => {
38
+ "worklet";
39
+
40
+ if (measured.width <= 0 || measured.height <= 0) {
41
+ return false;
42
+ }
43
+ const toleranceX = viewportWidth * 0.15;
44
+ const toleranceY = viewportHeight * 0.15;
45
+ const centerX = measured.pageX + measured.width / 2;
46
+ const centerY = measured.pageY + measured.height / 2;
47
+ return centerX >= -toleranceX && centerX <= viewportWidth + toleranceX && centerY >= -toleranceY && centerY <= viewportHeight + toleranceY;
48
+ };
49
+ exports.isMeasurementInViewport = isMeasurementInViewport;
37
50
  const measureWithOverscrollAwareness = (ref, scrollState) => {
38
51
  "worklet";
39
52
 
@@ -42,4 +55,4 @@ const measureWithOverscrollAwareness = (ref, scrollState) => {
42
55
  return adjustedMeasuredBoundsForOverscrollDeltas(measured, scrollState);
43
56
  };
44
57
  exports.measureWithOverscrollAwareness = measureWithOverscrollAwareness;
45
- //# sourceMappingURL=scroll-measurement.js.map
58
+ //# sourceMappingURL=measured-bounds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","SCROLL_MEASUREMENT_EPSILON","getOverscrollDelta","axisState","maxOffset","Math","max","contentSize","layoutSize","clampedOffset","min","offset","delta","abs","adjustedMeasuredBoundsForOverscrollDeltas","measured","scrollState","deltaX","horizontal","deltaY","vertical","x","y","pageX","pageY","exports","isMeasurementInViewport","viewportWidth","viewportHeight","width","height","toleranceX","toleranceY","centerX","centerY","measureWithOverscrollAwareness","ref","measure"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/measured-bounds.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAUA,MAAMC,0BAA0B,GAAG,CAAC;AAEpC,MAAMC,kBAAkB,GAAIC,SAAiC,IAAa;EACzE,SAAS;;EACT,MAAMC,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,SAAS,CAACI,WAAW,GAAGJ,SAAS,CAACK,UAAU,CAAC;EAC3E,MAAMC,aAAa,GAAGJ,IAAI,CAACK,GAAG,CAACL,IAAI,CAACC,GAAG,CAACH,SAAS,CAACQ,MAAM,EAAE,CAAC,CAAC,EAAEP,SAAS,CAAC;EACxE,MAAMQ,KAAK,GAAGT,SAAS,CAACQ,MAAM,GAAGF,aAAa;EAE9C,OAAOJ,IAAI,CAACQ,GAAG,CAACD,KAAK,CAAC,GAAGX,0BAA0B,GAAGW,KAAK,GAAG,CAAC;AAChE,CAAC;AAEM,MAAME,yCAAyC,GAAGA,CACxDC,QAA4B,EAC5BC,WAAsC,KACd;EACxB,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,OAAOD,QAAQ;EAChB;EAEA,MAAME,MAAM,GAAGf,kBAAkB,CAACc,WAAW,CAACE,UAAU,CAAC;EACzD,MAAMC,MAAM,GAAGjB,kBAAkB,CAACc,WAAW,CAACI,QAAQ,CAAC;EAEvD,IAAIH,MAAM,KAAK,CAAC,IAAIE,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOJ,QAAQ;EAChB;EAEA,OAAO;IACN,GAAGA,QAAQ;IACXM,CAAC,EAAEN,QAAQ,CAACM,CAAC,GAAGJ,MAAM;IACtBK,CAAC,EAAEP,QAAQ,CAACO,CAAC,GAAGH,MAAM;IACtBI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void 0;
7
+ var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
8
+ const SOURCE_SIGNAL_PREFIX = "source|";
9
+ const DESTINATION_SIGNAL_PREFIX = "destination|";
10
+ const findNestedDestinationPairKey = (linkState, linkId, ancestorScreenKeys) => {
11
+ "worklet";
12
+
13
+ const destinationScreenKey = ancestorScreenKeys?.[0];
14
+ if (!linkState || !destinationScreenKey) return null;
15
+ for (const pairKey in linkState) {
16
+ if ((0, _linkPairs.getDestinationScreenKeyFromPairKey)(pairKey) !== destinationScreenKey) {
17
+ continue;
18
+ }
19
+ if (linkState[pairKey]?.links?.[linkId]?.destination) {
20
+ return pairKey;
21
+ }
22
+ }
23
+ return null;
24
+ };
25
+ const buildRefreshSignal = (type, pairKey, key) => {
26
+ "worklet";
27
+
28
+ const prefix = type === "source" ? SOURCE_SIGNAL_PREFIX : DESTINATION_SIGNAL_PREFIX;
29
+ return {
30
+ type,
31
+ pairKey,
32
+ signal: `${prefix}${pairKey}|${key}`
33
+ };
34
+ };
35
+ const getRefreshBoundarySignal = params => {
36
+ "worklet";
37
+
38
+ const {
39
+ enabled,
40
+ currentScreenKey,
41
+ preferredSourceScreenKey,
42
+ nextScreenKey,
43
+ linkId,
44
+ group,
45
+ ancestorScreenKeys,
46
+ shouldRefresh,
47
+ closing,
48
+ entering,
49
+ animating,
50
+ progress,
51
+ linkState
52
+ } = params;
53
+ if (!enabled) return null;
54
+ const canRefreshPreCloseDestination = shouldRefresh && closing && !entering && !animating && progress >= 1;
55
+ const canRefreshSettledDestination = shouldRefresh && !closing && !entering;
56
+ if (!canRefreshPreCloseDestination && !canRefreshSettledDestination) {
57
+ return null;
58
+ }
59
+
60
+ // Non-group refresh only rewrites destination bounds. Source refresh is a
61
+ // grouped-only fallback for active ids that do not have source bounds yet.
62
+ if (!group) {
63
+ if (nextScreenKey) {
64
+ return null;
65
+ }
66
+
67
+ // Nested initial screens have no previous screen in their own navigator,
68
+ // so recover the pair by looking for a destination on the ancestor route.
69
+ const pairKey = preferredSourceScreenKey ? (0, _linkPairs.createScreenPairKey)(preferredSourceScreenKey, currentScreenKey) : findNestedDestinationPairKey(linkState, linkId, ancestorScreenKeys);
70
+ if (!pairKey) return null;
71
+ return buildRefreshSignal("destination", pairKey, [currentScreenKey, closing ? "closing" : "settled"].join("|"));
72
+ }
73
+
74
+ // Source-side grouped refresh: a new active id may not have source bounds yet,
75
+ // so the next screen's lifecycle pulse gives that source one chance to capture.
76
+ if (nextScreenKey) {
77
+ const pairKey = (0, _linkPairs.createScreenPairKey)(currentScreenKey, nextScreenKey);
78
+ const pendingPairKey = (0, _linkPairs.createPendingPairKey)(currentScreenKey);
79
+ const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
80
+ const hasSource = !!linkState?.[pairKey]?.links?.[linkId]?.source || !!linkState?.[pendingPairKey]?.links?.[linkId]?.source;
81
+ if (activeId !== linkId || hasSource) {
82
+ return null;
83
+ }
84
+ return buildRefreshSignal("source", pairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
85
+ }
86
+ if (!preferredSourceScreenKey) return null;
87
+
88
+ // Destination-side grouped refresh: only the active member rewrites the
89
+ // destination side, keeping inactive grouped members from stealing the link.
90
+ const pairKey = (0, _linkPairs.createScreenPairKey)(preferredSourceScreenKey, currentScreenKey);
91
+ const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
92
+ const hasSource = !!linkState?.[pairKey]?.links?.[linkId]?.source;
93
+ const hasDestination = !!linkState?.[pairKey]?.links?.[linkId]?.destination;
94
+
95
+ // Destination retargeting should only measure a concrete member that already
96
+ // participates in the pair. Missing members fall back to initialId at resolve.
97
+ if (activeId !== linkId || !hasSource && !hasDestination) {
98
+ return null;
99
+ }
100
+ return buildRefreshSignal("destination", pairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
101
+ };
102
+ exports.getRefreshBoundarySignal = getRefreshBoundarySignal;
103
+ //# sourceMappingURL=refresh-signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_linkPairs","require","SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","findNestedDestinationPairKey","linkState","linkId","ancestorScreenKeys","destinationScreenKey","pairKey","getDestinationScreenKeyFromPairKey","links","destination","buildRefreshSignal","type","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","preferredSourceScreenKey","nextScreenKey","group","shouldRefresh","closing","entering","animating","progress","canRefreshPreCloseDestination","canRefreshSettledDestination","createScreenPairKey","join","pendingPairKey","createPendingPairKey","activeId","groups","hasSource","source","hasDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/refresh-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAWA,MAAMC,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,4BAA4B,GAAGA,CACpCC,SAAqC,EACrCC,MAAc,EACdC,kBAAiD,KACvB;EAC1B,SAAS;;EACT,MAAMC,oBAAoB,GAAGD,kBAAkB,GAAG,CAAC,CAAC;EACpD,IAAI,CAACF,SAAS,IAAI,CAACG,oBAAoB,EAAE,OAAO,IAAI;EAEpD,KAAK,MAAMC,OAAO,IAAIJ,SAAS,EAAE;IAChC,IAAI,IAAAK,6CAAkC,EAACD,OAAO,CAAC,KAAKD,oBAAoB,EAAE;MACzE;IACD;IAEA,IAAIH,SAAS,CAACI,OAAO,CAAC,EAAEE,KAAK,GAAGL,MAAM,CAAC,EAAEM,WAAW,EAAE;MACrD,OAAOH,OAAO;IACf;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,MAAMI,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BL,OAAsB,EACtBM,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXF,IAAI,KAAK,QAAQ,GAAGZ,oBAAoB,GAAGC,yBAAyB;EACrE,OAAO;IACNW,IAAI;IACJL,OAAO;IACPQ,MAAM,EAAE,GAAGD,M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G,SAAS,GAAG,SAAS,CAAC,CAACO,IAAI,CAAC,GAAG,CAC1D,CAAC;AACF,CAAC;AAACQ,OAAA,CAAAvB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getInitialSourceCaptureSignal = void 0;
7
+ var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
8
+ const SOURCE_SIGNAL_PREFIX = "source|";
9
+ const buildSourceSignal = (pairKey, key) => {
10
+ "worklet";
11
+
12
+ return {
13
+ pairKey,
14
+ signal: `${SOURCE_SIGNAL_PREFIX}${pairKey}|${key}`
15
+ };
16
+ };
17
+ const getInitialSourceCaptureSignal = params => {
18
+ "worklet";
19
+
20
+ const {
21
+ enabled,
22
+ nextScreenKey,
23
+ currentScreenKey,
24
+ linkId,
25
+ group,
26
+ shouldAutoMeasure,
27
+ linkState
28
+ } = params;
29
+ if (!enabled || !nextScreenKey || !currentScreenKey) {
30
+ return null;
31
+ }
32
+
33
+ // Trigger components capture on press. This passive path is for Boundary.View
34
+ // slots that need a source before navigation starts.
35
+ if (!shouldAutoMeasure) {
36
+ return null;
37
+ }
38
+ const pairKey = (0, _linkPairs.createScreenPairKey)(currentScreenKey, nextScreenKey);
39
+ if (group) {
40
+ const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
41
+
42
+ // Passive grouped sources should not measure every mounted item. Once a
43
+ // group has an active id, only that concrete member can auto-capture.
44
+ if (activeId && activeId !== linkId) {
45
+ return null;
46
+ }
47
+ }
48
+ const signalParts = group ? [currentScreenKey, nextScreenKey, group, linkId] : [currentScreenKey, nextScreenKey, linkId];
49
+ return buildSourceSignal(pairKey, signalParts.join("|"));
50
+ };
51
+ exports.getInitialSourceCaptureSignal = getInitialSourceCaptureSignal;
52
+ //# sourceMappingURL=source-signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_linkPairs","require","SOURCE_SIGNAL_PREFIX","buildSourceSignal","pairKey","key","signal","getInitialSourceCaptureSignal","params","enabled","nextScreenKey","currentScreenKey","linkId","group","shouldAutoMeasure","linkState","createScreenPairKey","activeId","groups","signalParts","join","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/source-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,MAAMC,oBAAoB,GAAG,SAAS;AAOtC,MAAMC,iBAAiB,GAAGA,CACzBC,OAAsB,EACtBC,GAAW,KACc;EACzB,SAAS;;EACT,OAAO;IACND,OAAO;IACPE,MAAM,EAAE,GAAGJ,oBAAoB,GAAGE,OAAO,IAAIC,GAAG;EACjD,CAAC;AACF,CAAC;AAEM,MAAME,6BAA6B,GAAIC,MAQ7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,aAAa;IACbC,gBAAgB;IAChBC,MAAM;IACNC,KAAK;IACLC,iBAAiB;IACjBC;EACD,CAAC,GAAGP,MAAM;EAEV,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,IAAI,CAACC,gBAAgB,EAAE;IACpD,OAAO,IAAI;EACZ;;EAEA;EACA;EACA,IAAI,CAACG,iBAAiB,EAAE;IACvB,OAAO,IAAI;EACZ;EAEA,MAAMV,OAAO,GAAG,IAAAY,8BAAmB,EAACL,gBAAgB,EAAED,aAAa,CAAC;EAEpE,IAAIG,KAAK,EAAE;IACV,MAAMI,QAAQ,GAAGF,SAAS,GAAGX,OAAO,CAAC,EAAEc,MAAM,GAAGL,KAAK,CAAC,EAAEI,QAAQ;;IAEhE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKL,MAAM,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMO,WAAW,GAAGN,KAAK,GACtB,CAACF,gBAAgB,EAAED,aAAa,EAAEG,KAAK,EAAED,MAAM,CAAC,GAChD,CAACD,gBAAgB,EAAED,aAAa,EAAEE,MAAM,CAAC;EAE5C,OAAOT,iBAAiB,CAACC,OAAO,EAAEe,WAAW,CAACC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC;AAACC,OAAA,CAAAd,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -9,7 +9,6 @@ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reani
9
9
  var _reactNativeScreens = require("react-native-screens");
10
10
  var _constants = require("../constants");
11
11
  var _useStack = require("../hooks/navigation/use-stack");
12
- var _layoutAnchor = require("../providers/layout-anchor.provider");
13
12
  var _managed = require("../providers/stack/managed.provider");
14
13
  var _animation = require("../stores/animation.store");
15
14
  var _jsxRuntime = require("react/jsx-runtime");
@@ -46,7 +45,6 @@ const NativeScreen = ({
46
45
  const routesLength = routes.length;
47
46
  const topIndex = routesLength - 1;
48
47
  const topRouteKey = routes[topIndex]?.key ?? routeKey;
49
- const screenRef = (0, _reactNativeReanimated.useAnimatedRef)();
50
48
  const sceneClosing = _animation.AnimationStore.getValue(routeKey, "closing");
51
49
  const topSceneProgress = _animation.AnimationStore.getValue(topRouteKey, "progress");
52
50
  const topSceneClosing = _animation.AnimationStore.getValue(topRouteKey, "closing");
@@ -107,29 +105,20 @@ const NativeScreen = ({
107
105
  });
108
106
  if (DISABLE_NATIVE_SCREENS) {
109
107
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
110
- ref: screenRef
111
108
  // Keep a native boundary per screen when falling back to plain views.
112
109
  // Android release builds can otherwise flatten sibling screens together.
113
- ,
114
110
  collapsable: false,
115
111
  style: _reactNative.StyleSheet.absoluteFill,
116
112
  animatedProps: animatedProps,
117
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutAnchor.LayoutAnchorProvider, {
118
- anchorRef: screenRef,
119
- children: children
120
- })
113
+ children: children
121
114
  });
122
115
  }
123
116
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedNativeScreen, {
124
117
  enabled: true,
125
- ref: screenRef,
126
118
  style: _reactNative.StyleSheet.absoluteFill,
127
119
  freezeOnBlur: freezeOnBlur,
128
120
  animatedProps: animatedProps,
129
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutAnchor.LayoutAnchorProvider, {
130
- anchorRef: screenRef,
131
- children: children
132
- })
121
+ children: children
133
122
  });
134
123
  };
135
124
  exports.NativeScreen = NativeScreen;
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_reactNativeReanimated","_interopRequireWildcard","_reactNativeScreens","_constants","_useStack","_layoutAnchor","_managed","_animation","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PASSTHROUGH","ScreenActivity","POINT_NONE","POINT_BOX_NONE","AnimatedNativeScreen","Animated","createAnimatedComponent","RNSScreen","NativeScreen","routeKey","index","isPreloaded","children","freezeOnBlur","shouldFreeze","flags","DISABLE_NATIVE_SCREENS","routes","optimisticFocusedIndex","useStack","activeScreensLimit","backdropBehaviors","useManagedStackContext","routesLength","length","topIndex","topRouteKey","key","screenRef","useAnimatedRef","sceneClosing","AnimationStore","getValue","topSceneProgress","topSceneClosing","screenActivity","useSharedValue","TRANSITIONING_OR_BELOW_TOP","useDerivedValue","INACTIVE","focusedIndex","topIsClosing","postCloseActiveStart","Math","max","next","ON_TOP","outputValue","v","interpolate","EPSILON","Extrapolation","CLAMP","trunc","animatedProps","useAnimatedProps","activity","isClosing","activeIndex","isActive","activeBackdrop","activeAllowsPassthrough","isAllowedPassthroughBelow","pointerEvents","activityState","jsx","View","ref","collapsable","style","StyleSheet","absoluteFill","LayoutAnchorProvider","anchorRef","enabled","exports"],"sourceRoot":"../../../../src","sources":["shared/components/native-screen.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAQA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,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AU,CAACC,YAAa;MAC/BjB,aAAa,EAAEA,aAAc;MAAA1C,QAAA,eAE7B,IAAAhC,WAAA,CAAAqF,GAAA,EAACxF,aAAA,CAAA+F,oBAAoB;QAACC,SAAS,EAAE7C,SAAU;QAAAhB,QAAA,EACzCA;MAAQ,CACY;IAAC,CACT,CAAC;EAElB;EAEA,oBACC,IAAAhC,WAAA,CAAAqF,GAAA,EAAC7D,oBAAoB;IACpBsE,OAAO;IACPP,GAAG,EAAEvC,SAAU;IACfyC,KAAK,EAAEC,uBAAU,CAACC,YAAa;IAC/B1D,YAAY,EAAEA,YAAa;IAC3ByC,aAAa,EAAEA,aAAc;IAAA1C,QAAA,eAE7B,IAAAhC,WAAA,CAAAqF,GAAA,EAACxF,aAAA,CAAA+F,oBAAoB;MAACC,SAAS,EAAE7C,SAAU;MAAAhB,QAAA,EACzCA;IAAQ,CACY;EAAC,CACF,CAAC;AAEzB,CAAC;AAAC+D,OAAA,CAAAnE,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_reactNativeReanimated","_interopRequireWildcard","_reactNativeScreens","_constants","_useStack","_managed","_animation","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PASSTHROUGH","ScreenActivity","POINT_NONE","POINT_BOX_NONE","AnimatedNativeScreen","Animated","createAnimatedComponent","RNSScreen","NativeScreen","routeKey","index","isPreloaded","children","freezeOnBlur","shouldFreeze","flags","DISABLE_NATIVE_SCREENS","routes","optimisticFocusedIndex","useStack","activeScreensLimit","backdropBehaviors","useManagedStackContext","routesLength","length","topIndex","topRouteKey","key","sceneClosing","AnimationStore","getValue","topSceneProgress","topSceneClosing","screenActivity","useSharedValue","TRANSITIONING_OR_BELOW_TOP","useDerivedValue","INACTIVE","focusedIndex","topIsClosing","postCloseActiveStart","Math","max","next","ON_TOP","outputValue","v","interpolate","EPSILON","Extrapolation","CLAMP","trunc","animatedProps","useAnimatedProps","activity","isClosing","activeIndex","isActive","activeBackdrop","activeAllowsPassthrough","isAllowedPassthroughBelow","pointerEvents","activityState","jsx","View","collapsable","style","StyleSheet","absoluteFill","enabled","exports"],"sourceRoot":"../../../../src","sources":["shared/components/native-screen.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAOA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAA2D,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAE,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,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,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAA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O;MACNA;IACD,CAAC;EACF,CAAC,CAAC;EAEF,IAAI7C,sBAAsB,EAAE;IAC3B,oBACC,IAAApC,WAAA,CAAAmF,GAAA,EAAC1F,sBAAA,CAAAkB,OAAQ,CAACyE,IAAI;MACb;MACA;MACAC,WAAW,EAAE,KAAM;MACnBC,KAAK,EAAEC,uBAAU,CAACC,YAAa;MAC/BhB,aAAa,EAAEA,aAAc;MAAAxC,QAAA,EAE5BA;IAAQ,CACK,CAAC;EAElB;EAEA,oBACC,IAAAhC,WAAA,CAAAmF,GAAA,EAAC3D,oBAAoB;IACpBiE,OAAO;IACPH,KAAK,EAAEC,uBAAU,CAACC,YAAa;IAC/BvD,YAAY,EAAEA,YAAa;IAC3BuC,aAAa,EAAEA,aAAc;IAAAxC,QAAA,EAE5BA;EAAQ,CACY,CAAC;AAEzB,CAAC;AAAC0D,OAAA,CAAA9D,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -11,6 +11,7 @@ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reani
11
11
  var _constants = require("../../../constants");
12
12
  var _descriptors = require("../../../providers/screen/descriptors");
13
13
  var _gestures = require("../../../providers/screen/gestures");
14
+ var _options = require("../../../providers/screen/options");
14
15
  var _styles = require("../../../providers/screen/styles");
15
16
  var _useContentLayout = require("../hooks/use-content-layout");
16
17
  var _maybeMaskedNavigationContainer = require("./maybe-masked-navigation-container");
@@ -31,7 +32,16 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
31
32
  current
32
33
  } = (0, _descriptors.useDescriptors)();
33
34
  const gestureContext = (0, _gestures.useGestureContext)();
34
- const isNavigationMaskEnabled = !!current.options.navigationMaskEnabled;
35
+ const screenOptions = (0, _options.useScreenOptionsContext)();
36
+ const [runtimeNavigationMaskEnabled, setRuntimeNavigationMaskEnabled] = (0, _react.useState)(undefined);
37
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => screenOptions.get().navigationMaskEnabled, (next, previous) => {
38
+ "worklet";
39
+
40
+ if (next !== previous) {
41
+ (0, _reactNativeReanimated.runOnJS)(setRuntimeNavigationMaskEnabled)(next);
42
+ }
43
+ }, [screenOptions]);
44
+ const isNavigationMaskEnabled = !!(runtimeNavigationMaskEnabled ?? current.options.navigationMaskEnabled);
35
45
  const contentPointerEvents = isBackdropActive ? "box-none" : pointerEvents;
36
46
  const hasAutoSnapPoint = current.options.snapPoints?.includes("auto") ?? false;
37
47
  const handleContentLayout = (0, _useContentLayout.useContentLayout)();
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_gestures","_styles","_useContentLayout","_maybeMaskedNavigationContainer","_surfaceContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ContentLayer","exports","memo","children","pointerEvents","isBackdropActive","stylesMap","useScreenStyles","current","useDescriptors","gestureContext","useGestureContext","isNavigationMaskEnabled","options","navigationMaskEnabled","contentPointerEvents","hasAutoSnapPoint","snapPoints","includes","handleContentLayout","useContentLayout","animatedContentStyle","useAnimatedStyle","content","style","NO_STYLES","animatedContentProps","useAnimatedProps","props","NO_PROPS","jsx","GestureDetector","gesture","detectorGesture","View","styles","animatedProps","MaybeMaskedNavigationContainer","enabled","SurfaceContainer","collapsable","onLayout","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAIA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS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BjC,aAAa,EAAEW,oBAAqB;QACpCuB,OAAO,EAAE1B,uBAAwB;QAAAT,QAAA,eAEjC,IAAAvB,WAAA,CAAAkD,GAAA,EAACnD,iBAAA,CAAA4D,gBAAgB;UAACnC,aAAa,EAAEW,oBAAqB;UAAAZ,QAAA,EACpDa,gBAAgB,gBAChB,IAAApC,WAAA,CAAAkD,GAAA,EAAC7D,YAAA,CAAAiE,IAAI;YAACM,WAAW,EAAE,KAAM;YAACC,QAAQ,EAAEtB,mBAAoB;YAAAhB,QAAA,EACtDA;UAAQ,CACJ,CAAC,GAEPA;QACA,CACgB;MAAC,CACY;IAAC,CACnB;EAAC,CACA,CAAC;AAEpB,CACD,CAAC;AAED,MAAMgC,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAChCpB,OAAO,EAAE;IACRqB,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_gestures","_options","_styles","_useContentLayout","_maybeMaskedNavigationContainer","_surfaceContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ContentLayer","exports","memo","children","pointerEvents","isBackdropActive","stylesMap","useScreenStyles","current","useDescriptors","gestureContext","useGestureContext","screenOptions","useScreenOptionsContext","runtimeNavigationMaskEnabled","setRuntimeNavigationMaskEnabled","useState","undefined","useAnimatedReaction","navigationMaskEnabled","next","previous","runOnJS","isNavigationMaskEnabled","options","contentPointerEvents","hasAutoSnapPoint","snapPoints","includes","handleContentLayout","useContentLayout","animatedContentStyle","useAnimatedStyle","content","style","NO_STYLES","animatedContentProps","useAnimatedProps","props","NO_PROPS","jsx","GestureDetector","gesture","detectorGesture","View","styles","animatedProps","MaybeMaskedNavigationContainer","enabled","SurfaceContainer","collapsable","onLayout","StyleSheet","create","flex"],"sourceRo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