react-native-screen-transitions 3.3.0 → 3.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1172) hide show
  1. package/README.md +387 -131
  2. package/lib/commonjs/blank-stack/components/stack-view.js +13 -29
  3. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  4. package/lib/commonjs/blank-stack/components/stack-view.native.js +13 -29
  5. package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -1
  6. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +2 -20
  7. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  8. package/lib/commonjs/component-stack/components/component-screen.js +1 -1
  9. package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
  10. package/lib/commonjs/component-stack/components/stack-view.js +11 -25
  11. package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
  12. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +2 -20
  13. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  14. package/lib/commonjs/native-stack/views/NativeStackView.native.js +2 -4
  15. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  16. package/lib/commonjs/shared/animation/snap-to.js +6 -2
  17. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  18. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +17 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +45 -0
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +101 -0
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +33 -0
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +47 -0
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
  28. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +57 -0
  29. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
  30. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +37 -0
  31. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
  32. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +58 -0
  33. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
  34. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +35 -0
  35. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
  36. package/lib/commonjs/shared/components/create-boundary-component/index.js +230 -0
  37. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -0
  38. package/lib/commonjs/shared/{utils/bounds/types/builder.js → components/create-boundary-component/types.js} +1 -1
  39. package/lib/commonjs/shared/components/create-boundary-component/types.js.map +1 -0
  40. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +16 -0
  41. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
  42. package/lib/commonjs/shared/components/create-transition-aware-component.js +40 -8
  43. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  44. package/lib/commonjs/shared/components/native-screen.js +5 -5
  45. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  46. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
  47. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  48. package/lib/commonjs/shared/components/overlay/index.js +1 -3
  49. package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
  50. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +9 -6
  51. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
  52. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +4 -18
  53. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  54. package/lib/commonjs/shared/components/scene-view.js +32 -0
  55. package/lib/commonjs/shared/components/scene-view.js.map +1 -0
  56. package/lib/commonjs/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
  57. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
  58. package/lib/commonjs/shared/components/screen-container/index.js +32 -0
  59. package/lib/commonjs/shared/components/screen-container/index.js.map +1 -0
  60. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +104 -0
  61. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -0
  62. package/lib/commonjs/shared/components/screen-container/layers/content.js +110 -0
  63. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -0
  64. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +77 -0
  65. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  66. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +52 -0
  67. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -0
  68. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +42 -0
  69. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
  70. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +27 -0
  71. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
  72. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +47 -0
  73. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
  74. package/lib/commonjs/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
  75. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
  76. package/lib/commonjs/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -1
  77. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
  78. package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +25 -3
  79. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
  80. package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
  81. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
  82. package/lib/commonjs/shared/components/screen-lifecycle/index.js +36 -0
  83. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -0
  84. package/lib/commonjs/shared/configs/index.js +3 -1
  85. package/lib/commonjs/shared/configs/index.js.map +1 -1
  86. package/lib/commonjs/shared/configs/presets.js +222 -203
  87. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  88. package/lib/commonjs/shared/configs/specs.js +8 -1
  89. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  90. package/lib/commonjs/shared/constants.js +25 -11
  91. package/lib/commonjs/shared/constants.js.map +1 -1
  92. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +219 -28
  93. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  94. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
  95. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  96. package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
  97. package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
  98. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +8 -4
  99. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  100. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
  101. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  102. package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
  103. package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +30 -0
  104. package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
  105. package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -1
  106. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js +2 -2
  107. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -1
  108. package/lib/commonjs/shared/hooks/navigation/use-stack.js +0 -19
  109. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  110. package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js +32 -0
  111. package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
  112. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +38 -0
  113. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
  114. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +2 -13
  115. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  116. package/lib/commonjs/shared/index.js +24 -2
  117. package/lib/commonjs/shared/index.js.map +1 -1
  118. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +94 -0
  119. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +1 -0
  120. package/lib/commonjs/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +130 -114
  121. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
  122. package/lib/commonjs/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
  123. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
  124. package/lib/commonjs/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
  125. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
  126. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +56 -0
  127. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
  128. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +143 -0
  129. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
  130. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +76 -0
  131. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
  132. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
  133. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  134. package/lib/commonjs/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +50 -3
  135. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
  136. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +74 -0
  137. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
  138. package/lib/commonjs/shared/providers/gestures/index.js +19 -0
  139. package/lib/commonjs/shared/providers/gestures/index.js.map +1 -0
  140. package/lib/commonjs/shared/providers/gestures/types.js +13 -0
  141. package/lib/commonjs/shared/providers/gestures/types.js.map +1 -0
  142. package/lib/commonjs/shared/{hooks → providers}/gestures/use-build-gestures.js +25 -32
  143. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +1 -0
  144. package/lib/commonjs/shared/providers/layout-anchor.provider.js +19 -6
  145. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
  146. package/lib/commonjs/shared/providers/register-bounds.provider.js +124 -77
  147. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  148. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +60 -0
  149. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -0
  150. package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +1 -5
  151. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
  152. package/lib/commonjs/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +78 -48
  153. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
  154. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
  155. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  156. package/lib/commonjs/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
  157. package/lib/commonjs/shared/providers/screen/animation/index.js +26 -0
  158. package/lib/commonjs/shared/providers/screen/animation/index.js.map +1 -0
  159. package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
  160. package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
  161. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +20 -0
  162. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
  163. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +91 -0
  164. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
  165. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +41 -0
  166. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
  167. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +31 -0
  168. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
  169. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +28 -0
  170. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
  171. package/lib/commonjs/shared/providers/screen/descriptors/index.js +25 -0
  172. package/lib/commonjs/shared/providers/screen/descriptors/index.js.map +1 -0
  173. package/lib/commonjs/shared/providers/screen/screen-composer.js +12 -11
  174. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  175. package/lib/commonjs/shared/providers/screen/styles.provider.js +37 -25
  176. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
  177. package/lib/commonjs/shared/providers/scroll-settle.provider.js +25 -0
  178. package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +1 -0
  179. package/lib/commonjs/shared/providers/stack/core.provider.js +14 -8
  180. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
  181. package/lib/commonjs/shared/providers/stack/direct.provider.js +15 -68
  182. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  183. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +30 -0
  184. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
  185. package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +1 -1
  186. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
  187. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
  188. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
  189. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
  190. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js +101 -0
  191. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
  192. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +58 -0
  193. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
  194. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +37 -0
  195. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
  196. package/lib/commonjs/shared/providers/stack/managed.provider.js +36 -124
  197. package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
  198. package/lib/commonjs/shared/providers/viewport.provider.js +33 -0
  199. package/lib/commonjs/shared/providers/viewport.provider.js.map +1 -0
  200. package/lib/commonjs/shared/stores/animation.store.js +38 -19
  201. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  202. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +43 -0
  203. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
  204. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +23 -0
  205. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -0
  206. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +22 -0
  207. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -0
  208. package/lib/commonjs/shared/stores/bounds/index.js +37 -0
  209. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -0
  210. package/lib/commonjs/shared/stores/bounds/internals/clear.js +247 -0
  211. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -0
  212. package/lib/commonjs/shared/stores/bounds/internals/presence.js +128 -0
  213. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -0
  214. package/lib/commonjs/shared/stores/bounds/internals/registry.js +309 -0
  215. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -0
  216. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +130 -0
  217. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -0
  218. package/lib/commonjs/shared/stores/bounds/internals/state.js +102 -0
  219. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -0
  220. package/lib/commonjs/shared/stores/bounds/types.js +6 -0
  221. package/lib/commonjs/shared/stores/bounds/types.js.map +1 -0
  222. package/lib/commonjs/shared/stores/gesture.store.js +36 -16
  223. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  224. package/lib/commonjs/shared/types/gesture.types.js +4 -0
  225. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  226. package/lib/commonjs/shared/types/providers/direct-stack.types.js +6 -0
  227. package/lib/commonjs/shared/types/providers/direct-stack.types.js.map +1 -0
  228. package/lib/commonjs/shared/types/providers/managed-stack.types.js +6 -0
  229. package/lib/commonjs/shared/types/providers/managed-stack.types.js.map +1 -0
  230. package/lib/commonjs/shared/types/stack.types.js +4 -0
  231. package/lib/commonjs/shared/types/stack.types.js.map +1 -1
  232. package/lib/commonjs/shared/utils/animation/animate-many.js +32 -0
  233. package/lib/commonjs/shared/utils/animation/animate-many.js.map +1 -0
  234. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
  235. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  236. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +41 -0
  237. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
  238. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +152 -0
  239. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
  240. package/lib/commonjs/shared/utils/bounds/helpers/constants.js +15 -0
  241. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +1 -0
  242. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +6 -4
  243. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
  244. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js +2 -2
  245. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
  246. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +20 -0
  247. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +1 -0
  248. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +68 -0
  249. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -0
  250. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +40 -0
  251. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
  252. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +26 -0
  253. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
  254. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +158 -24
  255. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  256. package/lib/commonjs/shared/utils/bounds/index.js +89 -190
  257. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  258. package/lib/commonjs/shared/utils/bounds/types/options.js +6 -0
  259. package/lib/commonjs/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
  260. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
  261. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
  262. package/lib/commonjs/shared/utils/bounds/zoom/build.js +541 -0
  263. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
  264. package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
  265. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
  266. package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
  267. package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
  268. package/lib/commonjs/shared/utils/bounds/zoom/types.js +6 -0
  269. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
  270. package/lib/commonjs/shared/utils/create-provider.js +1 -23
  271. package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
  272. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js +2 -1
  273. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +1 -1
  274. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js +0 -28
  275. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +1 -1
  276. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +20 -4
  277. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
  278. package/lib/commonjs/shared/utils/logger.js +1 -3
  279. package/lib/commonjs/shared/utils/logger.js.map +1 -1
  280. package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -1
  281. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +70 -0
  282. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
  283. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  284. package/lib/commonjs/shared/utils/normalize-interpolated-style.js +68 -0
  285. package/lib/commonjs/shared/utils/normalize-interpolated-style.js.map +1 -0
  286. package/lib/commonjs/shared/utils/overlay/visibility.js +1 -9
  287. package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
  288. package/lib/commonjs/shared/utils/platform.js +13 -0
  289. package/lib/commonjs/shared/utils/platform.js.map +1 -0
  290. package/lib/module/blank-stack/components/stack-view.js +10 -25
  291. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  292. package/lib/module/blank-stack/components/stack-view.native.js +10 -25
  293. package/lib/module/blank-stack/components/stack-view.native.js.map +1 -1
  294. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +3 -20
  295. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  296. package/lib/module/component-stack/components/component-screen.js +1 -1
  297. package/lib/module/component-stack/components/component-screen.js.map +1 -1
  298. package/lib/module/component-stack/components/stack-view.js +9 -22
  299. package/lib/module/component-stack/components/stack-view.js.map +1 -1
  300. package/lib/module/native-stack/navigators/createNativeStackNavigator.js +3 -20
  301. package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  302. package/lib/module/native-stack/views/NativeStackView.native.js +1 -3
  303. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  304. package/lib/module/shared/animation/snap-to.js +6 -2
  305. package/lib/module/shared/animation/snap-to.js.map +1 -1
  306. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +12 -0
  307. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
  308. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +40 -0
  309. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
  310. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +95 -0
  311. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
  312. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +28 -0
  313. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
  314. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +42 -0
  315. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
  316. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +52 -0
  317. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
  318. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +32 -0
  319. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
  320. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +53 -0
  321. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
  322. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +30 -0
  323. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
  324. package/lib/module/shared/components/create-boundary-component/index.js +224 -0
  325. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -0
  326. package/lib/module/shared/components/create-boundary-component/types.js +4 -0
  327. package/lib/module/shared/components/create-boundary-component/types.js.map +1 -0
  328. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +12 -0
  329. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
  330. package/lib/module/shared/components/create-transition-aware-component.js +42 -10
  331. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  332. package/lib/module/shared/components/native-screen.js +5 -5
  333. package/lib/module/shared/components/native-screen.js.map +1 -1
  334. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
  335. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  336. package/lib/module/shared/components/overlay/index.js +1 -3
  337. package/lib/module/shared/components/overlay/index.js.map +1 -1
  338. package/lib/module/shared/components/overlay/variations/float-overlay.js +11 -7
  339. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  340. package/lib/module/shared/components/overlay/variations/overlay-host.js +4 -18
  341. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  342. package/lib/module/shared/components/scene-view.js +27 -0
  343. package/lib/module/shared/components/scene-view.js.map +1 -0
  344. package/lib/module/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
  345. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
  346. package/lib/module/shared/components/screen-container/index.js +28 -0
  347. package/lib/module/shared/components/screen-container/index.js.map +1 -0
  348. package/lib/module/shared/components/screen-container/layers/backdrop.js +99 -0
  349. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -0
  350. package/lib/module/shared/components/screen-container/layers/content.js +104 -0
  351. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -0
  352. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +72 -0
  353. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  354. package/lib/module/shared/components/screen-container/layers/surface-container.js +47 -0
  355. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -0
  356. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +36 -0
  357. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
  358. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +22 -0
  359. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
  360. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +42 -0
  361. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
  362. package/lib/module/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
  363. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
  364. package/lib/module/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -2
  365. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
  366. package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +25 -3
  367. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
  368. package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
  369. package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
  370. package/lib/module/shared/components/screen-lifecycle/index.js +31 -0
  371. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -0
  372. package/lib/module/shared/configs/index.js +4 -2
  373. package/lib/module/shared/configs/index.js.map +1 -1
  374. package/lib/module/shared/configs/presets.js +222 -203
  375. package/lib/module/shared/configs/presets.js.map +1 -1
  376. package/lib/module/shared/configs/specs.js +7 -0
  377. package/lib/module/shared/configs/specs.js.map +1 -1
  378. package/lib/module/shared/constants.js +24 -10
  379. package/lib/module/shared/constants.js.map +1 -1
  380. package/lib/module/shared/hooks/animation/use-associated-style.js +221 -30
  381. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  382. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
  383. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  384. package/lib/module/shared/hooks/gestures/types.js +2 -0
  385. package/lib/module/shared/hooks/gestures/types.js.map +1 -0
  386. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +8 -5
  387. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  388. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  389. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  390. package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
  391. package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +26 -0
  392. package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
  393. package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -1
  394. package/lib/module/shared/hooks/navigation/use-screen-state.js +2 -2
  395. package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -1
  396. package/lib/module/shared/hooks/navigation/use-stack.js +0 -20
  397. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  398. package/lib/module/shared/hooks/navigation/use-tab-press-reset.js +28 -0
  399. package/lib/module/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
  400. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +33 -0
  401. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
  402. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +3 -14
  403. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  404. package/lib/module/shared/index.js +5 -1
  405. package/lib/module/shared/index.js.map +1 -1
  406. package/lib/module/shared/providers/gestures/gestures.provider.js +87 -0
  407. package/lib/module/shared/providers/gestures/gestures.provider.js.map +1 -0
  408. package/lib/module/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +117 -101
  409. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
  410. package/lib/module/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
  411. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
  412. package/lib/module/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
  413. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
  414. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +47 -0
  415. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
  416. package/lib/module/shared/{utils/gesture/velocity.js → providers/gestures/helpers/gesture-physics.js} +56 -30
  417. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
  418. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +71 -0
  419. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
  420. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
  421. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  422. package/lib/module/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +48 -3
  423. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
  424. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +70 -0
  425. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
  426. package/lib/module/shared/providers/gestures/index.js +4 -0
  427. package/lib/module/shared/providers/gestures/index.js.map +1 -0
  428. package/lib/module/shared/providers/gestures/types.js +9 -0
  429. package/lib/module/shared/providers/gestures/types.js.map +1 -0
  430. package/lib/module/shared/{hooks → providers}/gestures/use-build-gestures.js +24 -31
  431. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +1 -0
  432. package/lib/module/shared/providers/layout-anchor.provider.js +19 -6
  433. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
  434. package/lib/module/shared/providers/register-bounds.provider.js +124 -76
  435. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  436. package/lib/module/shared/providers/screen/animation/animation.provider.js +55 -0
  437. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -0
  438. package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +1 -5
  439. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
  440. package/lib/module/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +78 -47
  441. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
  442. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
  443. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  444. package/lib/module/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
  445. package/lib/module/shared/providers/screen/animation/index.js +5 -0
  446. package/lib/module/shared/providers/screen/animation/index.js.map +1 -0
  447. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  448. package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
  449. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +16 -0
  450. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
  451. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +84 -0
  452. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
  453. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +37 -0
  454. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
  455. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +27 -0
  456. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
  457. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +24 -0
  458. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
  459. package/lib/module/shared/providers/screen/descriptors/index.js +4 -0
  460. package/lib/module/shared/providers/screen/descriptors/index.js.map +1 -0
  461. package/lib/module/shared/providers/screen/screen-composer.js +12 -11
  462. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  463. package/lib/module/shared/providers/screen/styles.provider.js +35 -24
  464. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
  465. package/lib/module/shared/providers/scroll-settle.provider.js +19 -0
  466. package/lib/module/shared/providers/scroll-settle.provider.js.map +1 -0
  467. package/lib/module/shared/providers/stack/core.provider.js +14 -8
  468. package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
  469. package/lib/module/shared/providers/stack/direct.provider.js +17 -68
  470. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  471. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +25 -0
  472. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
  473. package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +2 -1
  474. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
  475. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
  476. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
  477. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
  478. package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js +95 -0
  479. package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
  480. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +54 -0
  481. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
  482. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +33 -0
  483. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
  484. package/lib/module/shared/providers/stack/managed.provider.js +37 -125
  485. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
  486. package/lib/module/shared/providers/viewport.provider.js +27 -0
  487. package/lib/module/shared/providers/viewport.provider.js.map +1 -0
  488. package/lib/module/shared/stores/animation.store.js +39 -20
  489. package/lib/module/shared/stores/animation.store.js.map +1 -1
  490. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +38 -0
  491. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
  492. package/lib/module/shared/stores/bounds/helpers/keys.js +19 -0
  493. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -0
  494. package/lib/module/shared/stores/bounds/helpers/matching.js +17 -0
  495. package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -0
  496. package/lib/module/shared/stores/bounds/index.js +33 -0
  497. package/lib/module/shared/stores/bounds/index.js.map +1 -0
  498. package/lib/module/shared/stores/bounds/internals/clear.js +242 -0
  499. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -0
  500. package/lib/module/shared/stores/bounds/internals/presence.js +118 -0
  501. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -0
  502. package/lib/module/shared/stores/bounds/internals/registry.js +295 -0
  503. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -0
  504. package/lib/module/shared/stores/bounds/internals/resolver.js +127 -0
  505. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -0
  506. package/lib/module/shared/stores/bounds/internals/state.js +93 -0
  507. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -0
  508. package/lib/module/shared/stores/bounds/types.js +4 -0
  509. package/lib/module/shared/stores/bounds/types.js.map +1 -0
  510. package/lib/module/shared/stores/gesture.store.js +36 -16
  511. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  512. package/lib/module/shared/types/gesture.types.js +5 -0
  513. package/lib/module/shared/types/gesture.types.js.map +1 -1
  514. package/lib/module/shared/types/providers/direct-stack.types.js +4 -0
  515. package/lib/module/shared/types/providers/direct-stack.types.js.map +1 -0
  516. package/lib/module/shared/types/providers/managed-stack.types.js +4 -0
  517. package/lib/module/shared/types/providers/managed-stack.types.js.map +1 -0
  518. package/lib/module/shared/types/stack.types.js +5 -0
  519. package/lib/module/shared/types/stack.types.js.map +1 -1
  520. package/lib/module/shared/utils/animation/animate-many.js +27 -0
  521. package/lib/module/shared/utils/animation/animate-many.js.map +1 -0
  522. package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
  523. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  524. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +36 -0
  525. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
  526. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +147 -0
  527. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
  528. package/lib/module/shared/utils/bounds/helpers/constants.js +11 -0
  529. package/lib/module/shared/utils/bounds/helpers/constants.js.map +1 -0
  530. package/lib/module/shared/utils/bounds/helpers/geometry.js +6 -4
  531. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
  532. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js +2 -2
  533. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
  534. package/lib/module/shared/utils/bounds/helpers/interpolate.js +16 -0
  535. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +1 -0
  536. package/lib/module/shared/utils/bounds/helpers/interpolators.js +63 -0
  537. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -0
  538. package/lib/module/shared/utils/bounds/helpers/link-accessor.js +35 -0
  539. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
  540. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +21 -0
  541. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
  542. package/lib/module/shared/utils/bounds/helpers/style-composers.js +158 -24
  543. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  544. package/lib/module/shared/utils/bounds/index.js +86 -187
  545. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  546. package/lib/module/shared/utils/bounds/types/options.js +4 -0
  547. package/lib/module/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
  548. package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
  549. package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
  550. package/lib/module/shared/utils/bounds/zoom/build.js +536 -0
  551. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
  552. package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
  553. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
  554. package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
  555. package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
  556. package/lib/module/shared/utils/bounds/zoom/types.js +4 -0
  557. package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
  558. package/lib/module/shared/utils/create-provider.js +1 -23
  559. package/lib/module/shared/utils/create-provider.js.map +1 -1
  560. package/lib/module/shared/utils/gesture/find-collapse-target.js +2 -1
  561. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +1 -1
  562. package/lib/module/shared/utils/gesture/resolve-ownership.js +0 -27
  563. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +1 -1
  564. package/lib/module/shared/utils/gesture/validate-snap-points.js +19 -4
  565. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
  566. package/lib/module/shared/utils/logger.js +0 -1
  567. package/lib/module/shared/utils/logger.js.map +1 -1
  568. package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -1
  569. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +66 -0
  570. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
  571. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  572. package/lib/module/shared/utils/normalize-interpolated-style.js +64 -0
  573. package/lib/module/shared/utils/normalize-interpolated-style.js.map +1 -0
  574. package/lib/module/shared/utils/overlay/visibility.js +0 -6
  575. package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
  576. package/lib/module/shared/utils/platform.js +9 -0
  577. package/lib/module/shared/utils/platform.js.map +1 -0
  578. package/lib/typescript/blank-stack/components/stack-view.d.ts +1 -2
  579. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  580. package/lib/typescript/blank-stack/components/stack-view.native.d.ts +1 -2
  581. package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -1
  582. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  583. package/lib/typescript/component-stack/components/stack-view.d.ts +1 -2
  584. package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
  585. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
  586. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +1 -1
  587. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  588. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  589. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +2 -0
  590. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -0
  591. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +8 -0
  592. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -0
  593. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +23 -0
  594. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -0
  595. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +11 -0
  596. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -0
  597. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +18 -0
  598. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -0
  599. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +10 -0
  600. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -0
  601. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +8 -0
  602. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -0
  603. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +12 -0
  604. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -0
  605. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +10 -0
  606. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -0
  607. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +30 -0
  608. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -0
  609. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +38 -0
  610. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -0
  611. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +8 -0
  612. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -0
  613. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  614. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  615. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
  616. package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
  617. package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
  618. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
  619. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +3 -7
  620. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  621. package/lib/typescript/shared/components/scene-view.d.ts +13 -0
  622. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -0
  623. package/lib/typescript/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.d.ts +1 -0
  624. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -0
  625. package/lib/typescript/shared/components/{screen-container.d.ts → screen-container/index.d.ts} +1 -1
  626. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -0
  627. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -0
  628. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -0
  629. package/lib/typescript/shared/components/screen-container/layers/content.d.ts +6 -0
  630. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -0
  631. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +7 -0
  632. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
  633. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +8 -0
  634. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -0
  635. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts +11 -0
  636. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +1 -0
  637. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +2 -0
  638. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +1 -0
  639. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +2 -0
  640. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +1 -0
  641. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +7 -0
  642. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -0
  643. package/lib/typescript/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.d.ts +1 -1
  644. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +1 -0
  645. package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.d.ts +3 -3
  646. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -0
  647. package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.d.ts +2 -2
  648. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +1 -0
  649. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts +10 -0
  650. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -0
  651. package/lib/typescript/shared/configs/index.d.ts +2 -0
  652. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  653. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  654. package/lib/typescript/shared/configs/specs.d.ts +1 -0
  655. package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
  656. package/lib/typescript/shared/constants.d.ts +12 -5
  657. package/lib/typescript/shared/constants.d.ts.map +1 -1
  658. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +27 -2
  659. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  660. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
  661. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
  662. package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
  663. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
  664. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
  665. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
  666. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -1
  667. package/lib/typescript/shared/hooks/navigation/use-closing-route-keys.d.ts.map +1 -1
  668. package/lib/typescript/shared/hooks/navigation/use-history.d.ts +2 -1
  669. package/lib/typescript/shared/hooks/navigation/use-history.d.ts.map +1 -1
  670. package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts +4 -0
  671. package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts.map +1 -0
  672. package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -1
  673. package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -1
  674. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +2 -43
  675. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  676. package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts +10 -0
  677. package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts.map +1 -0
  678. package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts +8 -0
  679. package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts.map +1 -0
  680. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
  681. package/lib/typescript/shared/index.d.ts +39 -29
  682. package/lib/typescript/shared/index.d.ts.map +1 -1
  683. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +19 -0
  684. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +1 -0
  685. package/lib/typescript/shared/{hooks/gestures/use-screen-gesture-handlers.d.ts → providers/gestures/handlers/use-handlers.d.ts} +6 -4
  686. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -0
  687. package/lib/typescript/shared/{utils/gesture/check-gesture-activation.d.ts → providers/gestures/helpers/gesture-activation.d.ts} +7 -13
  688. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -0
  689. package/lib/typescript/shared/{utils/gesture/should-defer-to-child-claim.d.ts → providers/gestures/helpers/gesture-claims.d.ts} +2 -2
  690. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +1 -0
  691. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +13 -0
  692. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +1 -0
  693. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +42 -0
  694. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +1 -0
  695. package/lib/typescript/shared/{utils/gesture/reset-gesture-values.d.ts → providers/gestures/helpers/gesture-reset.d.ts} +6 -4
  696. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
  698. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
  699. package/lib/typescript/shared/{utils/gesture/determine-snap-target.d.ts → providers/gestures/helpers/gesture-targets.d.ts} +19 -1
  700. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +9 -0
  702. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +1 -0
  703. package/lib/typescript/shared/providers/gestures/index.d.ts +3 -0
  704. package/lib/typescript/shared/providers/gestures/index.d.ts.map +1 -0
  705. package/lib/typescript/shared/providers/{gestures.provider.d.ts → gestures/types.d.ts} +4 -20
  706. package/lib/typescript/shared/providers/gestures/types.d.ts.map +1 -0
  707. package/lib/typescript/shared/{hooks → providers}/gestures/use-build-gestures.d.ts +2 -2
  708. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +1 -0
  709. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +6 -1
  710. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
  711. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  712. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +16 -0
  713. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -0
  714. package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/derivations.d.ts +1 -3
  715. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -0
  716. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +11 -0
  717. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -0
  718. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
  719. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
  720. package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/worklet.d.ts +1 -1
  721. package/lib/typescript/shared/providers/screen/animation/helpers/worklet.d.ts.map +1 -0
  722. package/lib/typescript/shared/providers/screen/animation/index.d.ts +3 -0
  723. package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -0
  724. package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
  725. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
  726. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +6 -0
  727. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -0
  728. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +26 -0
  729. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -0
  730. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +24 -0
  731. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -0
  732. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +8 -0
  733. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -0
  734. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +7 -0
  735. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +1 -0
  736. package/lib/typescript/shared/providers/screen/descriptors/index.d.ts +2 -0
  737. package/lib/typescript/shared/providers/screen/descriptors/index.d.ts.map +1 -0
  738. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
  739. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  740. package/lib/typescript/shared/providers/screen/styles.provider.d.ts +7 -7
  741. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
  742. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +12 -0
  743. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +1 -0
  744. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
  745. package/lib/typescript/shared/providers/stack/direct.provider.d.ts +4 -32
  746. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  747. package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts +7 -0
  748. package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts.map +1 -0
  749. package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.d.ts +1 -4
  750. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts.map +1 -0
  751. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts.map +1 -0
  752. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts +3 -0
  753. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts.map +1 -0
  754. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts +3 -0
  755. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts.map +1 -0
  756. package/lib/typescript/shared/providers/stack/helpers/{use-local-routes.d.ts → use-local-routes/index.d.ts} +3 -3
  757. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts.map +1 -0
  758. package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts +17 -0
  759. package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts.map +1 -0
  760. package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts +18 -0
  761. package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts.map +1 -0
  762. package/lib/typescript/shared/providers/stack/managed.provider.d.ts +5 -37
  763. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
  764. package/lib/typescript/shared/providers/viewport.provider.d.ts +13 -0
  765. package/lib/typescript/shared/providers/viewport.provider.d.ts.map +1 -0
  766. package/lib/typescript/shared/stores/animation.store.d.ts +9 -3
  767. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  768. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +19 -0
  769. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  770. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +3 -0
  771. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -0
  772. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +4 -0
  773. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -0
  774. package/lib/typescript/shared/stores/bounds/index.d.ts +32 -0
  775. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -0
  776. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +6 -0
  777. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -0
  778. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +12 -0
  779. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -0
  780. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +16 -0
  781. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -0
  782. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts +4 -0
  783. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -0
  784. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +11 -0
  785. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -0
  786. package/lib/typescript/shared/stores/bounds/types.d.ts +64 -0
  787. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -0
  788. package/lib/typescript/shared/stores/gesture.store.d.ts +13 -4
  789. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  790. package/lib/typescript/shared/types/animation.types.d.ts +77 -46
  791. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  792. package/lib/typescript/shared/types/bounds.types.d.ts +58 -7
  793. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  794. package/lib/typescript/shared/types/gesture.types.d.ts +27 -8
  795. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  796. package/lib/typescript/shared/types/index.d.ts +3 -3
  797. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  798. package/lib/typescript/shared/types/overlay.types.d.ts +8 -21
  799. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  800. package/lib/typescript/shared/types/providers/direct-stack.types.d.ts +22 -0
  801. package/lib/typescript/shared/types/providers/direct-stack.types.d.ts.map +1 -0
  802. package/lib/typescript/shared/types/providers/managed-stack.types.d.ts +45 -0
  803. package/lib/typescript/shared/types/providers/managed-stack.types.d.ts.map +1 -0
  804. package/lib/typescript/shared/types/screen.types.d.ts +78 -21
  805. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  806. package/lib/typescript/shared/types/stack.types.d.ts +7 -0
  807. package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
  808. package/lib/typescript/shared/utils/animation/animate-many.d.ts +13 -0
  809. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +1 -0
  810. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  811. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +14 -0
  812. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -0
  813. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +4 -0
  814. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -0
  815. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts +9 -0
  816. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +1 -0
  817. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +4 -3
  818. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
  819. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +1 -1
  820. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +2 -0
  821. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +1 -0
  822. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +14 -0
  823. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -0
  824. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +12 -0
  825. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -0
  826. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +7 -0
  827. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -0
  828. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +8 -7
  829. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  830. package/lib/typescript/shared/utils/bounds/index.d.ts +1 -1
  831. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  832. package/lib/typescript/shared/utils/bounds/types/{builder.d.ts → options.d.ts} +20 -11
  833. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -0
  834. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
  835. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
  836. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
  837. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
  838. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
  839. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
  840. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
  841. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
  842. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
  843. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
  844. package/lib/typescript/shared/utils/create-provider.d.ts +2 -2
  845. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
  846. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +1 -1
  847. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts +2 -10
  848. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +1 -1
  849. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +10 -3
  850. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
  851. package/lib/typescript/shared/utils/logger.d.ts +0 -1
  852. package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
  853. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +1 -4
  854. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -1
  855. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +25 -0
  856. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -0
  857. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +1 -3
  858. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
  859. package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts +17 -0
  860. package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts.map +1 -0
  861. package/lib/typescript/shared/utils/overlay/visibility.d.ts +0 -4
  862. package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
  863. package/lib/typescript/shared/utils/platform.d.ts +5 -0
  864. package/lib/typescript/shared/utils/platform.d.ts.map +1 -0
  865. package/package.json +4 -2
  866. package/src/blank-stack/components/stack-view.native.tsx +15 -34
  867. package/src/blank-stack/components/stack-view.tsx +15 -34
  868. package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +2 -28
  869. package/src/component-stack/components/component-screen.tsx +1 -1
  870. package/src/component-stack/components/stack-view.tsx +8 -30
  871. package/src/native-stack/navigators/createNativeStackNavigator.tsx +2 -28
  872. package/src/native-stack/views/NativeStackView.native.tsx +1 -4
  873. package/src/shared/animation/snap-to.ts +13 -2
  874. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +16 -0
  875. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +50 -0
  876. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +177 -0
  877. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +55 -0
  878. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +59 -0
  879. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +83 -0
  880. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +47 -0
  881. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +83 -0
  882. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +40 -0
  883. package/src/shared/components/create-boundary-component/index.tsx +263 -0
  884. package/src/shared/components/create-boundary-component/types.ts +47 -0
  885. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +17 -0
  886. package/src/shared/components/create-transition-aware-component.tsx +53 -9
  887. package/src/shared/components/native-screen.tsx +4 -8
  888. package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
  889. package/src/shared/components/overlay/index.ts +0 -2
  890. package/src/shared/components/overlay/variations/float-overlay.tsx +25 -28
  891. package/src/shared/components/overlay/variations/overlay-host.tsx +9 -28
  892. package/src/shared/components/scene-view.tsx +29 -0
  893. package/src/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.ts +9 -5
  894. package/src/shared/components/screen-container/index.tsx +26 -0
  895. package/src/shared/components/screen-container/layers/backdrop.tsx +130 -0
  896. package/src/shared/components/screen-container/layers/content.tsx +136 -0
  897. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +93 -0
  898. package/src/shared/components/screen-container/layers/surface-container.tsx +55 -0
  899. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.ts +46 -0
  900. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +27 -0
  901. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +58 -0
  902. package/src/shared/{hooks/lifecycle/use-close-transition.ts → components/screen-lifecycle/hooks/use-close-transition/index.ts} +41 -19
  903. package/src/shared/{hooks/animation/use-high-refresh-rate.tsx → components/screen-lifecycle/hooks/use-high-refresh-rate.ts} +2 -2
  904. package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.ts +31 -6
  905. package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.ts +4 -4
  906. package/src/shared/components/screen-lifecycle/index.tsx +36 -0
  907. package/src/shared/configs/index.ts +3 -1
  908. package/src/shared/configs/presets.ts +189 -153
  909. package/src/shared/configs/specs.ts +8 -0
  910. package/src/shared/constants.ts +24 -8
  911. package/src/shared/hooks/animation/use-associated-style.ts +347 -0
  912. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
  913. package/src/shared/hooks/gestures/types.ts +5 -0
  914. package/src/shared/hooks/gestures/use-screen-gesture.ts +11 -4
  915. package/src/shared/hooks/gestures/{use-scroll-registry.tsx → use-scroll-registry.ts} +1 -1
  916. package/src/shared/hooks/navigation/use-history.ts +1 -1
  917. package/src/shared/hooks/navigation/use-navigation-helpers.ts +25 -0
  918. package/src/shared/hooks/navigation/{use-previous.tsx → use-previous.ts} +1 -1
  919. package/src/shared/hooks/navigation/{use-screen-state.tsx → use-screen-state.ts} +3 -3
  920. package/src/shared/hooks/navigation/use-stack.tsx +2 -43
  921. package/src/shared/hooks/navigation/use-tab-press-reset.ts +41 -0
  922. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +43 -0
  923. package/src/shared/hooks/reanimated/use-shared-value-state.ts +2 -13
  924. package/src/shared/index.ts +23 -6
  925. package/src/shared/providers/gestures/gestures.provider.tsx +127 -0
  926. package/src/shared/{hooks/gestures/use-screen-gesture-handlers.ts → providers/gestures/handlers/use-handlers.ts} +170 -144
  927. package/src/shared/{utils/gesture/check-gesture-activation.ts → providers/gestures/helpers/gesture-activation.ts} +6 -13
  928. package/src/shared/{utils/gesture/should-defer-to-child-claim.ts → providers/gestures/helpers/gesture-claims.ts} +1 -1
  929. package/src/shared/providers/gestures/helpers/gesture-directions.ts +97 -0
  930. package/src/shared/{utils/gesture/velocity.ts → providers/gestures/helpers/gesture-physics.ts} +97 -48
  931. package/src/shared/providers/gestures/helpers/gesture-reset.ts +108 -0
  932. package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
  933. package/src/shared/{utils/gesture/determine-snap-target.ts → providers/gestures/helpers/gesture-targets.ts} +81 -4
  934. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +84 -0
  935. package/src/shared/providers/gestures/index.tsx +10 -0
  936. package/src/shared/providers/gestures/types.ts +45 -0
  937. package/src/shared/{hooks/gestures/use-build-gestures.tsx → providers/gestures/use-build-gestures.ts} +30 -45
  938. package/src/shared/providers/layout-anchor.provider.tsx +34 -3
  939. package/src/shared/providers/register-bounds.provider.tsx +169 -113
  940. package/src/shared/providers/screen/animation/animation.provider.tsx +93 -0
  941. package/src/shared/{utils/animation → providers/screen/animation/helpers}/derivations.ts +1 -9
  942. package/src/shared/providers/screen/animation/helpers/pipeline.ts +290 -0
  943. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
  944. package/src/shared/{utils/animation → providers/screen/animation/helpers}/worklet.ts +1 -1
  945. package/src/shared/providers/screen/animation/index.tsx +8 -0
  946. package/src/shared/providers/screen/animation/types.ts +5 -0
  947. package/src/shared/providers/screen/animation/use-screen-animation.tsx +19 -0
  948. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +113 -0
  949. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +67 -0
  950. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +30 -0
  951. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +29 -0
  952. package/src/shared/providers/screen/descriptors/index.tsx +6 -0
  953. package/src/shared/providers/screen/screen-composer.tsx +12 -9
  954. package/src/shared/providers/screen/styles.provider.tsx +122 -105
  955. package/src/shared/providers/scroll-settle.provider.tsx +24 -0
  956. package/src/shared/providers/stack/core.provider.tsx +13 -8
  957. package/src/shared/providers/stack/direct.provider.tsx +21 -115
  958. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +28 -0
  959. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.ts +2 -5
  960. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.ts +1 -3
  961. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.ts +1 -3
  962. package/src/shared/providers/stack/helpers/use-local-routes/index.ts +147 -0
  963. package/src/shared/providers/stack/helpers/use-processed-routes.ts +85 -0
  964. package/src/shared/providers/stack/helpers/use-stack-derived.ts +43 -0
  965. package/src/shared/providers/stack/managed.provider.tsx +65 -190
  966. package/src/shared/providers/viewport.provider.tsx +39 -0
  967. package/src/shared/stores/animation.store.ts +52 -18
  968. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +101 -0
  969. package/src/shared/stores/bounds/helpers/keys.ts +21 -0
  970. package/src/shared/stores/bounds/helpers/matching.ts +25 -0
  971. package/src/shared/stores/bounds/index.ts +60 -0
  972. package/src/shared/stores/bounds/internals/clear.ts +335 -0
  973. package/src/shared/stores/bounds/internals/presence.ts +146 -0
  974. package/src/shared/stores/bounds/internals/registry.ts +408 -0
  975. package/src/shared/stores/bounds/internals/resolver.ts +225 -0
  976. package/src/shared/stores/bounds/internals/state.ts +115 -0
  977. package/src/shared/stores/bounds/types.ts +78 -0
  978. package/src/shared/stores/gesture.store.ts +52 -27
  979. package/src/shared/types/animation.types.ts +82 -53
  980. package/src/shared/types/bounds.types.ts +49 -9
  981. package/src/shared/types/gesture.types.ts +29 -8
  982. package/src/shared/types/index.ts +5 -7
  983. package/src/shared/types/overlay.types.ts +12 -27
  984. package/src/shared/types/providers/direct-stack.types.ts +35 -0
  985. package/src/shared/types/providers/managed-stack.types.ts +59 -0
  986. package/src/shared/types/screen.types.ts +83 -22
  987. package/src/shared/types/stack.types.ts +8 -0
  988. package/src/shared/utils/animation/animate-many.ts +40 -0
  989. package/src/shared/utils/animation/animate-to-progress.ts +7 -0
  990. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +48 -0
  991. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +206 -0
  992. package/src/shared/utils/bounds/helpers/constants.ts +10 -0
  993. package/src/shared/utils/bounds/helpers/geometry.ts +7 -5
  994. package/src/shared/utils/bounds/helpers/interpolate-style.ts +2 -2
  995. package/src/shared/utils/bounds/helpers/interpolate.ts +19 -0
  996. package/src/shared/utils/bounds/helpers/interpolators.ts +110 -0
  997. package/src/shared/utils/bounds/helpers/link-accessor.ts +44 -0
  998. package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +29 -0
  999. package/src/shared/utils/bounds/helpers/style-composers.ts +136 -60
  1000. package/src/shared/utils/bounds/index.ts +113 -254
  1001. package/src/shared/utils/bounds/types/{builder.ts → options.ts} +32 -22
  1002. package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
  1003. package/src/shared/utils/bounds/zoom/build.ts +705 -0
  1004. package/src/shared/utils/bounds/zoom/config.ts +179 -0
  1005. package/src/shared/utils/bounds/zoom/index.ts +2 -0
  1006. package/src/shared/utils/bounds/zoom/types.ts +22 -0
  1007. package/src/shared/utils/create-provider.tsx +0 -27
  1008. package/src/shared/utils/gesture/find-collapse-target.ts +2 -3
  1009. package/src/shared/utils/gesture/resolve-ownership.ts +1 -37
  1010. package/src/shared/utils/gesture/validate-snap-points.ts +33 -9
  1011. package/src/shared/utils/logger.ts +0 -3
  1012. package/src/shared/utils/navigation/compose-descriptors.ts +1 -3
  1013. package/src/shared/utils/navigation/resolve-scene-neighbors.ts +89 -0
  1014. package/src/shared/utils/navigation/sync-routes-with-removed.ts +1 -4
  1015. package/src/shared/utils/normalize-interpolated-style.ts +67 -0
  1016. package/src/shared/utils/overlay/visibility.ts +0 -15
  1017. package/src/shared/utils/platform.ts +6 -0
  1018. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
  1019. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  1020. package/lib/commonjs/shared/components/screen-container.js +0 -129
  1021. package/lib/commonjs/shared/components/screen-container.js.map +0 -1
  1022. package/lib/commonjs/shared/components/screen-lifecycle.js +0 -29
  1023. package/lib/commonjs/shared/components/screen-lifecycle.js.map +0 -1
  1024. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
  1025. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +0 -1
  1026. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +0 -1
  1027. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
  1028. package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
  1029. package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
  1030. package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
  1031. package/lib/commonjs/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
  1032. package/lib/commonjs/shared/providers/gestures.provider.js +0 -169
  1033. package/lib/commonjs/shared/providers/gestures.provider.js.map +0 -1
  1034. package/lib/commonjs/shared/providers/screen/keys.provider.js +0 -40
  1035. package/lib/commonjs/shared/providers/screen/keys.provider.js.map +0 -1
  1036. package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js +0 -23
  1037. package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
  1038. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +0 -93
  1039. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
  1040. package/lib/commonjs/shared/stores/bounds.store.js +0 -231
  1041. package/lib/commonjs/shared/stores/bounds.store.js.map +0 -1
  1042. package/lib/commonjs/shared/utils/animation/derivations.js.map +0 -1
  1043. package/lib/commonjs/shared/utils/animation/worklet.js.map +0 -1
  1044. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +0 -1
  1045. package/lib/commonjs/shared/utils/gesture/determine-dismissal.js +0 -50
  1046. package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +0 -1
  1047. package/lib/commonjs/shared/utils/gesture/determine-snap-target.js.map +0 -1
  1048. package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js +0 -17
  1049. package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
  1050. package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js +0 -56
  1051. package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +0 -1
  1052. package/lib/commonjs/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
  1053. package/lib/commonjs/shared/utils/gesture/velocity.js +0 -111
  1054. package/lib/commonjs/shared/utils/gesture/velocity.js.map +0 -1
  1055. package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
  1056. package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
  1057. package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +0 -1
  1058. package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +0 -1
  1059. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +0 -20
  1060. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +0 -1
  1061. package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -60
  1062. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  1063. package/lib/module/shared/components/screen-container.js +0 -123
  1064. package/lib/module/shared/components/screen-container.js.map +0 -1
  1065. package/lib/module/shared/components/screen-lifecycle.js +0 -24
  1066. package/lib/module/shared/components/screen-lifecycle.js.map +0 -1
  1067. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
  1068. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +0 -1
  1069. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +0 -1
  1070. package/lib/module/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
  1071. package/lib/module/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
  1072. package/lib/module/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
  1073. package/lib/module/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
  1074. package/lib/module/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
  1075. package/lib/module/shared/providers/gestures.provider.js +0 -162
  1076. package/lib/module/shared/providers/gestures.provider.js.map +0 -1
  1077. package/lib/module/shared/providers/screen/keys.provider.js +0 -35
  1078. package/lib/module/shared/providers/screen/keys.provider.js.map +0 -1
  1079. package/lib/module/shared/providers/stack/helpers/active-screens-limit.js +0 -19
  1080. package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
  1081. package/lib/module/shared/providers/stack/helpers/use-local-routes.js +0 -87
  1082. package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
  1083. package/lib/module/shared/stores/bounds.store.js +0 -227
  1084. package/lib/module/shared/stores/bounds.store.js.map +0 -1
  1085. package/lib/module/shared/utils/animation/derivations.js.map +0 -1
  1086. package/lib/module/shared/utils/animation/worklet.js.map +0 -1
  1087. package/lib/module/shared/utils/bounds/types/builder.js +0 -4
  1088. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +0 -1
  1089. package/lib/module/shared/utils/gesture/determine-dismissal.js +0 -45
  1090. package/lib/module/shared/utils/gesture/determine-dismissal.js.map +0 -1
  1091. package/lib/module/shared/utils/gesture/determine-snap-target.js.map +0 -1
  1092. package/lib/module/shared/utils/gesture/map-gesture-to-progress.js +0 -12
  1093. package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
  1094. package/lib/module/shared/utils/gesture/reset-gesture-values.js +0 -51
  1095. package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +0 -1
  1096. package/lib/module/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
  1097. package/lib/module/shared/utils/gesture/velocity.js.map +0 -1
  1098. package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
  1099. package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
  1100. package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +0 -1
  1101. package/lib/module/shared/utils/navigation/routes-are-identical.js.map +0 -1
  1102. package/lib/module/shared/utils/reset-stores-for-screen.js +0 -15
  1103. package/lib/module/shared/utils/reset-stores-for-screen.js.map +0 -1
  1104. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
  1105. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
  1106. package/lib/typescript/shared/components/screen-container.d.ts.map +0 -1
  1107. package/lib/typescript/shared/components/screen-lifecycle.d.ts +0 -12
  1108. package/lib/typescript/shared/components/screen-lifecycle.d.ts.map +0 -1
  1109. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +0 -1
  1110. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +0 -8
  1111. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +0 -1
  1112. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +0 -1
  1113. package/lib/typescript/shared/hooks/gestures/use-screen-gesture-handlers.d.ts.map +0 -1
  1114. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts +0 -13
  1115. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts.map +0 -1
  1116. package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts.map +0 -1
  1117. package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts.map +0 -1
  1118. package/lib/typescript/shared/hooks/use-backdrop-pointer-events.d.ts.map +0 -1
  1119. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +0 -1
  1120. package/lib/typescript/shared/providers/screen/keys.provider.d.ts +0 -22
  1121. package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +0 -1
  1122. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +0 -9
  1123. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +0 -1
  1124. package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +0 -1
  1125. package/lib/typescript/shared/stores/bounds.store.d.ts +0 -43
  1126. package/lib/typescript/shared/stores/bounds.store.d.ts.map +0 -1
  1127. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +0 -1
  1128. package/lib/typescript/shared/utils/animation/worklet.d.ts.map +0 -1
  1129. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +0 -1
  1130. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +0 -1
  1131. package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts +0 -24
  1132. package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +0 -1
  1133. package/lib/typescript/shared/utils/gesture/determine-snap-target.d.ts.map +0 -1
  1134. package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts +0 -5
  1135. package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
  1136. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +0 -1
  1137. package/lib/typescript/shared/utils/gesture/should-defer-to-child-claim.d.ts.map +0 -1
  1138. package/lib/typescript/shared/utils/gesture/velocity.d.ts +0 -26
  1139. package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +0 -1
  1140. package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +0 -1
  1141. package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +0 -1
  1142. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +0 -6
  1143. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +0 -1
  1144. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +0 -6
  1145. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +0 -1
  1146. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +0 -7
  1147. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +0 -1
  1148. package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -74
  1149. package/src/shared/components/screen-container.tsx +0 -138
  1150. package/src/shared/components/screen-lifecycle.tsx +0 -32
  1151. package/src/shared/hooks/animation/use-associated-style.tsx +0 -71
  1152. package/src/shared/hooks/animation/use-screen-animation.tsx +0 -208
  1153. package/src/shared/providers/gestures.provider.tsx +0 -254
  1154. package/src/shared/providers/screen/keys.provider.tsx +0 -48
  1155. package/src/shared/providers/stack/helpers/active-screens-limit.ts +0 -35
  1156. package/src/shared/providers/stack/helpers/use-local-routes.tsx +0 -133
  1157. package/src/shared/stores/bounds.store.ts +0 -257
  1158. package/src/shared/utils/gesture/determine-dismissal.ts +0 -80
  1159. package/src/shared/utils/gesture/map-gesture-to-progress.ts +0 -11
  1160. package/src/shared/utils/gesture/reset-gesture-values.ts +0 -67
  1161. package/src/shared/utils/reset-stores-for-screen.ts +0 -14
  1162. /package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
  1163. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
  1164. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
  1165. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
  1166. /package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
  1167. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
  1168. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
  1169. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
  1170. /package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.d.ts +0 -0
  1171. /package/src/shared/hooks/navigation/{use-closing-route-keys.tsx → use-closing-route-keys.ts} +0 -0
  1172. /package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.ts +0 -0
@@ -0,0 +1,263 @@
1
+ import {
2
+ type ComponentType,
3
+ forwardRef,
4
+ memo,
5
+ useCallback,
6
+ useMemo,
7
+ } from "react";
8
+ import { Pressable, View as RNView, type View } from "react-native";
9
+ import Animated, { runOnUI, useAnimatedRef } from "react-native-reanimated";
10
+ import { useAssociatedStyles } from "../../hooks/animation/use-associated-style";
11
+ import { useLayoutAnchorContext } from "../../providers/layout-anchor.provider";
12
+ import { useDescriptorDerivations } from "../../providers/screen/descriptors";
13
+ import { AnimationStore } from "../../stores/animation.store";
14
+ import { BoundStore } from "../../stores/bounds";
15
+ import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles";
16
+ import { useAutoSourceMeasurement } from "./hooks/use-auto-source-measurement";
17
+ import { useBoundaryMeasureAndStore } from "./hooks/use-boundary-measure-and-store";
18
+ import { useBoundaryPresence } from "./hooks/use-boundary-presence";
19
+ import { useGroupActiveMeasurement } from "./hooks/use-group-active-measurement";
20
+ import { useInitialLayoutHandler } from "./hooks/use-initial-layout-handler";
21
+ import { usePendingDestinationMeasurement } from "./hooks/use-pending-destination-measurement";
22
+ import { usePendingDestinationRetryMeasurement } from "./hooks/use-pending-destination-retry-measurement";
23
+ import { useScrollSettledMeasurement } from "./hooks/use-scroll-settled-measurement";
24
+ import type { BoundaryComponentProps, BoundaryConfigProps } from "./types";
25
+ import { buildBoundaryMatchKey } from "./utils/build-boundary-match-key";
26
+
27
+ const setGroupActiveIdOnUI = (group: string, id: string) => {
28
+ "worklet";
29
+ BoundStore.setGroupActiveId(group, id);
30
+ };
31
+
32
+ export function createBoundaryComponent<P extends object>(
33
+ Wrapped: ComponentType<P>,
34
+ ) {
35
+ const AnimatedComponent = Animated.createAnimatedComponent(Wrapped);
36
+
37
+ const Inner = forwardRef<
38
+ React.ComponentRef<typeof AnimatedComponent>,
39
+ BoundaryComponentProps<P>
40
+ >((props, _ref) => {
41
+ const {
42
+ enabled = true,
43
+ group,
44
+ id,
45
+ anchor,
46
+ scaleMode,
47
+ target,
48
+ method,
49
+ style,
50
+ onPress,
51
+ ...rest
52
+ } = props as any;
53
+
54
+ const sharedBoundTag = buildBoundaryMatchKey({ group, id });
55
+ const animatedRef = useAnimatedRef<View>();
56
+
57
+ const {
58
+ previousScreenKey: preferredSourceScreenKey,
59
+ currentScreenKey,
60
+ nextScreenKey,
61
+ ancestorKeys,
62
+ navigatorKey,
63
+ ancestorNavigatorKeys,
64
+ hasConfiguredInterpolator,
65
+ } = useDescriptorDerivations();
66
+ const runtimeEnabled = enabled && hasConfiguredInterpolator;
67
+ const hasNextScreen = !!nextScreenKey;
68
+ const shouldUpdateDestination = !hasNextScreen;
69
+ const layoutAnchor = useLayoutAnchorContext();
70
+ const boundaryConfig = useMemo<BoundaryConfigProps | undefined>(() => {
71
+ if (
72
+ anchor === undefined &&
73
+ scaleMode === undefined &&
74
+ target === undefined &&
75
+ method === undefined
76
+ ) {
77
+ return undefined;
78
+ }
79
+
80
+ return {
81
+ anchor,
82
+ scaleMode,
83
+ target,
84
+ method,
85
+ };
86
+ }, [anchor, scaleMode, target, method]);
87
+
88
+ const isAnimating = AnimationStore.getRouteAnimation(
89
+ currentScreenKey,
90
+ "animating",
91
+ );
92
+ const progress = AnimationStore.getRouteAnimation(
93
+ currentScreenKey,
94
+ "progress",
95
+ );
96
+
97
+ const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
98
+
99
+ const { associatedStyles } = useAssociatedStyles({
100
+ id: sharedBoundTag,
101
+ resetTransformOnUnset: true,
102
+ waitForFirstResolvedStyle: true,
103
+ });
104
+
105
+ const maybeMeasureAndStore = useBoundaryMeasureAndStore({
106
+ enabled,
107
+ sharedBoundTag,
108
+ preferredSourceScreenKey,
109
+ currentScreenKey,
110
+ ancestorKeys,
111
+ navigatorKey,
112
+ ancestorNavigatorKeys,
113
+ isAnimating,
114
+ preparedStyles,
115
+ animatedRef,
116
+ layoutAnchor,
117
+ });
118
+
119
+ const shouldRunDestinationEffects = runtimeEnabled && !hasNextScreen;
120
+
121
+ // Register/unregister this boundary in the presence map so source/destination
122
+ // matching can resolve across screens (including ancestor relationships).
123
+ useBoundaryPresence({
124
+ enabled: runtimeEnabled,
125
+ sharedBoundTag,
126
+ currentScreenKey,
127
+ ancestorKeys,
128
+ navigatorKey,
129
+ ancestorNavigatorKeys,
130
+ boundaryConfig,
131
+ });
132
+
133
+ // On the source screen, capture source bounds when a matching destination
134
+ // appears on the next screen.
135
+ useAutoSourceMeasurement({
136
+ enabled: runtimeEnabled,
137
+ sharedBoundTag,
138
+ nextScreenKey,
139
+ maybeMeasureAndStore,
140
+ });
141
+
142
+ // Primary destination capture: once a pending source link exists for this tag,
143
+ // measure destination bounds and complete the pair.
144
+ usePendingDestinationMeasurement({
145
+ sharedBoundTag,
146
+ enabled: shouldRunDestinationEffects,
147
+ expectedSourceScreenKey: preferredSourceScreenKey,
148
+ maybeMeasureAndStore,
149
+ });
150
+
151
+ // Reliability fallback: retry destination capture during transition progress
152
+ // when the initial pending-destination attempt happens before layout is ready.
153
+ usePendingDestinationRetryMeasurement({
154
+ sharedBoundTag,
155
+ enabled: shouldRunDestinationEffects,
156
+ currentScreenKey,
157
+ expectedSourceScreenKey: preferredSourceScreenKey,
158
+ progress,
159
+ animating: isAnimating,
160
+ maybeMeasureAndStore,
161
+ });
162
+
163
+ // Grouped boundaries (e.g. paged/detail UIs): re-measure when this boundary
164
+ // becomes the active member so destination bounds stay accurate.
165
+ useGroupActiveMeasurement({
166
+ enabled: runtimeEnabled,
167
+ group,
168
+ id,
169
+ shouldUpdateDestination,
170
+ isAnimating,
171
+ maybeMeasureAndStore,
172
+ });
173
+
174
+ // While idle on source screens, re-measure after scroll settles so a later
175
+ // close transition starts from up-to-date source geometry.
176
+ useScrollSettledMeasurement({
177
+ enabled: runtimeEnabled,
178
+ group,
179
+ hasNextScreen,
180
+ isAnimating,
181
+ maybeMeasureAndStore,
182
+ });
183
+
184
+ // Destination mount-time capture path: onLayout schedules a one-time UI-thread
185
+ // initial measurement when transitions are active.
186
+ useInitialLayoutHandler({
187
+ enabled: runtimeEnabled,
188
+ sharedBoundTag,
189
+ currentScreenKey,
190
+ ancestorKeys,
191
+ expectedSourceScreenKey: preferredSourceScreenKey,
192
+ maybeMeasureAndStore,
193
+ });
194
+
195
+ const handlePress = useCallback(
196
+ (...args: unknown[]) => {
197
+ // Press path has priority: capture source before user onPress/navigation.
198
+ if (group) {
199
+ runOnUI(setGroupActiveIdOnUI)(group, String(id));
200
+ }
201
+ runOnUI(maybeMeasureAndStore)({ shouldSetSource: true });
202
+
203
+ if (typeof onPress === "function") {
204
+ onPress(...args);
205
+ }
206
+ },
207
+ [group, id, maybeMeasureAndStore, onPress],
208
+ );
209
+
210
+ const resolvedOnPress =
211
+ typeof onPress === "function" ? handlePress : undefined;
212
+
213
+ return (
214
+ <AnimatedComponent
215
+ {...(rest as any)}
216
+ ref={animatedRef}
217
+ style={[style, enabled ? associatedStyles : undefined]}
218
+ onPress={resolvedOnPress}
219
+ collapsable={false}
220
+ />
221
+ );
222
+ });
223
+
224
+ return memo(Inner) as unknown as React.MemoExoticComponent<
225
+ React.ForwardRefExoticComponent<
226
+ BoundaryComponentProps<P> &
227
+ React.RefAttributes<React.ComponentRef<typeof Wrapped>>
228
+ >
229
+ >;
230
+ }
231
+
232
+ // Pre-built boundary component variants
233
+ const BoundaryView = createBoundaryComponent(RNView);
234
+ BoundaryView.displayName = "Transition.Boundary.View";
235
+
236
+ const BoundaryPressable = createBoundaryComponent(Pressable);
237
+ BoundaryPressable.displayName = "Transition.Boundary.Pressable";
238
+
239
+ /**
240
+ * Shared-boundary components.
241
+ *
242
+ * How measurement works:
243
+ * 1. Source screen captures bounds for a tag.
244
+ * 2. Destination screen captures bounds for the same tag.
245
+ * 3. The link is updated as layout changes (group-active + scroll-settled paths).
246
+ *
247
+ * Press behavior:
248
+ * - When a boundary has `onPress` (typically `Boundary.Pressable`), source
249
+ * measurement runs before the user callback. This gives navigation transitions
250
+ * fresh source geometry on the first frame.
251
+ *
252
+ * Use:
253
+ * - `Boundary.View` for passive/shared elements.
254
+ * - `Boundary.Pressable` for tappable elements that start navigation.
255
+ */
256
+ export const Boundary = {
257
+ /** Passive boundary wrapper (no built-in press semantics). */
258
+ View: BoundaryView,
259
+ /** Pressable boundary wrapper with press-priority source capture. */
260
+ Pressable: BoundaryPressable,
261
+ /** Factory for custom boundary wrappers. */
262
+ createBoundaryComponent,
263
+ };
@@ -0,0 +1,47 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BoundsOptions } from "../../utils/bounds/types/options";
3
+
4
+ export type BoundaryId = string | number;
5
+
6
+ export type BoundaryConfigProps = Pick<
7
+ BoundsOptions,
8
+ "anchor" | "scaleMode" | "target" | "method"
9
+ >;
10
+
11
+ /**
12
+ * Boundary-specific props shared across all boundary component variants.
13
+ * These are the props that `createBoundaryComponent` extracts and handles
14
+ * internally, regardless of the underlying wrapped component.
15
+ */
16
+ export interface BoundaryOwnProps extends BoundaryConfigProps {
17
+ /**
18
+ * Optional group name for collection/list scenarios.
19
+ * When provided, boundaries are tracked as a group and the active member
20
+ * re-measures automatically when focus changes within the group.
21
+ * The internal tag becomes `group:id`.
22
+ */
23
+ group?: string;
24
+ /**
25
+ * Whether this boundary should participate in matching and measurement.
26
+ * @default true
27
+ */
28
+ enabled?: boolean;
29
+ id: BoundaryId;
30
+ }
31
+
32
+ /**
33
+ * Full props for a boundary component wrapping a component with props `P`.
34
+ * Omits `id` from the wrapped component's props (since boundary uses its own `id`).
35
+ */
36
+ export type BoundaryComponentProps<P extends object> = Omit<P, "id"> &
37
+ BoundaryOwnProps;
38
+
39
+ /** Convenience alias for a View-based boundary (the most common case). */
40
+ export type BoundaryProps = BoundaryComponentProps<ViewProps>;
41
+
42
+ export interface MaybeMeasureAndStoreParams {
43
+ shouldSetSource?: boolean;
44
+ shouldSetDestination?: boolean;
45
+ shouldUpdateSource?: boolean;
46
+ shouldUpdateDestination?: boolean;
47
+ }
@@ -0,0 +1,17 @@
1
+ import type { BoundaryId } from "../types";
2
+
3
+ type BuildBoundaryMatchKeyParams = {
4
+ group?: string;
5
+ id: BoundaryId;
6
+ };
7
+
8
+ export function buildBoundaryMatchKey(
9
+ params: BuildBoundaryMatchKeyParams,
10
+ ): string;
11
+ export function buildBoundaryMatchKey(
12
+ params: BuildBoundaryMatchKeyParams,
13
+ ): string {
14
+ "worklet";
15
+ const { group, id } = params;
16
+ return group ? `${group}:${id}` : String(id);
17
+ }
@@ -1,16 +1,18 @@
1
1
  /** biome-ignore-all lint/style/noNonNullAssertion: <This helper is usually being used inside a transitionable stack> */
2
2
  import type React from "react";
3
- import { type ComponentType, forwardRef, memo } from "react";
3
+ import { type ComponentType, forwardRef, memo, useCallback } from "react";
4
4
  import type { View } from "react-native";
5
5
  import { GestureDetector } from "react-native-gesture-handler";
6
6
  import Animated, {
7
7
  runOnUI,
8
8
  useAnimatedRef,
9
9
  useComposedEventHandler,
10
+ useSharedValue,
10
11
  } from "react-native-reanimated";
11
12
  import { useAssociatedStyles } from "../hooks/animation/use-associated-style";
12
13
  import { useScrollRegistry } from "../hooks/gestures/use-scroll-registry";
13
14
  import { RegisterBoundsProvider } from "../providers/register-bounds.provider";
15
+ import { ScrollSettleProvider } from "../providers/scroll-settle.provider";
14
16
  import type { TransitionAwareProps } from "../types/screen.types";
15
17
 
16
18
  interface CreateTransitionAwareComponentOptions {
@@ -32,9 +34,20 @@ export function createTransitionAwareComponent<P extends object>(
32
34
  const {
33
35
  remeasureOnFocus: _remeasureOnFocus,
34
36
  onScroll: userOnScroll,
37
+ onMomentumScrollEnd: userOnMomentumScrollEnd,
38
+ onScrollEndDrag: userOnScrollEndDrag,
35
39
  ...scrollableProps
36
40
  } = props;
37
41
 
42
+ const settledSignal = useSharedValue(0);
43
+
44
+ const emitScrollSettled = useCallback(() => {
45
+ runOnUI(() => {
46
+ "worklet";
47
+ settledSignal.value = settledSignal.value + 1;
48
+ })();
49
+ }, [settledSignal]);
50
+
38
51
  // Determine scroll direction from the horizontal prop (standard ScrollView API)
39
52
  const scrollDirection = scrollableProps.horizontal
40
53
  ? "horizontal"
@@ -53,11 +66,37 @@ export function createTransitionAwareComponent<P extends object>(
53
66
  userOnScroll ?? null,
54
67
  ]);
55
68
 
69
+ const handleMomentumScrollEnd = useCallback(
70
+ (event: unknown) => {
71
+ userOnMomentumScrollEnd?.(event);
72
+ emitScrollSettled();
73
+ },
74
+ [userOnMomentumScrollEnd, emitScrollSettled],
75
+ );
76
+
77
+ const handleScrollEndDrag = useCallback(
78
+ (event: any) => {
79
+ userOnScrollEndDrag?.(event);
80
+
81
+ const velocityX = Math.abs(event?.nativeEvent?.velocity?.x ?? 0);
82
+ const velocityY = Math.abs(event?.nativeEvent?.velocity?.y ?? 0);
83
+
84
+ // If there is no momentum, onMomentumScrollEnd may not fire.
85
+ // Emit settled signal here only when velocity is effectively zero.
86
+ if (velocityX < 0.01 && velocityY < 0.01) {
87
+ emitScrollSettled();
88
+ }
89
+ },
90
+ [userOnScrollEndDrag, emitScrollSettled],
91
+ );
92
+
56
93
  const scrollableComponent = (
57
94
  <AnimatedComponent
58
95
  {...(scrollableProps as any)}
59
96
  ref={ref}
60
97
  onScroll={composedScrollHandler}
98
+ onMomentumScrollEnd={handleMomentumScrollEnd}
99
+ onScrollEndDrag={handleScrollEndDrag}
61
100
  onContentSizeChange={onContentSizeChange}
62
101
  onLayout={onLayout}
63
102
  scrollEventThrottle={scrollableProps.scrollEventThrottle || 16}
@@ -65,14 +104,16 @@ export function createTransitionAwareComponent<P extends object>(
65
104
  );
66
105
 
67
106
  // If no gesture owner found for this axis, render without GestureDetector
68
- if (!nativeGesture) {
69
- return scrollableComponent;
70
- }
71
-
72
107
  return (
73
- <GestureDetector gesture={nativeGesture}>
74
- {scrollableComponent}
75
- </GestureDetector>
108
+ <ScrollSettleProvider settledSignal={settledSignal}>
109
+ {!nativeGesture ? (
110
+ scrollableComponent
111
+ ) : (
112
+ <GestureDetector gesture={nativeGesture}>
113
+ {scrollableComponent}
114
+ </GestureDetector>
115
+ )}
116
+ </ScrollSettleProvider>
76
117
  );
77
118
  });
78
119
 
@@ -92,9 +133,11 @@ export function createTransitionAwareComponent<P extends object>(
92
133
 
93
134
  const animatedRef = useAnimatedRef<View>();
94
135
 
95
- const { associatedStyles } = useAssociatedStyles({
136
+ const { associatedStyles, associatedProps } = useAssociatedStyles({
96
137
  id: sharedBoundTag || styleId,
97
138
  style,
139
+ resetTransformOnUnset: !!sharedBoundTag,
140
+ waitForFirstResolvedStyle: false,
98
141
  });
99
142
 
100
143
  return (
@@ -110,6 +153,7 @@ export function createTransitionAwareComponent<P extends object>(
110
153
  {...(rest as any)}
111
154
  ref={animatedRef}
112
155
  style={[style, associatedStyles]}
156
+ animatedProps={associatedProps}
113
157
  onPress={captureActiveOnPress}
114
158
  onLayout={runOnUI(handleInitialLayout)}
115
159
  collapsable={!sharedBoundTag}
@@ -46,20 +46,16 @@ export const NativeScreen = ({
46
46
  }: ScreenProps) => {
47
47
  const {
48
48
  flags: { DISABLE_NATIVE_SCREENS = false },
49
- } = useStack();
50
-
51
- const {
52
- activeScreensLimit,
53
49
  routes,
54
50
  optimisticFocusedIndex,
55
- backdropBehaviors,
56
- } = useManagedStackContext();
51
+ } = useStack();
52
+ const { activeScreensLimit, backdropBehaviors } = useManagedStackContext();
57
53
 
58
54
  const routesLength = routes.length;
59
55
  const screenRef = useAnimatedRef<View>();
60
56
 
61
- const sceneProgress = AnimationStore.getAnimation(routeKey, "progress");
62
- const sceneClosing = AnimationStore.getAnimation(routeKey, "closing");
57
+ const sceneProgress = AnimationStore.getRouteAnimation(routeKey, "progress");
58
+ const sceneClosing = AnimationStore.getRouteAnimation(routeKey, "closing");
63
59
  const screenActivity = useSharedValue<ScreenActivity>(
64
60
  ScreenActivity.TRANSITIONING_OR_BELOW_TOP,
65
61
  );
@@ -1,10 +1,10 @@
1
1
  import type { StackScene } from "../../../hooks/navigation/use-stack";
2
- import { isFloatOverlayVisible } from "../../../utils/overlay/visibility";
2
+ import { isOverlayVisible } from "../../../utils/overlay/visibility";
3
3
 
4
4
  /**
5
5
  * Find the active float overlay from scenes.
6
6
  * Scans from the top of the stack downward to find the first screen
7
- * with a visible overlay that isn't explicitly set to legacy screen mode.
7
+ * with a visible overlay.
8
8
  */
9
9
  export function getActiveFloatOverlay(
10
10
  scenes: StackScene[],
@@ -30,7 +30,7 @@ export function getActiveFloatOverlay(
30
30
  continue;
31
31
  }
32
32
 
33
- if (isFloatOverlayVisible(options)) {
33
+ if (isOverlayVisible(options)) {
34
34
  return { scene, overlayIndex: i };
35
35
  }
36
36
  }
@@ -1,7 +1,5 @@
1
1
  import { FloatOverlay } from "./variations/float-overlay";
2
- import { ScreenOverlay } from "./variations/screen-overlay";
3
2
 
4
3
  export const Overlay = {
5
4
  Float: FloatOverlay,
6
- Screen: ScreenOverlay,
7
5
  };
@@ -2,21 +2,15 @@ import { useMemo } from "react";
2
2
  import { snapDescriptorToIndex } from "../../../animation/snap-to";
3
3
  import { useOptimisticFocusedIndex } from "../../../hooks/navigation/use-optimistic-focused-index";
4
4
  import { useStack } from "../../../hooks/navigation/use-stack";
5
- import type { BaseDescriptor } from "../../../providers/screen/keys.provider";
6
- import { KeysProvider } from "../../../providers/screen/keys.provider";
5
+ import { ScreenAnimationProvider } from "../../../providers/screen/animation";
6
+ import type { BaseDescriptor } from "../../../providers/screen/descriptors";
7
+ import { DescriptorsProvider } from "../../../providers/screen/descriptors";
7
8
  import { ScreenStylesProvider } from "../../../providers/screen/styles.provider";
8
- import type { OverlayProps } from "../../../types/overlay.types";
9
+ import type { OverlayScreenState } from "../../../types/overlay.types";
10
+
9
11
  import { getActiveFloatOverlay } from "../helpers/get-active-overlay";
10
12
  import { OverlayHost } from "./overlay-host";
11
13
 
12
- type OverlayScreenState = Omit<
13
- OverlayProps<BaseDescriptor["navigation"]>,
14
- "progress" | "overlayAnimation" | "screenAnimation"
15
- > & {
16
- index: number;
17
- snapTo: (index: number) => void;
18
- };
19
-
20
14
  /**
21
15
  * Float overlay component that renders above all screens.
22
16
  * Gets routes and descriptors from stack context.
@@ -45,18 +39,19 @@ export function FloatOverlay() {
45
39
  const focusedScene = scenes[focusedIndex] ?? scenes[scenes.length - 1];
46
40
  const focusedDescriptor = focusedScene?.descriptor;
47
41
 
48
- const overlayScreenState: OverlayScreenState = {
49
- index: routeKeys.indexOf(current.route.key),
50
- options: focusedDescriptor?.options ?? {},
51
- routes,
52
- focusedRoute: focusedScene?.route ?? current.route,
53
- focusedIndex,
54
- meta: focusedDescriptor?.options?.meta,
55
- navigation: current.navigation,
56
- snapTo: (index: number) => {
57
- snapDescriptorToIndex(current, index);
58
- },
59
- };
42
+ const overlayScreenState: OverlayScreenState<BaseDescriptor["navigation"]> =
43
+ {
44
+ index: routeKeys.indexOf(current.route.key),
45
+ options: focusedDescriptor?.options ?? {},
46
+ routes,
47
+ focusedRoute: focusedScene?.route ?? current.route,
48
+ focusedIndex,
49
+ meta: focusedDescriptor?.options?.meta,
50
+ navigation: current.navigation,
51
+ snapTo: (index: number) => {
52
+ snapDescriptorToIndex(current, index);
53
+ },
54
+ };
60
55
 
61
56
  return {
62
57
  scene,
@@ -74,10 +69,12 @@ export function FloatOverlay() {
74
69
  const { scene, previous, current, next, overlayScreenState } = overlayData;
75
70
 
76
71
  return (
77
- <KeysProvider current={current} previous={previous} next={next}>
78
- <ScreenStylesProvider>
79
- <OverlayHost scene={scene} overlayScreenState={overlayScreenState} />
80
- </ScreenStylesProvider>
81
- </KeysProvider>
72
+ <DescriptorsProvider current={current} previous={previous} next={next}>
73
+ <ScreenAnimationProvider>
74
+ <ScreenStylesProvider>
75
+ <OverlayHost scene={scene} overlayScreenState={overlayScreenState} />
76
+ </ScreenStylesProvider>
77
+ </ScreenAnimationProvider>
78
+ </DescriptorsProvider>
82
79
  );
83
80
  }
@@ -3,26 +3,19 @@ import {
3
3
  NavigationRouteContext,
4
4
  } from "@react-navigation/native";
5
5
  import { memo, useMemo } from "react";
6
- import { Animated, StyleSheet, useWindowDimensions, View } from "react-native";
6
+ import { Animated, StyleSheet, View } from "react-native";
7
7
  import { useDerivedValue } from "react-native-reanimated";
8
- import { useSafeAreaInsets } from "react-native-safe-area-context";
9
- import { useScreenAnimation } from "../../../hooks/animation/use-screen-animation";
10
8
  import type { StackScene } from "../../../hooks/navigation/use-stack";
11
- import type { BaseDescriptor } from "../../../providers/screen/keys.provider";
12
- import type { OverlayInterpolationProps } from "../../../types/animation.types";
13
- import type { OverlayProps } from "../../../types/overlay.types";
14
-
15
- type OverlayScreenState = Omit<
16
- OverlayProps<BaseDescriptor["navigation"]>,
17
- "progress" | "overlayAnimation" | "screenAnimation"
18
- > & {
19
- index: number;
20
- snapTo: (index: number) => void;
21
- };
9
+ import { useScreenAnimation } from "../../../providers/screen/animation";
10
+ import type { BaseDescriptor } from "../../../providers/screen/descriptors";
11
+ import type {
12
+ OverlayProps,
13
+ OverlayScreenState,
14
+ } from "../../../types/overlay.types";
22
15
 
23
16
  type OverlayHostProps = {
24
17
  scene: StackScene;
25
- overlayScreenState: OverlayScreenState;
18
+ overlayScreenState: OverlayScreenState<BaseDescriptor["navigation"]>;
26
19
  };
27
20
 
28
21
  export const OverlayHost = memo(function OverlayHost({
@@ -30,8 +23,6 @@ export const OverlayHost = memo(function OverlayHost({
30
23
  overlayScreenState,
31
24
  }: OverlayHostProps) {
32
25
  const OverlayComponent = scene.descriptor.options.overlay;
33
- const screen = useWindowDimensions();
34
- const insets = useSafeAreaInsets();
35
26
 
36
27
  const screenAnimation = useScreenAnimation();
37
28
  const relativeProgress = useDerivedValue(() => {
@@ -39,22 +30,12 @@ export const OverlayHost = memo(function OverlayHost({
39
30
  return screenAnimation.value.stackProgress;
40
31
  });
41
32
 
42
- const overlayAnimation = useDerivedValue<OverlayInterpolationProps>(() => ({
43
- progress: relativeProgress.value,
44
- layouts: { screen },
45
- insets,
46
- }));
47
-
48
33
  const overlayProps: OverlayProps<BaseDescriptor["navigation"]> = useMemo(
49
34
  () => ({
50
35
  ...overlayScreenState,
51
36
  progress: relativeProgress,
52
- /**@deprecated */
53
- overlayAnimation,
54
- /**@deprecated */
55
- screenAnimation,
56
37
  }),
57
- [relativeProgress, overlayAnimation, screenAnimation, overlayScreenState],
38
+ [relativeProgress, overlayScreenState],
58
39
  );
59
40
 
60
41
  if (!OverlayComponent) {
@@ -0,0 +1,29 @@
1
+ import {
2
+ NavigationContext,
3
+ NavigationRouteContext,
4
+ } from "@react-navigation/native";
5
+ import * as React from "react";
6
+ import type { BaseStackDescriptor } from "../types/stack.types";
7
+
8
+ type SceneViewProps = {
9
+ descriptor: BaseStackDescriptor;
10
+ };
11
+
12
+ /**
13
+ * Shared scene view for managed stacks (blank-stack, component-stack).
14
+ * Wraps screen render output with navigation context providers
15
+ * and optional screen overlay.
16
+ */
17
+ export const SceneView = React.memo(function SceneView({
18
+ descriptor,
19
+ }: SceneViewProps) {
20
+ const { route, navigation, render } = descriptor;
21
+
22
+ return (
23
+ <NavigationContext.Provider value={navigation as any}>
24
+ <NavigationRouteContext.Provider value={route}>
25
+ {render?.()}
26
+ </NavigationRouteContext.Provider>
27
+ </NavigationContext.Provider>
28
+ );
29
+ });