react-native-screen-transitions 3.3.0-rc.3 → 3.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1129) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -108
  3. package/lib/commonjs/blank-stack/components/stack-view.js +13 -28
  4. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  5. package/lib/commonjs/blank-stack/components/stack-view.native.js +13 -28
  6. package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -1
  7. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +2 -20
  8. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  9. package/lib/commonjs/component-stack/components/component-screen.js +1 -1
  10. package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
  11. package/lib/commonjs/component-stack/components/stack-view.js +11 -24
  12. package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
  13. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +2 -20
  14. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  15. package/lib/commonjs/native-stack/views/NativeStackView.native.js +2 -4
  16. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  17. package/lib/commonjs/shared/animation/snap-to.js +1 -1
  18. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  19. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +17 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +45 -0
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +101 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +33 -0
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +47 -0
  28. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
  29. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +57 -0
  30. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
  31. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +37 -0
  32. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
  33. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +58 -0
  34. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
  35. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +35 -0
  36. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
  37. package/lib/commonjs/shared/components/create-boundary-component/index.js +230 -0
  38. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -0
  39. package/lib/commonjs/shared/{utils/bounds/types/builder.js → components/create-boundary-component/types.js} +1 -1
  40. package/lib/commonjs/shared/components/create-boundary-component/types.js.map +1 -0
  41. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +21 -0
  42. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
  43. package/lib/commonjs/shared/components/create-transition-aware-component.js +40 -8
  44. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  45. package/lib/commonjs/shared/components/native-screen.js +5 -5
  46. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  47. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +3 -2
  48. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  49. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +53 -13
  50. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
  51. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +9 -9
  52. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  53. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +25 -5
  54. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -1
  55. package/lib/commonjs/shared/components/scene-view.js +34 -0
  56. package/lib/commonjs/shared/components/scene-view.js.map +1 -0
  57. package/lib/commonjs/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
  58. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
  59. package/lib/commonjs/shared/components/screen-container/index.js +32 -0
  60. package/lib/commonjs/shared/components/screen-container/index.js.map +1 -0
  61. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +101 -0
  62. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -0
  63. package/lib/commonjs/shared/components/screen-container/layers/content.js +118 -0
  64. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -0
  65. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +52 -0
  66. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -0
  67. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +42 -0
  68. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
  69. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +27 -0
  70. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
  71. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +47 -0
  72. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
  73. package/lib/commonjs/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +44 -20
  74. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
  75. package/lib/commonjs/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -1
  76. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
  77. package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
  78. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
  79. package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
  80. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
  81. package/lib/commonjs/shared/components/screen-lifecycle/index.js +36 -0
  82. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -0
  83. package/lib/commonjs/shared/configs/index.js +3 -1
  84. package/lib/commonjs/shared/configs/index.js.map +1 -1
  85. package/lib/commonjs/shared/configs/presets.js +222 -203
  86. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  87. package/lib/commonjs/shared/configs/specs.js +8 -1
  88. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  89. package/lib/commonjs/shared/constants.js +19 -9
  90. package/lib/commonjs/shared/constants.js.map +1 -1
  91. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +219 -28
  92. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  93. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +1 -1
  94. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +13 -13
  95. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  96. package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
  97. package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +30 -0
  98. package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
  99. package/lib/commonjs/shared/hooks/navigation/use-optimistic-focused-index.js +20 -0
  100. package/lib/commonjs/shared/hooks/navigation/use-optimistic-focused-index.js.map +1 -0
  101. package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -1
  102. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js +4 -8
  103. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -1
  104. package/lib/commonjs/shared/hooks/navigation/use-stack.js +0 -19
  105. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  106. package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js +32 -0
  107. package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
  108. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +38 -0
  109. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
  110. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +5 -13
  111. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  112. package/lib/commonjs/shared/index.js +12 -2
  113. package/lib/commonjs/shared/index.js.map +1 -1
  114. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +94 -0
  115. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +1 -0
  116. package/lib/commonjs/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +77 -98
  117. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
  118. package/lib/commonjs/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
  119. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
  120. package/lib/commonjs/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
  121. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
  122. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +56 -0
  123. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
  124. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +143 -0
  125. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
  126. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +76 -0
  127. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
  128. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js +110 -0
  129. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
  130. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +74 -0
  131. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
  132. package/lib/commonjs/shared/providers/gestures/index.js +19 -0
  133. package/lib/commonjs/shared/providers/gestures/index.js.map +1 -0
  134. package/lib/commonjs/shared/providers/gestures/types.js +13 -0
  135. package/lib/commonjs/shared/providers/gestures/types.js.map +1 -0
  136. package/lib/commonjs/shared/{hooks → providers}/gestures/use-build-gestures.js +27 -28
  137. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +1 -0
  138. package/lib/commonjs/shared/providers/layout-anchor.provider.js +24 -9
  139. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
  140. package/lib/commonjs/shared/providers/register-bounds.provider.js +124 -77
  141. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  142. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +46 -0
  143. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -0
  144. package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
  145. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
  146. package/lib/commonjs/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -45
  147. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
  148. package/lib/commonjs/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
  149. package/lib/commonjs/shared/providers/screen/animation/index.js +26 -0
  150. package/lib/commonjs/shared/providers/screen/animation/index.js.map +1 -0
  151. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +14 -0
  152. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
  153. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +91 -0
  154. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
  155. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +41 -0
  156. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
  157. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +31 -0
  158. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
  159. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +28 -0
  160. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
  161. package/lib/commonjs/shared/providers/screen/descriptors/index.js +25 -0
  162. package/lib/commonjs/shared/providers/screen/descriptors/index.js.map +1 -0
  163. package/lib/commonjs/shared/providers/screen/screen-composer.js +12 -11
  164. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  165. package/lib/commonjs/shared/providers/screen/styles.provider.js +38 -31
  166. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
  167. package/lib/commonjs/shared/providers/scroll-settle.provider.js +25 -0
  168. package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +1 -0
  169. package/lib/commonjs/shared/providers/stack/core.provider.js +14 -8
  170. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
  171. package/lib/commonjs/shared/providers/stack/direct.provider.js +16 -68
  172. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  173. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +30 -0
  174. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
  175. package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +1 -1
  176. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
  177. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
  178. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
  179. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
  180. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js +101 -0
  181. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
  182. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +58 -0
  183. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
  184. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +37 -0
  185. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
  186. package/lib/commonjs/shared/providers/stack/managed.provider.js +36 -123
  187. package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
  188. package/lib/commonjs/shared/providers/viewport.provider.js +33 -0
  189. package/lib/commonjs/shared/providers/viewport.provider.js.map +1 -0
  190. package/lib/commonjs/shared/stores/animation.store.js +33 -20
  191. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  192. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +43 -0
  193. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
  194. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +23 -0
  195. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -0
  196. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +22 -0
  197. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -0
  198. package/lib/commonjs/shared/stores/bounds/index.js +37 -0
  199. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -0
  200. package/lib/commonjs/shared/stores/bounds/internals/clear.js +247 -0
  201. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -0
  202. package/lib/commonjs/shared/stores/bounds/internals/presence.js +128 -0
  203. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -0
  204. package/lib/commonjs/shared/stores/bounds/internals/registry.js +309 -0
  205. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -0
  206. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +123 -0
  207. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -0
  208. package/lib/commonjs/shared/stores/bounds/internals/state.js +102 -0
  209. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -0
  210. package/lib/commonjs/shared/stores/bounds/types.js +6 -0
  211. package/lib/commonjs/shared/stores/bounds/types.js.map +1 -0
  212. package/lib/commonjs/shared/stores/gesture.store.js +36 -16
  213. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  214. package/lib/commonjs/shared/types/gesture.types.js +4 -0
  215. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  216. package/lib/commonjs/shared/types/providers/direct-stack.types.js +6 -0
  217. package/lib/commonjs/shared/types/providers/direct-stack.types.js.map +1 -0
  218. package/lib/commonjs/shared/types/providers/managed-stack.types.js +6 -0
  219. package/lib/commonjs/shared/types/providers/managed-stack.types.js.map +1 -0
  220. package/lib/commonjs/shared/types/stack.types.js +4 -0
  221. package/lib/commonjs/shared/types/stack.types.js.map +1 -1
  222. package/lib/commonjs/shared/utils/animation/animate-many.js +32 -0
  223. package/lib/commonjs/shared/utils/animation/animate-many.js.map +1 -0
  224. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +41 -0
  225. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
  226. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +137 -0
  227. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
  228. package/lib/commonjs/shared/utils/bounds/helpers/constants.js +15 -0
  229. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +1 -0
  230. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
  231. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
  232. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js +2 -2
  233. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
  234. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +20 -0
  235. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +1 -0
  236. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +67 -0
  237. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -0
  238. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +40 -0
  239. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
  240. package/lib/commonjs/shared/utils/bounds/helpers/math.js +132 -0
  241. package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +1 -0
  242. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +45 -0
  243. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
  244. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +25 -0
  245. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
  246. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +154 -21
  247. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  248. package/lib/commonjs/shared/utils/bounds/index.js +89 -190
  249. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  250. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +60 -0
  251. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
  252. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +20 -0
  253. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
  254. package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js +6 -0
  255. package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
  256. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +295 -0
  257. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
  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/create-provider.js +1 -23
  261. package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
  262. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js +12 -1
  263. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +1 -1
  264. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js +0 -28
  265. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +1 -1
  266. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +21 -2
  267. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
  268. package/lib/commonjs/shared/utils/logger.js +1 -3
  269. package/lib/commonjs/shared/utils/logger.js.map +1 -1
  270. package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -1
  271. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +70 -0
  272. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
  273. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  274. package/lib/commonjs/shared/utils/normalize-interpolated-style.js +68 -0
  275. package/lib/commonjs/shared/utils/normalize-interpolated-style.js.map +1 -0
  276. package/lib/commonjs/shared/utils/overlay/visibility.js +18 -0
  277. package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -0
  278. package/lib/commonjs/shared/utils/platform.js +13 -0
  279. package/lib/commonjs/shared/utils/platform.js.map +1 -0
  280. package/lib/module/blank-stack/components/stack-view.js +10 -24
  281. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  282. package/lib/module/blank-stack/components/stack-view.native.js +10 -24
  283. package/lib/module/blank-stack/components/stack-view.native.js.map +1 -1
  284. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +3 -20
  285. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  286. package/lib/module/component-stack/components/component-screen.js +1 -1
  287. package/lib/module/component-stack/components/component-screen.js.map +1 -1
  288. package/lib/module/component-stack/components/stack-view.js +9 -21
  289. package/lib/module/component-stack/components/stack-view.js.map +1 -1
  290. package/lib/module/native-stack/navigators/createNativeStackNavigator.js +3 -20
  291. package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  292. package/lib/module/native-stack/views/NativeStackView.native.js +1 -3
  293. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  294. package/lib/module/shared/animation/snap-to.js +1 -1
  295. package/lib/module/shared/animation/snap-to.js.map +1 -1
  296. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +12 -0
  297. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
  298. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +40 -0
  299. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
  300. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +95 -0
  301. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
  302. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +28 -0
  303. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
  304. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +42 -0
  305. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
  306. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +52 -0
  307. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
  308. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +32 -0
  309. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
  310. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +53 -0
  311. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
  312. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +30 -0
  313. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
  314. package/lib/module/shared/components/create-boundary-component/index.js +224 -0
  315. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -0
  316. package/lib/module/shared/components/create-boundary-component/types.js +4 -0
  317. package/lib/module/shared/components/create-boundary-component/types.js.map +1 -0
  318. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +17 -0
  319. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
  320. package/lib/module/shared/components/create-transition-aware-component.js +42 -10
  321. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  322. package/lib/module/shared/components/native-screen.js +5 -5
  323. package/lib/module/shared/components/native-screen.js.map +1 -1
  324. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +4 -2
  325. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  326. package/lib/module/shared/components/overlay/variations/float-overlay.js +53 -13
  327. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  328. package/lib/module/shared/components/overlay/variations/overlay-host.js +8 -8
  329. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  330. package/lib/module/shared/components/overlay/variations/screen-overlay.js +25 -5
  331. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -1
  332. package/lib/module/shared/components/scene-view.js +29 -0
  333. package/lib/module/shared/components/scene-view.js.map +1 -0
  334. package/lib/module/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
  335. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
  336. package/lib/module/shared/components/screen-container/index.js +28 -0
  337. package/lib/module/shared/components/screen-container/index.js.map +1 -0
  338. package/lib/module/shared/components/screen-container/layers/backdrop.js +96 -0
  339. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -0
  340. package/lib/module/shared/components/screen-container/layers/content.js +112 -0
  341. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -0
  342. package/lib/module/shared/components/screen-container/layers/surface-container.js +47 -0
  343. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -0
  344. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +36 -0
  345. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
  346. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +22 -0
  347. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
  348. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +42 -0
  349. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
  350. package/lib/module/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +44 -20
  351. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
  352. package/lib/module/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -2
  353. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
  354. package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
  355. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
  356. package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
  357. package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
  358. package/lib/module/shared/components/screen-lifecycle/index.js +31 -0
  359. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -0
  360. package/lib/module/shared/configs/index.js +4 -2
  361. package/lib/module/shared/configs/index.js.map +1 -1
  362. package/lib/module/shared/configs/presets.js +222 -203
  363. package/lib/module/shared/configs/presets.js.map +1 -1
  364. package/lib/module/shared/configs/specs.js +7 -0
  365. package/lib/module/shared/configs/specs.js.map +1 -1
  366. package/lib/module/shared/constants.js +18 -8
  367. package/lib/module/shared/constants.js.map +1 -1
  368. package/lib/module/shared/hooks/animation/use-associated-style.js +221 -30
  369. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  370. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +1 -1
  371. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  372. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +13 -13
  373. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  374. package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
  375. package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +26 -0
  376. package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
  377. package/lib/module/shared/hooks/navigation/use-optimistic-focused-index.js +17 -0
  378. package/lib/module/shared/hooks/navigation/use-optimistic-focused-index.js.map +1 -0
  379. package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -1
  380. package/lib/module/shared/hooks/navigation/use-screen-state.js +4 -8
  381. package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -1
  382. package/lib/module/shared/hooks/navigation/use-stack.js +0 -20
  383. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  384. package/lib/module/shared/hooks/navigation/use-tab-press-reset.js +28 -0
  385. package/lib/module/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
  386. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +33 -0
  387. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
  388. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +6 -14
  389. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  390. package/lib/module/shared/index.js +6 -1
  391. package/lib/module/shared/index.js.map +1 -1
  392. package/lib/module/shared/providers/gestures/gestures.provider.js +87 -0
  393. package/lib/module/shared/providers/gestures/gestures.provider.js.map +1 -0
  394. package/lib/module/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +64 -85
  395. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
  396. package/lib/module/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
  397. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
  398. package/lib/module/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
  399. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
  400. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +47 -0
  401. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
  402. package/lib/module/shared/{utils/gesture/velocity.js → providers/gestures/helpers/gesture-physics.js} +56 -30
  403. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
  404. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +71 -0
  405. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
  406. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js +104 -0
  407. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
  408. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +70 -0
  409. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
  410. package/lib/module/shared/providers/gestures/index.js +4 -0
  411. package/lib/module/shared/providers/gestures/index.js.map +1 -0
  412. package/lib/module/shared/providers/gestures/types.js +9 -0
  413. package/lib/module/shared/providers/gestures/types.js.map +1 -0
  414. package/lib/module/shared/{hooks → providers}/gestures/use-build-gestures.js +26 -27
  415. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +1 -0
  416. package/lib/module/shared/providers/layout-anchor.provider.js +24 -9
  417. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
  418. package/lib/module/shared/providers/register-bounds.provider.js +124 -76
  419. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  420. package/lib/module/shared/providers/screen/animation/animation.provider.js +40 -0
  421. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -0
  422. package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
  423. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
  424. package/lib/module/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -44
  425. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
  426. package/lib/module/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
  427. package/lib/module/shared/providers/screen/animation/index.js +5 -0
  428. package/lib/module/shared/providers/screen/animation/index.js.map +1 -0
  429. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +10 -0
  430. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
  431. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +84 -0
  432. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
  433. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +37 -0
  434. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
  435. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +27 -0
  436. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
  437. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +24 -0
  438. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
  439. package/lib/module/shared/providers/screen/descriptors/index.js +4 -0
  440. package/lib/module/shared/providers/screen/descriptors/index.js.map +1 -0
  441. package/lib/module/shared/providers/screen/screen-composer.js +12 -11
  442. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  443. package/lib/module/shared/providers/screen/styles.provider.js +36 -30
  444. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
  445. package/lib/module/shared/providers/scroll-settle.provider.js +19 -0
  446. package/lib/module/shared/providers/scroll-settle.provider.js.map +1 -0
  447. package/lib/module/shared/providers/stack/core.provider.js +14 -8
  448. package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
  449. package/lib/module/shared/providers/stack/direct.provider.js +17 -67
  450. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  451. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +25 -0
  452. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
  453. package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +2 -1
  454. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
  455. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
  456. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
  457. package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
  458. package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js +95 -0
  459. package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
  460. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +54 -0
  461. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
  462. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +33 -0
  463. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
  464. package/lib/module/shared/providers/stack/managed.provider.js +37 -124
  465. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
  466. package/lib/module/shared/providers/viewport.provider.js +27 -0
  467. package/lib/module/shared/providers/viewport.provider.js.map +1 -0
  468. package/lib/module/shared/stores/animation.store.js +34 -21
  469. package/lib/module/shared/stores/animation.store.js.map +1 -1
  470. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +38 -0
  471. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
  472. package/lib/module/shared/stores/bounds/helpers/keys.js +19 -0
  473. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -0
  474. package/lib/module/shared/stores/bounds/helpers/matching.js +17 -0
  475. package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -0
  476. package/lib/module/shared/stores/bounds/index.js +33 -0
  477. package/lib/module/shared/stores/bounds/index.js.map +1 -0
  478. package/lib/module/shared/stores/bounds/internals/clear.js +242 -0
  479. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -0
  480. package/lib/module/shared/stores/bounds/internals/presence.js +118 -0
  481. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -0
  482. package/lib/module/shared/stores/bounds/internals/registry.js +295 -0
  483. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -0
  484. package/lib/module/shared/stores/bounds/internals/resolver.js +120 -0
  485. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -0
  486. package/lib/module/shared/stores/bounds/internals/state.js +93 -0
  487. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -0
  488. package/lib/module/shared/stores/bounds/types.js +4 -0
  489. package/lib/module/shared/stores/bounds/types.js.map +1 -0
  490. package/lib/module/shared/stores/gesture.store.js +36 -16
  491. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  492. package/lib/module/shared/types/gesture.types.js +5 -0
  493. package/lib/module/shared/types/gesture.types.js.map +1 -1
  494. package/lib/module/shared/types/providers/direct-stack.types.js +4 -0
  495. package/lib/module/shared/types/providers/direct-stack.types.js.map +1 -0
  496. package/lib/module/shared/types/providers/managed-stack.types.js +4 -0
  497. package/lib/module/shared/types/providers/managed-stack.types.js.map +1 -0
  498. package/lib/module/shared/types/stack.types.js +5 -0
  499. package/lib/module/shared/types/stack.types.js.map +1 -1
  500. package/lib/module/shared/utils/animation/animate-many.js +27 -0
  501. package/lib/module/shared/utils/animation/animate-many.js.map +1 -0
  502. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +36 -0
  503. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
  504. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +132 -0
  505. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
  506. package/lib/module/shared/utils/bounds/helpers/constants.js +11 -0
  507. package/lib/module/shared/utils/bounds/helpers/constants.js.map +1 -0
  508. package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
  509. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
  510. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js +2 -2
  511. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
  512. package/lib/module/shared/utils/bounds/helpers/interpolate.js +16 -0
  513. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +1 -0
  514. package/lib/module/shared/utils/bounds/helpers/interpolators.js +62 -0
  515. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -0
  516. package/lib/module/shared/utils/bounds/helpers/link-accessor.js +35 -0
  517. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
  518. package/lib/module/shared/utils/bounds/helpers/math.js +115 -0
  519. package/lib/module/shared/utils/bounds/helpers/math.js.map +1 -0
  520. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +40 -0
  521. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
  522. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +20 -0
  523. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
  524. package/lib/module/shared/utils/bounds/helpers/style-composers.js +154 -21
  525. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  526. package/lib/module/shared/utils/bounds/index.js +86 -187
  527. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  528. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +54 -0
  529. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
  530. package/lib/module/shared/utils/bounds/sugar/navigation/index.js +15 -0
  531. package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
  532. package/lib/module/shared/utils/bounds/sugar/navigation/types.js +4 -0
  533. package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
  534. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +290 -0
  535. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
  536. package/lib/module/shared/utils/bounds/types/options.js +4 -0
  537. package/lib/module/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
  538. package/lib/module/shared/utils/create-provider.js +1 -23
  539. package/lib/module/shared/utils/create-provider.js.map +1 -1
  540. package/lib/module/shared/utils/gesture/find-collapse-target.js +12 -1
  541. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +1 -1
  542. package/lib/module/shared/utils/gesture/resolve-ownership.js +0 -27
  543. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +1 -1
  544. package/lib/module/shared/utils/gesture/validate-snap-points.js +20 -2
  545. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
  546. package/lib/module/shared/utils/logger.js +0 -1
  547. package/lib/module/shared/utils/logger.js.map +1 -1
  548. package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -1
  549. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +66 -0
  550. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
  551. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  552. package/lib/module/shared/utils/normalize-interpolated-style.js +64 -0
  553. package/lib/module/shared/utils/normalize-interpolated-style.js.map +1 -0
  554. package/lib/module/shared/utils/overlay/visibility.js +12 -0
  555. package/lib/module/shared/utils/overlay/visibility.js.map +1 -0
  556. package/lib/module/shared/utils/platform.js +9 -0
  557. package/lib/module/shared/utils/platform.js.map +1 -0
  558. package/lib/typescript/blank-stack/components/stack-view.d.ts +1 -2
  559. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  560. package/lib/typescript/blank-stack/components/stack-view.native.d.ts +1 -2
  561. package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -1
  562. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  563. package/lib/typescript/component-stack/components/stack-view.d.ts +1 -2
  564. package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
  565. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
  566. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +1 -1
  567. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  568. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +2 -0
  569. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -0
  570. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +8 -0
  571. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -0
  572. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +23 -0
  573. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -0
  574. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +11 -0
  575. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -0
  576. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +18 -0
  577. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -0
  578. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +10 -0
  579. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -0
  580. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +8 -0
  581. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -0
  582. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +12 -0
  583. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -0
  584. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +10 -0
  585. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -0
  586. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +30 -0
  587. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -0
  588. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +38 -0
  589. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -0
  590. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +9 -0
  591. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -0
  592. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  593. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  594. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
  595. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
  596. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
  597. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +3 -0
  598. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  599. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -1
  600. package/lib/typescript/shared/components/scene-view.d.ts +13 -0
  601. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -0
  602. package/lib/typescript/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.d.ts +1 -0
  603. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -0
  604. package/lib/typescript/shared/components/{screen-container.d.ts → screen-container/index.d.ts} +1 -1
  605. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -0
  606. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -0
  607. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -0
  608. package/lib/typescript/shared/components/screen-container/layers/content.d.ts +6 -0
  609. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -0
  610. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +8 -0
  611. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -0
  612. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts +11 -0
  613. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +1 -0
  614. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +2 -0
  615. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +1 -0
  616. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +2 -0
  617. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +1 -0
  618. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +7 -0
  619. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -0
  620. package/lib/typescript/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.d.ts +1 -1
  621. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +1 -0
  622. package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.d.ts +3 -3
  623. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -0
  624. package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.d.ts +2 -2
  625. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +1 -0
  626. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts +10 -0
  627. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -0
  628. package/lib/typescript/shared/configs/index.d.ts +2 -0
  629. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  630. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  631. package/lib/typescript/shared/configs/specs.d.ts +1 -0
  632. package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
  633. package/lib/typescript/shared/constants.d.ts +9 -5
  634. package/lib/typescript/shared/constants.d.ts.map +1 -1
  635. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +27 -2
  636. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  637. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -1
  638. package/lib/typescript/shared/hooks/navigation/use-closing-route-keys.d.ts.map +1 -1
  639. package/lib/typescript/shared/hooks/navigation/use-history.d.ts +2 -1
  640. package/lib/typescript/shared/hooks/navigation/use-history.d.ts.map +1 -1
  641. package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts +4 -0
  642. package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts.map +1 -0
  643. package/lib/typescript/shared/hooks/navigation/use-optimistic-focused-index.d.ts +7 -0
  644. package/lib/typescript/shared/hooks/navigation/use-optimistic-focused-index.d.ts.map +1 -0
  645. package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -1
  646. package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -1
  647. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -41
  648. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  649. package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts +10 -0
  650. package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts.map +1 -0
  651. package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts +8 -0
  652. package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts.map +1 -0
  653. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
  654. package/lib/typescript/shared/index.d.ts +27 -16
  655. package/lib/typescript/shared/index.d.ts.map +1 -1
  656. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +19 -0
  657. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +1 -0
  658. package/lib/typescript/shared/{hooks/gestures/use-screen-gesture-handlers.d.ts → providers/gestures/handlers/use-handlers.d.ts} +6 -4
  659. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -0
  660. package/lib/typescript/shared/{utils/gesture/check-gesture-activation.d.ts → providers/gestures/helpers/gesture-activation.d.ts} +7 -13
  661. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -0
  662. package/lib/typescript/shared/{utils/gesture/should-defer-to-child-claim.d.ts → providers/gestures/helpers/gesture-claims.d.ts} +2 -2
  663. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +1 -0
  664. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +13 -0
  665. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +1 -0
  666. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +42 -0
  667. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +1 -0
  668. package/lib/typescript/shared/{utils/gesture/reset-gesture-values.d.ts → providers/gestures/helpers/gesture-reset.d.ts} +6 -4
  669. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +1 -0
  670. package/lib/typescript/shared/{utils/gesture/determine-snap-target.d.ts → providers/gestures/helpers/gesture-targets.d.ts} +19 -1
  671. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +1 -0
  672. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +9 -0
  673. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +1 -0
  674. package/lib/typescript/shared/providers/gestures/index.d.ts +3 -0
  675. package/lib/typescript/shared/providers/gestures/index.d.ts.map +1 -0
  676. package/lib/typescript/shared/providers/{gestures.provider.d.ts → gestures/types.d.ts} +4 -20
  677. package/lib/typescript/shared/providers/gestures/types.d.ts.map +1 -0
  678. package/lib/typescript/shared/{hooks → providers}/gestures/use-build-gestures.d.ts +2 -2
  679. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +1 -0
  680. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +7 -2
  681. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
  682. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  683. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +13 -0
  684. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -0
  685. package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/derivations.d.ts +1 -1
  686. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -0
  687. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +11 -0
  688. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -0
  689. package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/worklet.d.ts +1 -1
  690. package/lib/typescript/shared/providers/screen/animation/helpers/worklet.d.ts.map +1 -0
  691. package/lib/typescript/shared/providers/screen/animation/index.d.ts +3 -0
  692. package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -0
  693. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +2 -0
  694. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -0
  695. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +26 -0
  696. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +24 -0
  698. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -0
  699. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +8 -0
  700. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +7 -0
  702. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +1 -0
  703. package/lib/typescript/shared/providers/screen/descriptors/index.d.ts +2 -0
  704. package/lib/typescript/shared/providers/screen/descriptors/index.d.ts.map +1 -0
  705. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
  706. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  707. package/lib/typescript/shared/providers/screen/styles.provider.d.ts +7 -7
  708. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
  709. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +12 -0
  710. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +1 -0
  711. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
  712. package/lib/typescript/shared/providers/stack/direct.provider.d.ts +4 -32
  713. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  714. package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts +7 -0
  715. package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts.map +1 -0
  716. package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.d.ts +1 -4
  717. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts.map +1 -0
  718. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts.map +1 -0
  719. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts +3 -0
  720. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts.map +1 -0
  721. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts +3 -0
  722. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts.map +1 -0
  723. package/lib/typescript/shared/providers/stack/helpers/{use-local-routes.d.ts → use-local-routes/index.d.ts} +3 -3
  724. package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts.map +1 -0
  725. package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts +17 -0
  726. package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts.map +1 -0
  727. package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts +18 -0
  728. package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts.map +1 -0
  729. package/lib/typescript/shared/providers/stack/managed.provider.d.ts +5 -37
  730. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
  731. package/lib/typescript/shared/providers/viewport.provider.d.ts +13 -0
  732. package/lib/typescript/shared/providers/viewport.provider.d.ts.map +1 -0
  733. package/lib/typescript/shared/stores/animation.store.d.ts +6 -4
  734. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  735. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +19 -0
  736. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  737. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +3 -0
  738. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -0
  739. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +4 -0
  740. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -0
  741. package/lib/typescript/shared/stores/bounds/index.d.ts +32 -0
  742. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -0
  743. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +6 -0
  744. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -0
  745. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +12 -0
  746. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -0
  747. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +16 -0
  748. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -0
  749. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts +4 -0
  750. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -0
  751. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +11 -0
  752. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -0
  753. package/lib/typescript/shared/stores/bounds/types.d.ts +62 -0
  754. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -0
  755. package/lib/typescript/shared/stores/gesture.store.d.ts +13 -4
  756. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  757. package/lib/typescript/shared/types/animation.types.d.ts +85 -29
  758. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  759. package/lib/typescript/shared/types/bounds.types.d.ts +17 -3
  760. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  761. package/lib/typescript/shared/types/gesture.types.d.ts +27 -8
  762. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  763. package/lib/typescript/shared/types/index.d.ts +2 -2
  764. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  765. package/lib/typescript/shared/types/overlay.types.d.ts +8 -0
  766. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  767. package/lib/typescript/shared/types/providers/direct-stack.types.d.ts +22 -0
  768. package/lib/typescript/shared/types/providers/direct-stack.types.d.ts.map +1 -0
  769. package/lib/typescript/shared/types/providers/managed-stack.types.d.ts +45 -0
  770. package/lib/typescript/shared/types/providers/managed-stack.types.d.ts.map +1 -0
  771. package/lib/typescript/shared/types/screen.types.d.ts +72 -1
  772. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  773. package/lib/typescript/shared/types/stack.types.d.ts +7 -0
  774. package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
  775. package/lib/typescript/shared/utils/animation/animate-many.d.ts +13 -0
  776. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +1 -0
  777. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +14 -0
  778. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -0
  779. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +4 -0
  780. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -0
  781. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts +9 -0
  782. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +1 -0
  783. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +1 -1
  784. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
  785. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +1 -1
  786. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +2 -0
  787. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +1 -0
  788. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +13 -0
  789. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -0
  790. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +11 -0
  791. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -0
  792. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +38 -0
  793. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +1 -0
  794. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +16 -0
  795. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +1 -0
  796. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +6 -0
  797. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -0
  798. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -4
  799. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  800. package/lib/typescript/shared/utils/bounds/index.d.ts +1 -1
  801. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  802. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +17 -0
  803. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +1 -0
  804. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +3 -0
  805. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +1 -0
  806. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +18 -0
  807. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +1 -0
  808. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +4 -0
  809. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +1 -0
  810. package/lib/typescript/shared/utils/bounds/types/{builder.d.ts → options.d.ts} +15 -7
  811. package/lib/typescript/shared/utils/bounds/types/{builder.d.ts.map → options.d.ts.map} +1 -1
  812. package/lib/typescript/shared/utils/create-provider.d.ts +2 -2
  813. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
  814. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +1 -1
  815. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts +2 -10
  816. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +1 -1
  817. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +7 -2
  818. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
  819. package/lib/typescript/shared/utils/logger.d.ts +0 -1
  820. package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
  821. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +1 -4
  822. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -1
  823. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +25 -0
  824. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -0
  825. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +1 -3
  826. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
  827. package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts +17 -0
  828. package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts.map +1 -0
  829. package/lib/typescript/shared/utils/overlay/visibility.d.ts +10 -0
  830. package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -0
  831. package/lib/typescript/shared/utils/platform.d.ts +5 -0
  832. package/lib/typescript/shared/utils/platform.d.ts.map +1 -0
  833. package/package.json +10 -2
  834. package/src/blank-stack/components/stack-view.native.tsx +15 -33
  835. package/src/blank-stack/components/stack-view.tsx +15 -33
  836. package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +2 -28
  837. package/src/component-stack/components/component-screen.tsx +1 -1
  838. package/src/component-stack/components/stack-view.tsx +8 -29
  839. package/src/native-stack/navigators/createNativeStackNavigator.tsx +2 -28
  840. package/src/native-stack/views/NativeStackView.native.tsx +1 -4
  841. package/src/shared/animation/snap-to.ts +1 -1
  842. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +16 -0
  843. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +50 -0
  844. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +177 -0
  845. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +55 -0
  846. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +59 -0
  847. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +83 -0
  848. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +47 -0
  849. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +83 -0
  850. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +40 -0
  851. package/src/shared/components/create-boundary-component/index.tsx +263 -0
  852. package/src/shared/components/create-boundary-component/types.ts +47 -0
  853. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +29 -0
  854. package/src/shared/components/create-transition-aware-component.tsx +53 -9
  855. package/src/shared/components/native-screen.tsx +4 -8
  856. package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -2
  857. package/src/shared/components/overlay/variations/float-overlay.tsx +55 -13
  858. package/src/shared/components/overlay/variations/overlay-host.tsx +14 -9
  859. package/src/shared/components/overlay/variations/screen-overlay.tsx +31 -5
  860. package/src/shared/components/scene-view.tsx +32 -0
  861. package/src/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.ts +9 -5
  862. package/src/shared/components/screen-container/index.tsx +26 -0
  863. package/src/shared/components/screen-container/layers/backdrop.tsx +111 -0
  864. package/src/shared/components/screen-container/layers/content.tsx +133 -0
  865. package/src/shared/components/screen-container/layers/surface-container.tsx +55 -0
  866. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.ts +46 -0
  867. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +27 -0
  868. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +58 -0
  869. package/src/shared/{hooks/lifecycle/use-close-transition.ts → components/screen-lifecycle/hooks/use-close-transition/index.ts} +49 -23
  870. package/src/shared/{hooks/animation/use-high-refresh-rate.tsx → components/screen-lifecycle/hooks/use-high-refresh-rate.ts} +2 -2
  871. package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.ts +15 -4
  872. package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.ts +4 -4
  873. package/src/shared/components/screen-lifecycle/index.tsx +36 -0
  874. package/src/shared/configs/index.ts +3 -1
  875. package/src/shared/configs/presets.ts +189 -153
  876. package/src/shared/configs/specs.ts +8 -0
  877. package/src/shared/constants.ts +18 -6
  878. package/src/shared/hooks/animation/use-associated-style.ts +347 -0
  879. package/src/shared/hooks/gestures/use-screen-gesture.ts +1 -1
  880. package/src/shared/hooks/gestures/{use-scroll-registry.tsx → use-scroll-registry.ts} +11 -7
  881. package/src/shared/hooks/navigation/use-history.ts +1 -1
  882. package/src/shared/hooks/navigation/use-navigation-helpers.ts +25 -0
  883. package/src/shared/hooks/navigation/use-optimistic-focused-index.ts +19 -0
  884. package/src/shared/hooks/navigation/{use-previous.tsx → use-previous.ts} +1 -1
  885. package/src/shared/hooks/navigation/{use-screen-state.tsx → use-screen-state.ts} +7 -10
  886. package/src/shared/hooks/navigation/use-stack.tsx +1 -41
  887. package/src/shared/hooks/navigation/use-tab-press-reset.ts +41 -0
  888. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +43 -0
  889. package/src/shared/hooks/reanimated/use-shared-value-state.ts +6 -14
  890. package/src/shared/index.ts +20 -1
  891. package/src/shared/providers/gestures/gestures.provider.tsx +127 -0
  892. package/src/shared/{hooks/gestures/use-screen-gesture-handlers.ts → providers/gestures/handlers/use-handlers.ts} +109 -126
  893. package/src/shared/{utils/gesture/check-gesture-activation.ts → providers/gestures/helpers/gesture-activation.ts} +6 -13
  894. package/src/shared/{utils/gesture/should-defer-to-child-claim.ts → providers/gestures/helpers/gesture-claims.ts} +1 -1
  895. package/src/shared/providers/gestures/helpers/gesture-directions.ts +97 -0
  896. package/src/shared/{utils/gesture/velocity.ts → providers/gestures/helpers/gesture-physics.ts} +97 -48
  897. package/src/shared/providers/gestures/helpers/gesture-reset.ts +108 -0
  898. package/src/shared/providers/gestures/helpers/gesture-targets.ts +167 -0
  899. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +84 -0
  900. package/src/shared/providers/gestures/index.tsx +10 -0
  901. package/src/shared/providers/gestures/types.ts +45 -0
  902. package/src/shared/{hooks/gestures/use-build-gestures.tsx → providers/gestures/use-build-gestures.ts} +31 -42
  903. package/src/shared/providers/layout-anchor.provider.tsx +61 -27
  904. package/src/shared/providers/register-bounds.provider.tsx +169 -113
  905. package/src/shared/providers/screen/animation/animation.provider.tsx +57 -0
  906. package/src/shared/{utils/animation → providers/screen/animation/helpers}/derivations.ts +5 -5
  907. package/src/shared/{hooks/animation/use-screen-animation.tsx → providers/screen/animation/helpers/pipeline.ts} +109 -48
  908. package/src/shared/{utils/animation → providers/screen/animation/helpers}/worklet.ts +1 -1
  909. package/src/shared/providers/screen/animation/index.tsx +5 -0
  910. package/src/shared/providers/screen/animation/use-screen-animation.tsx +6 -0
  911. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +113 -0
  912. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +67 -0
  913. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +30 -0
  914. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +29 -0
  915. package/src/shared/providers/screen/descriptors/index.tsx +6 -0
  916. package/src/shared/providers/screen/screen-composer.tsx +12 -9
  917. package/src/shared/providers/screen/styles.provider.tsx +122 -111
  918. package/src/shared/providers/scroll-settle.provider.tsx +24 -0
  919. package/src/shared/providers/stack/core.provider.tsx +13 -8
  920. package/src/shared/providers/stack/direct.provider.tsx +21 -112
  921. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +28 -0
  922. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.ts +2 -5
  923. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.ts +1 -3
  924. package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.ts +1 -3
  925. package/src/shared/providers/stack/helpers/use-local-routes/index.ts +147 -0
  926. package/src/shared/providers/stack/helpers/use-processed-routes.ts +85 -0
  927. package/src/shared/providers/stack/helpers/use-stack-derived.ts +43 -0
  928. package/src/shared/providers/stack/managed.provider.tsx +65 -190
  929. package/src/shared/providers/viewport.provider.tsx +39 -0
  930. package/src/shared/stores/animation.store.ts +42 -20
  931. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +101 -0
  932. package/src/shared/stores/bounds/helpers/keys.ts +21 -0
  933. package/src/shared/stores/bounds/helpers/matching.ts +25 -0
  934. package/src/shared/stores/bounds/index.ts +60 -0
  935. package/src/shared/stores/bounds/internals/clear.ts +335 -0
  936. package/src/shared/stores/bounds/internals/presence.ts +146 -0
  937. package/src/shared/stores/bounds/internals/registry.ts +408 -0
  938. package/src/shared/stores/bounds/internals/resolver.ts +213 -0
  939. package/src/shared/stores/bounds/internals/state.ts +115 -0
  940. package/src/shared/stores/bounds/types.ts +76 -0
  941. package/src/shared/stores/gesture.store.ts +52 -27
  942. package/src/shared/types/animation.types.ts +92 -30
  943. package/src/shared/types/bounds.types.ts +25 -5
  944. package/src/shared/types/gesture.types.ts +29 -8
  945. package/src/shared/types/index.ts +11 -0
  946. package/src/shared/types/overlay.types.ts +12 -0
  947. package/src/shared/types/providers/direct-stack.types.ts +35 -0
  948. package/src/shared/types/providers/managed-stack.types.ts +59 -0
  949. package/src/shared/types/screen.types.ts +77 -1
  950. package/src/shared/types/stack.types.ts +8 -0
  951. package/src/shared/utils/animation/animate-many.ts +40 -0
  952. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +48 -0
  953. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +180 -0
  954. package/src/shared/utils/bounds/helpers/constants.ts +10 -0
  955. package/src/shared/utils/bounds/helpers/geometry.ts +4 -3
  956. package/src/shared/utils/bounds/helpers/interpolate-style.ts +2 -2
  957. package/src/shared/utils/bounds/helpers/interpolate.ts +19 -0
  958. package/src/shared/utils/bounds/helpers/interpolators.ts +108 -0
  959. package/src/shared/utils/bounds/helpers/link-accessor.ts +40 -0
  960. package/src/shared/utils/bounds/helpers/math.ts +161 -0
  961. package/src/shared/utils/bounds/helpers/navigation-accessor.ts +61 -0
  962. package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +26 -0
  963. package/src/shared/utils/bounds/helpers/style-composers.ts +132 -57
  964. package/src/shared/utils/bounds/index.ts +115 -254
  965. package/src/shared/utils/bounds/sugar/navigation/helpers.ts +74 -0
  966. package/src/shared/utils/bounds/sugar/navigation/index.ts +14 -0
  967. package/src/shared/utils/bounds/sugar/navigation/types.ts +26 -0
  968. package/src/shared/utils/bounds/sugar/navigation/zoom.ts +348 -0
  969. package/src/shared/utils/bounds/types/{builder.ts → options.ts} +26 -18
  970. package/src/shared/utils/create-provider.tsx +0 -27
  971. package/src/shared/utils/gesture/find-collapse-target.ts +10 -1
  972. package/src/shared/utils/gesture/resolve-ownership.ts +1 -37
  973. package/src/shared/utils/gesture/validate-snap-points.ts +29 -4
  974. package/src/shared/utils/logger.ts +0 -3
  975. package/src/shared/utils/navigation/compose-descriptors.ts +1 -3
  976. package/src/shared/utils/navigation/resolve-scene-neighbors.ts +89 -0
  977. package/src/shared/utils/navigation/sync-routes-with-removed.ts +1 -4
  978. package/src/shared/utils/normalize-interpolated-style.ts +67 -0
  979. package/src/shared/utils/overlay/visibility.ts +23 -0
  980. package/src/shared/utils/platform.ts +6 -0
  981. package/lib/commonjs/shared/components/screen-container.js +0 -128
  982. package/lib/commonjs/shared/components/screen-container.js.map +0 -1
  983. package/lib/commonjs/shared/components/screen-lifecycle.js +0 -29
  984. package/lib/commonjs/shared/components/screen-lifecycle.js.map +0 -1
  985. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
  986. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +0 -1
  987. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +0 -1
  988. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
  989. package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
  990. package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
  991. package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
  992. package/lib/commonjs/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
  993. package/lib/commonjs/shared/providers/gestures.provider.js +0 -158
  994. package/lib/commonjs/shared/providers/gestures.provider.js.map +0 -1
  995. package/lib/commonjs/shared/providers/screen/keys.provider.js +0 -40
  996. package/lib/commonjs/shared/providers/screen/keys.provider.js.map +0 -1
  997. package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js +0 -23
  998. package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
  999. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +0 -93
  1000. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
  1001. package/lib/commonjs/shared/stores/bounds.store.js +0 -231
  1002. package/lib/commonjs/shared/stores/bounds.store.js.map +0 -1
  1003. package/lib/commonjs/shared/utils/animation/derivations.js.map +0 -1
  1004. package/lib/commonjs/shared/utils/animation/worklet.js.map +0 -1
  1005. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +0 -1
  1006. package/lib/commonjs/shared/utils/gesture/determine-dismissal.js +0 -50
  1007. package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +0 -1
  1008. package/lib/commonjs/shared/utils/gesture/determine-snap-target.js +0 -56
  1009. package/lib/commonjs/shared/utils/gesture/determine-snap-target.js.map +0 -1
  1010. package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js +0 -17
  1011. package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
  1012. package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js +0 -56
  1013. package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +0 -1
  1014. package/lib/commonjs/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
  1015. package/lib/commonjs/shared/utils/gesture/velocity.js +0 -111
  1016. package/lib/commonjs/shared/utils/gesture/velocity.js.map +0 -1
  1017. package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
  1018. package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
  1019. package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +0 -1
  1020. package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +0 -1
  1021. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +0 -20
  1022. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +0 -1
  1023. package/lib/module/shared/components/screen-container.js +0 -122
  1024. package/lib/module/shared/components/screen-container.js.map +0 -1
  1025. package/lib/module/shared/components/screen-lifecycle.js +0 -24
  1026. package/lib/module/shared/components/screen-lifecycle.js.map +0 -1
  1027. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
  1028. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +0 -1
  1029. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +0 -1
  1030. package/lib/module/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
  1031. package/lib/module/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
  1032. package/lib/module/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
  1033. package/lib/module/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
  1034. package/lib/module/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
  1035. package/lib/module/shared/providers/gestures.provider.js +0 -151
  1036. package/lib/module/shared/providers/gestures.provider.js.map +0 -1
  1037. package/lib/module/shared/providers/screen/keys.provider.js +0 -35
  1038. package/lib/module/shared/providers/screen/keys.provider.js.map +0 -1
  1039. package/lib/module/shared/providers/stack/helpers/active-screens-limit.js +0 -19
  1040. package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
  1041. package/lib/module/shared/providers/stack/helpers/use-local-routes.js +0 -87
  1042. package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
  1043. package/lib/module/shared/stores/bounds.store.js +0 -227
  1044. package/lib/module/shared/stores/bounds.store.js.map +0 -1
  1045. package/lib/module/shared/utils/animation/derivations.js.map +0 -1
  1046. package/lib/module/shared/utils/animation/worklet.js.map +0 -1
  1047. package/lib/module/shared/utils/bounds/types/builder.js +0 -4
  1048. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +0 -1
  1049. package/lib/module/shared/utils/gesture/determine-dismissal.js +0 -45
  1050. package/lib/module/shared/utils/gesture/determine-dismissal.js.map +0 -1
  1051. package/lib/module/shared/utils/gesture/determine-snap-target.js +0 -52
  1052. package/lib/module/shared/utils/gesture/determine-snap-target.js.map +0 -1
  1053. package/lib/module/shared/utils/gesture/map-gesture-to-progress.js +0 -12
  1054. package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
  1055. package/lib/module/shared/utils/gesture/reset-gesture-values.js +0 -51
  1056. package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +0 -1
  1057. package/lib/module/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
  1058. package/lib/module/shared/utils/gesture/velocity.js.map +0 -1
  1059. package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
  1060. package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
  1061. package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +0 -1
  1062. package/lib/module/shared/utils/navigation/routes-are-identical.js.map +0 -1
  1063. package/lib/module/shared/utils/reset-stores-for-screen.js +0 -15
  1064. package/lib/module/shared/utils/reset-stores-for-screen.js.map +0 -1
  1065. package/lib/typescript/shared/components/screen-container.d.ts.map +0 -1
  1066. package/lib/typescript/shared/components/screen-lifecycle.d.ts +0 -12
  1067. package/lib/typescript/shared/components/screen-lifecycle.d.ts.map +0 -1
  1068. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +0 -1
  1069. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +0 -8
  1070. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +0 -1
  1071. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +0 -1
  1072. package/lib/typescript/shared/hooks/gestures/use-screen-gesture-handlers.d.ts.map +0 -1
  1073. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts +0 -13
  1074. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts.map +0 -1
  1075. package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts.map +0 -1
  1076. package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts.map +0 -1
  1077. package/lib/typescript/shared/hooks/use-backdrop-pointer-events.d.ts.map +0 -1
  1078. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +0 -1
  1079. package/lib/typescript/shared/providers/screen/keys.provider.d.ts +0 -22
  1080. package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +0 -1
  1081. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +0 -9
  1082. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +0 -1
  1083. package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +0 -1
  1084. package/lib/typescript/shared/stores/bounds.store.d.ts +0 -43
  1085. package/lib/typescript/shared/stores/bounds.store.d.ts.map +0 -1
  1086. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +0 -1
  1087. package/lib/typescript/shared/utils/animation/worklet.d.ts.map +0 -1
  1088. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +0 -1
  1089. package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts +0 -24
  1090. package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +0 -1
  1091. package/lib/typescript/shared/utils/gesture/determine-snap-target.d.ts.map +0 -1
  1092. package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts +0 -5
  1093. package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
  1094. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +0 -1
  1095. package/lib/typescript/shared/utils/gesture/should-defer-to-child-claim.d.ts.map +0 -1
  1096. package/lib/typescript/shared/utils/gesture/velocity.d.ts +0 -26
  1097. package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +0 -1
  1098. package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +0 -1
  1099. package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +0 -1
  1100. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +0 -6
  1101. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +0 -1
  1102. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +0 -6
  1103. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +0 -1
  1104. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +0 -7
  1105. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +0 -1
  1106. package/src/shared/components/screen-container.tsx +0 -132
  1107. package/src/shared/components/screen-lifecycle.tsx +0 -32
  1108. package/src/shared/hooks/animation/use-associated-style.tsx +0 -71
  1109. package/src/shared/providers/gestures.provider.tsx +0 -227
  1110. package/src/shared/providers/screen/keys.provider.tsx +0 -48
  1111. package/src/shared/providers/stack/helpers/active-screens-limit.ts +0 -35
  1112. package/src/shared/providers/stack/helpers/use-local-routes.tsx +0 -133
  1113. package/src/shared/stores/bounds.store.ts +0 -257
  1114. package/src/shared/utils/gesture/determine-dismissal.ts +0 -80
  1115. package/src/shared/utils/gesture/determine-snap-target.ts +0 -79
  1116. package/src/shared/utils/gesture/map-gesture-to-progress.ts +0 -11
  1117. package/src/shared/utils/gesture/reset-gesture-values.ts +0 -67
  1118. package/src/shared/utils/reset-stores-for-screen.ts +0 -14
  1119. /package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
  1120. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
  1121. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
  1122. /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
  1123. /package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
  1124. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
  1125. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
  1126. /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
  1127. /package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.d.ts +0 -0
  1128. /package/src/shared/hooks/navigation/{use-closing-route-keys.tsx → use-closing-route-keys.ts} +0 -0
  1129. /package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.ts +0 -0
@@ -1,10 +1,17 @@
1
1
  import { FlatList, Pressable, ScrollView, View } from "react-native";
2
+ import {
3
+ Boundary,
4
+ createBoundaryComponent,
5
+ } from "./components/create-boundary-component";
6
+ import { buildBoundaryMatchKey } from "./components/create-boundary-component/utils/build-boundary-match-key";
2
7
  import { createTransitionAwareComponent } from "./components/create-transition-aware-component";
3
8
  import MaskedView from "./components/integrations/masked-view";
4
9
  import { Presets, Specs } from "./configs";
5
10
 
6
11
  export default {
7
12
  createTransitionAwareComponent,
13
+ createBoundaryComponent,
14
+ Boundary,
8
15
  View: createTransitionAwareComponent(View),
9
16
  Pressable: createTransitionAwareComponent(Pressable),
10
17
  ScrollView: createTransitionAwareComponent(ScrollView, {
@@ -19,18 +26,28 @@ export default {
19
26
  };
20
27
 
21
28
  export { snapTo } from "./animation/snap-to";
22
- export { useScreenAnimation } from "./hooks/animation/use-screen-animation";
23
29
  export { useScreenGesture } from "./hooks/gestures/use-screen-gesture";
24
30
  export { useHistory } from "./hooks/navigation/use-history";
25
31
  export {
26
32
  type ScreenState,
27
33
  useScreenState,
28
34
  } from "./hooks/navigation/use-screen-state";
35
+ export { useScreenAnimation } from "./providers/screen/animation";
36
+ export { buildBoundaryMatchKey };
29
37
 
30
38
  export type {
39
+ AnimatedViewStyle,
31
40
  AnimationConfig,
32
41
  BoundEntry,
33
42
  BoundsLink,
43
+ BoundsNavigationAccessor,
44
+ BoundsNavigationOptions,
45
+ BoundsNavigationPreset,
46
+ BoundsStyleOptions,
47
+ LegacyTransitionInterpolatedStyle,
48
+ NewTransitionInterpolatedStyle,
49
+ NormalizedTransitionInterpolatedStyle,
50
+ NormalizedTransitionSlotStyle,
34
51
  OverlayInterpolationProps,
35
52
  OverlayMode,
36
53
  OverlayProps,
@@ -38,5 +55,7 @@ export type {
38
55
  ScreenStyleInterpolator,
39
56
  ScreenTransitionConfig,
40
57
  TransitionInterpolatedStyle,
58
+ TransitionSlotExplicit,
59
+ TransitionSlotStyle,
41
60
  TransitionSpec,
42
61
  } from "./types";
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Gesture System - Core Provider
3
+ *
4
+ * Each screen gets a GestureContext containing:
5
+ * - panGesture: Pan gesture handler for dismiss/snap
6
+ * - scrollConfig: Scroll state for boundary detection
7
+ * - claimedDirections: Which directions this screen handles
8
+ * - childDirectionClaims: Claims registered by descendant screens
9
+ *
10
+ * ScrollView coordination is handled by useScrollRegistry, which finds the
11
+ * gesture owner for the scroll axis and creates appropriate Native gestures.
12
+ */
13
+
14
+ import { useMemo } from "react";
15
+ import { useSharedValue } from "react-native-reanimated";
16
+ import { StackType } from "../../types/stack.types";
17
+ import createProvider from "../../utils/create-provider";
18
+ import { computeClaimedDirections } from "../../utils/gesture/compute-claimed-directions";
19
+ import { validateSnapPoints } from "../../utils/gesture/validate-snap-points";
20
+ import {
21
+ useDescriptorDerivations,
22
+ useDescriptors,
23
+ } from "../screen/descriptors";
24
+ import { useStackCoreContext } from "../stack/core.provider";
25
+ import { useRegisterDirectionClaims } from "./helpers/register-direction-claims";
26
+ import {
27
+ type DirectionClaimMap,
28
+ type GestureContextType,
29
+ NO_CLAIMS,
30
+ type ScrollConfig,
31
+ } from "./types";
32
+ import { useBuildGestures } from "./use-build-gestures";
33
+
34
+ interface ScreenGestureProviderProps {
35
+ children: React.ReactNode;
36
+ }
37
+
38
+ export const {
39
+ ScreenGestureProvider,
40
+ useScreenGestureContext: useGestureContext,
41
+ } = createProvider("ScreenGesture", { guarded: false })<
42
+ ScreenGestureProviderProps,
43
+ GestureContextType
44
+ >(({ children }): { value: GestureContextType; children: React.ReactNode } => {
45
+ const { current } = useDescriptors();
46
+ const { isFirstKey, isTopMostScreen } = useDescriptorDerivations();
47
+ const { flags } = useStackCoreContext();
48
+
49
+ const ancestorContext: GestureContextType | null = useGestureContext();
50
+ const isIsolated = flags.STACK_TYPE === StackType.COMPONENT;
51
+ const routeKey = current.route.key;
52
+
53
+ const canDismiss = Boolean(
54
+ isFirstKey ? false : current.options.gestureEnabled,
55
+ );
56
+
57
+ const { hasSnapPoints } = useMemo(
58
+ () =>
59
+ validateSnapPoints({
60
+ snapPoints: current.options.snapPoints,
61
+ canDismiss,
62
+ }),
63
+ [current.options.snapPoints, canDismiss],
64
+ );
65
+
66
+ const gestureEnabled = canDismiss || hasSnapPoints;
67
+
68
+ const claimedDirections = useMemo(
69
+ () =>
70
+ computeClaimedDirections(
71
+ gestureEnabled,
72
+ current.options.gestureDirection,
73
+ hasSnapPoints,
74
+ ),
75
+ [gestureEnabled, current.options.gestureDirection, hasSnapPoints],
76
+ );
77
+
78
+ const scrollConfig = useSharedValue<ScrollConfig | null>(null);
79
+ const childDirectionClaims = useSharedValue<DirectionClaimMap>(NO_CLAIMS);
80
+
81
+ useRegisterDirectionClaims(
82
+ ancestorContext,
83
+ claimedDirections,
84
+ routeKey,
85
+ isIsolated,
86
+ isTopMostScreen,
87
+ );
88
+
89
+ const { panGesture, panGestureRef, gestureAnimationValues } =
90
+ useBuildGestures({
91
+ scrollConfig,
92
+ ancestorContext,
93
+ claimedDirections,
94
+ childDirectionClaims,
95
+ isIsolated,
96
+ });
97
+
98
+ const value = useMemo<GestureContextType>(
99
+ () => ({
100
+ panGesture,
101
+ panGestureRef,
102
+ scrollConfig,
103
+ gestureAnimationValues,
104
+ ancestorContext,
105
+ gestureEnabled,
106
+ isIsolated,
107
+ claimedDirections,
108
+ childDirectionClaims,
109
+ }),
110
+ [
111
+ panGesture,
112
+ panGestureRef,
113
+ scrollConfig,
114
+ gestureAnimationValues,
115
+ ancestorContext,
116
+ gestureEnabled,
117
+ isIsolated,
118
+ claimedDirections,
119
+ childDirectionClaims,
120
+ ],
121
+ );
122
+
123
+ return {
124
+ value,
125
+ children,
126
+ };
127
+ });
@@ -1,5 +1,4 @@
1
1
  import { useMemo } from "react";
2
- import { useWindowDimensions } from "react-native";
3
2
  import type {
4
3
  GestureStateChangeEvent,
5
4
  GestureTouchEvent,
@@ -8,45 +7,61 @@ import type {
8
7
  } from "react-native-gesture-handler";
9
8
  import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
10
9
  import { type SharedValue, useSharedValue } from "react-native-reanimated";
11
- import { DefaultSnapSpec } from "../../configs/specs";
10
+ import { DefaultSnapSpec } from "../../../configs/specs";
12
11
  import {
13
12
  DEFAULT_GESTURE_ACTIVATION_AREA,
14
13
  DEFAULT_GESTURE_DIRECTION,
15
14
  DEFAULT_GESTURE_DRIVES_PROGRESS,
15
+ DEFAULT_GESTURE_RELEASE_VELOCITY_MAX,
16
+ DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE,
17
+ DEFAULT_GESTURE_SNAP_LOCKED,
18
+ DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT,
19
+ DEFAULT_GESTURE_VELOCITY_IMPACT,
16
20
  EPSILON,
17
21
  FALSE,
18
- GESTURE_VELOCITY_IMPACT,
19
- SNAP_VELOCITY_IMPACT,
20
22
  TRUE,
21
- } from "../../constants";
22
- import type {
23
- DirectionClaimMap,
24
- GestureContextType,
25
- ScrollConfig,
26
- } from "../../providers/gestures.provider";
27
- import { useKeys } from "../../providers/screen/keys.provider";
28
- import { AnimationStore } from "../../stores/animation.store";
29
- import { GestureStore } from "../../stores/gesture.store";
30
- import { GestureOffsetState } from "../../types/gesture.types";
23
+ } from "../../../constants";
24
+ import useStableCallbackValue from "../../../hooks/use-stable-callback-value";
25
+ import { AnimationStore } from "../../../stores/animation.store";
26
+ import { GestureStore } from "../../../stores/gesture.store";
27
+ import { GestureOffsetState } from "../../../types/gesture.types";
31
28
  import type {
32
29
  ClaimedDirections,
33
30
  Direction,
34
31
  DirectionOwnership,
35
- } from "../../types/ownership.types";
36
- import { animateToProgress } from "../../utils/animation/animate-to-progress";
32
+ } from "../../../types/ownership.types";
33
+ import { animateToProgress } from "../../../utils/animation/animate-to-progress";
34
+ import type { EffectiveSnapPointsResult } from "../../../utils/gesture/validate-snap-points";
35
+ import { useDescriptors } from "../../screen/descriptors";
36
+ import { useViewportContext } from "../../viewport.provider";
37
37
  import {
38
38
  applyOffsetRules,
39
39
  checkScrollBoundary,
40
- } from "../../utils/gesture/check-gesture-activation";
41
- import { determineDismissal } from "../../utils/gesture/determine-dismissal";
42
- import { determineSnapTarget } from "../../utils/gesture/determine-snap-target";
43
- import { mapGestureToProgress } from "../../utils/gesture/map-gesture-to-progress";
44
- import { resetGestureValues } from "../../utils/gesture/reset-gesture-values";
45
- import { shouldDeferToChildClaim } from "../../utils/gesture/should-defer-to-child-claim";
46
- import { validateSnapPoints } from "../../utils/gesture/validate-snap-points";
47
- import { velocity } from "../../utils/gesture/velocity";
48
- import { logger } from "../../utils/logger";
49
- import useStableCallbackValue from "../use-stable-callback-value";
40
+ } from "../helpers/gesture-activation";
41
+ import { shouldDeferToChildClaim } from "../helpers/gesture-claims";
42
+ import {
43
+ clampVelocity,
44
+ getSnapAxis,
45
+ isExpandGestureForDirection,
46
+ resolveGestureDirections,
47
+ warnOnSnapDirectionArray,
48
+ } from "../helpers/gesture-directions";
49
+ import {
50
+ calculateProgressSpringVelocity,
51
+ mapGestureToProgress,
52
+ normalizeGestureTranslation,
53
+ normalizeVelocity,
54
+ } from "../helpers/gesture-physics";
55
+ import { resetGestureValues } from "../helpers/gesture-reset";
56
+ import {
57
+ determineDismissal,
58
+ determineSnapTarget,
59
+ } from "../helpers/gesture-targets";
60
+ import type {
61
+ DirectionClaimMap,
62
+ GestureContextType,
63
+ ScrollConfig,
64
+ } from "../types";
50
65
 
51
66
  interface UseScreenGestureHandlersProps {
52
67
  scrollConfig: SharedValue<ScrollConfig | null>;
@@ -57,6 +72,7 @@ interface UseScreenGestureHandlersProps {
57
72
  claimedDirections: ClaimedDirections;
58
73
  ancestorContext: GestureContextType | null | undefined;
59
74
  childDirectionClaims: SharedValue<DirectionClaimMap>;
75
+ effectiveSnapPoints: EffectiveSnapPointsResult;
60
76
  }
61
77
 
62
78
  /**
@@ -104,113 +120,47 @@ interface UseScreenGestureHandlersProps {
104
120
  * (e.g., vertical sheet claims vertical AND vertical-inverted). This allows
105
121
  * expand (drag up) and collapse/dismiss (drag down) gestures.
106
122
  */
107
- export const useScreenGestureHandlers = ({
123
+ export const useHandlers = ({
108
124
  scrollConfig,
109
125
  ancestorIsDismissing,
110
126
  canDismiss,
111
127
  handleDismiss,
112
128
  ownershipStatus,
113
129
  childDirectionClaims,
130
+ effectiveSnapPoints,
114
131
  }: UseScreenGestureHandlersProps) => {
115
- const dimensions = useWindowDimensions();
116
- const { current } = useKeys();
117
-
118
- const animations = AnimationStore.getAll(current.route.key);
119
- const gestureAnimationValues = GestureStore.getRouteGestures(
120
- current.route.key,
121
- );
132
+ const { current } = useDescriptors();
122
133
 
123
134
  const {
124
135
  gestureDirection = DEFAULT_GESTURE_DIRECTION,
125
136
  gestureDrivesProgress = DEFAULT_GESTURE_DRIVES_PROGRESS,
126
- gestureVelocityImpact = GESTURE_VELOCITY_IMPACT,
127
- snapVelocityImpact = SNAP_VELOCITY_IMPACT,
137
+ gestureVelocityImpact = DEFAULT_GESTURE_VELOCITY_IMPACT,
138
+ snapVelocityImpact = DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT,
139
+ gestureReleaseVelocityScale = DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE,
140
+ gestureReleaseVelocityMax = DEFAULT_GESTURE_RELEASE_VELOCITY_MAX,
128
141
  gestureActivationArea = DEFAULT_GESTURE_ACTIVATION_AREA,
142
+ gestureSnapLocked = DEFAULT_GESTURE_SNAP_LOCKED,
143
+ expandViaScrollView = true,
129
144
  gestureResponseDistance,
130
145
  transitionSpec,
131
- snapPoints: rawSnapPoints,
132
- expandViaScrollView = true,
133
- gestureSnapLocked = false,
134
146
  } = current.options;
135
147
 
136
- const { hasSnapPoints, snapPoints, minSnapPoint, maxSnapPoint } = useMemo(
137
- () => validateSnapPoints({ snapPoints: rawSnapPoints, canDismiss }),
138
- [rawSnapPoints, canDismiss],
148
+ const { dimensions } = useViewportContext();
149
+ const routeKey = current.route.key;
150
+ const animations = AnimationStore.getRouteAnimations(current.route.key);
151
+ const gestureAnimationValues = GestureStore.getRouteGestures(
152
+ current.route.key,
139
153
  );
140
154
 
141
- const directions = useMemo(() => {
142
- if (hasSnapPoints && Array.isArray(gestureDirection)) {
143
- /**
144
- * Unsure if this behavior will change in the future, as I cannot find a use case as to why
145
- * you would want multiple gesture dismisals for a sheet.
146
- *
147
- * e.g. When defining a snap point with a gesture of vertical ( default ), the system
148
- * assumes that the inverse ( vertical-inverted ), will grow the sheet.
149
- */
150
- logger.warn(
151
- `gestureDirection array is not supported with snapPoints. ` +
152
- `Only the first direction "${gestureDirection[0]}" will be used. ` +
153
- `Snap points define a single axis of movement, so only one gesture direction is needed.`,
154
- );
155
- }
155
+ const { hasSnapPoints, snapPoints, minSnapPoint, maxSnapPoint } =
156
+ effectiveSnapPoints;
156
157
 
157
- // When snap points are defined, use only the first direction from the array
158
- const effectiveDirection = hasSnapPoints
159
- ? Array.isArray(gestureDirection)
160
- ? gestureDirection[0]
161
- : gestureDirection
162
- : gestureDirection;
163
-
164
- const directionsArray = Array.isArray(effectiveDirection)
165
- ? effectiveDirection
166
- : [effectiveDirection];
167
-
168
- const isBidirectional = directionsArray.includes("bidirectional");
169
-
170
- const hasHorizontalDirection =
171
- directionsArray.includes("horizontal") ||
172
- directionsArray.includes("horizontal-inverted");
173
-
174
- const isSnapAxisInverted = hasHorizontalDirection
175
- ? directionsArray.includes("horizontal-inverted") &&
176
- !directionsArray.includes("horizontal")
177
- : directionsArray.includes("vertical-inverted") &&
178
- !directionsArray.includes("vertical");
179
-
180
- const enableBothVertical =
181
- isBidirectional || (hasSnapPoints && !hasHorizontalDirection);
182
- const enableBothHorizontal =
183
- isBidirectional || (hasSnapPoints && hasHorizontalDirection);
184
-
185
- return {
186
- vertical: directionsArray.includes("vertical") || enableBothVertical,
187
- verticalInverted:
188
- directionsArray.includes("vertical-inverted") || enableBothVertical,
189
- horizontal:
190
- directionsArray.includes("horizontal") || enableBothHorizontal,
191
- horizontalInverted:
192
- directionsArray.includes("horizontal-inverted") || enableBothHorizontal,
193
- snapAxisInverted: hasSnapPoints && isSnapAxisInverted,
194
- };
158
+ const directions = useMemo(() => {
159
+ warnOnSnapDirectionArray({ gestureDirection, hasSnapPoints });
160
+ return resolveGestureDirections({ gestureDirection, hasSnapPoints });
195
161
  }, [gestureDirection, hasSnapPoints]);
196
162
 
197
- const snapAxis =
198
- directions.horizontal || directions.horizontalInverted
199
- ? "horizontal"
200
- : "vertical";
201
-
202
- const isExpandGesture = (swipeDirection: Direction): boolean => {
203
- "worklet";
204
- if (snapAxis === "horizontal") {
205
- return directions.snapAxisInverted
206
- ? swipeDirection === "horizontal"
207
- : swipeDirection === "horizontal-inverted";
208
- }
209
-
210
- return directions.snapAxisInverted
211
- ? swipeDirection === "vertical"
212
- : swipeDirection === "vertical-inverted";
213
- };
163
+ const snapAxis = getSnapAxis(directions);
214
164
 
215
165
  const initialTouch = useSharedValue({ x: 0, y: 0 });
216
166
  const gestureOffsetState = useSharedValue<GestureOffsetState>(
@@ -226,8 +176,6 @@ export const useScreenGestureHandlers = ({
226
176
  gestureOffsetState.value = GestureOffsetState.PENDING;
227
177
  });
228
178
 
229
- const routeKey = current.route.key;
230
-
231
179
  const onTouchesMove = useStableCallbackValue(
232
180
  (e: GestureTouchEvent, manager: GestureStateManagerType) => {
233
181
  "worklet";
@@ -258,7 +206,7 @@ export const useScreenGestureHandlers = ({
258
206
  return;
259
207
  }
260
208
 
261
- if (gestureAnimationValues.isDragging?.value) {
209
+ if (gestureAnimationValues.dragging?.value) {
262
210
  manager.activate();
263
211
  return;
264
212
  }
@@ -296,14 +244,18 @@ export const useScreenGestureHandlers = ({
296
244
  if (
297
245
  hasSnapPoints &&
298
246
  gestureSnapLocked &&
299
- isExpandGesture(swipeDirection)
247
+ isExpandGestureForDirection(
248
+ swipeDirection,
249
+ snapAxis,
250
+ directions.snapAxisInverted ?? false,
251
+ )
300
252
  ) {
301
253
  manager.fail();
302
254
  return;
303
255
  }
304
256
 
305
257
  // Snap sheets can interrupt their own animation; non-snap cannot
306
- if (!hasSnapPoints && gestureAnimationValues.isDismissing?.value) {
258
+ if (!hasSnapPoints && gestureAnimationValues.dismissing?.value) {
307
259
  return;
308
260
  }
309
261
 
@@ -325,7 +277,13 @@ export const useScreenGestureHandlers = ({
325
277
 
326
278
  // Step 7: Expand check for snap sheets
327
279
  if (hasSnapPoints) {
328
- if (isExpandGesture(swipeDirection)) {
280
+ if (
281
+ isExpandGestureForDirection(
282
+ swipeDirection,
283
+ snapAxis,
284
+ directions.snapAxisInverted ?? false,
285
+ )
286
+ ) {
329
287
  if (!expandViaScrollView) {
330
288
  manager.fail();
331
289
  return;
@@ -372,8 +330,8 @@ export const useScreenGestureHandlers = ({
372
330
  lockedSnapPoint.value = maxSnapPoint;
373
331
  }
374
332
 
375
- gestureAnimationValues.isDragging.value = TRUE;
376
- gestureAnimationValues.isDismissing.value = FALSE;
333
+ gestureAnimationValues.dragging.value = TRUE;
334
+ gestureAnimationValues.dismissing.value = FALSE;
377
335
  gestureStartProgress.value = animations.progress.value;
378
336
  animations.animating.value = TRUE;
379
337
  });
@@ -387,11 +345,11 @@ export const useScreenGestureHandlers = ({
387
345
 
388
346
  gestureAnimationValues.x.value = translationX;
389
347
  gestureAnimationValues.y.value = translationY;
390
- gestureAnimationValues.normalizedX.value = velocity.normalizeTranslation(
348
+ gestureAnimationValues.normX.value = normalizeGestureTranslation(
391
349
  translationX,
392
350
  width,
393
351
  );
394
- gestureAnimationValues.normalizedY.value = velocity.normalizeTranslation(
352
+ gestureAnimationValues.normY.value = normalizeGestureTranslation(
395
353
  translationY,
396
354
  height,
397
355
  );
@@ -502,11 +460,29 @@ export const useScreenGestureHandlers = ({
502
460
  shouldDismiss,
503
461
  event,
504
462
  dimensions,
463
+ gestureReleaseVelocityScale,
464
+ gestureReleaseVelocityMax,
505
465
  });
506
466
 
507
- const velocitySign = directions.snapAxisInverted ? 1 : -1;
467
+ const snapDirection = Math.sign(
468
+ targetProgress - animations.progress.value,
469
+ );
470
+
471
+ const normalizedAxisVelocity = Math.abs(
472
+ normalizeVelocity(
473
+ axisVelocity,
474
+ axisDimension,
475
+ gestureReleaseVelocityMax,
476
+ ),
477
+ );
478
+
479
+ const signedSnapVelocity =
480
+ snapDirection * normalizedAxisVelocity * gestureReleaseVelocityScale;
481
+
508
482
  const initialVelocity =
509
- velocitySign * velocity.normalize(axisVelocity, axisDimension);
483
+ snapDirection === 0
484
+ ? 0
485
+ : clampVelocity(signedSnapVelocity, gestureReleaseVelocityMax);
510
486
 
511
487
  animateToProgress({
512
488
  target: targetProgress,
@@ -532,9 +508,11 @@ export const useScreenGestureHandlers = ({
532
508
  shouldDismiss,
533
509
  event,
534
510
  dimensions,
511
+ gestureReleaseVelocityScale,
512
+ gestureReleaseVelocityMax,
535
513
  });
536
514
 
537
- const initialVelocity = velocity.calculateProgressVelocity({
515
+ const initialVelocity = calculateProgressSpringVelocity({
538
516
  animations,
539
517
  shouldDismiss,
540
518
  event,
@@ -542,12 +520,17 @@ export const useScreenGestureHandlers = ({
542
520
  directions,
543
521
  });
544
522
 
523
+ const scaledInitialVelocity = clampVelocity(
524
+ initialVelocity * gestureReleaseVelocityScale,
525
+ gestureReleaseVelocityMax,
526
+ );
527
+
545
528
  animateToProgress({
546
529
  target: targetProgress,
547
530
  onAnimationFinish: shouldDismiss ? handleDismiss : undefined,
548
531
  spec: transitionSpec,
549
532
  animations,
550
- initialVelocity,
533
+ initialVelocity: scaledInitialVelocity,
551
534
  });
552
535
  }
553
536
  },
@@ -1,27 +1,20 @@
1
1
  import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
2
2
  import type { SharedValue } from "react-native-reanimated";
3
- import type { ScrollConfig } from "../../providers/gestures.provider";
3
+ import type { GestureDirections } from "../../../types/gesture.types";
4
4
  import {
5
5
  type ActivationArea,
6
6
  type GestureActivationArea,
7
7
  GestureOffsetState,
8
8
  type SideActivation,
9
- } from "../../types/gesture.types";
10
- import type { Direction } from "../../types/ownership.types";
11
- import type { Layout } from "../../types/screen.types";
12
-
13
- type Directions = {
14
- vertical: boolean;
15
- verticalInverted: boolean;
16
- horizontal: boolean;
17
- horizontalInverted: boolean;
18
- snapAxisInverted?: boolean;
19
- };
9
+ } from "../../../types/gesture.types";
10
+ import type { Direction } from "../../../types/ownership.types";
11
+ import type { Layout } from "../../../types/screen.types";
12
+ import type { ScrollConfig } from "../types";
20
13
 
21
14
  interface CheckGestureActivationProps {
22
15
  initialTouch: { x: number; y: number };
23
16
  touch: { x: number; y: number };
24
- directions: Directions;
17
+ directions: GestureDirections;
25
18
  manager?: GestureStateManagerType;
26
19
  gestureOffsetState: SharedValue<GestureOffsetState>;
27
20
  activationArea?: GestureActivationArea;
@@ -1,4 +1,4 @@
1
- import type { DirectionClaim } from "../../providers/gestures.provider";
1
+ import type { DirectionClaim } from "../types";
2
2
 
3
3
  /**
4
4
  * Determines if the parent gesture should defer to a child's claim on a direction.