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
@@ -8,11 +8,7 @@ export interface DescriptorDerivations {
8
8
  isFirstKey: boolean;
9
9
  isTopMostScreen: boolean;
10
10
  ancestorKeys: string[];
11
- navigatorKey: string;
12
- ancestorNavigatorKeys: string[];
13
11
  hasConfiguredInterpolator: boolean;
14
- isBranchScreen: boolean;
15
- branchNavigatorKey?: string;
16
12
  }
17
13
 
18
14
  interface Params {
@@ -20,7 +16,6 @@ interface Params {
20
16
  current: BaseStackDescriptor;
21
17
  next?: BaseStackDescriptor;
22
18
  ancestorKeys: string[];
23
- ancestorNavigatorKeys: string[];
24
19
  }
25
20
 
26
21
  export function deriveDescriptorDerivations({
@@ -28,14 +23,12 @@ export function deriveDescriptorDerivations({
28
23
  current,
29
24
  next,
30
25
  ancestorKeys,
31
- ancestorNavigatorKeys,
32
26
  }: Params): DescriptorDerivations {
33
27
  const previousScreenKey = previous?.route.key;
34
28
  const currentScreenKey = current.route.key;
35
29
  const nextScreenKey = next?.route.key;
36
30
 
37
31
  const navigationState = current.navigation.getState();
38
- const navigatorKey = navigationState?.key ?? "";
39
32
  const routes = navigationState?.routes ?? [];
40
33
  const isFirstKey =
41
34
  routes.findIndex((route) => route.key === current.route.key) === 0;
@@ -44,14 +37,6 @@ export function deriveDescriptorDerivations({
44
37
  !!current.options.screenStyleInterpolator ||
45
38
  !!next?.options?.screenStyleInterpolator;
46
39
 
47
- const currentRoute = routes.find((route) => route.key === current.route.key);
48
- const hasBranchState = !!currentRoute && "state" in currentRoute;
49
- const nestedState = hasBranchState
50
- ? (currentRoute as { state?: { key?: unknown } }).state
51
- : undefined;
52
- const branchNavigatorKey =
53
- typeof nestedState?.key === "string" ? nestedState.key : undefined;
54
-
55
40
  return {
56
41
  previousScreenKey,
57
42
  currentScreenKey,
@@ -60,10 +45,6 @@ export function deriveDescriptorDerivations({
60
45
  isFirstKey,
61
46
  isTopMostScreen,
62
47
  ancestorKeys,
63
- navigatorKey,
64
- ancestorNavigatorKeys,
65
48
  hasConfiguredInterpolator,
66
- isBranchScreen: hasBranchState,
67
- branchNavigatorKey,
68
49
  };
69
50
  }
@@ -0,0 +1,85 @@
1
+ import { useMemo } from "react";
2
+ import { Gesture } from "react-native-gesture-handler";
3
+ import { useSharedValue } from "react-native-reanimated";
4
+ import { ScrollStore } from "../../../stores/scroll.store";
5
+ import createProvider from "../../../utils/create-provider";
6
+ import { useDescriptorDerivations } from "../descriptors";
7
+ import { useScreenGestureConfig } from "./hooks/use-screen-gesture-config";
8
+ import { useWalkUpAndRegisterShadowingClaims } from "./ownership/use-walk-up-and-register-shadowing-claims";
9
+ import { useBuildPanGesture } from "./pan/build-pan-gesture";
10
+ import { useBuildPinchGesture } from "./pinch/build-pinch-gesture";
11
+ import {
12
+ type DirectionClaimMap,
13
+ type GestureContextType,
14
+ NO_DIRECTION_CLAIMS,
15
+ } from "./types";
16
+
17
+ interface ScreenGestureProviderProps {
18
+ children: React.ReactNode;
19
+ }
20
+
21
+ export const {
22
+ ScreenGestureProvider,
23
+ useScreenGestureContext: useGestureContext,
24
+ } = createProvider("ScreenGesture", { guarded: false })<
25
+ ScreenGestureProviderProps,
26
+ GestureContextType
27
+ >(({ children }): { value: GestureContextType; children: React.ReactNode } => {
28
+ const gestureContext = useGestureContext();
29
+ const gestureConfig = useScreenGestureConfig();
30
+ const { currentScreenKey } = useDescriptorDerivations();
31
+
32
+ const scrollState = ScrollStore.getValue(currentScreenKey, "state");
33
+
34
+ // Ancestors read this before activating. If a nested screen claims the same
35
+ // direction, it writes here so the ancestor can fail and let it take priority.
36
+ const childDirectionClaims =
37
+ useSharedValue<DirectionClaimMap>(NO_DIRECTION_CLAIMS);
38
+
39
+ const panGesture = useBuildPanGesture({
40
+ scrollState,
41
+ gestureConfig,
42
+ childDirectionClaims,
43
+ });
44
+
45
+ const pinchGesture = useBuildPinchGesture({
46
+ gestureConfig,
47
+ });
48
+
49
+ const detectorGesture = useMemo(
50
+ () => Gesture.Race(panGesture, pinchGesture),
51
+ [panGesture, pinchGesture],
52
+ );
53
+
54
+ const value = useMemo<GestureContextType>(
55
+ () => ({
56
+ routeKey: currentScreenKey,
57
+ detectorGesture,
58
+ panGesture,
59
+ pinchGesture,
60
+ scrollState,
61
+ gestureContext,
62
+ claimedDirections: gestureConfig.participation.claimedDirections,
63
+ childDirectionClaims,
64
+ }),
65
+ [
66
+ currentScreenKey,
67
+ detectorGesture,
68
+ panGesture,
69
+ pinchGesture,
70
+ scrollState,
71
+ gestureContext,
72
+ gestureConfig.participation.claimedDirections,
73
+ childDirectionClaims,
74
+ ],
75
+ );
76
+
77
+ useWalkUpAndRegisterShadowingClaims(
78
+ gestureConfig.participation.claimedDirections,
79
+ );
80
+
81
+ return {
82
+ value,
83
+ children,
84
+ };
85
+ });
@@ -0,0 +1,31 @@
1
+ import { useSharedValue } from "react-native-reanimated";
2
+ import type { ScreenGestureParticipation } from "../types";
3
+
4
+ /**
5
+ * Creates the shared values that both pan and pinch runtimes need while a
6
+ * recognizer is active.
7
+ *
8
+ * `gestureProgressBaseline` is set to the current animation progress when a
9
+ * gesture starts. Lifecycle handlers use it as the stable baseline for cumulative
10
+ * pan/pinch deltas so progress can be recalculated from the gesture event
11
+ * instead of repeatedly accumulating into the current animated value.
12
+ *
13
+ * `lockedSnapPoint` is the current snap point chosen when a snap gesture starts.
14
+ * Snap release primers set it on start: snap-locked gestures use the
15
+ * nearest resolved snap point, while unlocked snap gestures use the resolved max
16
+ * snap point. The value stays stable through the active gesture and is used as a
17
+ * progress bound/release target.
18
+ */
19
+ export const useGestureBuilderState = (
20
+ participation: ScreenGestureParticipation,
21
+ ) => {
22
+ const gestureProgressBaseline = useSharedValue(1);
23
+ const lockedSnapPoint = useSharedValue(
24
+ participation.effectiveSnapPoints.maxSnapPoint,
25
+ );
26
+
27
+ return {
28
+ gestureProgressBaseline,
29
+ lockedSnapPoint,
30
+ };
31
+ };
@@ -0,0 +1,132 @@
1
+ import { useCallback, useMemo } from "react";
2
+ import type { SharedValue } from "react-native-reanimated";
3
+ import { useSharedValue } from "react-native-reanimated";
4
+ import type { ScreenOptionsContextValue } from "../../options";
5
+ import {
6
+ applyGestureSensitivity,
7
+ normalizePinchScale,
8
+ } from "../shared/physics";
9
+ import type { PanGestureEvent, PinchGestureEvent } from "../types";
10
+
11
+ export interface GestureSensitivityRawChangeState {
12
+ previousRawValue: SharedValue<number>;
13
+ adjustedValue: SharedValue<number>;
14
+ }
15
+
16
+ export const applyGestureSensitivityToRawChange = (
17
+ rawValue: number,
18
+ sensitivity: number,
19
+ state: GestureSensitivityRawChangeState,
20
+ ) => {
21
+ "worklet";
22
+ const rawChange = rawValue - state.previousRawValue.get();
23
+
24
+ // gestureSensitivity can change mid-gesture, so apply it to the latest
25
+ // raw movement only instead of rescaling the recognizer's cumulative value.
26
+ const adjustedValue =
27
+ state.adjustedValue.get() + applyGestureSensitivity(rawChange, sensitivity);
28
+
29
+ state.previousRawValue.set(rawValue);
30
+ state.adjustedValue.set(adjustedValue);
31
+
32
+ return adjustedValue;
33
+ };
34
+
35
+ const resetChangeState = (state: GestureSensitivityRawChangeState) => {
36
+ "worklet";
37
+ state.previousRawValue.set(0);
38
+ state.adjustedValue.set(0);
39
+ };
40
+
41
+ const useBuildSensitivityChangeState = () => {
42
+ const previousRawValue = useSharedValue(0);
43
+ const adjustedValue = useSharedValue(0);
44
+
45
+ return useMemo<GestureSensitivityRawChangeState>(
46
+ () => ({
47
+ previousRawValue,
48
+ adjustedValue,
49
+ }),
50
+ [previousRawValue, adjustedValue],
51
+ );
52
+ };
53
+
54
+ export const usePanGestureSensitivity = (
55
+ screenOptions: ScreenOptionsContextValue,
56
+ ) => {
57
+ const xSensitivityState = useBuildSensitivityChangeState();
58
+ const ySensitivityState = useBuildSensitivityChangeState();
59
+
60
+ const resetSensitivity = useCallback(() => {
61
+ "worklet";
62
+ resetChangeState(xSensitivityState);
63
+ resetChangeState(ySensitivityState);
64
+ }, [xSensitivityState, ySensitivityState]);
65
+
66
+ const withSensitivity = useCallback(
67
+ (event: PanGestureEvent): PanGestureEvent => {
68
+ "worklet";
69
+ const sensitivity = screenOptions.get().gestureSensitivity;
70
+
71
+ return {
72
+ ...event,
73
+ translationX: applyGestureSensitivityToRawChange(
74
+ event.translationX,
75
+ sensitivity,
76
+ xSensitivityState,
77
+ ),
78
+ translationY: applyGestureSensitivityToRawChange(
79
+ event.translationY,
80
+ sensitivity,
81
+ ySensitivityState,
82
+ ),
83
+ };
84
+ },
85
+ [screenOptions, xSensitivityState, ySensitivityState],
86
+ );
87
+
88
+ return useMemo(
89
+ () => ({
90
+ withSensitivity,
91
+ resetSensitivity,
92
+ }),
93
+ [withSensitivity, resetSensitivity],
94
+ );
95
+ };
96
+
97
+ export const usePinchGestureSensitivity = (
98
+ screenOptions: ScreenOptionsContextValue,
99
+ ) => {
100
+ const scaleSensitivityState = useBuildSensitivityChangeState();
101
+
102
+ const resetSensitivity = useCallback(() => {
103
+ "worklet";
104
+ resetChangeState(scaleSensitivityState);
105
+ }, [scaleSensitivityState]);
106
+
107
+ const withSensitivity = useCallback(
108
+ (event: PinchGestureEvent): PinchGestureEvent => {
109
+ "worklet";
110
+ const sensitivity = screenOptions.get().gestureSensitivity;
111
+ const normScale = applyGestureSensitivityToRawChange(
112
+ normalizePinchScale(event.scale),
113
+ sensitivity,
114
+ scaleSensitivityState,
115
+ );
116
+
117
+ return {
118
+ ...event,
119
+ scale: 1 + normScale,
120
+ };
121
+ },
122
+ [screenOptions, scaleSensitivityState],
123
+ );
124
+
125
+ return useMemo(
126
+ () => ({
127
+ withSensitivity,
128
+ resetSensitivity,
129
+ }),
130
+ [withSensitivity, resetSensitivity],
131
+ );
132
+ };
@@ -0,0 +1,24 @@
1
+ import { useMemo } from "react";
2
+ import { useDescriptorDerivations, useDescriptors } from "../../descriptors";
3
+ import { useGestureContext } from "../gestures.provider";
4
+ import { resolveScreenGestureConfig } from "../shared/policy";
5
+ import type { ScreenGestureConfig } from "../types";
6
+
7
+ export function useScreenGestureConfig(): ScreenGestureConfig {
8
+ const gestureContext = useGestureContext();
9
+ const {
10
+ current: { options },
11
+ } = useDescriptors();
12
+
13
+ const { isFirstKey } = useDescriptorDerivations();
14
+
15
+ return useMemo(
16
+ () =>
17
+ resolveScreenGestureConfig({
18
+ options,
19
+ isFirstKey,
20
+ gestureContext,
21
+ }),
22
+ [isFirstKey, options, gestureContext],
23
+ );
24
+ }
@@ -0,0 +1,33 @@
1
+ import {
2
+ type ChainTarget,
3
+ resolveChainTarget,
4
+ } from "../../../../utils/resolve-chain-target";
5
+ import { useGestureContext } from "../gestures.provider";
6
+ import { walkGestureAncestors } from "../shared/ancestors";
7
+
8
+ export type ScreenGestureTarget = ChainTarget;
9
+
10
+ /**
11
+ * Returns a screen navigation pan gesture.
12
+ * Use this to coordinate child gestures with the navigation gesture.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * const screenGesture = useScreenGesture();
17
+ *
18
+ * const myPanGesture = Gesture.Pan()
19
+ * .requireExternalGestureToFail(screenGesture)
20
+ * .onUpdate((...) => {});
21
+ * ```
22
+ */
23
+ export const useScreenGesture = (target?: ScreenGestureTarget) => {
24
+ const ctx = useGestureContext();
25
+
26
+ return (
27
+ resolveChainTarget({
28
+ target,
29
+ self: ctx,
30
+ ancestors: walkGestureAncestors(ctx?.gestureContext),
31
+ })?.panGesture ?? null
32
+ );
33
+ };
@@ -0,0 +1,45 @@
1
+ import { useLayoutEffect, useMemo } from "react";
2
+ import { type SharedValue, useSharedValue } from "react-native-reanimated";
3
+ import { AnimationStore } from "../../../../stores/animation.store";
4
+ import { GestureStore } from "../../../../stores/gesture.store";
5
+ import { SystemStore } from "../../../../stores/system.store";
6
+ import { useDescriptorDerivations } from "../../descriptors";
7
+ import type { GesturePolicy, GestureRuntime } from "../types";
8
+
9
+ type RuntimeConfigInput<TPolicy extends GesturePolicy> = Omit<
10
+ GestureRuntime<TPolicy>,
11
+ "stores"
12
+ >;
13
+
14
+ export function useStableRuntimeConfig<TPolicy extends GesturePolicy>(
15
+ runtimeConfigInput: RuntimeConfigInput<TPolicy>,
16
+ ): SharedValue<GestureRuntime<TPolicy>> {
17
+ const { currentScreenKey } = useDescriptorDerivations();
18
+ const { participation, policy, gestureProgressBaseline, lockedSnapPoint } =
19
+ runtimeConfigInput;
20
+
21
+ const stores = useMemo(() => {
22
+ return {
23
+ gestures: GestureStore.getBag(currentScreenKey),
24
+ animations: AnimationStore.getBag(currentScreenKey),
25
+ system: SystemStore.getBag(currentScreenKey),
26
+ };
27
+ }, [currentScreenKey]);
28
+
29
+ const runtimeConfig = useMemo<GestureRuntime<TPolicy>>(() => {
30
+ return {
31
+ participation,
32
+ policy,
33
+ stores,
34
+ gestureProgressBaseline,
35
+ lockedSnapPoint,
36
+ };
37
+ }, [participation, policy, stores, gestureProgressBaseline, lockedSnapPoint]);
38
+ const stableRuntimeConfig = useSharedValue(runtimeConfig);
39
+
40
+ useLayoutEffect(() => {
41
+ stableRuntimeConfig.set(runtimeConfig);
42
+ }, [stableRuntimeConfig, runtimeConfig]);
43
+
44
+ return stableRuntimeConfig;
45
+ }
@@ -6,5 +6,7 @@ export type {
6
6
  DirectionClaim,
7
7
  DirectionClaimMap,
8
8
  GestureContextType,
9
- ScrollConfig,
9
+ ScrollGestureAxis,
10
+ ScrollGestureAxisState,
11
+ ScrollGestureState,
10
12
  } from "./types";
@@ -0,0 +1,101 @@
1
+ import { DEFAULT_GESTURE_DIRECTION } from "../../../../constants";
2
+ import type {
3
+ GestureDirection,
4
+ PanGestureDirection,
5
+ } from "../../../../types/gesture.types";
6
+ import {
7
+ type ClaimedDirections,
8
+ type Direction,
9
+ NO_CLAIMS,
10
+ } from "../../../../types/ownership.types";
11
+
12
+ const createClaimSet = (): ClaimedDirections => ({
13
+ vertical: false,
14
+ "vertical-inverted": false,
15
+ horizontal: false,
16
+ "horizontal-inverted": false,
17
+ });
18
+
19
+ const normalizePanGestureDirections = (
20
+ gestureDirection: GestureDirection | GestureDirection[] | undefined,
21
+ ): PanGestureDirection[] => {
22
+ const direction = gestureDirection ?? DEFAULT_GESTURE_DIRECTION;
23
+
24
+ return (Array.isArray(direction) ? direction : [direction]).filter(
25
+ (dir): dir is PanGestureDirection =>
26
+ dir !== "pinch-in" && dir !== "pinch-out",
27
+ );
28
+ };
29
+
30
+ const claimPanDirection = (
31
+ claims: ClaimedDirections,
32
+ direction: PanGestureDirection,
33
+ ) => {
34
+ if (direction === "bidirectional") {
35
+ claims.vertical = true;
36
+ claims["vertical-inverted"] = true;
37
+ claims.horizontal = true;
38
+ claims["horizontal-inverted"] = true;
39
+ return;
40
+ }
41
+
42
+ claims[direction as Direction] = true;
43
+ };
44
+
45
+ const expandSnapPointAxisClaims = (claims: ClaimedDirections) => {
46
+ const hasVerticalAxis = claims.vertical || claims["vertical-inverted"];
47
+ const hasHorizontalAxis = claims.horizontal || claims["horizontal-inverted"];
48
+
49
+ if (hasVerticalAxis) {
50
+ claims.vertical = true;
51
+ claims["vertical-inverted"] = true;
52
+ }
53
+
54
+ if (hasHorizontalAxis) {
55
+ claims.horizontal = true;
56
+ claims["horizontal-inverted"] = true;
57
+ }
58
+ };
59
+
60
+ /**
61
+ * Computes which directions a screen claims ownership of.
62
+ *
63
+ * A screen claims a direction when:
64
+ * 1. direction claiming is enabled AND
65
+ * 2. gestureDirection includes that direction
66
+ *
67
+ * For snap points, both directions on each configured pan axis are claimed.
68
+ * The first direction on an axis collapses; its inverse expands.
69
+ *
70
+ * @param canClaimDirections - Whether this screen can own gesture directions
71
+ * @param gestureDirection - The gesture direction(s) configured for this screen
72
+ * @param hasSnapPoints - Whether this screen has snap points configured
73
+ * @returns The claimed directions for this screen
74
+ */
75
+ export function computeClaimedDirections(
76
+ canClaimDirections: boolean,
77
+ gestureDirection: GestureDirection | GestureDirection[] | undefined,
78
+ hasSnapPoints: boolean,
79
+ ): ClaimedDirections {
80
+ if (!canClaimDirections) {
81
+ return NO_CLAIMS;
82
+ }
83
+
84
+ const directions = normalizePanGestureDirections(gestureDirection);
85
+
86
+ if (directions.length === 0) {
87
+ return NO_CLAIMS;
88
+ }
89
+
90
+ const claims = createClaimSet();
91
+
92
+ for (const dir of directions) {
93
+ claimPanDirection(claims, dir);
94
+ }
95
+
96
+ if (hasSnapPoints) {
97
+ expandSnapPointAxisClaims(claims);
98
+ }
99
+
100
+ return claims;
101
+ }
@@ -1,10 +1,14 @@
1
- import type { ClaimedDirections, Direction } from "../../types/ownership.types";
1
+ import type {
2
+ ClaimedDirections,
3
+ Direction,
4
+ } from "../../../../types/ownership.types";
2
5
  import {
3
6
  DIRECTIONS,
4
7
  type DirectionOwnership,
5
8
  NO_OWNERSHIP,
6
9
  type OwnershipStatus,
7
- } from "../../types/ownership.types";
10
+ } from "../../../../types/ownership.types";
11
+ import type { DirectionClaim } from "../types";
8
12
 
9
13
  /**
10
14
  * Minimal interface for ancestor context needed for ownership resolution.
@@ -12,7 +16,7 @@ import {
12
16
  */
13
17
  interface AncestorClaimsContext {
14
18
  claimedDirections: ClaimedDirections;
15
- ancestorContext: AncestorClaimsContext | null;
19
+ gestureContext: AncestorClaimsContext | null;
16
20
  }
17
21
 
18
22
  /**
@@ -27,12 +31,12 @@ interface AncestorClaimsContext {
27
31
  * used in worklets since it's a plain object.
28
32
  *
29
33
  * @param selfClaims - The directions claimed by the current screen
30
- * @param ancestorContext - The ancestor context chain (can be null if no ancestors)
34
+ * @param gestureContext - The gesture context chain (can be null if no ancestors)
31
35
  * @returns Ownership status for all four directions
32
36
  */
33
37
  export function resolveOwnership(
34
38
  selfClaims: ClaimedDirections,
35
- ancestorContext: AncestorClaimsContext | null,
39
+ gestureContext: AncestorClaimsContext | null,
36
40
  ): DirectionOwnership {
37
41
  const result: DirectionOwnership = { ...NO_OWNERSHIP };
38
42
 
@@ -40,7 +44,7 @@ export function resolveOwnership(
40
44
  result[direction] = resolveDirectionOwnership(
41
45
  direction,
42
46
  selfClaims,
43
- ancestorContext,
47
+ gestureContext,
44
48
  );
45
49
  }
46
50
 
@@ -53,7 +57,7 @@ export function resolveOwnership(
53
57
  function resolveDirectionOwnership(
54
58
  direction: Direction,
55
59
  selfClaims: ClaimedDirections,
56
- ancestorContext: AncestorClaimsContext | null,
60
+ gestureContext: AncestorClaimsContext | null,
57
61
  ): OwnershipStatus {
58
62
  // Check self first
59
63
  if (selfClaims[direction]) {
@@ -61,14 +65,28 @@ function resolveDirectionOwnership(
61
65
  }
62
66
 
63
67
  // Walk ancestors looking for a claim
64
- let ancestor = ancestorContext;
68
+ let ancestor = gestureContext;
65
69
  while (ancestor) {
66
70
  if (ancestor.claimedDirections?.[direction]) {
67
71
  return "ancestor";
68
72
  }
69
- ancestor = ancestor.ancestorContext;
73
+ ancestor = ancestor.gestureContext;
70
74
  }
71
75
 
72
76
  // No one claims this direction
73
77
  return "none";
74
78
  }
79
+
80
+ /**
81
+ * Returns true when the current screen should fail and defer to a child claim.
82
+ */
83
+ export function shouldDeferToChildClaim(
84
+ childClaim: DirectionClaim,
85
+ selfRouteKey: string,
86
+ ): boolean {
87
+ "worklet";
88
+ if (!childClaim) return false;
89
+ if (childClaim.routeKey === selfRouteKey) return false;
90
+ if (childClaim.isDismissing.get()) return false;
91
+ return true;
92
+ }