react-native-screen-transitions 3.5.1 → 3.6.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 (1113) hide show
  1. package/README.md +23 -1081
  2. package/lib/commonjs/shared/animation/snap-to.js +4 -6
  3. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
  5. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +13 -17
  7. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +46 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
  11. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +3 -147
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +1 -8
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +15 -36
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -32
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  28. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
  29. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  30. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  31. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  32. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  33. package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
  34. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  35. package/lib/commonjs/shared/components/native-screen.js +2 -2
  36. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  37. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +3 -5
  38. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  39. package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
  40. package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  41. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  42. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  43. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  44. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  45. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +8 -8
  46. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  47. package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
  48. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  49. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
  50. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  51. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
  52. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  53. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
  54. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  55. package/lib/commonjs/shared/configs/presets.js +5 -5
  56. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  57. package/lib/commonjs/shared/configs/specs.js +2 -2
  58. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  59. package/lib/commonjs/shared/constants.js +28 -7
  60. package/lib/commonjs/shared/constants.js.map +1 -1
  61. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +3 -3
  62. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
  63. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  64. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  66. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  67. package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
  68. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  69. package/lib/commonjs/shared/index.js +1 -1
  70. package/lib/commonjs/shared/index.js.map +1 -1
  71. package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
  72. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +3 -0
  74. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +31 -0
  76. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  77. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +58 -83
  82. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
  84. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +18 -9
  86. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  87. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js +182 -0
  88. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
  89. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js +55 -0
  90. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
  91. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +161 -0
  92. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
  93. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +78 -0
  94. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
  95. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +147 -0
  96. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
  97. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +52 -0
  98. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
  99. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +64 -0
  100. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
  101. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +64 -0
  102. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
  103. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +50 -0
  104. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
  105. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +43 -0
  106. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
  107. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
  108. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  109. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
  110. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
  111. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js +146 -0
  112. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
  113. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js +204 -0
  114. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
  115. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js +99 -0
  116. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
  117. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
  118. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
  119. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +4 -24
  120. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
  121. package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js +122 -0
  122. package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
  123. package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js +89 -0
  124. package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
  125. package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +21 -0
  126. package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
  127. package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js +134 -0
  128. package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
  129. package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
  130. package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +23 -0
  131. package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
  132. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +33 -0
  133. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  134. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
  135. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  136. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +105 -0
  137. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  138. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +35 -0
  139. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  140. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +13 -0
  141. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
  142. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +44 -0
  143. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
  144. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +134 -0
  145. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
  146. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +45 -0
  147. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  148. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
  149. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  150. package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
  151. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -22
  152. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  153. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
  154. package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  155. package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +18 -0
  156. package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
  157. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +95 -0
  158. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  159. package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
  160. package/lib/commonjs/shared/providers/screen/options/helpers.js +126 -0
  161. package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
  162. package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
  163. package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
  164. package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
  165. package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
  166. package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
  167. package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
  168. package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
  169. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  170. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
  171. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  172. package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
  173. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  174. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  175. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  176. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +183 -0
  177. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  178. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
  179. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  180. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
  181. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  182. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
  183. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  184. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  185. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
  186. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  187. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +41 -2
  188. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  189. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
  190. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  191. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
  192. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  193. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  194. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  195. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  196. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  197. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +59 -0
  198. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  199. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
  200. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  201. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
  202. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  203. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
  204. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  205. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
  206. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  207. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
  208. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  209. package/lib/commonjs/shared/stores/bounds/index.js +15 -98
  210. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  211. package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
  212. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
  213. package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
  214. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
  215. package/lib/commonjs/shared/stores/bounds/internals/links.js +126 -0
  216. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
  217. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
  218. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  219. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
  220. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  221. package/lib/commonjs/shared/stores/gesture.store.js +31 -1
  222. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  223. package/lib/commonjs/shared/stores/scroll.store.js +22 -0
  224. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
  225. package/lib/commonjs/shared/typecheck/public-api.typecheck.js +99 -46
  226. package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +1 -1
  227. package/lib/commonjs/shared/types/gesture.types.js +6 -6
  228. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  229. package/lib/commonjs/shared/types/ownership.types.js +2 -2
  230. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +49 -34
  231. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  232. package/lib/commonjs/shared/utils/animation/emit.js +22 -0
  233. package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
  234. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
  235. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  236. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
  237. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  238. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  239. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  240. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  241. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  242. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
  243. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  244. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
  245. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  246. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  247. package/lib/commonjs/shared/utils/bounds/index.js +34 -59
  248. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  249. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
  250. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
  251. package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +1 -40
  252. package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
  253. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +260 -0
  254. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  255. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +29 -0
  256. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  257. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
  258. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  259. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
  260. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  261. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +49 -147
  262. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  263. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -13
  264. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  265. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
  266. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  267. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +26 -0
  268. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  269. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
  270. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  271. package/lib/commonjs/shared/utils/resolve-chain-target.js +36 -0
  272. package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
  273. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +1 -8
  274. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
  275. package/lib/module/shared/animation/snap-to.js +4 -6
  276. package/lib/module/shared/animation/snap-to.js.map +1 -1
  277. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
  278. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  279. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +14 -18
  280. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  281. package/lib/module/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.js +8 -11
  282. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  283. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  284. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  285. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
  286. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  287. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +1 -138
  288. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  289. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
  290. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  291. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
  292. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  293. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +1 -1
  294. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  295. package/lib/module/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +13 -34
  296. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  297. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
  298. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  299. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -34
  300. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  301. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
  302. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  303. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  304. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  305. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  306. package/lib/module/shared/components/create-transition-aware-component.js +12 -7
  307. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  308. package/lib/module/shared/components/native-screen.js +2 -2
  309. package/lib/module/shared/components/native-screen.js.map +1 -1
  310. package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -5
  311. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  312. package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
  313. package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  314. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  315. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  316. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  317. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  318. package/lib/module/shared/components/screen-container/layers/backdrop.js +8 -8
  319. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  320. package/lib/module/shared/components/screen-container/layers/content.js +2 -2
  321. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  322. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
  323. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  324. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
  325. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  326. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
  327. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  328. package/lib/module/shared/configs/presets.js +5 -5
  329. package/lib/module/shared/configs/presets.js.map +1 -1
  330. package/lib/module/shared/configs/specs.js +2 -2
  331. package/lib/module/shared/configs/specs.js.map +1 -1
  332. package/lib/module/shared/constants.js +27 -6
  333. package/lib/module/shared/constants.js.map +1 -1
  334. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +3 -3
  335. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
  336. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  337. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  338. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  339. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  340. package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
  341. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  342. package/lib/module/shared/index.js +1 -1
  343. package/lib/module/shared/index.js.map +1 -1
  344. package/lib/module/shared/providers/register-bounds.provider.js +5 -5
  345. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  346. package/lib/module/shared/providers/screen/animation/animation.provider.js +3 -0
  347. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  348. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +26 -0
  349. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  350. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
  351. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  352. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
  353. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  354. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +60 -85
  355. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  356. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
  357. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  358. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +18 -9
  359. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  360. package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js +177 -0
  361. package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
  362. package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js +50 -0
  363. package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
  364. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +157 -0
  365. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
  366. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +74 -0
  367. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
  368. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +143 -0
  369. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
  370. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +48 -0
  371. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
  372. package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +59 -0
  373. package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
  374. package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +59 -0
  375. package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
  376. package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +45 -0
  377. package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
  378. package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +38 -0
  379. package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
  380. package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
  381. package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  382. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
  383. package/lib/module/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
  384. package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js +135 -0
  385. package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
  386. package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js +189 -0
  387. package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
  388. package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js +93 -0
  389. package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
  390. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
  391. package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
  392. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +5 -25
  393. package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
  394. package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js +115 -0
  395. package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
  396. package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js +82 -0
  397. package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
  398. package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +17 -0
  399. package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
  400. package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js +124 -0
  401. package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
  402. package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
  403. package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +19 -0
  404. package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
  405. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +28 -0
  406. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  407. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
  408. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  409. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +101 -0
  410. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  411. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +30 -0
  412. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  413. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +4 -0
  414. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
  415. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +39 -0
  416. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
  417. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +128 -0
  418. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
  419. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +41 -0
  420. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  421. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
  422. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  423. package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
  424. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -21
  425. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  426. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
  427. package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  428. package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +14 -0
  429. package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
  430. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +91 -0
  431. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  432. package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
  433. package/lib/module/shared/providers/screen/options/helpers.js +119 -0
  434. package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
  435. package/lib/module/shared/providers/screen/options/index.js +5 -0
  436. package/lib/module/shared/providers/screen/options/index.js.map +1 -0
  437. package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
  438. package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
  439. package/lib/module/shared/providers/screen/options/types.js +4 -0
  440. package/lib/module/shared/providers/screen/options/types.js.map +1 -0
  441. package/lib/module/shared/providers/screen/screen-composer.js +9 -6
  442. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  443. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
  444. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  445. package/lib/module/shared/providers/screen/styles/constants.js +54 -4
  446. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  447. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  448. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  449. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +178 -0
  450. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  451. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
  452. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  453. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
  454. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  455. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
  456. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  457. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  458. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
  459. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  460. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +42 -2
  461. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  462. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
  463. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  464. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
  465. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  466. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  467. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  468. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  469. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  470. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +52 -0
  471. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  472. package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
  473. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  474. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
  475. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  476. package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
  477. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  478. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
  479. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  480. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
  481. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  482. package/lib/module/shared/stores/bounds/index.js +8 -91
  483. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  484. package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
  485. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
  486. package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
  487. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
  488. package/lib/module/shared/stores/bounds/internals/links.js +118 -0
  489. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
  490. package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
  491. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  492. package/lib/module/shared/stores/bounds/internals/state.js +0 -8
  493. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  494. package/lib/module/shared/stores/gesture.store.js +31 -1
  495. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  496. package/lib/module/shared/stores/scroll.store.js +18 -0
  497. package/lib/module/shared/stores/scroll.store.js.map +1 -0
  498. package/lib/module/shared/typecheck/public-api.typecheck.js +100 -47
  499. package/lib/module/shared/typecheck/public-api.typecheck.js.map +1 -1
  500. package/lib/module/shared/types/animation.types.js +25 -3
  501. package/lib/module/shared/types/animation.types.js.map +1 -1
  502. package/lib/module/shared/types/gesture.types.js +6 -5
  503. package/lib/module/shared/types/gesture.types.js.map +1 -1
  504. package/lib/module/shared/types/ownership.types.js +2 -2
  505. package/lib/module/shared/utils/animation/animate-to-progress.js +49 -34
  506. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  507. package/lib/module/shared/utils/animation/emit.js +17 -0
  508. package/lib/module/shared/utils/animation/emit.js.map +1 -0
  509. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
  510. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  511. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
  512. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  513. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  514. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  515. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  516. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  517. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
  518. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  519. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
  520. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  521. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  522. package/lib/module/shared/utils/bounds/index.js +34 -59
  523. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  524. package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
  525. package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
  526. package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -37
  527. package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
  528. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +256 -0
  529. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  530. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +25 -0
  531. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  532. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
  533. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  534. package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
  535. package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  536. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +26 -124
  537. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  538. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +0 -10
  539. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  540. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
  541. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  542. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +21 -0
  543. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  544. package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
  545. package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  546. package/lib/module/shared/utils/resolve-chain-target.js +32 -0
  547. package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
  548. package/lib/module/shared/utils/resolve-screen-transition-options.js +0 -6
  549. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
  550. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  551. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +2 -2
  552. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  553. package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -1
  554. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  555. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
  556. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
  557. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -64
  558. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  559. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
  560. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
  561. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
  562. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
  563. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +10 -0
  564. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  565. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
  566. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
  567. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +1 -1
  568. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  569. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  570. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +1 -1
  571. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
  572. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
  573. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
  574. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  575. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  576. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  577. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  578. package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
  579. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
  580. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
  581. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  582. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  583. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
  584. package/lib/typescript/shared/constants.d.ts +6 -3
  585. package/lib/typescript/shared/constants.d.ts.map +1 -1
  586. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -1
  587. package/lib/typescript/shared/index.d.ts +14 -14
  588. package/lib/typescript/shared/index.d.ts.map +1 -1
  589. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  590. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  591. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
  592. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
  593. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
  594. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  595. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +6 -3
  596. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  597. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
  598. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  599. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +5 -1
  600. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  601. package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -3
  602. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  603. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +3 -1
  604. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  605. package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts +17 -0
  606. package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts.map +1 -0
  607. package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts +14 -0
  608. package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts.map +1 -0
  609. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts +3 -0
  610. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts.map +1 -0
  611. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts +3 -0
  612. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts.map +1 -0
  613. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts +3 -0
  614. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts.map +1 -0
  615. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts +3 -0
  616. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts.map +1 -0
  617. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts +5 -0
  618. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts.map +1 -0
  619. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts +5 -0
  620. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts.map +1 -0
  621. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts +10 -0
  622. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts.map +1 -0
  623. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts +7 -0
  624. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts.map +1 -0
  625. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
  626. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
  627. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.d.ts +9 -11
  628. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-activation.d.ts.map +1 -0
  629. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts +18 -0
  630. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts.map +1 -0
  631. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts +70 -0
  632. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts.map +1 -0
  633. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts +20 -0
  634. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts.map +1 -0
  635. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.d.ts +0 -1
  636. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
  637. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.d.ts +1 -1
  638. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-targets.d.ts.map +1 -0
  639. package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts +5 -0
  640. package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts.map +1 -0
  641. package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts +5 -0
  642. package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts.map +1 -0
  643. package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts +8 -0
  644. package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts.map +1 -0
  645. package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts +9 -0
  646. package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts.map +1 -0
  647. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.d.ts +1 -1
  648. package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts.map +1 -0
  649. package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts +11 -0
  650. package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts.map +1 -0
  651. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
  652. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
  653. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
  654. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
  655. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
  656. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
  657. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
  658. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
  659. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts +2 -0
  660. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts.map +1 -0
  661. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts +5 -0
  662. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts.map +1 -0
  663. package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
  664. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
  665. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
  666. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
  667. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +8 -0
  668. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
  669. package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
  670. package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
  671. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
  672. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
  673. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +5 -5
  674. package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
  675. package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts +6 -0
  676. package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts.map +1 -0
  677. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
  678. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
  679. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +154 -0
  680. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
  681. package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
  682. package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
  683. package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
  684. package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
  685. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
  686. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
  687. package/lib/typescript/shared/providers/screen/options/types.d.ts +29 -0
  688. package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
  689. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  690. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  691. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
  692. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  693. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
  694. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  695. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +19 -0
  696. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
  698. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
  699. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
  700. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
  702. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
  703. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
  704. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
  705. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
  706. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
  707. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
  708. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  709. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  710. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
  711. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
  712. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
  713. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
  714. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
  715. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
  716. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
  717. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
  718. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  719. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +16 -0
  720. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
  721. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
  722. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
  723. package/lib/typescript/shared/stores/bounds/index.d.ts +7 -29
  724. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  725. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
  726. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
  727. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
  728. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
  729. package/lib/typescript/shared/stores/bounds/internals/{registry.d.ts → links.d.ts} +4 -9
  730. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
  731. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  732. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
  733. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  734. package/lib/typescript/shared/stores/bounds/types.d.ts +8 -3
  735. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  736. package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
  737. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  738. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
  739. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
  740. package/lib/typescript/shared/types/animation.types.d.ts +51 -34
  741. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  742. package/lib/typescript/shared/types/bounds.types.d.ts +20 -1
  743. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  744. package/lib/typescript/shared/types/gesture.types.d.ts +70 -5
  745. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  746. package/lib/typescript/shared/types/index.d.ts +3 -3
  747. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  748. package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
  749. package/lib/typescript/shared/types/screen.types.d.ts +40 -5
  750. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  751. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  752. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  753. package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
  754. package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
  755. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
  756. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
  757. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  758. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  759. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
  760. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
  761. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  762. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -8
  763. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  764. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  765. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
  766. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
  767. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  768. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
  769. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
  770. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
  771. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
  772. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
  773. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
  774. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +18 -0
  775. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
  776. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
  777. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
  778. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
  779. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
  780. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
  781. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +0 -3
  782. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
  783. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
  784. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
  785. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +9 -0
  786. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
  787. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
  788. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
  789. package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
  790. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  791. package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
  792. package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
  793. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -1
  794. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
  795. package/package.json +2 -38
  796. package/src/shared/animation/snap-to.ts +8 -6
  797. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
  798. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -21
  799. package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -12
  800. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
  801. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
  802. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +1 -183
  803. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
  804. package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
  805. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +1 -1
  806. package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +18 -55
  807. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
  808. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -68
  809. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +54 -46
  810. package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
  811. package/src/shared/components/create-boundary-component/types.ts +0 -8
  812. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
  813. package/src/shared/components/create-transition-aware-component.tsx +24 -10
  814. package/src/shared/components/native-screen.tsx +2 -2
  815. package/src/shared/components/overlay/variations/overlay-host.tsx +6 -5
  816. package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +2 -2
  817. package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
  818. package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
  819. package/src/shared/components/screen-container/layers/backdrop.tsx +8 -10
  820. package/src/shared/components/screen-container/layers/content.tsx +2 -2
  821. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
  822. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +2 -0
  823. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +1 -1
  824. package/src/shared/configs/presets.ts +5 -5
  825. package/src/shared/configs/specs.ts +2 -2
  826. package/src/shared/constants.ts +35 -5
  827. package/src/shared/hooks/reanimated/use-animated-debounce.ts +2 -5
  828. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
  829. package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
  830. package/src/shared/hooks/use-stable-callback-value.ts +3 -3
  831. package/src/shared/index.ts +5 -4
  832. package/src/shared/providers/register-bounds.provider.tsx +5 -6
  833. package/src/shared/providers/screen/animation/animation.provider.tsx +4 -0
  834. package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +47 -0
  835. package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
  836. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +222 -56
  837. package/src/shared/providers/screen/animation/helpers/pipeline.ts +70 -92
  838. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +13 -11
  839. package/src/shared/providers/screen/animation/types.ts +5 -5
  840. package/src/shared/providers/screen/animation/use-screen-animation.tsx +29 -10
  841. package/src/shared/providers/screen/gestures/activation/use-pan-activation.ts +244 -0
  842. package/src/shared/providers/screen/gestures/activation/use-pinch-activation.ts +72 -0
  843. package/src/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.ts +195 -0
  844. package/src/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.ts +76 -0
  845. package/src/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.ts +177 -0
  846. package/src/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.ts +73 -0
  847. package/src/shared/providers/screen/gestures/behaviors/use-pan-behavior.ts +100 -0
  848. package/src/shared/providers/screen/gestures/behaviors/use-pinch-behavior.ts +99 -0
  849. package/src/shared/providers/screen/gestures/builders/use-build-pan-gesture.ts +65 -0
  850. package/src/shared/providers/screen/gestures/builders/use-build-pinch-gesture.ts +48 -0
  851. package/src/shared/providers/screen/gestures/gestures.provider.tsx +84 -0
  852. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.ts +33 -48
  853. package/src/shared/providers/screen/gestures/helpers/gesture-directions.ts +205 -0
  854. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-physics.ts +125 -51
  855. package/src/shared/providers/screen/gestures/helpers/gesture-reset.ts +158 -0
  856. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.ts +0 -2
  857. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.ts +14 -36
  858. package/src/shared/providers/screen/gestures/helpers/pan-phases.ts +124 -0
  859. package/src/shared/providers/screen/gestures/helpers/pinch-phases.ts +98 -0
  860. package/src/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.ts +23 -0
  861. package/src/shared/providers/screen/gestures/helpers/runtime-options.ts +159 -0
  862. package/src/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.ts +1 -1
  863. package/src/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.ts +27 -0
  864. package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +35 -0
  865. package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
  866. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +160 -0
  867. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +37 -0
  868. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.ts +1 -0
  869. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.ts +44 -0
  870. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.ts +180 -0
  871. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.ts +72 -0
  872. package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +53 -0
  873. package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
  874. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.ts +24 -28
  875. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +12 -9
  876. package/src/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.ts +15 -0
  877. package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +93 -0
  878. package/src/shared/providers/screen/gestures/types.ts +222 -0
  879. package/src/shared/providers/screen/options/helpers.ts +271 -0
  880. package/src/shared/providers/screen/options/index.ts +6 -0
  881. package/src/shared/providers/screen/options/options.provider.tsx +43 -0
  882. package/src/shared/providers/screen/options/types.ts +35 -0
  883. package/src/shared/providers/screen/screen-composer.tsx +11 -8
  884. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +4 -4
  885. package/src/shared/providers/screen/styles/constants.ts +50 -4
  886. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
  887. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +260 -0
  888. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
  889. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
  890. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
  891. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
  892. package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
  893. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +54 -7
  894. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +5 -0
  895. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +10 -0
  896. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
  897. package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
  898. package/src/shared/stores/bounds/helpers/entries.helpers.ts +74 -0
  899. package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
  900. package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
  901. package/src/shared/stores/bounds/helpers/keys.ts +0 -22
  902. package/src/shared/stores/bounds/helpers/link.helpers.ts +135 -0
  903. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
  904. package/src/shared/stores/bounds/index.ts +13 -191
  905. package/src/shared/stores/bounds/internals/entries.ts +42 -0
  906. package/src/shared/stores/bounds/internals/groups.ts +99 -3
  907. package/src/shared/stores/bounds/internals/links.ts +183 -0
  908. package/src/shared/stores/bounds/internals/resolver.ts +40 -77
  909. package/src/shared/stores/bounds/internals/state.ts +0 -8
  910. package/src/shared/stores/bounds/types.ts +8 -3
  911. package/src/shared/stores/gesture.store.ts +54 -6
  912. package/src/shared/stores/scroll.store.ts +25 -0
  913. package/src/shared/typecheck/public-api.typecheck.ts +101 -51
  914. package/src/shared/types/animation.types.ts +71 -35
  915. package/src/shared/types/bounds.types.ts +28 -1
  916. package/src/shared/types/gesture.types.ts +89 -5
  917. package/src/shared/types/index.ts +6 -0
  918. package/src/shared/types/ownership.types.ts +2 -2
  919. package/src/shared/types/screen.types.ts +43 -6
  920. package/src/shared/utils/animation/animate-to-progress.ts +58 -39
  921. package/src/shared/utils/animation/emit.ts +18 -0
  922. package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
  923. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
  924. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +159 -0
  925. package/src/shared/utils/bounds/helpers/create-interpolators.ts +6 -6
  926. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +64 -9
  927. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +5 -3
  928. package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
  929. package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
  930. package/src/shared/utils/bounds/index.ts +28 -53
  931. package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
  932. package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -56
  933. package/src/shared/utils/bounds/navigation/reveal/build.ts +351 -0
  934. package/src/shared/utils/bounds/navigation/reveal/config.ts +26 -0
  935. package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
  936. package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
  937. package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +42 -193
  938. package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +0 -14
  939. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
  940. package/src/shared/utils/bounds/navigation/zoom/math.ts +27 -0
  941. package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
  942. package/src/shared/utils/bounds/types/options.ts +8 -1
  943. package/src/shared/utils/resolve-chain-target.ts +46 -0
  944. package/src/shared/utils/resolve-screen-transition-options.ts +0 -13
  945. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  946. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
  947. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  948. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
  949. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  950. package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
  951. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
  952. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  953. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
  954. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  955. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
  956. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
  957. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
  958. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  959. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  960. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
  961. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  962. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
  963. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  964. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
  965. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  966. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
  967. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  968. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  969. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  970. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
  971. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  972. package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
  973. package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
  974. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
  975. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
  976. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
  977. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  978. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
  979. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  980. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
  981. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
  982. package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
  983. package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
  984. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
  985. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
  986. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
  987. package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
  988. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
  989. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  990. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
  991. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
  992. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
  993. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  994. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
  995. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  996. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
  997. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  998. package/lib/module/shared/hooks/gestures/types.js.map +0 -1
  999. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
  1000. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  1001. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
  1002. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  1003. package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
  1004. package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
  1005. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
  1006. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1007. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1008. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
  1009. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1010. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
  1011. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1012. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
  1013. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1014. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
  1015. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1016. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1017. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1018. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
  1019. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1020. package/lib/module/shared/providers/gestures/index.js.map +0 -1
  1021. package/lib/module/shared/providers/gestures/types.js.map +0 -1
  1022. package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
  1023. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1024. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
  1025. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1026. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1027. package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
  1028. package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
  1029. package/lib/module/shared/utils/animation/animate-many.js +0 -27
  1030. package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
  1031. package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
  1032. package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
  1033. package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
  1034. package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
  1035. package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1036. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1037. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1038. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1039. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
  1040. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
  1041. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
  1042. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
  1043. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
  1044. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
  1045. package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
  1046. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
  1047. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
  1048. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
  1049. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
  1050. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
  1051. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
  1052. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
  1053. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
  1054. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
  1055. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
  1056. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
  1057. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
  1058. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
  1059. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
  1060. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
  1061. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
  1062. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
  1063. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
  1064. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
  1065. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
  1066. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
  1067. package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
  1068. package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
  1069. package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
  1070. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
  1071. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
  1072. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
  1073. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
  1074. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  1075. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
  1076. package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
  1077. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
  1078. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
  1079. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
  1080. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
  1081. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
  1082. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
  1083. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
  1084. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
  1085. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
  1086. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
  1087. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
  1088. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
  1089. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
  1090. package/src/shared/hooks/gestures/types.ts +0 -5
  1091. package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
  1092. package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
  1093. package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
  1094. package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
  1095. package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
  1096. package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
  1097. package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
  1098. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
  1099. package/src/shared/providers/gestures/types.ts +0 -45
  1100. package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
  1101. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
  1102. package/src/shared/stores/bounds/internals/registry.ts +0 -473
  1103. package/src/shared/utils/animation/animate-many.ts +0 -40
  1104. /package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
  1105. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1106. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +0 -0
  1107. /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1108. /package/lib/module/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
  1109. /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1110. /package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +0 -0
  1111. /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1112. /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
  1113. /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
@@ -5,9 +5,6 @@ type BuildBoundaryMatchKeyParams = {
5
5
  id: BoundaryId;
6
6
  };
7
7
 
8
- export function buildBoundaryMatchKey(
9
- params: BuildBoundaryMatchKeyParams,
10
- ): string;
11
8
  export function buildBoundaryMatchKey(
12
9
  params: BuildBoundaryMatchKeyParams,
13
10
  ): string {
@@ -11,8 +11,8 @@ import Animated, {
11
11
  useComposedEventHandler,
12
12
  } from "react-native-reanimated";
13
13
  import { NO_PROPS, NO_STYLES } from "../constants";
14
- import { useScrollRegistry } from "../hooks/gestures/use-scroll-registry";
15
14
  import { RegisterBoundsProvider } from "../providers/register-bounds.provider";
15
+ import { useScrollGestureCoordination } from "../providers/screen/gestures/hooks/use-scroll-gesture-coordination";
16
16
  import { useScreenStyles } from "../providers/screen/styles";
17
17
  import type { TransitionAwareProps } from "../types/screen.types";
18
18
 
@@ -49,12 +49,17 @@ export function createTransitionAwareComponent<P extends object>(
49
49
  : "vertical";
50
50
 
51
51
  // Get scroll handlers and the gesture owner's nativeGesture for this axis
52
- const { scrollHandler, onContentSizeChange, onLayout, nativeGesture } =
53
- useScrollRegistry({
54
- onContentSizeChange: scrollableProps.onContentSizeChange,
55
- onLayout: scrollableProps.onLayout,
56
- direction: scrollDirection,
57
- });
52
+ const {
53
+ scrollHandler,
54
+ scrollEventsEnabled,
55
+ onContentSizeChange,
56
+ onLayout,
57
+ nativeGesture,
58
+ } = useScrollGestureCoordination({
59
+ onContentSizeChange: scrollableProps.onContentSizeChange,
60
+ onLayout: scrollableProps.onLayout,
61
+ direction: scrollDirection,
62
+ });
58
63
 
59
64
  const composedScrollHandler = useComposedEventHandler([
60
65
  scrollHandler,
@@ -65,12 +70,22 @@ export function createTransitionAwareComponent<P extends object>(
65
70
  <AnimatedComponent
66
71
  {...(scrollableProps as any)}
67
72
  ref={ref}
68
- onScroll={composedScrollHandler}
73
+ /**
74
+ * Keep the scroll listener detached while the owning gesture screen is
75
+ * closing. On iOS, a bounced ScrollView can keep sending native scroll
76
+ * events after the transition gesture activates, which competes with
77
+ * close animation work on the UI thread.
78
+ */
79
+ onScroll={scrollEventsEnabled ? composedScrollHandler : undefined}
69
80
  onMomentumScrollEnd={userOnMomentumScrollEnd}
70
81
  onScrollEndDrag={userOnScrollEndDrag}
71
82
  onContentSizeChange={onContentSizeChange}
72
83
  onLayout={onLayout}
73
- scrollEventThrottle={scrollableProps.scrollEventThrottle || 16}
84
+ scrollEventThrottle={
85
+ scrollEventsEnabled
86
+ ? scrollableProps.scrollEventThrottle || 16
87
+ : undefined
88
+ }
74
89
  />
75
90
  );
76
91
 
@@ -78,7 +93,6 @@ export function createTransitionAwareComponent<P extends object>(
78
93
  return scrollableComponent;
79
94
  }
80
95
 
81
- // If no gesture owner found for this axis, render without GestureDetector
82
96
  return (
83
97
  <GestureDetector gesture={nativeGesture}>
84
98
  {scrollableComponent}
@@ -74,7 +74,7 @@ export const NativeScreen = ({
74
74
  return;
75
75
  }
76
76
 
77
- const focusedIndex = optimisticFocusedIndex.value;
77
+ const focusedIndex = optimisticFocusedIndex.get();
78
78
  const topIsClosing =
79
79
  topSceneClosing.get() > 0 && focusedIndex >= 0 && focusedIndex < topIndex;
80
80
 
@@ -120,7 +120,7 @@ export const NativeScreen = ({
120
120
  const animatedProps = useAnimatedProps(() => {
121
121
  const activity = screenActivity.get();
122
122
  const isClosing = sceneClosing.get() > 0;
123
- const activeIndex = optimisticFocusedIndex.value;
123
+ const activeIndex = optimisticFocusedIndex.get();
124
124
  const isActive = index === activeIndex;
125
125
 
126
126
  // Check if the active screen allows passthrough to the screen below
@@ -27,7 +27,7 @@ export const OverlayHost = memo(function OverlayHost({
27
27
  const screenAnimation = useScreenAnimation();
28
28
  const relativeProgress = useDerivedValue(() => {
29
29
  "worklet";
30
- return screenAnimation.value.stackProgress;
30
+ return screenAnimation.get().stackProgress;
31
31
  });
32
32
 
33
33
  const overlayProps: OverlayProps<BaseDescriptor["navigation"]> = useMemo(
@@ -45,11 +45,14 @@ export const OverlayHost = memo(function OverlayHost({
45
45
  return (
46
46
  <Animated.View
47
47
  pointerEvents="box-none"
48
- style={[styles.container, styles.floating, styles.absolute]}
48
+ style={[styles.container, styles.floating, StyleSheet.absoluteFill]}
49
49
  >
50
50
  <NavigationContext.Provider value={scene.descriptor.navigation as any}>
51
51
  <NavigationRouteContext.Provider value={scene.route}>
52
- <View pointerEvents="box-none" style={styles.overlay}>
52
+ <View
53
+ pointerEvents="box-none"
54
+ style={[StyleSheet.absoluteFill, styles.overlay]}
55
+ >
53
56
  <OverlayComponent {...overlayProps} />
54
57
  </View>
55
58
  </NavigationRouteContext.Provider>
@@ -60,13 +63,11 @@ export const OverlayHost = memo(function OverlayHost({
60
63
 
61
64
  const styles = StyleSheet.create({
62
65
  overlay: {
63
- ...StyleSheet.absoluteFillObject,
64
66
  zIndex: 1,
65
67
  },
66
68
  container: {
67
69
  flex: 1,
68
70
  },
69
- absolute: StyleSheet.absoluteFillObject,
70
71
  floating: {
71
72
  zIndex: 1000,
72
73
  },
@@ -1,5 +1,5 @@
1
- import { EPSILON } from "../../constants";
2
- import { sanitizeSnapPoints } from "./validate-snap-points";
1
+ import { EPSILON } from "../../../constants";
2
+ import { sanitizeSnapPoints } from "../../../providers/screen/gestures/helpers/validate-snap-points";
3
3
 
4
4
  interface FindCollapseTargetResult {
5
5
  target: number;
@@ -1,4 +1,7 @@
1
+ import { useState } from "react";
2
+ import { runOnJS, useAnimatedReaction } from "react-native-reanimated";
1
3
  import { useDescriptors } from "../../../providers/screen/descriptors";
4
+ import { useScreenOptionsContext } from "../../../providers/screen/options";
2
5
  import { useStackCoreContext } from "../../../providers/stack/core.provider";
3
6
  import type { BackdropBehavior } from "../../../types/screen.types";
4
7
  import { StackType } from "../../../types/stack.types";
@@ -12,16 +15,33 @@ interface BackdropPointerEventsResult {
12
15
  /**
13
16
  * Returns pointer events and backdrop behavior based on screen options.
14
17
  *
15
- * - Explicit `backdropBehavior` option takes precedence
18
+ * - Runtime interpolator `backdropBehavior` takes precedence
19
+ * - Explicit descriptor `backdropBehavior` option is next
16
20
  * - Component stacks default to 'passthrough' (box-none)
17
21
  * - Other stacks default to 'block' (undefined = normal touch handling)
18
22
  */
19
23
  export function useBackdropPointerEvents(): BackdropPointerEventsResult {
20
24
  const { current } = useDescriptors();
25
+ const screenOptions = useScreenOptionsContext();
21
26
  const { flags } = useStackCoreContext();
27
+ const [runtimeBackdropBehavior, setRuntimeBackdropBehavior] = useState<
28
+ BackdropBehavior | undefined
29
+ >(undefined);
30
+
31
+ useAnimatedReaction(
32
+ () => screenOptions.get().backdropBehavior,
33
+ (next, previous) => {
34
+ "worklet";
35
+ if (next !== previous) {
36
+ runOnJS(setRuntimeBackdropBehavior)(next);
37
+ }
38
+ },
39
+ [screenOptions],
40
+ );
22
41
 
23
42
  const isComponentStack = flags.STACK_TYPE === StackType.COMPONENT;
24
43
  const backdropBehavior: BackdropBehavior =
44
+ runtimeBackdropBehavior ??
25
45
  current.options.backdropBehavior ??
26
46
  (isComponentStack ? "passthrough" : "block");
27
47
 
@@ -35,25 +35,25 @@ export function useContentLayout() {
35
35
 
36
36
  runOnUI((nextWidth: number, nextHeight: number, nextFraction: number) => {
37
37
  "worklet";
38
- measuredContentLayout.value = {
38
+ measuredContentLayout.set({
39
39
  width: nextWidth,
40
40
  height: nextHeight,
41
- };
41
+ });
42
42
 
43
- const isFirstMeasurement = resolvedAutoSnapPoint.value <= 0;
44
- resolvedAutoSnapPoint.value = nextFraction;
43
+ const isFirstMeasurement = resolvedAutoSnapPoint.get() <= 0;
44
+ resolvedAutoSnapPoint.set(nextFraction);
45
45
 
46
46
  if (
47
47
  !isFirstMeasurement ||
48
- animations.progress.value !== 0 ||
49
- animations.animating.value !== 0
48
+ animations.progress.get() !== 0 ||
49
+ animations.animating.get() !== 0
50
50
  ) {
51
51
  return;
52
52
  }
53
53
 
54
54
  if (isFirstKey && !experimental_animateOnInitialMount) {
55
- targetProgress.value = nextFraction;
56
- animations.progress.value = nextFraction;
55
+ targetProgress.set(nextFraction);
56
+ animations.progress.set(nextFraction);
57
57
  return;
58
58
  }
59
59
 
@@ -15,7 +15,7 @@ import { GestureStore } from "../../../stores/gesture.store";
15
15
  import { SystemStore } from "../../../stores/system.store";
16
16
  import type { BackdropBehavior } from "../../../types/screen.types";
17
17
  import { animateToProgress } from "../../../utils/animation/animate-to-progress";
18
- import { findCollapseTarget } from "../../../utils/gesture/find-collapse-target";
18
+ import { findCollapseTarget } from "../helpers/find-collapse-target";
19
19
 
20
20
  export const BackdropLayer = memo(function BackdropLayer({
21
21
  backdropBehavior,
@@ -65,20 +65,20 @@ export const BackdropLayer = memo(function BackdropLayer({
65
65
  "worklet";
66
66
  const resolvedSnaps = rawSnapPoints
67
67
  .map((point) =>
68
- point === "auto" ? resolvedAutoSnapPoint.value : point,
68
+ point === "auto" ? resolvedAutoSnapPoint.get() : point,
69
69
  )
70
70
  .filter((point): point is number => typeof point === "number");
71
71
 
72
72
  const { target, shouldDismiss } = findCollapseTarget(
73
- animations.progress.value,
73
+ animations.progress.get(),
74
74
  resolvedSnaps,
75
75
  canDismiss,
76
76
  );
77
77
 
78
78
  // If already dismissing, skip
79
- if (gestures.dismissing.value) return;
79
+ if (gestures.dismissing.get()) return;
80
80
 
81
- gestures.dismissing.value = shouldDismiss ? 1 : 0;
81
+ gestures.dismissing.set(shouldDismiss ? 1 : 0);
82
82
 
83
83
  const spec = shouldDismiss
84
84
  ? transitionSpec
@@ -118,7 +118,7 @@ export const BackdropLayer = memo(function BackdropLayer({
118
118
 
119
119
  return (
120
120
  <Pressable
121
- style={StyleSheet.absoluteFillObject}
121
+ style={StyleSheet.absoluteFill}
122
122
  pointerEvents={isBackdropActive ? "auto" : "none"}
123
123
  onPress={isBackdropActive ? handleBackdropPress : undefined}
124
124
  >
@@ -127,13 +127,11 @@ export const BackdropLayer = memo(function BackdropLayer({
127
127
  * animated style with animatedProps can break intensity updates. */}
128
128
  {AnimatedBackdropComponent && (
129
129
  <AnimatedBackdropComponent
130
- style={[StyleSheet.absoluteFillObject]}
130
+ style={[StyleSheet.absoluteFill]}
131
131
  animatedProps={animatedBackdropProps}
132
132
  />
133
133
  )}
134
- <Animated.View
135
- style={[StyleSheet.absoluteFillObject, animatedBackdropStyle]}
136
- />
134
+ <Animated.View style={[StyleSheet.absoluteFill, animatedBackdropStyle]} />
137
135
  </Pressable>
138
136
  );
139
137
  });
@@ -7,8 +7,8 @@ import Animated, {
7
7
  useAnimatedStyle,
8
8
  } from "react-native-reanimated";
9
9
  import { NO_PROPS, NO_STYLES } from "../../../constants";
10
- import { useGestureContext } from "../../../providers/gestures";
11
10
  import { useDescriptors } from "../../../providers/screen/descriptors";
11
+ import { useGestureContext } from "../../../providers/screen/gestures";
12
12
  import { useScreenStyles } from "../../../providers/screen/styles";
13
13
  import { useContentLayout } from "../hooks/use-content-layout";
14
14
  import { MaybeMaskedNavigationContainer } from "./maybe-masked-navigation-container";
@@ -45,7 +45,7 @@ export const ContentLayer = memo(
45
45
  });
46
46
 
47
47
  return (
48
- <GestureDetector gesture={gestureContext!.panGesture}>
48
+ <GestureDetector gesture={gestureContext!.detectorGesture}>
49
49
  <Animated.View
50
50
  style={[styles.content, animatedContentStyle]}
51
51
  animatedProps={animatedContentProps}
@@ -76,7 +76,6 @@ export const MaybeMaskedNavigationContainer = memo(
76
76
  styles.navigationContainer,
77
77
  animatedNavigationMaskContainerStyle,
78
78
  ]}
79
- pointerEvents={pointerEvents}
80
79
  collapsable={false}
81
80
  >
82
81
  {children}
@@ -6,6 +6,7 @@ import {
6
6
  clearByBranch,
7
7
  } from "../../../../stores/bounds/internals/clear";
8
8
  import { GestureStore } from "../../../../stores/gesture.store";
9
+ import { ScrollStore } from "../../../../stores/scroll.store";
9
10
  import { SystemStore } from "../../../../stores/system.store";
10
11
 
11
12
  export function resetStoresForScreen(
@@ -15,6 +16,7 @@ export function resetStoresForScreen(
15
16
  ) {
16
17
  AnimationStore.clearBag(routeKey);
17
18
  GestureStore.clearBag(routeKey);
19
+ ScrollStore.clearBag(routeKey);
18
20
  SystemStore.clearBag(routeKey);
19
21
 
20
22
  runOnUI(() => {
@@ -47,7 +47,7 @@ const useManagedClose = ({
47
47
 
48
48
  useAnimatedReaction(
49
49
  () => {
50
- const keys = closingRouteKeysShared.value;
50
+ const keys = closingRouteKeysShared.get();
51
51
  return keys?.includes(routeKey) ?? false;
52
52
  },
53
53
  (isClosing, wasClosing) => {
@@ -407,18 +407,18 @@ export const SharedAppleMusic = ({
407
407
 
408
408
  const normX = active.gesture.normX;
409
409
  const normY = active.gesture.normY;
410
- const initialDirection = active.gesture.direction;
410
+ const initialGesture = active.gesture.active ?? active.gesture.direction;
411
411
 
412
412
  /**
413
413
  * ===============================
414
414
  * Animations for both bounds
415
415
  * ===============================
416
416
  */
417
- const xResistance = initialDirection === "horizontal" ? 0.7 : 0.4;
418
- const yResistance = initialDirection === "vertical" ? 0.7 : 0.4;
417
+ const xResistance = initialGesture === "horizontal" ? 0.7 : 0.4;
418
+ const yResistance = initialGesture === "vertical" ? 0.7 : 0.4;
419
419
 
420
- const xScaleOuput = initialDirection === "horizontal" ? [1, 0.5] : [1, 1];
421
- const yScaleOuput = initialDirection === "vertical" ? [1, 0.5] : [1, 1];
420
+ const xScaleOuput = initialGesture === "horizontal" ? [1, 0.5] : [1, 1];
421
+ const yScaleOuput = initialGesture === "vertical" ? [1, 0.5] : [1, 1];
422
422
 
423
423
  const dragX = interpolate(
424
424
  normX,
@@ -4,8 +4,8 @@ export const DefaultSpec: WithSpringConfig = {
4
4
  stiffness: 1000,
5
5
  damping: 500,
6
6
  mass: 3,
7
- overshootClamping: true,
8
- // @ts-expect-error
7
+ overshootClamping: false,
8
+ // @ts-expect-error Reanimated v3 spring config support.
9
9
  restSpeedThreshold: 0.02,
10
10
  };
11
11
 
@@ -1,9 +1,12 @@
1
1
  import type { ParamListBase, RouteProp } from "@react-navigation/native";
2
2
  import { Platform } from "react-native";
3
3
  import type { MeasuredDimensions } from "react-native-reanimated";
4
- import type { ScreenTransitionState } from "./types/animation.types";
4
+ import type {
5
+ ScreenTransitionOptions,
6
+ ScreenTransitionState,
7
+ } from "./types/animation.types";
5
8
  import type { ActivationArea } from "./types/gesture.types";
6
- import type { Layout } from "./types/screen.types";
9
+ import type { Layout, SheetScrollGestureBehavior } from "./types/screen.types";
7
10
  import type { BaseStackRoute } from "./types/stack.types";
8
11
 
9
12
  /**
@@ -31,13 +34,24 @@ export const NO_PROPS = Object.freeze({});
31
34
  /**
32
35
  * Default gesture values
33
36
  */
34
- const DEFAULT_GESTURE_VALUES = {
37
+ const DEFAULT_RAW_GESTURE_VALUES = {
35
38
  x: 0,
36
39
  y: 0,
37
40
  normX: 0,
38
41
  normY: 0,
42
+ scale: 1,
43
+ normScale: 0,
44
+ } as const;
45
+
46
+ const DEFAULT_GESTURE_VALUES = {
47
+ ...DEFAULT_RAW_GESTURE_VALUES,
48
+ focalX: 0,
49
+ focalY: 0,
50
+ raw: DEFAULT_RAW_GESTURE_VALUES,
39
51
  dismissing: 0,
40
52
  dragging: 0,
53
+ settling: 0,
54
+ active: null,
41
55
  direction: null,
42
56
 
43
57
  // Deprecated aliases
@@ -47,6 +61,14 @@ const DEFAULT_GESTURE_VALUES = {
47
61
  isDragging: 0,
48
62
  } as const;
49
63
 
64
+ const createDefaultGestureValues = () => ({
65
+ ...DEFAULT_GESTURE_VALUES,
66
+ raw: { ...DEFAULT_RAW_GESTURE_VALUES },
67
+ });
68
+
69
+ export const DEFAULT_SCREEN_TRANSITION_OPTIONS: ScreenTransitionOptions =
70
+ Object.freeze({});
71
+
50
72
  /**
51
73
  * Creates a new screen transition state object
52
74
  */
@@ -54,6 +76,7 @@ export const createScreenTransitionState = (
54
76
  route: BaseStackRoute,
55
77
  meta?: Record<string, unknown>,
56
78
  navigationMaskEnabled = false,
79
+ options: ScreenTransitionOptions = DEFAULT_SCREEN_TRANSITION_OPTIONS,
57
80
  ): ScreenTransitionState => ({
58
81
  progress: 0,
59
82
  closing: 0,
@@ -62,9 +85,10 @@ export const createScreenTransitionState = (
62
85
  settled: 1,
63
86
  logicallySettled: 1,
64
87
  entering: 0,
65
- gesture: { ...DEFAULT_GESTURE_VALUES },
88
+ gesture: createDefaultGestureValues(),
66
89
  route,
67
90
  meta,
91
+ options,
68
92
  layouts: {
69
93
  screen: {
70
94
  width: 0,
@@ -72,6 +96,7 @@ export const createScreenTransitionState = (
72
96
  },
73
97
  navigationMaskEnabled,
74
98
  },
99
+ animatedSnapIndex: -1,
75
100
  snapIndex: -1,
76
101
  });
77
102
 
@@ -87,8 +112,9 @@ export const DEFAULT_SCREEN_TRANSITION_STATE: ScreenTransitionState =
87
112
  settled: 1,
88
113
  logicallySettled: 1,
89
114
  entering: 0,
90
- gesture: DEFAULT_GESTURE_VALUES,
115
+ gesture: createDefaultGestureValues(),
91
116
  route: {} as RouteProp<ParamListBase>,
117
+ options: DEFAULT_SCREEN_TRANSITION_OPTIONS,
92
118
  layouts: {
93
119
  screen: {
94
120
  width: 0,
@@ -96,6 +122,7 @@ export const DEFAULT_SCREEN_TRANSITION_STATE: ScreenTransitionState =
96
122
  },
97
123
  navigationMaskEnabled: false,
98
124
  },
125
+ animatedSnapIndex: -1,
99
126
  snapIndex: -1,
100
127
  });
101
128
 
@@ -131,11 +158,14 @@ export const FULLSCREEN_DIMENSIONS = (
131
158
  export const DEFAULT_GESTURE_VELOCITY_IMPACT = 0.3;
132
159
  export const DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT = 0.1;
133
160
  export const DEFAULT_GESTURE_RELEASE_VELOCITY_MAX = 3.2;
161
+ export const DEFAULT_GESTURE_SENSITIVITY = 1;
134
162
  export const DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE = 1;
135
163
  export const DEFAULT_GESTURE_DIRECTION = "horizontal";
136
164
  export const DEFAULT_GESTURE_DRIVES_PROGRESS = true;
137
165
  export const DEFAULT_GESTURE_SNAP_LOCKED = false;
138
166
  export const DEFAULT_GESTURE_ACTIVATION_AREA: ActivationArea = "screen";
167
+ export const DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR: SheetScrollGestureBehavior =
168
+ "expand-and-collapse";
139
169
 
140
170
  export const IS_WEB = Platform.OS === "web";
141
171
 
@@ -28,10 +28,7 @@ export function useAnimatedDebounce(
28
28
  const trigger = () => {
29
29
  "worklet";
30
30
  cancelAnimation(token);
31
- token.value = withDelay(
32
- delayMs,
33
- withTiming(token.value + 1, { duration: 0 }),
34
- );
31
+ token.set(withDelay(delayMs, withTiming(token.get() + 1, { duration: 0 })));
35
32
  };
36
33
 
37
34
  const cancel = () => {
@@ -40,7 +37,7 @@ export function useAnimatedDebounce(
40
37
  };
41
38
 
42
39
  useAnimatedReaction(
43
- () => token.value,
40
+ () => token.get(),
44
41
  (nextToken, previousToken) => {
45
42
  "worklet";
46
43
  if (nextToken === 0 || nextToken === previousToken) {
@@ -9,11 +9,11 @@ import { IS_WEB } from "../../constants";
9
9
 
10
10
  export function readInitialValue<T>(sharedValue: SharedValue<T>): T {
11
11
  if (IS_WEB) {
12
- return sharedValue.value;
12
+ return sharedValue.get();
13
13
  }
14
14
  const readOnUI = executeOnUIRuntimeSync((sv: SharedValue<T>) => {
15
15
  "worklet";
16
- return sv.value;
16
+ return sv.get();
17
17
  });
18
18
  return readOnUI(sharedValue);
19
19
  }
@@ -32,7 +32,7 @@ export function useSharedValueRef<T>(
32
32
  }, []);
33
33
 
34
34
  useAnimatedReaction(
35
- () => sharedValue.value,
35
+ () => sharedValue.get(),
36
36
  (value, previousValue) => {
37
37
  if (Object.is(value, previousValue)) return;
38
38
  runOnJS(updateRef)(value);
@@ -14,7 +14,7 @@ export function useSharedValueState<T>(sharedValue: SharedValue<T>): T {
14
14
  const [state, setState] = useState<T>(() => readInitialValue(sharedValue));
15
15
 
16
16
  useAnimatedReaction(
17
- () => sharedValue.value,
17
+ () => sharedValue.get(),
18
18
  (value, previousValue) => {
19
19
  if (Object.is(value, previousValue)) return;
20
20
  runOnJS(setState)(value);
@@ -60,16 +60,16 @@ export default function useStableCallbackValue<C extends AnyFunction>(
60
60
 
61
61
  useEffect(() => {
62
62
  if (callback) {
63
- stableCallback.value = wrap(callback);
63
+ stableCallback.set(wrap(callback));
64
64
  } else {
65
- stableCallback.value = null;
65
+ stableCallback.set(null);
66
66
  }
67
67
  }, [callback, stableCallback]);
68
68
 
69
69
  return useCallback(
70
70
  (...args: Parameters<C>) => {
71
71
  "worklet";
72
- stableCallback.value?.call(...args);
72
+ stableCallback.get()?.call(...args);
73
73
  },
74
74
  [stableCallback],
75
75
  );
@@ -30,10 +30,6 @@ export {
30
30
  NAVIGATION_MASK_ELEMENT_STYLE_ID,
31
31
  TRANSFORM_RESET,
32
32
  } from "./constants";
33
- export {
34
- type ScreenGestureTarget,
35
- useScreenGesture,
36
- } from "./hooks/gestures/use-screen-gesture";
37
33
  export { useHistory } from "./hooks/navigation/use-history";
38
34
  export {
39
35
  type ScreenState,
@@ -43,11 +39,16 @@ export {
43
39
  type ScreenAnimationTarget,
44
40
  useScreenAnimation,
45
41
  } from "./providers/screen/animation";
42
+ export {
43
+ type ScreenGestureTarget,
44
+ useScreenGesture,
45
+ } from "./providers/screen/gestures/hooks/use-screen-gesture";
46
46
 
47
47
  export type {
48
48
  AnimatedViewStyle,
49
49
  AnimationConfig,
50
50
  BoundsNavigationAccessor,
51
+ BoundsNavigationRevealStyle,
51
52
  BoundsNavigationZoomOpacityRange,
52
53
  BoundsNavigationZoomOpacityRanges,
53
54
  BoundsNavigationZoomOptions,
@@ -11,16 +11,16 @@ import {
11
11
  useSharedValue,
12
12
  } from "react-native-reanimated";
13
13
  import type { SharedValue } from "react-native-reanimated/lib/typescript/commonTypes";
14
+ import { applyMeasuredBoundsWrites } from "../components/create-boundary-component/helpers/apply-measured-bounds-writes";
14
15
  import useStableCallback from "../hooks/use-stable-callback";
15
16
  import useStableCallbackValue from "../hooks/use-stable-callback-value";
16
17
  import { AnimationStore } from "../stores/animation.store";
17
- import { applyMeasuredBoundsWrites } from "../stores/bounds/helpers/apply-measured-bounds-writes";
18
+ import { getEntry } from "../stores/bounds/internals/entries";
18
19
  import {
19
- getMeasuredEntry,
20
20
  getPendingLink,
21
21
  hasDestinationLink,
22
22
  hasSourceLink,
23
- } from "../stores/bounds/internals/registry";
23
+ } from "../stores/bounds/internals/links";
24
24
  import { prepareStyleForBounds } from "../utils/bounds/helpers/styles/styles";
25
25
  import createProvider from "../utils/create-provider";
26
26
  import { useDescriptorDerivations, useDescriptors } from "./screen/descriptors";
@@ -281,8 +281,8 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
281
281
  }
282
282
 
283
283
  if (shouldSetSource && isAnimating.get()) {
284
- const existing = getMeasuredEntry(sharedBoundTag, currentScreenKey);
285
- if (existing) {
284
+ const existing = getEntry(sharedBoundTag, currentScreenKey);
285
+ if (existing?.bounds) {
286
286
  applyMeasuredBoundsWrites({
287
287
  sharedBoundTag,
288
288
  ancestorKeys,
@@ -344,7 +344,6 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
344
344
  ancestorKeys,
345
345
  navigatorKey,
346
346
  ancestorNavigatorKeys,
347
- shouldWriteEntry: true,
348
347
  shouldSetSource: canSetSource,
349
348
  shouldUpdateSource: canUpdateSource,
350
349
  shouldSetDestination: canSetDestination,
@@ -28,6 +28,7 @@ export const {
28
28
 
29
29
  const {
30
30
  screenInterpolatorProps,
31
+ screenInterpolatorFrameUpdater,
31
32
  nextInterpolator,
32
33
  currentInterpolator,
33
34
  boundsAccessor,
@@ -37,6 +38,8 @@ export const {
37
38
  ? [
38
39
  {
39
40
  screenInterpolatorProps: parentContext.screenInterpolatorProps,
41
+ screenInterpolatorFrameUpdater:
42
+ parentContext.screenInterpolatorFrameUpdater,
40
43
  boundsAccessor: parentContext.boundsAccessor,
41
44
  },
42
45
  ...parentContext.ancestorScreenAnimationSources,
@@ -46,6 +49,7 @@ export const {
46
49
  return {
47
50
  value: {
48
51
  screenInterpolatorProps,
52
+ screenInterpolatorFrameUpdater,
49
53
  nextInterpolator,
50
54
  currentInterpolator,
51
55
  boundsAccessor,