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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1107) hide show
  1. package/README.md +23 -1081
  2. package/lib/commonjs/shared/animation/snap-to.js +4 -6
  3. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
  5. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +13 -17
  7. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +46 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
  11. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +3 -147
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +1 -8
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +15 -36
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -32
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  28. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
  29. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  30. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  31. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  32. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  33. package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
  34. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  35. package/lib/commonjs/shared/components/native-screen.js +2 -2
  36. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  37. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +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 +2 -2
  40. package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  41. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  42. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  43. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  44. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  45. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +5 -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 +0 -1
  50. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  51. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
  52. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  53. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
  54. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  55. package/lib/commonjs/shared/configs/presets.js +5 -5
  56. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  57. package/lib/commonjs/shared/configs/specs.js +2 -2
  58. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  59. package/lib/commonjs/shared/constants.js +28 -7
  60. package/lib/commonjs/shared/constants.js.map +1 -1
  61. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +3 -3
  62. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
  63. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  64. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  66. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  67. package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
  68. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  69. package/lib/commonjs/shared/index.js +1 -1
  70. package/lib/commonjs/shared/index.js.map +1 -1
  71. package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
  72. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +3 -0
  74. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +31 -0
  76. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  77. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +58 -83
  82. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
  84. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +18 -9
  86. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  87. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js +182 -0
  88. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
  89. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js +55 -0
  90. package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
  91. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +161 -0
  92. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
  93. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +78 -0
  94. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
  95. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +147 -0
  96. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
  97. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +52 -0
  98. package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
  99. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +64 -0
  100. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
  101. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +64 -0
  102. package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
  103. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +50 -0
  104. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
  105. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +43 -0
  106. package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
  107. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
  108. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  109. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
  110. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
  111. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js +146 -0
  112. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
  113. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js +204 -0
  114. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
  115. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js +99 -0
  116. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
  117. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
  118. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
  119. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +4 -24
  120. package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
  121. package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js +122 -0
  122. package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
  123. package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js +89 -0
  124. package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
  125. package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +21 -0
  126. package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
  127. package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js +134 -0
  128. package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
  129. package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
  130. package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +23 -0
  131. package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
  132. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +33 -0
  133. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  134. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
  135. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  136. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +105 -0
  137. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  138. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +35 -0
  139. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  140. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +13 -0
  141. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
  142. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +44 -0
  143. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
  144. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +134 -0
  145. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
  146. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +45 -0
  147. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  148. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
  149. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  150. package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
  151. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -22
  152. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  153. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
  154. package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  155. package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +18 -0
  156. package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
  157. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +95 -0
  158. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  159. package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
  160. package/lib/commonjs/shared/providers/screen/options/helpers.js +126 -0
  161. package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
  162. package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
  163. package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
  164. package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
  165. package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
  166. package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
  167. package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
  168. package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
  169. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  170. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  171. package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
  172. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  173. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  174. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  175. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +183 -0
  176. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  177. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
  178. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  179. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
  180. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  181. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
  182. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  183. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  184. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
  185. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  186. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +41 -2
  187. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  188. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
  189. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  190. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
  191. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  192. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  193. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  194. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  195. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  196. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +59 -0
  197. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  198. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
  199. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  200. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
  201. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  202. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
  203. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  204. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
  205. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  206. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
  207. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  208. package/lib/commonjs/shared/stores/bounds/index.js +15 -98
  209. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  210. package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
  211. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
  212. package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
  213. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
  214. package/lib/commonjs/shared/stores/bounds/internals/links.js +126 -0
  215. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
  216. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
  217. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  218. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
  219. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  220. package/lib/commonjs/shared/stores/gesture.store.js +31 -1
  221. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  222. package/lib/commonjs/shared/stores/scroll.store.js +22 -0
  223. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
  224. package/lib/commonjs/shared/typecheck/public-api.typecheck.js +99 -46
  225. package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +1 -1
  226. package/lib/commonjs/shared/types/gesture.types.js +6 -6
  227. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  228. package/lib/commonjs/shared/types/ownership.types.js +2 -2
  229. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +49 -34
  230. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  231. package/lib/commonjs/shared/utils/animation/emit.js +22 -0
  232. package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
  233. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
  234. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  235. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
  236. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  237. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  238. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  239. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  240. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  241. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
  242. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  243. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
  244. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  245. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  246. package/lib/commonjs/shared/utils/bounds/index.js +34 -59
  247. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  248. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
  249. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
  250. package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +1 -40
  251. package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
  252. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +260 -0
  253. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  254. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +29 -0
  255. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  256. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
  257. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  258. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
  259. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  260. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +49 -147
  261. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  262. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -13
  263. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  264. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
  265. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  266. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +26 -0
  267. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  268. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
  269. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  270. package/lib/commonjs/shared/utils/resolve-chain-target.js +36 -0
  271. package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
  272. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +1 -8
  273. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
  274. package/lib/module/shared/animation/snap-to.js +4 -6
  275. package/lib/module/shared/animation/snap-to.js.map +1 -1
  276. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
  277. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  278. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +14 -18
  279. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  280. package/lib/module/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.js +8 -11
  281. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  282. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  283. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  284. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
  285. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  286. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +1 -138
  287. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  288. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
  289. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  290. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
  291. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  292. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +1 -1
  293. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  294. package/lib/module/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +13 -34
  295. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  296. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
  297. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  298. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -34
  299. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  300. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
  301. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  302. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  303. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  304. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  305. package/lib/module/shared/components/create-transition-aware-component.js +12 -7
  306. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  307. package/lib/module/shared/components/native-screen.js +2 -2
  308. package/lib/module/shared/components/native-screen.js.map +1 -1
  309. package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
  310. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  311. package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
  312. package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  313. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  314. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  315. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  316. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  317. package/lib/module/shared/components/screen-container/layers/backdrop.js +5 -5
  318. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  319. package/lib/module/shared/components/screen-container/layers/content.js +2 -2
  320. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  321. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
  322. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  323. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
  324. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  325. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
  326. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  327. package/lib/module/shared/configs/presets.js +5 -5
  328. package/lib/module/shared/configs/presets.js.map +1 -1
  329. package/lib/module/shared/configs/specs.js +2 -2
  330. package/lib/module/shared/configs/specs.js.map +1 -1
  331. package/lib/module/shared/constants.js +27 -6
  332. package/lib/module/shared/constants.js.map +1 -1
  333. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +3 -3
  334. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
  335. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  336. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  337. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  338. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  339. package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
  340. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  341. package/lib/module/shared/index.js +1 -1
  342. package/lib/module/shared/index.js.map +1 -1
  343. package/lib/module/shared/providers/register-bounds.provider.js +5 -5
  344. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  345. package/lib/module/shared/providers/screen/animation/animation.provider.js +3 -0
  346. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  347. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +26 -0
  348. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  349. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
  350. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  351. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
  352. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  353. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +60 -85
  354. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  355. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
  356. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  357. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +18 -9
  358. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  359. package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js +177 -0
  360. package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
  361. package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js +50 -0
  362. package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
  363. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +157 -0
  364. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
  365. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +74 -0
  366. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
  367. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +143 -0
  368. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
  369. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +48 -0
  370. package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
  371. package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +59 -0
  372. package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
  373. package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +59 -0
  374. package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
  375. package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +45 -0
  376. package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
  377. package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +38 -0
  378. package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
  379. package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
  380. package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  381. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
  382. package/lib/module/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
  383. package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js +135 -0
  384. package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
  385. package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js +189 -0
  386. package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
  387. package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js +93 -0
  388. package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
  389. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
  390. package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
  391. package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +5 -25
  392. package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
  393. package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js +115 -0
  394. package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
  395. package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js +82 -0
  396. package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
  397. package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +17 -0
  398. package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
  399. package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js +124 -0
  400. package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
  401. package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
  402. package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +19 -0
  403. package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
  404. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +28 -0
  405. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  406. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
  407. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  408. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +101 -0
  409. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  410. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +30 -0
  411. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  412. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +4 -0
  413. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
  414. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +39 -0
  415. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
  416. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +128 -0
  417. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
  418. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +41 -0
  419. package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  420. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
  421. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  422. package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
  423. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -21
  424. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  425. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
  426. package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  427. package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +14 -0
  428. package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
  429. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +91 -0
  430. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  431. package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
  432. package/lib/module/shared/providers/screen/options/helpers.js +119 -0
  433. package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
  434. package/lib/module/shared/providers/screen/options/index.js +5 -0
  435. package/lib/module/shared/providers/screen/options/index.js.map +1 -0
  436. package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
  437. package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
  438. package/lib/module/shared/providers/screen/options/types.js +4 -0
  439. package/lib/module/shared/providers/screen/options/types.js.map +1 -0
  440. package/lib/module/shared/providers/screen/screen-composer.js +9 -6
  441. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  442. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  443. package/lib/module/shared/providers/screen/styles/constants.js +54 -4
  444. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  445. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  446. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  447. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +178 -0
  448. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  449. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
  450. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  451. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
  452. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  453. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
  454. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  455. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  456. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
  457. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  458. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +42 -2
  459. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  460. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
  461. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  462. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
  463. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  464. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  465. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  466. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  467. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  468. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +52 -0
  469. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  470. package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
  471. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  472. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
  473. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  474. package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
  475. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  476. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
  477. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  478. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
  479. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  480. package/lib/module/shared/stores/bounds/index.js +8 -91
  481. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  482. package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
  483. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
  484. package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
  485. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
  486. package/lib/module/shared/stores/bounds/internals/links.js +118 -0
  487. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
  488. package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
  489. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  490. package/lib/module/shared/stores/bounds/internals/state.js +0 -8
  491. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  492. package/lib/module/shared/stores/gesture.store.js +31 -1
  493. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  494. package/lib/module/shared/stores/scroll.store.js +18 -0
  495. package/lib/module/shared/stores/scroll.store.js.map +1 -0
  496. package/lib/module/shared/typecheck/public-api.typecheck.js +100 -47
  497. package/lib/module/shared/typecheck/public-api.typecheck.js.map +1 -1
  498. package/lib/module/shared/types/animation.types.js +25 -3
  499. package/lib/module/shared/types/animation.types.js.map +1 -1
  500. package/lib/module/shared/types/gesture.types.js +6 -5
  501. package/lib/module/shared/types/gesture.types.js.map +1 -1
  502. package/lib/module/shared/types/ownership.types.js +2 -2
  503. package/lib/module/shared/utils/animation/animate-to-progress.js +49 -34
  504. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  505. package/lib/module/shared/utils/animation/emit.js +17 -0
  506. package/lib/module/shared/utils/animation/emit.js.map +1 -0
  507. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
  508. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  509. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
  510. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  511. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  512. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  513. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  514. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  515. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
  516. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  517. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
  518. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  519. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  520. package/lib/module/shared/utils/bounds/index.js +34 -59
  521. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  522. package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
  523. package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
  524. package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -37
  525. package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
  526. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +256 -0
  527. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  528. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +25 -0
  529. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  530. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
  531. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  532. package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
  533. package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  534. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +26 -124
  535. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  536. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +0 -10
  537. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  538. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
  539. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  540. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +21 -0
  541. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  542. package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
  543. package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  544. package/lib/module/shared/utils/resolve-chain-target.js +32 -0
  545. package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
  546. package/lib/module/shared/utils/resolve-screen-transition-options.js +0 -6
  547. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
  548. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  549. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  550. package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -1
  551. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  552. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
  553. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
  554. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -64
  555. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  556. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
  557. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
  558. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
  559. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
  560. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +10 -0
  561. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  562. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
  563. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
  564. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +1 -1
  565. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  566. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  567. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
  568. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
  569. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
  570. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  571. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  572. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  573. package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
  574. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
  575. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
  576. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  577. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
  578. package/lib/typescript/shared/constants.d.ts +6 -3
  579. package/lib/typescript/shared/constants.d.ts.map +1 -1
  580. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -1
  581. package/lib/typescript/shared/index.d.ts +2 -2
  582. package/lib/typescript/shared/index.d.ts.map +1 -1
  583. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  584. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  585. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
  586. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
  587. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
  588. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  589. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +6 -3
  590. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  591. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
  592. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  593. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +5 -1
  594. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  595. package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -3
  596. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  597. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +3 -1
  598. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  599. package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts +17 -0
  600. package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts.map +1 -0
  601. package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts +14 -0
  602. package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts.map +1 -0
  603. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts +3 -0
  604. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts.map +1 -0
  605. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts +3 -0
  606. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts.map +1 -0
  607. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts +3 -0
  608. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts.map +1 -0
  609. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts +3 -0
  610. package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts.map +1 -0
  611. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts +5 -0
  612. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts.map +1 -0
  613. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts +5 -0
  614. package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts.map +1 -0
  615. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts +10 -0
  616. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts.map +1 -0
  617. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts +7 -0
  618. package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts.map +1 -0
  619. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
  620. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
  621. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.d.ts +9 -11
  622. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-activation.d.ts.map +1 -0
  623. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts +18 -0
  624. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts.map +1 -0
  625. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts +70 -0
  626. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts.map +1 -0
  627. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts +20 -0
  628. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts.map +1 -0
  629. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.d.ts +0 -1
  630. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
  631. package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.d.ts +1 -1
  632. package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-targets.d.ts.map +1 -0
  633. package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts +5 -0
  634. package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts.map +1 -0
  635. package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts +5 -0
  636. package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts.map +1 -0
  637. package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts +8 -0
  638. package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts.map +1 -0
  639. package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts +9 -0
  640. package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts.map +1 -0
  641. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.d.ts +1 -1
  642. package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts.map +1 -0
  643. package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts +11 -0
  644. package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts.map +1 -0
  645. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
  646. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
  647. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
  648. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
  649. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
  650. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
  651. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
  652. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
  653. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts +2 -0
  654. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts.map +1 -0
  655. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts +5 -0
  656. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts.map +1 -0
  657. package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
  658. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
  659. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
  660. package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
  661. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +8 -0
  662. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
  663. package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
  664. package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
  665. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
  666. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
  667. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +5 -5
  668. package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
  669. package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts +6 -0
  670. package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts.map +1 -0
  671. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
  672. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
  673. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +154 -0
  674. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
  675. package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
  676. package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
  677. package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
  678. package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
  679. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
  680. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
  681. package/lib/typescript/shared/providers/screen/options/types.d.ts +29 -0
  682. package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
  683. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  684. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  685. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
  686. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  687. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
  688. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  689. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +19 -0
  690. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
  691. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
  692. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
  693. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
  694. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
  695. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
  696. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
  698. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
  699. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
  700. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
  702. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  703. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  704. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
  705. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
  706. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
  707. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
  708. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
  709. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
  710. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
  711. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
  712. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  713. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +16 -0
  714. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
  715. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
  716. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
  717. package/lib/typescript/shared/stores/bounds/index.d.ts +7 -29
  718. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  719. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
  720. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
  721. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
  722. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
  723. package/lib/typescript/shared/stores/bounds/internals/{registry.d.ts → links.d.ts} +4 -9
  724. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
  725. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  726. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
  727. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  728. package/lib/typescript/shared/stores/bounds/types.d.ts +8 -3
  729. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  730. package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
  731. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  732. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
  733. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
  734. package/lib/typescript/shared/types/animation.types.d.ts +51 -34
  735. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  736. package/lib/typescript/shared/types/bounds.types.d.ts +20 -1
  737. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  738. package/lib/typescript/shared/types/gesture.types.d.ts +70 -5
  739. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  740. package/lib/typescript/shared/types/index.d.ts +3 -3
  741. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  742. package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
  743. package/lib/typescript/shared/types/screen.types.d.ts +40 -5
  744. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  745. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  746. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  747. package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
  748. package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
  749. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
  750. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
  751. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  752. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  753. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
  754. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
  755. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  756. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -8
  757. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  758. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  759. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
  760. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
  761. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  762. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
  763. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
  764. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
  765. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
  766. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
  767. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
  768. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +18 -0
  769. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
  770. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
  771. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
  772. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
  773. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
  774. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
  775. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +0 -3
  776. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
  777. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
  778. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
  779. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +9 -0
  780. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
  781. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
  782. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
  783. package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
  784. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  785. package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
  786. package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
  787. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -1
  788. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
  789. package/package.json +1 -1
  790. package/src/shared/animation/snap-to.ts +8 -6
  791. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
  792. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -21
  793. package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -12
  794. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
  795. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
  796. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +1 -183
  797. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
  798. package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
  799. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +1 -1
  800. package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +18 -55
  801. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
  802. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -68
  803. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +54 -46
  804. package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
  805. package/src/shared/components/create-boundary-component/types.ts +0 -8
  806. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
  807. package/src/shared/components/create-transition-aware-component.tsx +24 -10
  808. package/src/shared/components/native-screen.tsx +2 -2
  809. package/src/shared/components/overlay/variations/overlay-host.tsx +1 -1
  810. package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +2 -2
  811. package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
  812. package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
  813. package/src/shared/components/screen-container/layers/backdrop.tsx +5 -5
  814. package/src/shared/components/screen-container/layers/content.tsx +2 -2
  815. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
  816. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +2 -0
  817. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +1 -1
  818. package/src/shared/configs/presets.ts +5 -5
  819. package/src/shared/configs/specs.ts +2 -2
  820. package/src/shared/constants.ts +35 -5
  821. package/src/shared/hooks/reanimated/use-animated-debounce.ts +2 -5
  822. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
  823. package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
  824. package/src/shared/hooks/use-stable-callback-value.ts +3 -3
  825. package/src/shared/index.ts +5 -4
  826. package/src/shared/providers/register-bounds.provider.tsx +5 -6
  827. package/src/shared/providers/screen/animation/animation.provider.tsx +4 -0
  828. package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +47 -0
  829. package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
  830. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +222 -56
  831. package/src/shared/providers/screen/animation/helpers/pipeline.ts +70 -92
  832. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +13 -11
  833. package/src/shared/providers/screen/animation/types.ts +5 -5
  834. package/src/shared/providers/screen/animation/use-screen-animation.tsx +29 -10
  835. package/src/shared/providers/screen/gestures/activation/use-pan-activation.ts +244 -0
  836. package/src/shared/providers/screen/gestures/activation/use-pinch-activation.ts +72 -0
  837. package/src/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.ts +195 -0
  838. package/src/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.ts +76 -0
  839. package/src/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.ts +177 -0
  840. package/src/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.ts +73 -0
  841. package/src/shared/providers/screen/gestures/behaviors/use-pan-behavior.ts +100 -0
  842. package/src/shared/providers/screen/gestures/behaviors/use-pinch-behavior.ts +99 -0
  843. package/src/shared/providers/screen/gestures/builders/use-build-pan-gesture.ts +65 -0
  844. package/src/shared/providers/screen/gestures/builders/use-build-pinch-gesture.ts +48 -0
  845. package/src/shared/providers/screen/gestures/gestures.provider.tsx +84 -0
  846. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.ts +33 -48
  847. package/src/shared/providers/screen/gestures/helpers/gesture-directions.ts +205 -0
  848. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-physics.ts +125 -51
  849. package/src/shared/providers/screen/gestures/helpers/gesture-reset.ts +158 -0
  850. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.ts +0 -2
  851. package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.ts +14 -36
  852. package/src/shared/providers/screen/gestures/helpers/pan-phases.ts +124 -0
  853. package/src/shared/providers/screen/gestures/helpers/pinch-phases.ts +98 -0
  854. package/src/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.ts +23 -0
  855. package/src/shared/providers/screen/gestures/helpers/runtime-options.ts +159 -0
  856. package/src/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.ts +1 -1
  857. package/src/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.ts +27 -0
  858. package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +35 -0
  859. package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
  860. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +160 -0
  861. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +37 -0
  862. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.ts +1 -0
  863. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.ts +44 -0
  864. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.ts +180 -0
  865. package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.ts +72 -0
  866. package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +53 -0
  867. package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
  868. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.ts +24 -28
  869. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +12 -9
  870. package/src/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.ts +15 -0
  871. package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +93 -0
  872. package/src/shared/providers/screen/gestures/types.ts +222 -0
  873. package/src/shared/providers/screen/options/helpers.ts +271 -0
  874. package/src/shared/providers/screen/options/index.ts +6 -0
  875. package/src/shared/providers/screen/options/options.provider.tsx +43 -0
  876. package/src/shared/providers/screen/options/types.ts +35 -0
  877. package/src/shared/providers/screen/screen-composer.tsx +11 -8
  878. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +0 -2
  879. package/src/shared/providers/screen/styles/constants.ts +50 -4
  880. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
  881. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +260 -0
  882. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
  883. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
  884. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
  885. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
  886. package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
  887. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +54 -7
  888. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +5 -0
  889. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +10 -0
  890. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
  891. package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
  892. package/src/shared/stores/bounds/helpers/entries.helpers.ts +74 -0
  893. package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
  894. package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
  895. package/src/shared/stores/bounds/helpers/keys.ts +0 -22
  896. package/src/shared/stores/bounds/helpers/link.helpers.ts +135 -0
  897. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
  898. package/src/shared/stores/bounds/index.ts +13 -191
  899. package/src/shared/stores/bounds/internals/entries.ts +42 -0
  900. package/src/shared/stores/bounds/internals/groups.ts +99 -3
  901. package/src/shared/stores/bounds/internals/links.ts +183 -0
  902. package/src/shared/stores/bounds/internals/resolver.ts +40 -77
  903. package/src/shared/stores/bounds/internals/state.ts +0 -8
  904. package/src/shared/stores/bounds/types.ts +8 -3
  905. package/src/shared/stores/gesture.store.ts +54 -6
  906. package/src/shared/stores/scroll.store.ts +25 -0
  907. package/src/shared/typecheck/public-api.typecheck.ts +101 -51
  908. package/src/shared/types/animation.types.ts +71 -35
  909. package/src/shared/types/bounds.types.ts +28 -1
  910. package/src/shared/types/gesture.types.ts +89 -5
  911. package/src/shared/types/index.ts +6 -0
  912. package/src/shared/types/ownership.types.ts +2 -2
  913. package/src/shared/types/screen.types.ts +43 -6
  914. package/src/shared/utils/animation/animate-to-progress.ts +58 -39
  915. package/src/shared/utils/animation/emit.ts +18 -0
  916. package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
  917. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
  918. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +159 -0
  919. package/src/shared/utils/bounds/helpers/create-interpolators.ts +6 -6
  920. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +64 -9
  921. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +5 -3
  922. package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
  923. package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
  924. package/src/shared/utils/bounds/index.ts +28 -53
  925. package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
  926. package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -56
  927. package/src/shared/utils/bounds/navigation/reveal/build.ts +351 -0
  928. package/src/shared/utils/bounds/navigation/reveal/config.ts +26 -0
  929. package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
  930. package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
  931. package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +42 -193
  932. package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +0 -14
  933. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
  934. package/src/shared/utils/bounds/navigation/zoom/math.ts +27 -0
  935. package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
  936. package/src/shared/utils/bounds/types/options.ts +8 -1
  937. package/src/shared/utils/resolve-chain-target.ts +46 -0
  938. package/src/shared/utils/resolve-screen-transition-options.ts +0 -13
  939. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  940. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
  941. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  942. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
  943. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  944. package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
  945. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
  946. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  947. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
  948. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  949. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
  950. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
  951. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
  952. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  953. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  954. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
  955. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  956. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
  957. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  958. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
  959. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  960. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
  961. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  962. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  963. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  964. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
  965. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  966. package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
  967. package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
  968. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
  969. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
  970. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
  971. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  972. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
  973. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  974. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
  975. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
  976. package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
  977. package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
  978. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
  979. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
  980. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
  981. package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
  982. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
  983. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  984. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
  985. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
  986. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
  987. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  988. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
  989. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  990. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
  991. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  992. package/lib/module/shared/hooks/gestures/types.js.map +0 -1
  993. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
  994. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  995. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
  996. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  997. package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
  998. package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
  999. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
  1000. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1001. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1002. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
  1003. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1004. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
  1005. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1006. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
  1007. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1008. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
  1009. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1010. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1011. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1012. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
  1013. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1014. package/lib/module/shared/providers/gestures/index.js.map +0 -1
  1015. package/lib/module/shared/providers/gestures/types.js.map +0 -1
  1016. package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
  1017. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1018. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
  1019. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1020. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1021. package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
  1022. package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
  1023. package/lib/module/shared/utils/animation/animate-many.js +0 -27
  1024. package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
  1025. package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
  1026. package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
  1027. package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
  1028. package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
  1029. package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1030. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1031. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1032. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1033. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
  1034. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
  1035. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
  1036. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
  1037. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
  1038. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
  1039. package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
  1040. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
  1041. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
  1042. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
  1043. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
  1044. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
  1045. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
  1046. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
  1047. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
  1048. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
  1049. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
  1050. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
  1051. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
  1052. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
  1053. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
  1054. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
  1055. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
  1056. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
  1057. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
  1058. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
  1059. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
  1060. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
  1061. package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
  1062. package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
  1063. package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
  1064. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
  1065. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
  1066. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
  1067. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
  1068. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  1069. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
  1070. package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
  1071. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
  1072. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
  1073. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
  1074. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
  1075. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
  1076. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
  1077. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
  1078. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
  1079. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
  1080. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
  1081. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
  1082. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
  1083. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
  1084. package/src/shared/hooks/gestures/types.ts +0 -5
  1085. package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
  1086. package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
  1087. package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
  1088. package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
  1089. package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
  1090. package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
  1091. package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
  1092. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
  1093. package/src/shared/providers/gestures/types.ts +0 -45
  1094. package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
  1095. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
  1096. package/src/shared/stores/bounds/internals/registry.ts +0 -473
  1097. package/src/shared/utils/animation/animate-many.ts +0 -40
  1098. /package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
  1099. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1100. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +0 -0
  1101. /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1102. /package/lib/module/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
  1103. /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1104. /package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +0 -0
  1105. /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1106. /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
  1107. /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
@@ -0,0 +1,158 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import { EPSILON, FALSE, TRUE } from "../../../../constants";
3
+ import type { GestureStoreMap } from "../../../../stores/gesture.store";
4
+ import type { AnimationConfig } from "../../../../types/animation.types";
5
+ import { animate } from "../../../../utils/animation/animate";
6
+
7
+ interface ResetGestureValuesProps {
8
+ spec?: AnimationConfig;
9
+ gestures: GestureStoreMap;
10
+ shouldDismiss: boolean;
11
+ velocityX?: number;
12
+ velocityY?: number;
13
+ velocityNormX?: number;
14
+ velocityNormY?: number;
15
+ }
16
+
17
+ const getGestureResetSpec = (
18
+ spec?: AnimationConfig,
19
+ velocity?: number,
20
+ ): AnimationConfig | undefined => {
21
+ "worklet";
22
+
23
+ const isSpring =
24
+ typeof spec === "object" && !("duration" in spec) && !("easing" in spec);
25
+
26
+ if (!isSpring) {
27
+ return spec;
28
+ }
29
+
30
+ const { velocity: _velocity, ...resetSpec } = spec as AnimationConfig & {
31
+ velocity?: number;
32
+ };
33
+ return (
34
+ typeof velocity === "number" ? { ...resetSpec, velocity } : resetSpec
35
+ ) as AnimationConfig;
36
+ };
37
+
38
+ const animateResetValue = (
39
+ value: SharedValue<number>,
40
+ toValue: number,
41
+ config: AnimationConfig | undefined,
42
+ onFinished: () => void,
43
+ ) => {
44
+ "worklet";
45
+ value.set(
46
+ animate(toValue, config, (finished) => {
47
+ "worklet";
48
+ if (finished) {
49
+ onFinished();
50
+ }
51
+ }),
52
+ );
53
+ };
54
+
55
+ const clearPanSettlingIfResting = (gestures: GestureStoreMap) => {
56
+ "worklet";
57
+
58
+ if (
59
+ gestures.dragging.get() ||
60
+ gestures.dismissing.get() ||
61
+ Math.abs(gestures.x.get()) > EPSILON ||
62
+ Math.abs(gestures.y.get()) > EPSILON ||
63
+ Math.abs(gestures.normX.get()) > EPSILON ||
64
+ Math.abs(gestures.normY.get()) > EPSILON
65
+ ) {
66
+ return;
67
+ }
68
+
69
+ gestures.active.set(null);
70
+ gestures.direction.set(null);
71
+ gestures.settling.set(FALSE);
72
+ };
73
+
74
+ const clearPinchSettlingIfResting = (gestures: GestureStoreMap) => {
75
+ "worklet";
76
+
77
+ if (
78
+ gestures.dragging.get() ||
79
+ gestures.dismissing.get() ||
80
+ Math.abs(gestures.scale.get() - 1) > EPSILON ||
81
+ Math.abs(gestures.normScale.get()) > EPSILON
82
+ ) {
83
+ return;
84
+ }
85
+
86
+ gestures.focalX.set(0);
87
+ gestures.focalY.set(0);
88
+ gestures.active.set(null);
89
+ gestures.direction.set(null);
90
+ gestures.settling.set(FALSE);
91
+ };
92
+
93
+ export const resetGestureValues = ({
94
+ spec,
95
+ gestures,
96
+ shouldDismiss,
97
+ velocityX,
98
+ velocityY,
99
+ velocityNormX,
100
+ velocityNormY,
101
+ }: ResetGestureValuesProps) => {
102
+ "worklet";
103
+
104
+ gestures.raw.x.set(0);
105
+ gestures.raw.y.set(0);
106
+ gestures.raw.normX.set(0);
107
+ gestures.raw.normY.set(0);
108
+ gestures.dragging.set(FALSE);
109
+ gestures.dismissing.set(shouldDismiss ? TRUE : FALSE);
110
+ gestures.settling.set(shouldDismiss ? FALSE : TRUE);
111
+
112
+ animateResetValue(gestures.x, 0, getGestureResetSpec(spec, velocityX), () =>
113
+ clearPanSettlingIfResting(gestures),
114
+ );
115
+ animateResetValue(gestures.y, 0, getGestureResetSpec(spec, velocityY), () =>
116
+ clearPanSettlingIfResting(gestures),
117
+ );
118
+ animateResetValue(
119
+ gestures.normX,
120
+ 0,
121
+ getGestureResetSpec(spec, velocityNormX),
122
+ () => clearPanSettlingIfResting(gestures),
123
+ );
124
+ animateResetValue(
125
+ gestures.normY,
126
+ 0,
127
+ getGestureResetSpec(spec, velocityNormY),
128
+ () => clearPanSettlingIfResting(gestures),
129
+ );
130
+ };
131
+
132
+ interface ResetPinchGestureValuesProps {
133
+ spec?: AnimationConfig;
134
+ gestures: GestureStoreMap;
135
+ shouldDismiss: boolean;
136
+ }
137
+
138
+ export const resetPinchGestureValues = ({
139
+ spec,
140
+ gestures,
141
+ shouldDismiss,
142
+ }: ResetPinchGestureValuesProps) => {
143
+ "worklet";
144
+ const resetSpec = getGestureResetSpec(spec);
145
+
146
+ gestures.raw.scale.set(1);
147
+ gestures.raw.normScale.set(0);
148
+ gestures.dragging.set(FALSE);
149
+ gestures.dismissing.set(shouldDismiss ? TRUE : FALSE);
150
+ gestures.settling.set(shouldDismiss ? FALSE : TRUE);
151
+
152
+ animateResetValue(gestures.scale, 1, resetSpec, () =>
153
+ clearPinchSettlingIfResting(gestures),
154
+ );
155
+ animateResetValue(gestures.normScale, 0, resetSpec, () =>
156
+ clearPinchSettlingIfResting(gestures),
157
+ );
158
+ };
@@ -8,7 +8,6 @@ interface ResolveRuntimeSnapPointsProps {
8
8
  }
9
9
 
10
10
  interface ResolvedRuntimeSnapPointsResult {
11
- resolvedAutoSnapPoint: number | null;
12
11
  resolvedSnapPoints: number[];
13
12
  resolvedMinSnapPoint: number;
14
13
  resolvedMaxSnapPoint: number;
@@ -43,7 +42,6 @@ export const resolveRuntimeSnapPoints = ({
43
42
  : minSnapPoint;
44
43
 
45
44
  return {
46
- resolvedAutoSnapPoint: nextResolvedAutoSnapPoint,
47
45
  resolvedSnapPoints,
48
46
  resolvedMinSnapPoint,
49
47
  resolvedMaxSnapPoint:
@@ -1,14 +1,7 @@
1
- import { DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT } from "../../../constants";
2
- import type { GestureDirections } from "../../../types/gesture.types";
3
- import { sanitizeSnapPoints } from "../../../utils/gesture/validate-snap-points";
4
- import { shouldDismissFromTranslationAndVelocity } from "./gesture-physics";
5
-
6
- interface GetAxisThresholdProps {
7
- translation: number;
8
- velocity: number;
9
- screenSize: number;
10
- gestureVelocityImpact: number;
11
- }
1
+ import { DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT } from "../../../../constants";
2
+ import type { GestureDirections } from "../../../../types/gesture.types";
3
+ import { shouldDismissFromProjection } from "./gesture-physics";
4
+ import { sanitizeSnapPoints } from "./validate-snap-points";
12
5
 
13
6
  interface DetermineDismissalProps {
14
7
  event: {
@@ -44,21 +37,6 @@ interface DetermineSnapTargetResult {
44
37
  shouldDismiss: boolean;
45
38
  }
46
39
 
47
- const getAxisThreshold = ({
48
- translation,
49
- velocity,
50
- screenSize,
51
- gestureVelocityImpact,
52
- }: GetAxisThresholdProps) => {
53
- "worklet";
54
- return shouldDismissFromTranslationAndVelocity(
55
- translation,
56
- velocity,
57
- screenSize,
58
- gestureVelocityImpact,
59
- );
60
- };
61
-
62
40
  export const determineDismissal = ({
63
41
  event,
64
42
  directions,
@@ -73,12 +51,12 @@ export const determineDismissal = ({
73
51
  (directions.vertical && event.translationY > 0) ||
74
52
  (directions.verticalInverted && event.translationY < 0)
75
53
  ) {
76
- const dismiss = getAxisThreshold({
77
- translation: event.translationY,
78
- velocity: event.velocityY,
79
- screenSize: dimensions.height,
54
+ const dismiss = shouldDismissFromProjection(
55
+ event.translationY,
56
+ event.velocityY,
57
+ dimensions.height,
80
58
  gestureVelocityImpact,
81
- });
59
+ );
82
60
  if (dismiss) shouldDismiss = true;
83
61
  }
84
62
 
@@ -86,12 +64,12 @@ export const determineDismissal = ({
86
64
  (directions.horizontal && event.translationX > 0) ||
87
65
  (directions.horizontalInverted && event.translationX < 0)
88
66
  ) {
89
- const dismiss = getAxisThreshold({
90
- translation: event.translationX,
91
- velocity: event.velocityX,
92
- screenSize: dimensions.width,
67
+ const dismiss = shouldDismissFromProjection(
68
+ event.translationX,
69
+ event.velocityX,
70
+ dimensions.width,
93
71
  gestureVelocityImpact,
94
- });
72
+ );
95
73
 
96
74
  if (dismiss) shouldDismiss = true;
97
75
  }
@@ -0,0 +1,124 @@
1
+ import { clamp } from "react-native-reanimated";
2
+ import { EPSILON, FALSE, TRUE } from "../../../../constants";
3
+ import { animateToProgress } from "../../../../utils/animation/animate-to-progress";
4
+ import { emit } from "../../../../utils/animation/emit";
5
+ import type {
6
+ GestureDimensions,
7
+ PanGestureEvent,
8
+ PanGestureRuntime,
9
+ PanReleaseResult,
10
+ PanTrackState,
11
+ } from "../types";
12
+ import { normalizeGestureTranslation } from "./gesture-physics";
13
+ import { resetGestureValues } from "./gesture-reset";
14
+
15
+ export const startPanBase = (runtime: PanGestureRuntime) => {
16
+ "worklet";
17
+ const {
18
+ stores: { gestures, animations },
19
+ gestureProgressBaseline,
20
+ } = runtime;
21
+
22
+ const wasSettling = gestures.settling.get();
23
+ const hasResidualGesture =
24
+ Math.abs(gestures.normX.get()) > EPSILON ||
25
+ Math.abs(gestures.normY.get()) > EPSILON;
26
+
27
+ if (!wasSettling || !hasResidualGesture) {
28
+ emit(animations.willAnimate, TRUE, FALSE);
29
+ }
30
+
31
+ gestures.dragging.set(TRUE);
32
+ gestures.dismissing.set(0);
33
+ gestures.settling.set(0);
34
+ gestures.x.set(0);
35
+ gestures.y.set(0);
36
+ gestures.normX.set(0);
37
+ gestures.normY.set(0);
38
+ gestures.raw.x.set(0);
39
+ gestures.raw.y.set(0);
40
+ gestures.raw.normX.set(0);
41
+ gestures.raw.normY.set(0);
42
+ gestureProgressBaseline.set(animations.progress.get());
43
+ };
44
+
45
+ export const trackPanGesture = (
46
+ event: PanGestureEvent,
47
+ rawEvent: PanGestureEvent,
48
+ gestures: PanGestureRuntime["stores"]["gestures"],
49
+ dimensions: GestureDimensions,
50
+ ): PanTrackState => {
51
+ "worklet";
52
+ const { translationX: x, translationY: y } = event;
53
+ const { translationX: rawX, translationY: rawY } = rawEvent;
54
+ const { width, height } = dimensions;
55
+
56
+ const normX = clamp(normalizeGestureTranslation(x, width), -1, 1);
57
+ const normY = clamp(normalizeGestureTranslation(y, height), -1, 1);
58
+ const rawNormX = clamp(normalizeGestureTranslation(rawX, width), -1, 1);
59
+ const rawNormY = clamp(normalizeGestureTranslation(rawY, height), -1, 1);
60
+
61
+ gestures.x.set(x);
62
+ gestures.y.set(y);
63
+ gestures.normX.set(normX);
64
+ gestures.normY.set(normY);
65
+ gestures.raw.x.set(rawX);
66
+ gestures.raw.y.set(rawY);
67
+ gestures.raw.normX.set(rawNormX);
68
+ gestures.raw.normY.set(rawNormY);
69
+
70
+ return {
71
+ x,
72
+ y,
73
+ normX,
74
+ normY,
75
+ };
76
+ };
77
+
78
+ export const finalizePanRelease = (
79
+ release: PanReleaseResult,
80
+ runtime: PanGestureRuntime,
81
+ dismissScreen: (() => void) | undefined,
82
+ dimensions: GestureDimensions,
83
+ rawEvent: PanGestureEvent,
84
+ ) => {
85
+ "worklet";
86
+ const {
87
+ policy,
88
+ stores: { gestures, animations, system },
89
+ } = runtime;
90
+ const { width, height } = dimensions;
91
+ const releaseVelocityScale = Math.max(0, policy.gestureReleaseVelocityScale);
92
+ const resetVelocityX = rawEvent.velocityX * releaseVelocityScale;
93
+ const resetVelocityY = rawEvent.velocityY * releaseVelocityScale;
94
+
95
+ resetGestureValues({
96
+ spec: release.resetSpec,
97
+ gestures,
98
+ shouldDismiss: release.shouldDismiss,
99
+ velocityX: resetVelocityX,
100
+ velocityY: resetVelocityY,
101
+ velocityNormX: resetVelocityX / Math.max(1, width),
102
+ velocityNormY: resetVelocityY / Math.max(1, height),
103
+ });
104
+
105
+ const progressAlreadyAtTarget =
106
+ Math.abs(animations.progress.get() - release.target) <= EPSILON;
107
+
108
+ if (!release.shouldDismiss && progressAlreadyAtTarget) {
109
+ system.targetProgress.set(release.target);
110
+ animations.animating.set(FALSE);
111
+ return;
112
+ }
113
+
114
+ animateToProgress({
115
+ target: release.target,
116
+ onAnimationFinish: release.shouldDismiss ? dismissScreen : undefined,
117
+ spec: release.transitionSpec,
118
+ emitWillAnimate: false,
119
+ markEntering: false,
120
+ targetProgress: system.targetProgress,
121
+ animations,
122
+ initialVelocity: release.initialVelocity,
123
+ });
124
+ };
@@ -0,0 +1,98 @@
1
+ import { clamp } from "react-native-reanimated";
2
+ import { EPSILON, FALSE, TRUE } from "../../../../constants";
3
+ import { animateToProgress } from "../../../../utils/animation/animate-to-progress";
4
+ import { emit } from "../../../../utils/animation/emit";
5
+ import type {
6
+ PinchGestureEvent,
7
+ PinchGestureRuntime,
8
+ PinchReleaseResult,
9
+ PinchTrackState,
10
+ } from "../types";
11
+ import { normalizePinchScale } from "./gesture-physics";
12
+ import { resetPinchGestureValues } from "./gesture-reset";
13
+
14
+ export const startPinchBase = (
15
+ runtime: PinchGestureRuntime,
16
+ event: PinchGestureEvent,
17
+ ) => {
18
+ "worklet";
19
+ const {
20
+ stores: { gestures, animations },
21
+ gestureProgressBaseline,
22
+ } = runtime;
23
+
24
+ const wasSettling = gestures.settling.get();
25
+ const hasResidualGesture = Math.abs(gestures.normScale.get()) > EPSILON;
26
+
27
+ if (!wasSettling || !hasResidualGesture) {
28
+ emit(animations.willAnimate, TRUE, FALSE);
29
+ }
30
+
31
+ gestures.dragging.set(TRUE);
32
+ gestures.dismissing.set(0);
33
+ gestures.settling.set(0);
34
+ gestures.active.set(null);
35
+ gestures.direction.set(null);
36
+ gestures.scale.set(1);
37
+ gestures.normScale.set(0);
38
+ gestures.raw.scale.set(1);
39
+ gestures.raw.normScale.set(0);
40
+ gestures.focalX.set(event.focalX);
41
+ gestures.focalY.set(event.focalY);
42
+ gestureProgressBaseline.set(animations.progress.get());
43
+ };
44
+
45
+ export const trackPinchGesture = (
46
+ event: PinchGestureEvent,
47
+ rawEvent: PinchGestureEvent,
48
+ gestures: PinchGestureRuntime["stores"]["gestures"],
49
+ ): PinchTrackState => {
50
+ "worklet";
51
+ const normScale = clamp(normalizePinchScale(event.scale), -1, 1);
52
+ const scale = clamp(1 + normScale, 0, 2);
53
+ const rawNormScale = clamp(normalizePinchScale(rawEvent.scale), -1, 1);
54
+ const rawScale = clamp(1 + rawNormScale, 0, 2);
55
+
56
+ gestures.scale.set(scale);
57
+ gestures.normScale.set(normScale);
58
+ gestures.focalX.set(event.focalX);
59
+ gestures.focalY.set(event.focalY);
60
+ gestures.raw.scale.set(rawScale);
61
+ gestures.raw.normScale.set(rawNormScale);
62
+ gestures.active.set(
63
+ normScale < 0 ? "pinch-in" : normScale > 0 ? "pinch-out" : null,
64
+ );
65
+
66
+ return {
67
+ scale,
68
+ normScale,
69
+ };
70
+ };
71
+
72
+ export const finalizePinchRelease = (
73
+ release: PinchReleaseResult,
74
+ runtime: PinchGestureRuntime,
75
+ dismissScreen: (() => void) | undefined,
76
+ ) => {
77
+ "worklet";
78
+ const {
79
+ stores: { gestures, animations, system },
80
+ } = runtime;
81
+
82
+ resetPinchGestureValues({
83
+ spec: release.resetSpec,
84
+ gestures,
85
+ shouldDismiss: release.shouldDismiss,
86
+ });
87
+
88
+ animateToProgress({
89
+ target: release.target,
90
+ onAnimationFinish: release.shouldDismiss ? dismissScreen : undefined,
91
+ spec: release.transitionSpec,
92
+ emitWillAnimate: false,
93
+ markEntering: false,
94
+ animations,
95
+ targetProgress: system.targetProgress,
96
+ initialVelocity: release.initialVelocity,
97
+ });
98
+ };
@@ -0,0 +1,23 @@
1
+ export type GestureTrackingParticipationInput = {
2
+ isFirstKey: boolean;
3
+ canDismiss: boolean;
4
+ hasSnapPoints: boolean;
5
+ allowDisabledGestureTracking?: boolean;
6
+ };
7
+
8
+ export function resolveCanTrackGesture({
9
+ isFirstKey,
10
+ canDismiss,
11
+ hasSnapPoints,
12
+ allowDisabledGestureTracking,
13
+ }: GestureTrackingParticipationInput) {
14
+ if (isFirstKey) {
15
+ return false;
16
+ }
17
+
18
+ if (allowDisabledGestureTracking) {
19
+ return true;
20
+ }
21
+
22
+ return canDismiss || hasSnapPoints;
23
+ }
@@ -0,0 +1,159 @@
1
+ import type { ScreenOptionsSnapshot } from "../../options";
2
+ import type {
3
+ PanGesturePolicy,
4
+ PanGestureRuntime,
5
+ PinchGesturePolicy,
6
+ PinchGestureRuntime,
7
+ } from "../types";
8
+ import {
9
+ getPanActivationDirections,
10
+ getPanGestureDirections,
11
+ getPanSnapAxisDirections,
12
+ getPinchGestureDirections,
13
+ getSnapPinchDirectionConfig,
14
+ } from "./gesture-directions";
15
+
16
+ export const resolveRuntimeCanTrackGesture = (
17
+ runtime: PanGestureRuntime | PinchGestureRuntime,
18
+ screenOptions: ScreenOptionsSnapshot,
19
+ ) => {
20
+ "worklet";
21
+ const { participation } = runtime;
22
+
23
+ if (participation.isFirstKey) {
24
+ return false;
25
+ }
26
+
27
+ if (screenOptions.experimental_allowDisabledGestureTracking === true) {
28
+ return true;
29
+ }
30
+
31
+ const gestureEnabled = screenOptions.gestureEnabled;
32
+ if (gestureEnabled === true) {
33
+ return true;
34
+ }
35
+
36
+ if (gestureEnabled === false) {
37
+ return participation.effectiveSnapPoints.hasSnapPoints;
38
+ }
39
+
40
+ return participation.canTrackGesture;
41
+ };
42
+
43
+ export const resolveRuntimeCanDismiss = (
44
+ runtime: PanGestureRuntime | PinchGestureRuntime,
45
+ screenOptions: ScreenOptionsSnapshot,
46
+ ) => {
47
+ "worklet";
48
+ const { participation } = runtime;
49
+
50
+ if (participation.isFirstKey) {
51
+ return false;
52
+ }
53
+
54
+ const gestureEnabled = screenOptions.gestureEnabled;
55
+ if (gestureEnabled === false) {
56
+ return false;
57
+ }
58
+
59
+ if (gestureEnabled === true) {
60
+ return true;
61
+ }
62
+
63
+ return participation.canDismiss;
64
+ };
65
+
66
+ export const resolvePanRuntimePolicy = (
67
+ runtime: PanGestureRuntime,
68
+ screenOptions: ScreenOptionsSnapshot,
69
+ ): PanGesturePolicy => {
70
+ "worklet";
71
+ const { policy, participation } = runtime;
72
+ const gestureDirection = screenOptions.gestureDirection;
73
+ const hasSnapPoints = participation.effectiveSnapPoints.hasSnapPoints;
74
+
75
+ return {
76
+ ...policy,
77
+ enabled: getPanGestureDirections(gestureDirection).length > 0,
78
+ gestureDirection,
79
+ panActivationDirections: getPanActivationDirections({
80
+ gestureDirection,
81
+ hasSnapPoints,
82
+ }),
83
+ snapAxisDirections: getPanSnapAxisDirections(gestureDirection),
84
+ gestureDrivesProgress: screenOptions.gestureDrivesProgress,
85
+ gestureSensitivity: screenOptions.gestureSensitivity,
86
+ gestureVelocityImpact: screenOptions.gestureVelocityImpact,
87
+ gestureSnapVelocityImpact: screenOptions.gestureSnapVelocityImpact,
88
+ gestureReleaseVelocityScale: screenOptions.gestureReleaseVelocityScale,
89
+ gestureResponseDistance: screenOptions.gestureResponseDistance,
90
+ gestureActivationArea: screenOptions.gestureActivationArea,
91
+ gestureSnapLocked: screenOptions.gestureSnapLocked,
92
+ sheetScrollGestureBehavior: screenOptions.sheetScrollGestureBehavior,
93
+ };
94
+ };
95
+
96
+ export const resolvePinchRuntimePolicy = (
97
+ runtime: PinchGestureRuntime,
98
+ screenOptions: ScreenOptionsSnapshot,
99
+ ): PinchGesturePolicy => {
100
+ "worklet";
101
+ const { policy, participation } = runtime;
102
+ const gestureDirection = screenOptions.gestureDirection;
103
+ const pinchDirections = getPinchGestureDirections(gestureDirection);
104
+ const snapDirections = participation.effectiveSnapPoints.hasSnapPoints
105
+ ? getSnapPinchDirectionConfig(gestureDirection)
106
+ : null;
107
+ const pinchInEnabled = snapDirections
108
+ ? true
109
+ : pinchDirections.includes("pinch-in");
110
+ const pinchOutEnabled = snapDirections
111
+ ? true
112
+ : pinchDirections.includes("pinch-out");
113
+
114
+ return {
115
+ ...policy,
116
+ enabled: pinchInEnabled || pinchOutEnabled,
117
+ gestureDirection,
118
+ snapDirections,
119
+ pinchInEnabled,
120
+ pinchOutEnabled,
121
+ gestureDrivesProgress: screenOptions.gestureDrivesProgress,
122
+ gestureSensitivity: screenOptions.gestureSensitivity,
123
+ gestureSnapVelocityImpact: screenOptions.gestureSnapVelocityImpact,
124
+ gestureReleaseVelocityScale: screenOptions.gestureReleaseVelocityScale,
125
+ gestureSnapLocked: screenOptions.gestureSnapLocked,
126
+ };
127
+ };
128
+
129
+ export const resolvePanRuntime = (
130
+ runtime: PanGestureRuntime,
131
+ screenOptions: ScreenOptionsSnapshot,
132
+ ): PanGestureRuntime => {
133
+ "worklet";
134
+ return {
135
+ ...runtime,
136
+ participation: {
137
+ ...runtime.participation,
138
+ canDismiss: resolveRuntimeCanDismiss(runtime, screenOptions),
139
+ canTrackGesture: resolveRuntimeCanTrackGesture(runtime, screenOptions),
140
+ },
141
+ policy: resolvePanRuntimePolicy(runtime, screenOptions),
142
+ };
143
+ };
144
+
145
+ export const resolvePinchRuntime = (
146
+ runtime: PinchGestureRuntime,
147
+ screenOptions: ScreenOptionsSnapshot,
148
+ ): PinchGestureRuntime => {
149
+ "worklet";
150
+ return {
151
+ ...runtime,
152
+ participation: {
153
+ ...runtime.participation,
154
+ canDismiss: resolveRuntimeCanDismiss(runtime, screenOptions),
155
+ canTrackGesture: resolveRuntimeCanTrackGesture(runtime, screenOptions),
156
+ },
157
+ policy: resolvePinchRuntimePolicy(runtime, screenOptions),
158
+ };
159
+ };
@@ -1,4 +1,4 @@
1
- import type { SnapPoint } from "../../types/screen.types";
1
+ import type { SnapPoint } from "../../../../types/screen.types";
2
2
 
3
3
  /**
4
4
  * Filters snap points to only valid, finite numeric values.
@@ -0,0 +1,27 @@
1
+ type GestureAncestorNode<T> = {
2
+ gestureContext: T | null;
3
+ isIsolated?: boolean;
4
+ };
5
+
6
+ /**
7
+ * Returns the gesture context chain, starting at `context`, then walking upward.
8
+ * When `isIsolated` is provided, the walk stops at a stack isolation boundary.
9
+ */
10
+ export function walkGestureAncestors<T extends GestureAncestorNode<T>>(
11
+ context: T | null | undefined,
12
+ isIsolated?: boolean,
13
+ ): T[] {
14
+ const ancestors: T[] = [];
15
+ let ancestor = context ?? null;
16
+
17
+ while (ancestor) {
18
+ if (isIsolated !== undefined && ancestor.isIsolated !== isIsolated) {
19
+ break;
20
+ }
21
+
22
+ ancestors.push(ancestor);
23
+ ancestor = ancestor.gestureContext;
24
+ }
25
+
26
+ return ancestors;
27
+ }