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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1288) 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 +22 -29
  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 +43 -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 +14 -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 +5 -15
  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} +26 -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 -38
  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 +29 -31
  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 +1 -1
  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 +18 -13
  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 +12 -5
  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 +18 -11
  50. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  51. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +16 -5
  52. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  53. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -12
  54. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  55. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
  56. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  57. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
  58. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  59. package/lib/commonjs/shared/configs/presets.js +8 -8
  60. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  61. package/lib/commonjs/shared/configs/specs.js +2 -2
  62. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  63. package/lib/commonjs/shared/constants.js +40 -9
  64. package/lib/commonjs/shared/constants.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  66. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  67. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  68. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  69. package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
  70. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  71. package/lib/commonjs/shared/index.js +1 -1
  72. package/lib/commonjs/shared/index.js.map +1 -1
  73. package/lib/commonjs/shared/providers/register-bounds.provider.js +12 -20
  74. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +86 -8
  76. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +23 -0
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +107 -0
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
  81. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +38 -0
  82. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  83. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
  84. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +79 -0
  86. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
  87. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +95 -0
  88. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
  89. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +29 -0
  90. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
  91. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +96 -0
  92. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
  93. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +6 -0
  94. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
  95. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +60 -87
  96. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  97. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +51 -0
  98. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
  99. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
  100. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  101. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +57 -18
  102. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  103. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
  104. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  105. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
  106. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  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/screen/gestures/hooks/use-gesture-builder-state.js +32 -0
  110. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  111. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
  112. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  113. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +27 -0
  114. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  115. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +32 -0
  116. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  117. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
  118. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  119. package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
  120. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +74 -0
  121. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  122. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +20 -7
  123. package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  124. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +108 -0
  125. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  126. package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js +50 -0
  127. package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
  128. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js +210 -0
  129. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
  130. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js +314 -0
  131. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
  132. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +94 -0
  133. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
  134. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +123 -0
  135. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
  136. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +193 -0
  137. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
  138. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +52 -0
  139. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
  140. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +53 -0
  141. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
  142. package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +43 -0
  143. package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
  144. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +55 -0
  145. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
  146. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +94 -0
  147. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
  148. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js +133 -0
  149. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
  150. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js +45 -0
  151. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
  152. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +53 -0
  153. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
  154. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js +13 -0
  155. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
  156. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +44 -0
  157. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
  158. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +134 -0
  159. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
  160. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +56 -0
  161. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  162. package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js +23 -0
  163. package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
  164. package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js +146 -0
  165. package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js.map +1 -0
  166. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +212 -0
  167. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -0
  168. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +231 -0
  169. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -0
  170. package/lib/commonjs/shared/providers/screen/gestures/shared/release.js +36 -0
  171. package/lib/commonjs/shared/providers/screen/gestures/shared/release.js.map +1 -0
  172. package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js +65 -0
  173. package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js.map +1 -0
  174. package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js +43 -0
  175. package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
  176. package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js +184 -0
  177. package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
  178. package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js +122 -0
  179. package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js.map +1 -0
  180. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +2 -2
  181. package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
  182. package/lib/commonjs/shared/providers/screen/options/helpers.js +176 -0
  183. package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
  184. package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
  185. package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
  186. package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
  187. package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
  188. package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
  189. package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
  190. package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
  191. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  192. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  193. package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
  194. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  195. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  196. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  197. package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +26 -0
  198. package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
  199. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +294 -0
  200. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  201. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
  202. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  203. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
  204. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  205. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
  206. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  207. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  208. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
  209. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  210. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +45 -0
  211. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
  212. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +69 -10
  213. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  214. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +34 -8
  215. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  216. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +19 -2
  217. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  218. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  219. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  220. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  221. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  222. package/lib/commonjs/shared/stores/animation.store.js +3 -7
  223. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  224. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +49 -0
  225. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  226. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
  227. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  228. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
  229. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  230. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
  231. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  232. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
  233. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  234. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +1 -10
  235. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -1
  236. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
  237. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  238. package/lib/commonjs/shared/stores/bounds/index.js +16 -101
  239. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  240. package/lib/commonjs/shared/stores/bounds/internals/clear.js +0 -21
  241. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  242. package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
  243. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
  244. package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
  245. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
  246. package/lib/commonjs/shared/stores/bounds/internals/links.js +120 -0
  247. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
  248. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
  249. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  250. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
  251. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  252. package/lib/commonjs/shared/stores/gesture.store.js +31 -1
  253. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  254. package/lib/commonjs/shared/stores/scroll.store.js +22 -0
  255. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
  256. package/lib/commonjs/shared/stores/system.store.js +3 -0
  257. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  258. package/lib/commonjs/shared/types/gesture.types.js +6 -6
  259. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  260. package/lib/commonjs/shared/types/ownership.types.js +2 -2
  261. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +52 -36
  262. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  263. package/lib/commonjs/shared/utils/animation/emit.js +22 -0
  264. package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
  265. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
  266. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  267. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
  268. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  269. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  270. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  271. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  272. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  273. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
  274. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  275. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
  276. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  277. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  278. package/lib/commonjs/shared/utils/bounds/index.js +34 -59
  279. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  280. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
  281. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
  282. package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +2 -55
  283. package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
  284. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +375 -0
  285. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  286. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +20 -0
  287. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  288. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
  289. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  290. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
  291. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  292. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +111 -147
  293. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  294. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +2 -14
  295. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  296. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
  297. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  298. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +25 -0
  299. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  300. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
  301. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  302. package/lib/commonjs/shared/utils/gesture-progress-mode.js +50 -0
  303. package/lib/commonjs/shared/utils/gesture-progress-mode.js.map +1 -0
  304. package/lib/commonjs/shared/utils/resolve-chain-target.js +29 -0
  305. package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
  306. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +3 -10
  307. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
  308. package/lib/module/shared/animation/snap-to.js +4 -6
  309. package/lib/module/shared/animation/snap-to.js.map +1 -1
  310. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
  311. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  312. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -30
  313. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  314. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +38 -0
  315. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  316. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  317. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  318. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
  319. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  320. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +11 -138
  321. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  322. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
  323. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  324. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
  325. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  326. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -13
  327. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  328. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +96 -0
  329. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  330. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
  331. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  332. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -40
  333. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  334. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +29 -31
  335. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  336. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  337. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  338. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  339. package/lib/module/shared/components/create-transition-aware-component.js +12 -7
  340. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  341. package/lib/module/shared/components/native-screen.js +2 -2
  342. package/lib/module/shared/components/native-screen.js.map +1 -1
  343. package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
  344. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  345. package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +17 -12
  346. package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  347. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  348. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  349. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  350. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  351. package/lib/module/shared/components/screen-container/layers/backdrop.js +12 -5
  352. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  353. package/lib/module/shared/components/screen-container/layers/content.js +2 -2
  354. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  355. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
  356. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  357. package/lib/module/shared/components/screen-container/layers/surface-container.js +16 -5
  358. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  359. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +5 -13
  360. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  361. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
  362. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  363. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
  364. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  365. package/lib/module/shared/configs/presets.js +8 -8
  366. package/lib/module/shared/configs/presets.js.map +1 -1
  367. package/lib/module/shared/configs/specs.js +2 -2
  368. package/lib/module/shared/configs/specs.js.map +1 -1
  369. package/lib/module/shared/constants.js +39 -8
  370. package/lib/module/shared/constants.js.map +1 -1
  371. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  372. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  373. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  374. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  375. package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
  376. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  377. package/lib/module/shared/index.js +1 -1
  378. package/lib/module/shared/index.js.map +1 -1
  379. package/lib/module/shared/providers/register-bounds.provider.js +9 -17
  380. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  381. package/lib/module/shared/providers/screen/animation/animation.provider.js +87 -9
  382. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  383. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +18 -0
  384. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
  385. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +101 -0
  386. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
  387. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +33 -0
  388. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  389. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
  390. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  391. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +74 -0
  392. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
  393. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +85 -0
  394. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
  395. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +22 -0
  396. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
  397. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +89 -0
  398. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
  399. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +4 -0
  400. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
  401. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +62 -89
  402. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  403. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +46 -0
  404. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
  405. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
  406. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  407. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +58 -18
  408. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  409. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
  410. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  411. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
  412. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  413. package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
  414. package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  415. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +27 -0
  416. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  417. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
  418. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  419. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +23 -0
  420. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  421. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +27 -0
  422. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  423. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
  424. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  425. package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
  426. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +70 -0
  427. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  428. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +19 -7
  429. package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  430. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +104 -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/pan/build-pan-gesture.js +45 -0
  433. package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
  434. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js +205 -0
  435. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
  436. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js +304 -0
  437. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
  438. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +89 -0
  439. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
  440. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +116 -0
  441. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
  442. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +185 -0
  443. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
  444. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +47 -0
  445. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
  446. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +48 -0
  447. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
  448. package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +38 -0
  449. package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
  450. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +50 -0
  451. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
  452. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +87 -0
  453. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
  454. package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js +126 -0
  455. package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
  456. package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js +40 -0
  457. package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
  458. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +48 -0
  459. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
  460. package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js +4 -0
  461. package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
  462. package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +39 -0
  463. package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
  464. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +128 -0
  465. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
  466. package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +52 -0
  467. package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  468. package/lib/module/shared/providers/screen/gestures/shared/ancestors.js +19 -0
  469. package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
  470. package/lib/module/shared/providers/screen/gestures/shared/directions.js +135 -0
  471. package/lib/module/shared/providers/screen/gestures/shared/directions.js.map +1 -0
  472. package/lib/module/shared/providers/screen/gestures/shared/physics.js +199 -0
  473. package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -0
  474. package/lib/module/shared/providers/screen/gestures/shared/policy.js +218 -0
  475. package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -0
  476. package/lib/module/shared/providers/screen/gestures/shared/release.js +30 -0
  477. package/lib/module/shared/providers/screen/gestures/shared/release.js.map +1 -0
  478. package/lib/module/shared/providers/screen/gestures/shared/reset.js +58 -0
  479. package/lib/module/shared/providers/screen/gestures/shared/reset.js.map +1 -0
  480. package/lib/module/shared/providers/screen/gestures/shared/runtime.js +37 -0
  481. package/lib/module/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
  482. package/lib/module/shared/providers/screen/gestures/shared/snap-points.js +174 -0
  483. package/lib/module/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
  484. package/lib/module/shared/providers/screen/gestures/shared/targets.js +116 -0
  485. package/lib/module/shared/providers/screen/gestures/shared/targets.js.map +1 -0
  486. package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +1 -1
  487. package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
  488. package/lib/module/shared/providers/screen/options/helpers.js +169 -0
  489. package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
  490. package/lib/module/shared/providers/screen/options/index.js +5 -0
  491. package/lib/module/shared/providers/screen/options/index.js.map +1 -0
  492. package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
  493. package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
  494. package/lib/module/shared/providers/screen/options/types.js +4 -0
  495. package/lib/module/shared/providers/screen/options/types.js.map +1 -0
  496. package/lib/module/shared/providers/screen/screen-composer.js +9 -6
  497. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  498. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  499. package/lib/module/shared/providers/screen/styles/constants.js +54 -4
  500. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  501. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  502. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  503. package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +21 -0
  504. package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
  505. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +288 -0
  506. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  507. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
  508. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  509. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
  510. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  511. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
  512. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  513. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  514. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
  515. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  516. package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +39 -0
  517. package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
  518. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -10
  519. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  520. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -9
  521. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  522. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +20 -3
  523. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  524. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  525. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  526. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  527. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  528. package/lib/module/shared/stores/animation.store.js +3 -7
  529. package/lib/module/shared/stores/animation.store.js.map +1 -1
  530. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +42 -0
  531. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  532. package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
  533. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  534. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
  535. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  536. package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
  537. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  538. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
  539. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  540. package/lib/module/shared/stores/bounds/helpers/matching.js +1 -9
  541. package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -1
  542. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
  543. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  544. package/lib/module/shared/stores/bounds/index.js +10 -95
  545. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  546. package/lib/module/shared/stores/bounds/internals/clear.js +2 -21
  547. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  548. package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
  549. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
  550. package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
  551. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
  552. package/lib/module/shared/stores/bounds/internals/links.js +112 -0
  553. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
  554. package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
  555. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  556. package/lib/module/shared/stores/bounds/internals/state.js +0 -8
  557. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  558. package/lib/module/shared/stores/gesture.store.js +31 -1
  559. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  560. package/lib/module/shared/stores/scroll.store.js +18 -0
  561. package/lib/module/shared/stores/scroll.store.js.map +1 -0
  562. package/lib/module/shared/stores/system.store.js +3 -0
  563. package/lib/module/shared/stores/system.store.js.map +1 -1
  564. package/lib/module/shared/types/animation.types.js +25 -3
  565. package/lib/module/shared/types/animation.types.js.map +1 -1
  566. package/lib/module/shared/types/gesture.types.js +6 -5
  567. package/lib/module/shared/types/gesture.types.js.map +1 -1
  568. package/lib/module/shared/types/ownership.types.js +2 -2
  569. package/lib/module/shared/utils/animation/animate-to-progress.js +52 -36
  570. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  571. package/lib/module/shared/utils/animation/emit.js +17 -0
  572. package/lib/module/shared/utils/animation/emit.js.map +1 -0
  573. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
  574. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  575. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
  576. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  577. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  578. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  579. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  580. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  581. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
  582. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  583. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
  584. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  585. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  586. package/lib/module/shared/utils/bounds/index.js +34 -59
  587. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  588. package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
  589. package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
  590. package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -51
  591. package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
  592. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +371 -0
  593. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  594. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +16 -0
  595. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  596. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
  597. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  598. package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
  599. package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  600. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +93 -129
  601. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  602. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -11
  603. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  604. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
  605. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  606. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +20 -0
  607. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  608. package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
  609. package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  610. package/lib/module/shared/utils/gesture-progress-mode.js +42 -0
  611. package/lib/module/shared/utils/gesture-progress-mode.js.map +1 -0
  612. package/lib/module/shared/utils/resolve-chain-target.js +25 -0
  613. package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
  614. package/lib/module/shared/utils/resolve-screen-transition-options.js +1 -7
  615. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
  616. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  617. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  618. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  619. package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -4
  620. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  621. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
  622. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
  623. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +6 -64
  624. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  625. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
  626. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
  627. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
  628. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
  629. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +0 -3
  630. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  631. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +11 -0
  632. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  633. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
  634. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
  635. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +2 -5
  636. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  637. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  638. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
  639. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
  640. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
  641. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  642. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  643. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  644. package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
  645. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
  646. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
  647. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  648. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  649. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
  650. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +1 -1
  651. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
  652. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
  653. package/lib/typescript/shared/constants.d.ts +17 -6
  654. package/lib/typescript/shared/constants.d.ts.map +1 -1
  655. package/lib/typescript/shared/index.d.ts +4 -4
  656. package/lib/typescript/shared/index.d.ts.map +1 -1
  657. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  658. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +4 -1
  659. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  660. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +2 -0
  661. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -0
  662. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -0
  663. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -0
  664. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
  665. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
  666. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
  667. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  668. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +5 -0
  669. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -0
  670. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +6 -0
  671. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -0
  672. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts +5 -0
  673. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts.map +1 -0
  674. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts +5 -0
  675. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts.map +1 -0
  676. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +35 -0
  677. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -0
  678. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +5 -4
  679. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  680. package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts +9 -0
  681. package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -0
  682. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +7 -4
  683. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  684. package/lib/typescript/shared/providers/screen/animation/types.d.ts +17 -1
  685. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  686. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +11 -3
  687. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  688. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  689. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
  690. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  691. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
  692. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
  693. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
  694. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
  695. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
  696. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
  698. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
  699. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
  700. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +6 -0
  702. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
  703. package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
  704. package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
  705. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
  706. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
  707. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +10 -5
  708. package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
  709. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
  710. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
  711. package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts +10 -0
  712. package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts.map +1 -0
  713. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts +29 -0
  714. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts.map +1 -0
  715. package/lib/typescript/shared/providers/{gestures/helpers/gesture-activation.d.ts → screen/gestures/pan/pan-activation-rules.d.ts} +19 -20
  716. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-rules.d.ts.map +1 -0
  717. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts +17 -0
  718. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -0
  719. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts +5 -0
  720. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -0
  721. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts +6 -0
  722. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -0
  723. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +17 -0
  724. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -0
  725. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts +5 -0
  726. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -0
  727. package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts +7 -0
  728. package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts.map +1 -0
  729. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts +14 -0
  730. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -0
  731. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts +5 -0
  732. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -0
  733. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts +5 -0
  734. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts.map +1 -0
  735. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts +11 -0
  736. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts.map +1 -0
  737. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts +5 -0
  738. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -0
  739. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts +2 -0
  740. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts.map +1 -0
  741. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts +5 -0
  742. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts.map +1 -0
  743. package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
  744. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
  745. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
  746. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
  747. package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts +11 -0
  748. package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +1 -0
  749. package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts +18 -0
  750. package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts.map +1 -0
  751. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +64 -0
  752. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -0
  753. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +49 -0
  754. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -0
  755. package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts +13 -0
  756. package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts.map +1 -0
  757. package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts +7 -0
  758. package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts.map +1 -0
  759. package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts +5 -0
  760. package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts.map +1 -0
  761. package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts +37 -0
  762. package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts.map +1 -0
  763. package/lib/typescript/shared/providers/{gestures/helpers/gesture-targets.d.ts → screen/gestures/shared/targets.d.ts} +2 -2
  764. package/lib/typescript/shared/providers/screen/gestures/shared/targets.d.ts.map +1 -0
  765. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +155 -0
  766. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
  767. package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
  768. package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
  769. package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
  770. package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
  771. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
  772. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
  773. package/lib/typescript/shared/providers/screen/options/types.d.ts +30 -0
  774. package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
  775. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  776. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  777. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
  778. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  779. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
  780. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  781. package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +3 -0
  782. package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +1 -0
  783. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +23 -0
  784. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
  785. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
  786. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
  787. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
  788. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
  789. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
  790. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
  791. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
  792. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
  793. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
  794. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
  795. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +17 -0
  796. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -0
  797. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
  798. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  799. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  800. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
  801. package/lib/typescript/shared/stores/animation.store.d.ts +1 -3
  802. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  803. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
  804. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
  805. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
  806. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
  807. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
  808. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
  809. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
  810. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  811. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +14 -0
  812. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
  813. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +1 -2
  814. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -1
  815. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
  816. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
  817. package/lib/typescript/shared/stores/bounds/index.d.ts +8 -32
  818. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  819. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +2 -4
  820. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  821. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
  822. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
  823. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
  824. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
  825. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +12 -0
  826. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
  827. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  828. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
  829. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  830. package/lib/typescript/shared/stores/bounds/types.d.ts +10 -14
  831. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  832. package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
  833. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  834. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
  835. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
  836. package/lib/typescript/shared/stores/system.store.d.ts +4 -0
  837. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  838. package/lib/typescript/shared/types/animation.types.d.ts +75 -34
  839. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  840. package/lib/typescript/shared/types/bounds.types.d.ts +21 -2
  841. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  842. package/lib/typescript/shared/types/gesture.types.d.ts +71 -5
  843. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  844. package/lib/typescript/shared/types/index.d.ts +3 -3
  845. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  846. package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
  847. package/lib/typescript/shared/types/screen.types.d.ts +48 -6
  848. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  849. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  850. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  851. package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
  852. package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
  853. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
  854. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
  855. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  856. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  857. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
  858. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
  859. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +2 -2
  860. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  861. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +2 -3
  862. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  863. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +3 -10
  864. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  865. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  866. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
  867. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
  868. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  869. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
  870. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
  871. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
  872. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
  873. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
  874. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
  875. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +9 -0
  876. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
  877. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
  878. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
  879. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
  880. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
  881. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
  882. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +1 -4
  883. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
  884. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
  885. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
  886. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +8 -0
  887. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
  888. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
  889. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
  890. package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
  891. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  892. package/lib/typescript/shared/utils/gesture-progress-mode.d.ts +14 -0
  893. package/lib/typescript/shared/utils/gesture-progress-mode.d.ts.map +1 -0
  894. package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
  895. package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
  896. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -2
  897. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
  898. package/package.json +5 -2
  899. package/src/shared/animation/snap-to.ts +8 -6
  900. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
  901. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -35
  902. package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -30
  903. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
  904. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
  905. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +11 -182
  906. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
  907. package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
  908. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -28
  909. package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +29 -57
  910. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
  911. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -80
  912. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +55 -47
  913. package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
  914. package/src/shared/components/create-boundary-component/types.ts +0 -8
  915. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
  916. package/src/shared/components/create-transition-aware-component.tsx +24 -10
  917. package/src/shared/components/native-screen.tsx +2 -2
  918. package/src/shared/components/overlay/variations/overlay-host.tsx +1 -1
  919. package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +19 -8
  920. package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
  921. package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
  922. package/src/shared/components/screen-container/layers/backdrop.tsx +15 -9
  923. package/src/shared/components/screen-container/layers/content.tsx +2 -2
  924. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +30 -16
  925. package/src/shared/components/screen-container/layers/surface-container.tsx +35 -15
  926. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +5 -23
  927. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +2 -5
  928. package/src/shared/components/screen-lifecycle/hooks/use-open-transition-intent.ts +1 -1
  929. package/src/shared/configs/presets.ts +8 -8
  930. package/src/shared/configs/specs.ts +2 -2
  931. package/src/shared/constants.ts +52 -8
  932. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
  933. package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
  934. package/src/shared/hooks/use-stable-callback-value.ts +3 -3
  935. package/src/shared/index.ts +8 -4
  936. package/src/shared/providers/register-bounds.provider.tsx +15 -17
  937. package/src/shared/providers/screen/animation/animation.provider.tsx +169 -13
  938. package/src/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +13 -0
  939. package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +158 -0
  940. package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +63 -0
  941. package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
  942. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +164 -0
  943. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +160 -0
  944. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.ts +41 -0
  945. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.ts +188 -0
  946. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +40 -0
  947. package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -99
  948. package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +99 -0
  949. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +20 -17
  950. package/src/shared/providers/screen/animation/types.ts +31 -1
  951. package/src/shared/providers/screen/animation/use-screen-animation.tsx +96 -22
  952. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +1 -7
  953. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -19
  954. package/src/shared/providers/screen/gestures/gestures.provider.tsx +85 -0
  955. package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +31 -0
  956. package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
  957. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +24 -0
  958. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +33 -0
  959. package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +45 -0
  960. package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
  961. package/src/shared/providers/screen/gestures/ownership/compute-claimed-directions.ts +101 -0
  962. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +27 -9
  963. package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +129 -0
  964. package/src/shared/providers/screen/gestures/pan/build-pan-gesture.ts +65 -0
  965. package/src/shared/providers/screen/gestures/pan/pan-activation-decision.ts +458 -0
  966. package/src/shared/providers/{gestures/helpers/gesture-activation.ts → screen/gestures/pan/pan-activation-rules.ts} +219 -173
  967. package/src/shared/providers/screen/gestures/pan/pan-activation.ts +132 -0
  968. package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +129 -0
  969. package/src/shared/providers/screen/gestures/pan/pan-release.ts +246 -0
  970. package/src/shared/providers/screen/gestures/pan/pan-reset.ts +92 -0
  971. package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +89 -0
  972. package/src/shared/providers/screen/gestures/pinch/build-pinch-gesture.ts +48 -0
  973. package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +72 -0
  974. package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +104 -0
  975. package/src/shared/providers/screen/gestures/pinch/pinch-release.ts +183 -0
  976. package/src/shared/providers/screen/gestures/pinch/pinch-reset.ts +65 -0
  977. package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +82 -0
  978. package/src/shared/providers/screen/gestures/scroll-coordination/index.ts +1 -0
  979. package/src/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.ts +44 -0
  980. package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +180 -0
  981. package/src/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +88 -0
  982. package/src/shared/providers/screen/gestures/shared/ancestors.ts +27 -0
  983. package/src/shared/providers/screen/gestures/shared/directions.ts +205 -0
  984. package/src/shared/providers/screen/gestures/shared/physics.ts +323 -0
  985. package/src/shared/providers/screen/gestures/shared/policy.ts +346 -0
  986. package/src/shared/providers/screen/gestures/shared/release.ts +43 -0
  987. package/src/shared/providers/screen/gestures/shared/reset.ts +74 -0
  988. package/src/shared/providers/screen/gestures/shared/runtime.ts +76 -0
  989. package/src/shared/providers/screen/gestures/shared/snap-points.ts +250 -0
  990. package/src/shared/providers/screen/gestures/shared/targets.ts +202 -0
  991. package/src/shared/providers/screen/gestures/types.ts +216 -0
  992. package/src/shared/providers/screen/options/helpers.ts +382 -0
  993. package/src/shared/providers/screen/options/index.ts +6 -0
  994. package/src/shared/providers/screen/options/options.provider.tsx +43 -0
  995. package/src/shared/providers/screen/options/types.ts +36 -0
  996. package/src/shared/providers/screen/screen-composer.tsx +11 -8
  997. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +0 -2
  998. package/src/shared/providers/screen/styles/constants.ts +50 -4
  999. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
  1000. package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +22 -0
  1001. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +414 -0
  1002. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
  1003. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
  1004. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
  1005. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
  1006. package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
  1007. package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +57 -0
  1008. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +95 -18
  1009. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +37 -13
  1010. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +19 -1
  1011. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
  1012. package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
  1013. package/src/shared/stores/animation.store.ts +3 -9
  1014. package/src/shared/stores/bounds/helpers/entries.helpers.ts +55 -0
  1015. package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
  1016. package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
  1017. package/src/shared/stores/bounds/helpers/keys.ts +0 -22
  1018. package/src/shared/stores/bounds/helpers/link.helpers.ts +131 -0
  1019. package/src/shared/stores/bounds/helpers/matching.ts +2 -16
  1020. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
  1021. package/src/shared/stores/bounds/index.ts +14 -194
  1022. package/src/shared/stores/bounds/internals/clear.ts +3 -42
  1023. package/src/shared/stores/bounds/internals/entries.ts +42 -0
  1024. package/src/shared/stores/bounds/internals/groups.ts +99 -3
  1025. package/src/shared/stores/bounds/internals/links.ts +171 -0
  1026. package/src/shared/stores/bounds/internals/resolver.ts +40 -77
  1027. package/src/shared/stores/bounds/internals/state.ts +0 -8
  1028. package/src/shared/stores/bounds/types.ts +10 -14
  1029. package/src/shared/stores/gesture.store.ts +54 -6
  1030. package/src/shared/stores/scroll.store.ts +25 -0
  1031. package/src/shared/stores/system.store.ts +8 -0
  1032. package/src/shared/types/animation.types.ts +102 -35
  1033. package/src/shared/types/bounds.types.ts +32 -2
  1034. package/src/shared/types/gesture.types.ts +91 -5
  1035. package/src/shared/types/index.ts +9 -0
  1036. package/src/shared/types/ownership.types.ts +2 -2
  1037. package/src/shared/types/screen.types.ts +56 -7
  1038. package/src/shared/utils/animation/animate-to-progress.ts +69 -42
  1039. package/src/shared/utils/animation/emit.ts +18 -0
  1040. package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
  1041. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
  1042. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +160 -0
  1043. package/src/shared/utils/bounds/helpers/create-interpolators.ts +8 -8
  1044. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +66 -11
  1045. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -6
  1046. package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
  1047. package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
  1048. package/src/shared/utils/bounds/index.ts +28 -53
  1049. package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
  1050. package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -72
  1051. package/src/shared/utils/bounds/navigation/reveal/build.ts +590 -0
  1052. package/src/shared/utils/bounds/navigation/reveal/config.ts +15 -0
  1053. package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
  1054. package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
  1055. package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +144 -191
  1056. package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +1 -15
  1057. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
  1058. package/src/shared/utils/bounds/navigation/zoom/math.ts +25 -0
  1059. package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
  1060. package/src/shared/utils/bounds/types/options.ts +8 -1
  1061. package/src/shared/utils/gesture-progress-mode.ts +67 -0
  1062. package/src/shared/utils/resolve-chain-target.ts +33 -0
  1063. package/src/shared/utils/resolve-screen-transition-options.ts +1 -16
  1064. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  1065. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
  1066. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  1067. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
  1068. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  1069. package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
  1070. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
  1071. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  1072. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
  1073. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  1074. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +0 -43
  1075. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
  1076. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
  1077. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
  1078. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
  1079. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1080. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +0 -322
  1081. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1082. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
  1083. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1084. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
  1085. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1086. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
  1087. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1088. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
  1089. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1090. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +0 -44
  1091. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1092. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js +0 -113
  1093. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1094. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
  1095. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1096. package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
  1097. package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
  1098. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
  1099. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1100. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -110
  1101. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
  1102. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -33
  1103. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
  1104. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -28
  1105. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
  1106. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
  1107. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1108. package/lib/commonjs/shared/providers/scroll-settle.provider.js +0 -25
  1109. package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +0 -1
  1110. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
  1111. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1112. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
  1113. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
  1114. package/lib/commonjs/shared/typecheck/public-api.typecheck.js +0 -174
  1115. package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +0 -1
  1116. package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
  1117. package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
  1118. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
  1119. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
  1120. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
  1121. package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
  1122. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
  1123. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js +0 -81
  1124. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1125. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1126. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1127. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +0 -56
  1128. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1129. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +0 -106
  1130. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  1131. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
  1132. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  1133. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
  1134. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  1135. package/lib/module/shared/hooks/gestures/types.js.map +0 -1
  1136. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
  1137. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  1138. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
  1139. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  1140. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +0 -39
  1141. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
  1142. package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
  1143. package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
  1144. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
  1145. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1146. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +0 -312
  1147. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1148. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
  1149. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1150. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
  1151. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1152. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
  1153. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1154. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
  1155. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1156. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +0 -38
  1157. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1158. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js +0 -107
  1159. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1160. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
  1161. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1162. package/lib/module/shared/providers/gestures/index.js.map +0 -1
  1163. package/lib/module/shared/providers/gestures/types.js.map +0 -1
  1164. package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
  1165. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1166. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -104
  1167. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
  1168. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -29
  1169. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
  1170. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -24
  1171. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
  1172. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
  1173. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1174. package/lib/module/shared/providers/scroll-settle.provider.js +0 -19
  1175. package/lib/module/shared/providers/scroll-settle.provider.js.map +0 -1
  1176. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -44
  1177. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1178. package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
  1179. package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
  1180. package/lib/module/shared/typecheck/public-api.typecheck.js +0 -174
  1181. package/lib/module/shared/typecheck/public-api.typecheck.js.map +0 -1
  1182. package/lib/module/shared/utils/animation/animate-many.js +0 -27
  1183. package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
  1184. package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
  1185. package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
  1186. package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
  1187. package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
  1188. package/lib/module/shared/utils/gesture/compute-claimed-directions.js +0 -77
  1189. package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1190. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1191. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1192. package/lib/module/shared/utils/gesture/validate-snap-points.js +0 -50
  1193. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1194. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
  1195. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
  1196. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
  1197. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
  1198. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
  1199. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
  1200. package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
  1201. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
  1202. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
  1203. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
  1204. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
  1205. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +0 -13
  1206. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +0 -1
  1207. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
  1208. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
  1209. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
  1210. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
  1211. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
  1212. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
  1213. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
  1214. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
  1215. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
  1216. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
  1217. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
  1218. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
  1219. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
  1220. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +0 -18
  1221. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
  1222. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
  1223. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
  1224. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
  1225. package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
  1226. package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
  1227. package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
  1228. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
  1229. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
  1230. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -33
  1231. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +0 -1
  1232. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +0 -9
  1233. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +0 -1
  1234. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +0 -7
  1235. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +0 -1
  1236. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
  1237. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
  1238. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +0 -12
  1239. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +0 -1
  1240. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  1241. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +0 -17
  1242. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
  1243. package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
  1244. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
  1245. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
  1246. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
  1247. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
  1248. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
  1249. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
  1250. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
  1251. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
  1252. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
  1253. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
  1254. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +0 -20
  1255. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
  1256. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
  1257. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
  1258. package/src/shared/hooks/gestures/types.ts +0 -5
  1259. package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
  1260. package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
  1261. package/src/shared/hooks/reanimated/use-animated-debounce.ts +0 -56
  1262. package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
  1263. package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
  1264. package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
  1265. package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
  1266. package/src/shared/providers/gestures/helpers/gesture-physics.ts +0 -214
  1267. package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
  1268. package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +0 -74
  1269. package/src/shared/providers/gestures/helpers/gesture-targets.ts +0 -175
  1270. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
  1271. package/src/shared/providers/gestures/types.ts +0 -45
  1272. package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
  1273. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +0 -169
  1274. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +0 -42
  1275. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +0 -29
  1276. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
  1277. package/src/shared/providers/scroll-settle.provider.tsx +0 -24
  1278. package/src/shared/stores/bounds/internals/registry.ts +0 -473
  1279. package/src/shared/typecheck/public-api.typecheck.ts +0 -222
  1280. package/src/shared/utils/animation/animate-many.ts +0 -40
  1281. package/src/shared/utils/gesture/compute-claimed-directions.ts +0 -93
  1282. package/src/shared/utils/gesture/validate-snap-points.ts +0 -74
  1283. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1284. /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1285. /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1286. /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1287. /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
  1288. /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
@@ -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.progressAnimating.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,
@@ -63,22 +63,28 @@ export const BackdropLayer = memo(function BackdropLayer({
63
63
 
64
64
  runOnUI(() => {
65
65
  "worklet";
66
- const resolvedSnaps = rawSnapPoints
67
- .map((point) =>
68
- point === "auto" ? resolvedAutoSnapPoint.value : point,
69
- )
70
- .filter((point): point is number => typeof point === "number");
66
+ const resolvedSnaps: number[] = [];
67
+
68
+ for (let i = 0; i < rawSnapPoints.length; i++) {
69
+ const point = rawSnapPoints[i];
70
+ const resolvedPoint =
71
+ point === "auto" ? resolvedAutoSnapPoint.get() : point;
72
+
73
+ if (typeof resolvedPoint === "number") {
74
+ resolvedSnaps.push(resolvedPoint);
75
+ }
76
+ }
71
77
 
72
78
  const { target, shouldDismiss } = findCollapseTarget(
73
- animations.progress.value,
79
+ animations.progress.get(),
74
80
  resolvedSnaps,
75
81
  canDismiss,
76
82
  );
77
83
 
78
84
  // If already dismissing, skip
79
- if (gestures.dismissing.value) return;
85
+ if (gestures.dismissing.get()) return;
80
86
 
81
- gestures.dismissing.value = shouldDismiss ? 1 : 0;
87
+ gestures.dismissing.set(shouldDismiss ? 1 : 0);
82
88
 
83
89
  const spec = shouldDismiss
84
90
  ? transitionSpec
@@ -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}
@@ -27,8 +27,38 @@ let hasWarnedMissingMaskedView = false;
27
27
 
28
28
  export const MaybeMaskedNavigationContainer = memo(
29
29
  ({ enabled, children, pointerEvents }: Props) => {
30
+ if (!enabled || LazyMaskedView === View) {
31
+ return children;
32
+ }
33
+
34
+ return (
35
+ <MaskedNavigationContainer pointerEvents={pointerEvents}>
36
+ {children}
37
+ </MaskedNavigationContainer>
38
+ );
39
+ },
40
+ );
41
+
42
+ const MaskedNavigationContainer = memo(
43
+ ({
44
+ children,
45
+ pointerEvents,
46
+ }: {
47
+ children: React.ReactNode;
48
+ pointerEvents: ViewProps["pointerEvents"];
49
+ }) => {
30
50
  const { stylesMap } = useScreenStyles();
31
51
 
52
+ const maybeLogWarning = useCallback(() => {
53
+ if (LazyMaskedView !== View) return;
54
+ if (hasWarnedMissingMaskedView) return;
55
+
56
+ hasWarnedMissingMaskedView = true;
57
+ logger.warn(
58
+ "navigationMaskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.",
59
+ );
60
+ }, []);
61
+
32
62
  const animatedNavigationMaskStyle = useAnimatedStyle(() => {
33
63
  "worklet";
34
64
  return (
@@ -43,21 +73,6 @@ export const MaybeMaskedNavigationContainer = memo(
43
73
  );
44
74
  });
45
75
 
46
- const maybeLogWarning = useCallback(() => {
47
- if (!enabled) return;
48
- if (LazyMaskedView !== View) return;
49
- if (hasWarnedMissingMaskedView) return;
50
-
51
- hasWarnedMissingMaskedView = true;
52
- logger.warn(
53
- "navigationMaskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.",
54
- );
55
- }, [enabled]);
56
-
57
- if (!enabled || LazyMaskedView === View) {
58
- return children;
59
- }
60
-
61
76
  return (
62
77
  <LazyMaskedView
63
78
  style={styles.navigationMaskedRoot}
@@ -76,7 +91,6 @@ export const MaybeMaskedNavigationContainer = memo(
76
91
  styles.navigationContainer,
77
92
  animatedNavigationMaskContainerStyle,
78
93
  ]}
79
- pointerEvents={pointerEvents}
80
94
  collapsable={false}
81
95
  >
82
96
  {children}
@@ -14,7 +14,6 @@ type Props = {
14
14
  };
15
15
 
16
16
  export const SurfaceContainer = memo(({ children, pointerEvents }: Props) => {
17
- const { stylesMap } = useScreenStyles();
18
17
  const { current } = useDescriptors();
19
18
 
20
19
  const SurfaceComponent = current.options.surfaceComponent;
@@ -25,29 +24,50 @@ export const SurfaceContainer = memo(({ children, pointerEvents }: Props) => {
25
24
  : null;
26
25
  }, [SurfaceComponent]);
27
26
 
28
- const animatedSurfaceStyle = useAnimatedStyle(() => {
29
- "worklet";
30
- return stylesMap.get().surface?.style ?? NO_STYLES;
31
- });
32
-
33
- const animatedSurfaceProps = useAnimatedProps(() => {
34
- "worklet";
35
- return stylesMap.get().surface?.props ?? NO_PROPS;
36
- });
37
-
38
27
  if (!AnimatedSurfaceComponent) return children;
39
28
 
40
29
  return (
41
- <AnimatedSurfaceComponent
42
- style={[styles.surface, animatedSurfaceStyle]}
43
- animatedProps={animatedSurfaceProps}
30
+ <AnimatedSurface
31
+ SurfaceComponent={AnimatedSurfaceComponent}
44
32
  pointerEvents={pointerEvents}
45
33
  >
46
34
  {children}
47
- </AnimatedSurfaceComponent>
35
+ </AnimatedSurface>
48
36
  );
49
37
  });
50
38
 
39
+ type AnimatedSurfaceProps = {
40
+ children: React.ReactNode;
41
+ pointerEvents: ViewProps["pointerEvents"];
42
+ SurfaceComponent: ComponentType<any>;
43
+ };
44
+
45
+ const AnimatedSurface = memo(
46
+ ({ children, pointerEvents, SurfaceComponent }: AnimatedSurfaceProps) => {
47
+ const { stylesMap } = useScreenStyles();
48
+
49
+ const animatedSurfaceStyle = useAnimatedStyle(() => {
50
+ "worklet";
51
+ return stylesMap.get().surface?.style ?? NO_STYLES;
52
+ });
53
+
54
+ const animatedSurfaceProps = useAnimatedProps(() => {
55
+ "worklet";
56
+ return stylesMap.get().surface?.props ?? NO_PROPS;
57
+ });
58
+
59
+ return (
60
+ <SurfaceComponent
61
+ style={[styles.surface, animatedSurfaceStyle]}
62
+ animatedProps={animatedSurfaceProps}
63
+ pointerEvents={pointerEvents}
64
+ >
65
+ {children}
66
+ </SurfaceComponent>
67
+ );
68
+ },
69
+ );
70
+
51
71
  const styles = StyleSheet.create({
52
72
  surface: {
53
73
  flex: 1,
@@ -1,33 +1,15 @@
1
1
  import { runOnUI } from "react-native-reanimated";
2
2
  import { AnimationStore } from "../../../../stores/animation.store";
3
- import {
4
- clear,
5
- clearByAncestor,
6
- clearByBranch,
7
- } from "../../../../stores/bounds/internals/clear";
3
+ import { clear } from "../../../../stores/bounds/internals/clear";
8
4
  import { GestureStore } from "../../../../stores/gesture.store";
5
+ import { ScrollStore } from "../../../../stores/scroll.store";
9
6
  import { SystemStore } from "../../../../stores/system.store";
10
7
 
11
- export function resetStoresForScreen(
12
- routeKey: string,
13
- isBranchScreen: boolean,
14
- branchNavigatorKey?: string,
15
- ) {
8
+ export function resetStoresForScreen(routeKey: string) {
16
9
  AnimationStore.clearBag(routeKey);
17
10
  GestureStore.clearBag(routeKey);
11
+ ScrollStore.clearBag(routeKey);
18
12
  SystemStore.clearBag(routeKey);
19
13
 
20
- runOnUI(() => {
21
- "worklet";
22
- if (!isBranchScreen) return;
23
-
24
- clear(routeKey);
25
-
26
- if (branchNavigatorKey) {
27
- clearByBranch(branchNavigatorKey);
28
- return;
29
- }
30
-
31
- clearByAncestor(routeKey);
32
- })();
14
+ runOnUI(clear)(routeKey);
33
15
  }
@@ -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) => {
@@ -68,7 +68,6 @@ const useManagedClose = ({
68
68
  */
69
69
  const useNativeStackClose = ({
70
70
  current,
71
- animations,
72
71
  requestLifecycleTransition,
73
72
  resetStores,
74
73
  }: CloseHookParams) => {
@@ -106,7 +105,6 @@ const useNativeStackClose = ({
106
105
  const isFirstScreen = routeIndex <= 0;
107
106
 
108
107
  if (!isEnabled || nearestAncestorDismissing?.get() || isFirstScreen) {
109
- animations.closing.set(1);
110
108
  resetStores();
111
109
  return;
112
110
  }
@@ -137,12 +135,11 @@ export function useCloseTransitionIntent(
137
135
  } {
138
136
  const routeKey = current.route.key;
139
137
  const { flags } = useStackCoreContext();
140
- const { isBranchScreen, branchNavigatorKey } = useDescriptorDerivations();
141
138
  const isNativeStack = flags.STACK_TYPE === StackType.NATIVE;
142
139
  const { requestLifecycleTransition } = system.actions;
143
140
 
144
141
  const resetStores = useStableCallback(() => {
145
- resetStoresForScreen(routeKey, isBranchScreen, branchNavigatorKey);
142
+ resetStoresForScreen(routeKey);
146
143
  });
147
144
 
148
145
  const closeParams: CloseHookParams = {
@@ -66,7 +66,7 @@ export function useOpenTransitionIntent(
66
66
  system.targetProgress.set(target);
67
67
  animations.progress.set(target);
68
68
  }
69
- animations.animating.set(0);
69
+ animations.progressAnimating.set(0);
70
70
  animations.closing.set(0);
71
71
  animations.entering.set(0);
72
72
  return;
@@ -246,7 +246,7 @@ export const SharedIGImage = ({
246
246
  gestureEnabled: true,
247
247
  gestureDirection: ["vertical", "horizontal"],
248
248
  enableTransitions: true,
249
- gestureDrivesProgress: false,
249
+ gestureProgressMode: "freeform",
250
250
  screenStyleInterpolator: ({
251
251
  current,
252
252
  layouts: {
@@ -394,7 +394,7 @@ export const SharedAppleMusic = ({
394
394
  enableTransitions: true,
395
395
  gestureEnabled: true,
396
396
  gestureDirection: ["vertical", "horizontal"],
397
- gestureDrivesProgress: false,
397
+ gestureProgressMode: "freeform",
398
398
  screenStyleInterpolator: ({
399
399
  bounds,
400
400
  focused,
@@ -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,
@@ -608,7 +608,7 @@ export const SharedXImage = ({
608
608
  enableTransitions: true,
609
609
  gestureEnabled: true,
610
610
  gestureDirection: ["vertical", "vertical-inverted"],
611
- gestureDrivesProgress: false,
611
+ gestureProgressMode: "freeform",
612
612
  screenStyleInterpolator: ({
613
613
  focused,
614
614
  bounds,
@@ -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,15 @@
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";
5
- import type { ActivationArea } from "./types/gesture.types";
6
- import type { Layout } from "./types/screen.types";
4
+ import type {
5
+ ScreenTransitionOptions,
6
+ ScreenTransitionState,
7
+ } from "./types/animation.types";
8
+ import type {
9
+ ActivationArea,
10
+ GestureProgressMode,
11
+ } from "./types/gesture.types";
12
+ import type { Layout, SheetScrollGestureBehavior } from "./types/screen.types";
7
13
  import type { BaseStackRoute } from "./types/stack.types";
8
14
 
9
15
  /**
@@ -31,13 +37,24 @@ export const NO_PROPS = Object.freeze({});
31
37
  /**
32
38
  * Default gesture values
33
39
  */
34
- const DEFAULT_GESTURE_VALUES = {
40
+ const DEFAULT_RAW_GESTURE_VALUES = {
35
41
  x: 0,
36
42
  y: 0,
37
43
  normX: 0,
38
44
  normY: 0,
45
+ scale: 1,
46
+ normScale: 0,
47
+ } as const;
48
+
49
+ const DEFAULT_GESTURE_VALUES = {
50
+ ...DEFAULT_RAW_GESTURE_VALUES,
51
+ focalX: 0,
52
+ focalY: 0,
53
+ raw: DEFAULT_RAW_GESTURE_VALUES,
39
54
  dismissing: 0,
40
55
  dragging: 0,
56
+ settling: 0,
57
+ active: null,
41
58
  direction: null,
42
59
 
43
60
  // Deprecated aliases
@@ -47,6 +64,14 @@ const DEFAULT_GESTURE_VALUES = {
47
64
  isDragging: 0,
48
65
  } as const;
49
66
 
67
+ const createDefaultGestureValues = () => ({
68
+ ...DEFAULT_GESTURE_VALUES,
69
+ raw: { ...DEFAULT_RAW_GESTURE_VALUES },
70
+ });
71
+
72
+ export const DEFAULT_SCREEN_TRANSITION_OPTIONS: ScreenTransitionOptions =
73
+ Object.freeze({});
74
+
50
75
  /**
51
76
  * Creates a new screen transition state object
52
77
  */
@@ -54,6 +79,7 @@ export const createScreenTransitionState = (
54
79
  route: BaseStackRoute,
55
80
  meta?: Record<string, unknown>,
56
81
  navigationMaskEnabled = false,
82
+ options: ScreenTransitionOptions = DEFAULT_SCREEN_TRANSITION_OPTIONS,
57
83
  ): ScreenTransitionState => ({
58
84
  progress: 0,
59
85
  closing: 0,
@@ -62,9 +88,10 @@ export const createScreenTransitionState = (
62
88
  settled: 1,
63
89
  logicallySettled: 1,
64
90
  entering: 0,
65
- gesture: { ...DEFAULT_GESTURE_VALUES },
91
+ gesture: createDefaultGestureValues(),
66
92
  route,
67
93
  meta,
94
+ options,
68
95
  layouts: {
69
96
  screen: {
70
97
  width: 0,
@@ -72,6 +99,7 @@ export const createScreenTransitionState = (
72
99
  },
73
100
  navigationMaskEnabled,
74
101
  },
102
+ animatedSnapIndex: -1,
75
103
  snapIndex: -1,
76
104
  });
77
105
 
@@ -87,8 +115,9 @@ export const DEFAULT_SCREEN_TRANSITION_STATE: ScreenTransitionState =
87
115
  settled: 1,
88
116
  logicallySettled: 1,
89
117
  entering: 0,
90
- gesture: DEFAULT_GESTURE_VALUES,
118
+ gesture: createDefaultGestureValues(),
91
119
  route: {} as RouteProp<ParamListBase>,
120
+ options: DEFAULT_SCREEN_TRANSITION_OPTIONS,
92
121
  layouts: {
93
122
  screen: {
94
123
  width: 0,
@@ -96,6 +125,7 @@ export const DEFAULT_SCREEN_TRANSITION_STATE: ScreenTransitionState =
96
125
  },
97
126
  navigationMaskEnabled: false,
98
127
  },
128
+ animatedSnapIndex: -1,
99
129
  snapIndex: -1,
100
130
  });
101
131
 
@@ -130,12 +160,15 @@ export const FULLSCREEN_DIMENSIONS = (
130
160
 
131
161
  export const DEFAULT_GESTURE_VELOCITY_IMPACT = 0.3;
132
162
  export const DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT = 0.1;
133
- export const DEFAULT_GESTURE_RELEASE_VELOCITY_MAX = 3.2;
163
+ export const DEFAULT_GESTURE_SENSITIVITY = 1;
134
164
  export const DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE = 1;
135
165
  export const DEFAULT_GESTURE_DIRECTION = "horizontal";
136
- export const DEFAULT_GESTURE_DRIVES_PROGRESS = true;
166
+ export const DEFAULT_GESTURE_PROGRESS_MODE: GestureProgressMode =
167
+ "progress-driven";
137
168
  export const DEFAULT_GESTURE_SNAP_LOCKED = false;
138
169
  export const DEFAULT_GESTURE_ACTIVATION_AREA: ActivationArea = "screen";
170
+ export const DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR: SheetScrollGestureBehavior =
171
+ "expand-and-collapse";
139
172
 
140
173
  export const IS_WEB = Platform.OS === "web";
141
174
 
@@ -152,3 +185,14 @@ export const EPSILON = 1e-5;
152
185
  * Prevents micro-jitter/oscillation near animation endpoints.
153
186
  */
154
187
  export const ANIMATION_SNAP_THRESHOLD = 0.01;
188
+
189
+ /**
190
+ * Number of consecutive frames progress must remain near its target before it
191
+ * is treated as logically settled.
192
+ */
193
+ export const LOGICAL_SETTLE_REQUIRED_FRAMES = 5;
194
+
195
+ /**
196
+ * Progress distance from target required for logical settle.
197
+ */
198
+ export const LOGICAL_SETTLE_PROGRESS_THRESHOLD = 0.001;
@@ -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,
@@ -55,7 +56,10 @@ export type {
55
56
  OverlayProps,
56
57
  ScreenInterpolationProps,
57
58
  ScreenStyleInterpolator,
59
+ ScreenTransitionAccessor,
58
60
  ScreenTransitionConfig,
61
+ ScreenTransitionDepthTarget,
62
+ ScreenTransitionTarget,
59
63
  TransitionInterpolatedStyle,
60
64
  TransitionSlotStyle,
61
65
  TransitionSpec,