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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1288) hide show
  1. package/README.md +23 -1081
  2. package/lib/commonjs/shared/animation/snap-to.js +4 -6
  3. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
  5. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -29
  7. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +43 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
  11. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +14 -147
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +1 -8
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +5 -15
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +26 -36
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -38
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  28. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +29 -31
  29. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  30. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  31. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  32. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  33. package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
  34. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  35. package/lib/commonjs/shared/components/native-screen.js +2 -2
  36. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  37. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +1 -1
  38. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  39. package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +18 -13
  40. package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  41. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  42. package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  43. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  44. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  45. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +12 -5
  46. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  47. package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
  48. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  49. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
  50. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  51. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +16 -5
  52. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  53. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -12
  54. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  55. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
  56. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  57. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
  58. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  59. package/lib/commonjs/shared/configs/presets.js +8 -8
  60. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  61. package/lib/commonjs/shared/configs/specs.js +2 -2
  62. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  63. package/lib/commonjs/shared/constants.js +40 -9
  64. package/lib/commonjs/shared/constants.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  66. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  67. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  68. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  69. package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
  70. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  71. package/lib/commonjs/shared/index.js +1 -1
  72. package/lib/commonjs/shared/index.js.map +1 -1
  73. package/lib/commonjs/shared/providers/register-bounds.provider.js +12 -20
  74. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +86 -8
  76. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +23 -0
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +107 -0
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
  81. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +38 -0
  82. package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  83. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
  84. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +79 -0
  86. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
  87. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +95 -0
  88. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
  89. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +29 -0
  90. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
  91. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +96 -0
  92. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
  93. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +6 -0
  94. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
  95. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +60 -87
  96. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  97. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +51 -0
  98. package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
  99. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
  100. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  101. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +57 -18
  102. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  103. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
  104. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  105. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
  106. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  107. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
  108. package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  109. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +32 -0
  110. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  111. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
  112. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  113. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +27 -0
  114. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  115. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +32 -0
  116. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  117. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
  118. package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  119. package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
  120. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +74 -0
  121. package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  122. package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +20 -7
  123. package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  124. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +108 -0
  125. package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  126. package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js +50 -0
  127. package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
  128. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js +210 -0
  129. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
  130. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js +314 -0
  131. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
  132. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +94 -0
  133. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
  134. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +123 -0
  135. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
  136. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +193 -0
  137. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
  138. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +52 -0
  139. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
  140. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +53 -0
  141. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
  142. package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +43 -0
  143. package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
  144. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +55 -0
  145. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
  146. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +94 -0
  147. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
  148. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js +133 -0
  149. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
  150. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js +45 -0
  151. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
  152. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +53 -0
  153. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
  154. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js +13 -0
  155. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
  156. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +44 -0
  157. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
  158. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +134 -0
  159. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
  160. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +56 -0
  161. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  162. package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js +23 -0
  163. package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
  164. package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js +146 -0
  165. package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js.map +1 -0
  166. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +212 -0
  167. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -0
  168. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +231 -0
  169. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -0
  170. package/lib/commonjs/shared/providers/screen/gestures/shared/release.js +36 -0
  171. package/lib/commonjs/shared/providers/screen/gestures/shared/release.js.map +1 -0
  172. package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js +65 -0
  173. package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js.map +1 -0
  174. package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js +43 -0
  175. package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
  176. package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js +184 -0
  177. package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
  178. package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js +122 -0
  179. package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js.map +1 -0
  180. package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +2 -2
  181. package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
  182. package/lib/commonjs/shared/providers/screen/options/helpers.js +176 -0
  183. package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
  184. package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
  185. package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
  186. package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
  187. package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
  188. package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
  189. package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
  190. package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
  191. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  192. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  193. package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
  194. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  195. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  196. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  197. package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +26 -0
  198. package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
  199. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +294 -0
  200. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  201. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
  202. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  203. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
  204. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  205. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
  206. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  207. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  208. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
  209. package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  210. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +45 -0
  211. package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
  212. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +69 -10
  213. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  214. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +34 -8
  215. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  216. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +19 -2
  217. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  218. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  219. package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  220. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  221. package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  222. package/lib/commonjs/shared/stores/animation.store.js +3 -7
  223. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  224. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +49 -0
  225. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  226. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
  227. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  228. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
  229. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  230. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
  231. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  232. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
  233. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  234. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +1 -10
  235. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -1
  236. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
  237. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  238. package/lib/commonjs/shared/stores/bounds/index.js +16 -101
  239. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  240. package/lib/commonjs/shared/stores/bounds/internals/clear.js +0 -21
  241. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  242. package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
  243. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
  244. package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
  245. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
  246. package/lib/commonjs/shared/stores/bounds/internals/links.js +120 -0
  247. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
  248. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
  249. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  250. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
  251. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  252. package/lib/commonjs/shared/stores/gesture.store.js +31 -1
  253. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  254. package/lib/commonjs/shared/stores/scroll.store.js +22 -0
  255. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
  256. package/lib/commonjs/shared/stores/system.store.js +3 -0
  257. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  258. package/lib/commonjs/shared/types/gesture.types.js +6 -6
  259. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  260. package/lib/commonjs/shared/types/ownership.types.js +2 -2
  261. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +52 -36
  262. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  263. package/lib/commonjs/shared/utils/animation/emit.js +22 -0
  264. package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
  265. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
  266. package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  267. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
  268. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  269. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  270. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  271. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  272. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  273. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
  274. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  275. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
  276. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  277. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  278. package/lib/commonjs/shared/utils/bounds/index.js +34 -59
  279. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  280. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
  281. package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
  282. package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +2 -55
  283. package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
  284. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +375 -0
  285. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  286. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +20 -0
  287. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  288. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
  289. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  290. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
  291. package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  292. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +111 -147
  293. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  294. package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +2 -14
  295. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  296. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
  297. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  298. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +25 -0
  299. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  300. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
  301. package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  302. package/lib/commonjs/shared/utils/gesture-progress-mode.js +50 -0
  303. package/lib/commonjs/shared/utils/gesture-progress-mode.js.map +1 -0
  304. package/lib/commonjs/shared/utils/resolve-chain-target.js +29 -0
  305. package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
  306. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +3 -10
  307. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
  308. package/lib/module/shared/animation/snap-to.js +4 -6
  309. package/lib/module/shared/animation/snap-to.js.map +1 -1
  310. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
  311. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  312. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -30
  313. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  314. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +38 -0
  315. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
  316. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  317. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  318. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
  319. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
  320. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +11 -138
  321. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  322. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
  323. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
  324. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
  325. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
  326. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -13
  327. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  328. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +96 -0
  329. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
  330. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
  331. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
  332. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -40
  333. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  334. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +29 -31
  335. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  336. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
  337. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
  338. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  339. package/lib/module/shared/components/create-transition-aware-component.js +12 -7
  340. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  341. package/lib/module/shared/components/native-screen.js +2 -2
  342. package/lib/module/shared/components/native-screen.js.map +1 -1
  343. package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
  344. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  345. package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +17 -12
  346. package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
  347. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
  348. package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
  349. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
  350. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  351. package/lib/module/shared/components/screen-container/layers/backdrop.js +12 -5
  352. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  353. package/lib/module/shared/components/screen-container/layers/content.js +2 -2
  354. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  355. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
  356. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  357. package/lib/module/shared/components/screen-container/layers/surface-container.js +16 -5
  358. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  359. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +5 -13
  360. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  361. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
  362. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
  363. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
  364. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
  365. package/lib/module/shared/configs/presets.js +8 -8
  366. package/lib/module/shared/configs/presets.js.map +1 -1
  367. package/lib/module/shared/configs/specs.js +2 -2
  368. package/lib/module/shared/configs/specs.js.map +1 -1
  369. package/lib/module/shared/constants.js +39 -8
  370. package/lib/module/shared/constants.js.map +1 -1
  371. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
  372. package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
  373. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
  374. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  375. package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
  376. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  377. package/lib/module/shared/index.js +1 -1
  378. package/lib/module/shared/index.js.map +1 -1
  379. package/lib/module/shared/providers/register-bounds.provider.js +9 -17
  380. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  381. package/lib/module/shared/providers/screen/animation/animation.provider.js +87 -9
  382. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  383. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +18 -0
  384. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
  385. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +101 -0
  386. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
  387. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +33 -0
  388. package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
  389. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
  390. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  391. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +74 -0
  392. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
  393. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +85 -0
  394. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
  395. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +22 -0
  396. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
  397. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +89 -0
  398. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
  399. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +4 -0
  400. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
  401. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +62 -89
  402. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  403. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +46 -0
  404. package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
  405. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
  406. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  407. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +58 -18
  408. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  409. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
  410. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  411. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
  412. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  413. package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
  414. package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
  415. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +27 -0
  416. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
  417. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
  418. package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
  419. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +23 -0
  420. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
  421. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +27 -0
  422. package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
  423. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
  424. package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
  425. package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
  426. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +70 -0
  427. package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
  428. package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +19 -7
  429. package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
  430. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +104 -0
  431. package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
  432. package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js +45 -0
  433. package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
  434. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js +205 -0
  435. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
  436. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js +304 -0
  437. package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
  438. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +89 -0
  439. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
  440. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +116 -0
  441. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
  442. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +185 -0
  443. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
  444. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +47 -0
  445. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
  446. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +48 -0
  447. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
  448. package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +38 -0
  449. package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
  450. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +50 -0
  451. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
  452. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +87 -0
  453. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
  454. package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js +126 -0
  455. package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
  456. package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js +40 -0
  457. package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
  458. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +48 -0
  459. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
  460. package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js +4 -0
  461. package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
  462. package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +39 -0
  463. package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
  464. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +128 -0
  465. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
  466. package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +52 -0
  467. package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
  468. package/lib/module/shared/providers/screen/gestures/shared/ancestors.js +19 -0
  469. package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
  470. package/lib/module/shared/providers/screen/gestures/shared/directions.js +135 -0
  471. package/lib/module/shared/providers/screen/gestures/shared/directions.js.map +1 -0
  472. package/lib/module/shared/providers/screen/gestures/shared/physics.js +199 -0
  473. package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -0
  474. package/lib/module/shared/providers/screen/gestures/shared/policy.js +218 -0
  475. package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -0
  476. package/lib/module/shared/providers/screen/gestures/shared/release.js +30 -0
  477. package/lib/module/shared/providers/screen/gestures/shared/release.js.map +1 -0
  478. package/lib/module/shared/providers/screen/gestures/shared/reset.js +58 -0
  479. package/lib/module/shared/providers/screen/gestures/shared/reset.js.map +1 -0
  480. package/lib/module/shared/providers/screen/gestures/shared/runtime.js +37 -0
  481. package/lib/module/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
  482. package/lib/module/shared/providers/screen/gestures/shared/snap-points.js +174 -0
  483. package/lib/module/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
  484. package/lib/module/shared/providers/screen/gestures/shared/targets.js +116 -0
  485. package/lib/module/shared/providers/screen/gestures/shared/targets.js.map +1 -0
  486. package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +1 -1
  487. package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
  488. package/lib/module/shared/providers/screen/options/helpers.js +169 -0
  489. package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
  490. package/lib/module/shared/providers/screen/options/index.js +5 -0
  491. package/lib/module/shared/providers/screen/options/index.js.map +1 -0
  492. package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
  493. package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
  494. package/lib/module/shared/providers/screen/options/types.js +4 -0
  495. package/lib/module/shared/providers/screen/options/types.js.map +1 -0
  496. package/lib/module/shared/providers/screen/screen-composer.js +9 -6
  497. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  498. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  499. package/lib/module/shared/providers/screen/styles/constants.js +54 -4
  500. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  501. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
  502. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  503. package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +21 -0
  504. package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
  505. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +288 -0
  506. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
  507. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
  508. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
  509. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
  510. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
  511. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
  512. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
  513. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
  514. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
  515. package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
  516. package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +39 -0
  517. package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
  518. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -10
  519. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  520. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -9
  521. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  522. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +20 -3
  523. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
  524. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
  525. package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
  526. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
  527. package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
  528. package/lib/module/shared/stores/animation.store.js +3 -7
  529. package/lib/module/shared/stores/animation.store.js.map +1 -1
  530. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +42 -0
  531. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
  532. package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
  533. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
  534. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
  535. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
  536. package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
  537. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  538. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
  539. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
  540. package/lib/module/shared/stores/bounds/helpers/matching.js +1 -9
  541. package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -1
  542. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
  543. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
  544. package/lib/module/shared/stores/bounds/index.js +10 -95
  545. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  546. package/lib/module/shared/stores/bounds/internals/clear.js +2 -21
  547. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  548. package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
  549. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
  550. package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
  551. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
  552. package/lib/module/shared/stores/bounds/internals/links.js +112 -0
  553. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
  554. package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
  555. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  556. package/lib/module/shared/stores/bounds/internals/state.js +0 -8
  557. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  558. package/lib/module/shared/stores/gesture.store.js +31 -1
  559. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  560. package/lib/module/shared/stores/scroll.store.js +18 -0
  561. package/lib/module/shared/stores/scroll.store.js.map +1 -0
  562. package/lib/module/shared/stores/system.store.js +3 -0
  563. package/lib/module/shared/stores/system.store.js.map +1 -1
  564. package/lib/module/shared/types/animation.types.js +25 -3
  565. package/lib/module/shared/types/animation.types.js.map +1 -1
  566. package/lib/module/shared/types/gesture.types.js +6 -5
  567. package/lib/module/shared/types/gesture.types.js.map +1 -1
  568. package/lib/module/shared/types/ownership.types.js +2 -2
  569. package/lib/module/shared/utils/animation/animate-to-progress.js +52 -36
  570. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  571. package/lib/module/shared/utils/animation/emit.js +17 -0
  572. package/lib/module/shared/utils/animation/emit.js.map +1 -0
  573. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
  574. package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
  575. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
  576. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
  577. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
  578. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  579. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
  580. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  581. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
  582. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  583. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
  584. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  585. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
  586. package/lib/module/shared/utils/bounds/index.js +34 -59
  587. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  588. package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
  589. package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
  590. package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -51
  591. package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
  592. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +371 -0
  593. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
  594. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +16 -0
  595. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
  596. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
  597. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
  598. package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
  599. package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
  600. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +93 -129
  601. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
  602. package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -11
  603. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
  604. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
  605. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
  606. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +20 -0
  607. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
  608. package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
  609. package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
  610. package/lib/module/shared/utils/gesture-progress-mode.js +42 -0
  611. package/lib/module/shared/utils/gesture-progress-mode.js.map +1 -0
  612. package/lib/module/shared/utils/resolve-chain-target.js +25 -0
  613. package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
  614. package/lib/module/shared/utils/resolve-screen-transition-options.js +1 -7
  615. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
  616. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  617. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  618. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  619. package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -4
  620. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
  621. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
  622. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
  623. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +6 -64
  624. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  625. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
  626. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
  627. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
  628. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
  629. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +0 -3
  630. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  631. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +11 -0
  632. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  633. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
  634. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
  635. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +2 -5
  636. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  637. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  638. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
  639. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
  640. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
  641. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  642. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  643. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  644. package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
  645. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
  646. package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
  647. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  648. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  649. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
  650. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +1 -1
  651. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
  652. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
  653. package/lib/typescript/shared/constants.d.ts +17 -6
  654. package/lib/typescript/shared/constants.d.ts.map +1 -1
  655. package/lib/typescript/shared/index.d.ts +4 -4
  656. package/lib/typescript/shared/index.d.ts.map +1 -1
  657. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  658. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +4 -1
  659. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  660. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +2 -0
  661. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -0
  662. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -0
  663. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -0
  664. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
  665. package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
  666. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
  667. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  668. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +5 -0
  669. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -0
  670. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +6 -0
  671. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -0
  672. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts +5 -0
  673. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts.map +1 -0
  674. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts +5 -0
  675. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts.map +1 -0
  676. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +35 -0
  677. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -0
  678. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +5 -4
  679. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  680. package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts +9 -0
  681. package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -0
  682. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +7 -4
  683. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  684. package/lib/typescript/shared/providers/screen/animation/types.d.ts +17 -1
  685. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  686. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +11 -3
  687. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  688. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  689. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
  690. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  691. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
  692. package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
  693. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
  694. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
  695. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
  696. package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
  697. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
  698. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
  699. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
  700. package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
  701. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +6 -0
  702. package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
  703. package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
  704. package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
  705. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
  706. package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
  707. package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +10 -5
  708. package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
  709. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
  710. package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
  711. package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts +10 -0
  712. package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts.map +1 -0
  713. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts +29 -0
  714. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts.map +1 -0
  715. package/lib/typescript/shared/providers/{gestures/helpers/gesture-activation.d.ts → screen/gestures/pan/pan-activation-rules.d.ts} +19 -20
  716. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-rules.d.ts.map +1 -0
  717. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts +17 -0
  718. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -0
  719. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts +5 -0
  720. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -0
  721. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts +6 -0
  722. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -0
  723. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +17 -0
  724. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -0
  725. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts +5 -0
  726. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -0
  727. package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts +7 -0
  728. package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts.map +1 -0
  729. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts +14 -0
  730. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -0
  731. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts +5 -0
  732. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -0
  733. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts +5 -0
  734. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts.map +1 -0
  735. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts +11 -0
  736. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts.map +1 -0
  737. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts +5 -0
  738. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -0
  739. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts +2 -0
  740. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts.map +1 -0
  741. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts +5 -0
  742. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts.map +1 -0
  743. package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
  744. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
  745. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
  746. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
  747. package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts +11 -0
  748. package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +1 -0
  749. package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts +18 -0
  750. package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts.map +1 -0
  751. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +64 -0
  752. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -0
  753. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +49 -0
  754. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -0
  755. package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts +13 -0
  756. package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts.map +1 -0
  757. package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts +7 -0
  758. package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts.map +1 -0
  759. package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts +5 -0
  760. package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts.map +1 -0
  761. package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts +37 -0
  762. package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts.map +1 -0
  763. package/lib/typescript/shared/providers/{gestures/helpers/gesture-targets.d.ts → screen/gestures/shared/targets.d.ts} +2 -2
  764. package/lib/typescript/shared/providers/screen/gestures/shared/targets.d.ts.map +1 -0
  765. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +155 -0
  766. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
  767. package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
  768. package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
  769. package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
  770. package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
  771. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
  772. package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
  773. package/lib/typescript/shared/providers/screen/options/types.d.ts +30 -0
  774. package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
  775. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  776. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  777. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
  778. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  779. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
  780. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  781. package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +3 -0
  782. package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +1 -0
  783. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +23 -0
  784. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
  785. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
  786. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
  787. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
  788. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
  789. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
  790. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
  791. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
  792. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
  793. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
  794. package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
  795. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +17 -0
  796. package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -0
  797. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
  798. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  799. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  800. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
  801. package/lib/typescript/shared/stores/animation.store.d.ts +1 -3
  802. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  803. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
  804. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
  805. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
  806. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
  807. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
  808. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
  809. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
  810. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  811. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +14 -0
  812. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
  813. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +1 -2
  814. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -1
  815. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
  816. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
  817. package/lib/typescript/shared/stores/bounds/index.d.ts +8 -32
  818. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  819. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +2 -4
  820. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  821. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
  822. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
  823. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
  824. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
  825. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +12 -0
  826. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
  827. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  828. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
  829. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  830. package/lib/typescript/shared/stores/bounds/types.d.ts +10 -14
  831. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  832. package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
  833. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  834. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
  835. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
  836. package/lib/typescript/shared/stores/system.store.d.ts +4 -0
  837. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  838. package/lib/typescript/shared/types/animation.types.d.ts +75 -34
  839. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  840. package/lib/typescript/shared/types/bounds.types.d.ts +21 -2
  841. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  842. package/lib/typescript/shared/types/gesture.types.d.ts +71 -5
  843. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  844. package/lib/typescript/shared/types/index.d.ts +3 -3
  845. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  846. package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
  847. package/lib/typescript/shared/types/screen.types.d.ts +48 -6
  848. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  849. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  850. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  851. package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
  852. package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
  853. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
  854. package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
  855. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  856. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  857. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
  858. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
  859. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +2 -2
  860. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  861. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +2 -3
  862. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  863. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +3 -10
  864. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  865. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  866. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
  867. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
  868. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  869. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
  870. package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
  871. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
  872. package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
  873. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
  874. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
  875. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +9 -0
  876. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
  877. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
  878. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
  879. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
  880. package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
  881. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
  882. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +1 -4
  883. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
  884. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
  885. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
  886. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +8 -0
  887. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
  888. package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
  889. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
  890. package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
  891. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  892. package/lib/typescript/shared/utils/gesture-progress-mode.d.ts +14 -0
  893. package/lib/typescript/shared/utils/gesture-progress-mode.d.ts.map +1 -0
  894. package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
  895. package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
  896. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -2
  897. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
  898. package/package.json +5 -2
  899. package/src/shared/animation/snap-to.ts +8 -6
  900. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
  901. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -35
  902. package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -30
  903. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
  904. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
  905. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +11 -182
  906. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
  907. package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
  908. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -28
  909. package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +29 -57
  910. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
  911. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -80
  912. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +55 -47
  913. package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
  914. package/src/shared/components/create-boundary-component/types.ts +0 -8
  915. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
  916. package/src/shared/components/create-transition-aware-component.tsx +24 -10
  917. package/src/shared/components/native-screen.tsx +2 -2
  918. package/src/shared/components/overlay/variations/overlay-host.tsx +1 -1
  919. package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +19 -8
  920. package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
  921. package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
  922. package/src/shared/components/screen-container/layers/backdrop.tsx +15 -9
  923. package/src/shared/components/screen-container/layers/content.tsx +2 -2
  924. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +30 -16
  925. package/src/shared/components/screen-container/layers/surface-container.tsx +35 -15
  926. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +5 -23
  927. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +2 -5
  928. package/src/shared/components/screen-lifecycle/hooks/use-open-transition-intent.ts +1 -1
  929. package/src/shared/configs/presets.ts +8 -8
  930. package/src/shared/configs/specs.ts +2 -2
  931. package/src/shared/constants.ts +52 -8
  932. package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
  933. package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
  934. package/src/shared/hooks/use-stable-callback-value.ts +3 -3
  935. package/src/shared/index.ts +8 -4
  936. package/src/shared/providers/register-bounds.provider.tsx +15 -17
  937. package/src/shared/providers/screen/animation/animation.provider.tsx +169 -13
  938. package/src/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +13 -0
  939. package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +158 -0
  940. package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +63 -0
  941. package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
  942. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +164 -0
  943. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +160 -0
  944. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.ts +41 -0
  945. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.ts +188 -0
  946. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +40 -0
  947. package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -99
  948. package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +99 -0
  949. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +20 -17
  950. package/src/shared/providers/screen/animation/types.ts +31 -1
  951. package/src/shared/providers/screen/animation/use-screen-animation.tsx +96 -22
  952. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +1 -7
  953. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -19
  954. package/src/shared/providers/screen/gestures/gestures.provider.tsx +85 -0
  955. package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +31 -0
  956. package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
  957. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +24 -0
  958. package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +33 -0
  959. package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +45 -0
  960. package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
  961. package/src/shared/providers/screen/gestures/ownership/compute-claimed-directions.ts +101 -0
  962. package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +27 -9
  963. package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +129 -0
  964. package/src/shared/providers/screen/gestures/pan/build-pan-gesture.ts +65 -0
  965. package/src/shared/providers/screen/gestures/pan/pan-activation-decision.ts +458 -0
  966. package/src/shared/providers/{gestures/helpers/gesture-activation.ts → screen/gestures/pan/pan-activation-rules.ts} +219 -173
  967. package/src/shared/providers/screen/gestures/pan/pan-activation.ts +132 -0
  968. package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +129 -0
  969. package/src/shared/providers/screen/gestures/pan/pan-release.ts +246 -0
  970. package/src/shared/providers/screen/gestures/pan/pan-reset.ts +92 -0
  971. package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +89 -0
  972. package/src/shared/providers/screen/gestures/pinch/build-pinch-gesture.ts +48 -0
  973. package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +72 -0
  974. package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +104 -0
  975. package/src/shared/providers/screen/gestures/pinch/pinch-release.ts +183 -0
  976. package/src/shared/providers/screen/gestures/pinch/pinch-reset.ts +65 -0
  977. package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +82 -0
  978. package/src/shared/providers/screen/gestures/scroll-coordination/index.ts +1 -0
  979. package/src/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.ts +44 -0
  980. package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +180 -0
  981. package/src/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +88 -0
  982. package/src/shared/providers/screen/gestures/shared/ancestors.ts +27 -0
  983. package/src/shared/providers/screen/gestures/shared/directions.ts +205 -0
  984. package/src/shared/providers/screen/gestures/shared/physics.ts +323 -0
  985. package/src/shared/providers/screen/gestures/shared/policy.ts +346 -0
  986. package/src/shared/providers/screen/gestures/shared/release.ts +43 -0
  987. package/src/shared/providers/screen/gestures/shared/reset.ts +74 -0
  988. package/src/shared/providers/screen/gestures/shared/runtime.ts +76 -0
  989. package/src/shared/providers/screen/gestures/shared/snap-points.ts +250 -0
  990. package/src/shared/providers/screen/gestures/shared/targets.ts +202 -0
  991. package/src/shared/providers/screen/gestures/types.ts +216 -0
  992. package/src/shared/providers/screen/options/helpers.ts +382 -0
  993. package/src/shared/providers/screen/options/index.ts +6 -0
  994. package/src/shared/providers/screen/options/options.provider.tsx +43 -0
  995. package/src/shared/providers/screen/options/types.ts +36 -0
  996. package/src/shared/providers/screen/screen-composer.tsx +11 -8
  997. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +0 -2
  998. package/src/shared/providers/screen/styles/constants.ts +50 -4
  999. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
  1000. package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +22 -0
  1001. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +414 -0
  1002. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
  1003. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
  1004. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
  1005. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
  1006. package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
  1007. package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +57 -0
  1008. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +95 -18
  1009. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +37 -13
  1010. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +19 -1
  1011. package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
  1012. package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
  1013. package/src/shared/stores/animation.store.ts +3 -9
  1014. package/src/shared/stores/bounds/helpers/entries.helpers.ts +55 -0
  1015. package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
  1016. package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
  1017. package/src/shared/stores/bounds/helpers/keys.ts +0 -22
  1018. package/src/shared/stores/bounds/helpers/link.helpers.ts +131 -0
  1019. package/src/shared/stores/bounds/helpers/matching.ts +2 -16
  1020. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
  1021. package/src/shared/stores/bounds/index.ts +14 -194
  1022. package/src/shared/stores/bounds/internals/clear.ts +3 -42
  1023. package/src/shared/stores/bounds/internals/entries.ts +42 -0
  1024. package/src/shared/stores/bounds/internals/groups.ts +99 -3
  1025. package/src/shared/stores/bounds/internals/links.ts +171 -0
  1026. package/src/shared/stores/bounds/internals/resolver.ts +40 -77
  1027. package/src/shared/stores/bounds/internals/state.ts +0 -8
  1028. package/src/shared/stores/bounds/types.ts +10 -14
  1029. package/src/shared/stores/gesture.store.ts +54 -6
  1030. package/src/shared/stores/scroll.store.ts +25 -0
  1031. package/src/shared/stores/system.store.ts +8 -0
  1032. package/src/shared/types/animation.types.ts +102 -35
  1033. package/src/shared/types/bounds.types.ts +32 -2
  1034. package/src/shared/types/gesture.types.ts +91 -5
  1035. package/src/shared/types/index.ts +9 -0
  1036. package/src/shared/types/ownership.types.ts +2 -2
  1037. package/src/shared/types/screen.types.ts +56 -7
  1038. package/src/shared/utils/animation/animate-to-progress.ts +69 -42
  1039. package/src/shared/utils/animation/emit.ts +18 -0
  1040. package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
  1041. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
  1042. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +160 -0
  1043. package/src/shared/utils/bounds/helpers/create-interpolators.ts +8 -8
  1044. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +66 -11
  1045. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -6
  1046. package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
  1047. package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
  1048. package/src/shared/utils/bounds/index.ts +28 -53
  1049. package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
  1050. package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -72
  1051. package/src/shared/utils/bounds/navigation/reveal/build.ts +590 -0
  1052. package/src/shared/utils/bounds/navigation/reveal/config.ts +15 -0
  1053. package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
  1054. package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
  1055. package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +144 -191
  1056. package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +1 -15
  1057. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
  1058. package/src/shared/utils/bounds/navigation/zoom/math.ts +25 -0
  1059. package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
  1060. package/src/shared/utils/bounds/types/options.ts +8 -1
  1061. package/src/shared/utils/gesture-progress-mode.ts +67 -0
  1062. package/src/shared/utils/resolve-chain-target.ts +33 -0
  1063. package/src/shared/utils/resolve-screen-transition-options.ts +1 -16
  1064. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  1065. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
  1066. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  1067. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
  1068. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  1069. package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
  1070. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
  1071. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  1072. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
  1073. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  1074. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +0 -43
  1075. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
  1076. package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
  1077. package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
  1078. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
  1079. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1080. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +0 -322
  1081. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1082. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
  1083. package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1084. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
  1085. package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1086. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
  1087. package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1088. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
  1089. package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1090. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +0 -44
  1091. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1092. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js +0 -113
  1093. package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1094. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
  1095. package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1096. package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
  1097. package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
  1098. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
  1099. package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1100. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -110
  1101. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
  1102. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -33
  1103. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
  1104. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -28
  1105. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
  1106. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
  1107. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1108. package/lib/commonjs/shared/providers/scroll-settle.provider.js +0 -25
  1109. package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +0 -1
  1110. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
  1111. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1112. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
  1113. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
  1114. package/lib/commonjs/shared/typecheck/public-api.typecheck.js +0 -174
  1115. package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +0 -1
  1116. package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
  1117. package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
  1118. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
  1119. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
  1120. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
  1121. package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
  1122. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
  1123. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js +0 -81
  1124. package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1125. package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1126. package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1127. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +0 -56
  1128. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1129. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +0 -106
  1130. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
  1131. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
  1132. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
  1133. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
  1134. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
  1135. package/lib/module/shared/hooks/gestures/types.js.map +0 -1
  1136. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
  1137. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
  1138. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
  1139. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
  1140. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +0 -39
  1141. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
  1142. package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
  1143. package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
  1144. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
  1145. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
  1146. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +0 -312
  1147. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
  1148. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
  1149. package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
  1150. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
  1151. package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
  1152. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
  1153. package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
  1154. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
  1155. package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
  1156. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +0 -38
  1157. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
  1158. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js +0 -107
  1159. package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
  1160. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
  1161. package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
  1162. package/lib/module/shared/providers/gestures/index.js.map +0 -1
  1163. package/lib/module/shared/providers/gestures/types.js.map +0 -1
  1164. package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
  1165. package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
  1166. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -104
  1167. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
  1168. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -29
  1169. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
  1170. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -24
  1171. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
  1172. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
  1173. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
  1174. package/lib/module/shared/providers/scroll-settle.provider.js +0 -19
  1175. package/lib/module/shared/providers/scroll-settle.provider.js.map +0 -1
  1176. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -44
  1177. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
  1178. package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
  1179. package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
  1180. package/lib/module/shared/typecheck/public-api.typecheck.js +0 -174
  1181. package/lib/module/shared/typecheck/public-api.typecheck.js.map +0 -1
  1182. package/lib/module/shared/utils/animation/animate-many.js +0 -27
  1183. package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
  1184. package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
  1185. package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
  1186. package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
  1187. package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
  1188. package/lib/module/shared/utils/gesture/compute-claimed-directions.js +0 -77
  1189. package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
  1190. package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
  1191. package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
  1192. package/lib/module/shared/utils/gesture/validate-snap-points.js +0 -50
  1193. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
  1194. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
  1195. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
  1196. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
  1197. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
  1198. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
  1199. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
  1200. package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
  1201. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
  1202. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
  1203. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
  1204. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
  1205. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +0 -13
  1206. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +0 -1
  1207. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
  1208. package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
  1209. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
  1210. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
  1211. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
  1212. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
  1213. package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
  1214. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
  1215. package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
  1216. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
  1217. package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
  1218. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
  1219. package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
  1220. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +0 -18
  1221. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
  1222. package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
  1223. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
  1224. package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
  1225. package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
  1226. package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
  1227. package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
  1228. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
  1229. package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
  1230. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -33
  1231. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +0 -1
  1232. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +0 -9
  1233. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +0 -1
  1234. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +0 -7
  1235. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +0 -1
  1236. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
  1237. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
  1238. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +0 -12
  1239. package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +0 -1
  1240. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  1241. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +0 -17
  1242. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
  1243. package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
  1244. package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
  1245. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
  1246. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
  1247. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
  1248. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
  1249. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
  1250. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
  1251. package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
  1252. package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
  1253. package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
  1254. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +0 -20
  1255. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
  1256. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
  1257. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
  1258. package/src/shared/hooks/gestures/types.ts +0 -5
  1259. package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
  1260. package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
  1261. package/src/shared/hooks/reanimated/use-animated-debounce.ts +0 -56
  1262. package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
  1263. package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
  1264. package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
  1265. package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
  1266. package/src/shared/providers/gestures/helpers/gesture-physics.ts +0 -214
  1267. package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
  1268. package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +0 -74
  1269. package/src/shared/providers/gestures/helpers/gesture-targets.ts +0 -175
  1270. package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
  1271. package/src/shared/providers/gestures/types.ts +0 -45
  1272. package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
  1273. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +0 -169
  1274. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +0 -42
  1275. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +0 -29
  1276. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
  1277. package/src/shared/providers/scroll-settle.provider.tsx +0 -24
  1278. package/src/shared/stores/bounds/internals/registry.ts +0 -473
  1279. package/src/shared/typecheck/public-api.typecheck.ts +0 -222
  1280. package/src/shared/utils/animation/animate-many.ts +0 -40
  1281. package/src/shared/utils/gesture/compute-claimed-directions.ts +0 -93
  1282. package/src/shared/utils/gesture/validate-snap-points.ts +0 -74
  1283. /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1284. /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1285. /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
  1286. /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
  1287. /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
  1288. /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
@@ -17,10 +17,29 @@ interface AnimateToProgressProps {
17
17
  animations: AnimationStoreMap;
18
18
  targetProgress: SharedValue<number>;
19
19
  emitWillAnimate?: boolean;
20
+ markEntering?: boolean;
20
21
  /** Optional initial velocity for spring-based progress (units: progress/sec). */
21
22
  initialVelocity?: number;
22
23
  }
23
24
 
25
+ const setTransitionLifecycleFlags = (
26
+ animations: AnimationStoreMap,
27
+ isClosing: boolean,
28
+ markEntering: boolean,
29
+ ) => {
30
+ "worklet";
31
+
32
+ if (isClosing) {
33
+ animations.closing.set(TRUE);
34
+ animations.entering.set(FALSE);
35
+ return;
36
+ }
37
+
38
+ if (markEntering) {
39
+ animations.entering.set(TRUE);
40
+ }
41
+ };
42
+
24
43
  export const animateToProgress = ({
25
44
  target,
26
45
  spec,
@@ -28,6 +47,7 @@ export const animateToProgress = ({
28
47
  animations,
29
48
  targetProgress,
30
49
  emitWillAnimate = true,
50
+ markEntering = true,
31
51
  initialVelocity,
32
52
  }: AnimateToProgressProps) => {
33
53
  "worklet";
@@ -48,56 +68,63 @@ export const animateToProgress = ({
48
68
  ? { ...config, velocity: initialVelocity }
49
69
  : config;
50
70
 
51
- const { progress, willAnimate, animating, closing, entering } = animations;
71
+ const { progress, willAnimate, progressAnimating, entering } = animations;
52
72
 
53
- if (emitWillAnimate) {
54
- willAnimate.set(TRUE);
55
- requestAnimationFrame(() => {
56
- "worklet";
57
- willAnimate.set(FALSE);
58
- });
59
- }
73
+ const startAnimation = () => {
74
+ "worklet";
75
+ targetProgress.set(value);
60
76
 
61
- targetProgress.set(value);
77
+ const shouldClearEnteringOnFinish =
78
+ !isClosing && (markEntering || entering.get());
62
79
 
63
- if (isClosing) {
64
- closing.set(TRUE);
65
- entering.set(FALSE);
66
- } else {
67
- entering.set(TRUE);
68
- }
80
+ setTransitionLifecycleFlags(animations, isClosing, markEntering);
69
81
 
70
- if (!config) {
71
- animating.set(FALSE);
72
- progress.set(value);
73
- if (!isClosing) {
74
- entering.set(FALSE);
75
- }
76
-
77
- if (onAnimationFinish) {
78
- runOnJS(onAnimationFinish)(true);
79
- }
80
- return;
81
- }
82
-
83
- animating.set(TRUE); //<-- Do not move this into the callback
84
- progress.set(
85
- animate(value, effectiveConfig, (finished) => {
86
- "worklet";
87
- if (!finished) return;
88
-
89
- if (!isClosing) {
82
+ if (!config) {
83
+ progressAnimating.set(FALSE);
84
+ progress.set(value);
85
+ if (shouldClearEnteringOnFinish) {
90
86
  entering.set(FALSE);
91
87
  }
92
88
 
93
89
  if (onAnimationFinish) {
94
- runOnJS(onAnimationFinish)(finished);
90
+ runOnJS(onAnimationFinish)(true);
95
91
  }
92
+ return;
93
+ }
94
+
95
+ progressAnimating.set(TRUE); //<-- Do not move this into the callback
96
+ progress.set(
97
+ animate(value, effectiveConfig, (finished) => {
98
+ "worklet";
99
+ if (!finished) return;
100
+
101
+ if (shouldClearEnteringOnFinish) {
102
+ entering.set(FALSE);
103
+ }
104
+
105
+ if (onAnimationFinish) {
106
+ runOnJS(onAnimationFinish)(finished);
107
+ }
108
+
109
+ // Delay clearing progress animation by one frame to ensure final frame is painted
110
+ requestAnimationFrame(() => {
111
+ progressAnimating.set(FALSE);
112
+ });
113
+ }),
114
+ );
115
+ };
116
+
117
+ if (emitWillAnimate) {
118
+ setTransitionLifecycleFlags(animations, isClosing, markEntering);
119
+
120
+ willAnimate.set(TRUE);
121
+ requestAnimationFrame(() => {
122
+ "worklet";
123
+ willAnimate.set(FALSE);
124
+ startAnimation();
125
+ });
126
+ return;
127
+ }
96
128
 
97
- // Delay setting animating=FALSE by one frame to ensure final frame is painted
98
- requestAnimationFrame(() => {
99
- animating.set(FALSE);
100
- });
101
- }),
102
- );
129
+ startAnimation();
103
130
  };
@@ -0,0 +1,18 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+
3
+ /**
4
+ * Emits a one-frame pulse on any shared value, then restores the provided
5
+ * resting value on the next frame.
6
+ */
7
+ export const emit = <T>(
8
+ sharedValue: SharedValue<T>,
9
+ activeValue: T,
10
+ restValue: T,
11
+ ) => {
12
+ "worklet";
13
+ sharedValue.set(activeValue);
14
+ requestAnimationFrame(() => {
15
+ "worklet";
16
+ sharedValue.set(restValue);
17
+ });
18
+ };
@@ -0,0 +1,23 @@
1
+ import { DefaultSnapSpec } from "../../configs/specs";
2
+ import type { TransitionSpec } from "../../types/animation.types";
3
+
4
+ export type SnapTransitionDirection = "expand" | "collapse";
5
+
6
+ export const resolveSnapTransitionSpec = (
7
+ spec: TransitionSpec | undefined,
8
+ direction: SnapTransitionDirection,
9
+ ): TransitionSpec => {
10
+ "worklet";
11
+ const config =
12
+ direction === "collapse"
13
+ ? (spec?.collapse ?? DefaultSnapSpec)
14
+ : (spec?.expand ?? DefaultSnapSpec);
15
+
16
+ // Numeric snap targets are not lifecycle closes. Keep both slots pointed at the
17
+ // selected snap config so animateToProgress can pick a config without toggling
18
+ // the route-level closing flag for non-dismiss snap changes.
19
+ return {
20
+ open: config,
21
+ close: config,
22
+ };
23
+ };
@@ -1,6 +1,6 @@
1
1
  import type { BoundId } from "../types/options";
2
2
 
3
- export type CreateBoundTagParams = {
3
+ type CreateBoundTagParams = {
4
4
  id?: BoundId;
5
5
  group?: string;
6
6
  };
@@ -0,0 +1,160 @@
1
+ import type {
2
+ BoundsInterpolationProps,
3
+ BoundsScopedAccessors,
4
+ } from "../../../types/bounds.types";
5
+ import type { BoundsOptions, BoundsOptionsResult } from "../types/options";
6
+ import { createBoundTag } from "./create-bound-tag";
7
+ import { createInterpolators } from "./create-interpolators";
8
+ import { createLinkAccessor } from "./create-link-accessor";
9
+ import { prepareBoundStyles } from "./prepare-bound-styles";
10
+
11
+ type BoundsComputeResult<T extends BoundsOptions> = BoundsOptionsResult<T> &
12
+ BoundsScopedAccessors;
13
+
14
+ type BoundsCompute = <T extends BoundsOptions>(
15
+ options: T,
16
+ ) => BoundsComputeResult<T>;
17
+
18
+ type BoundsAccessorCore = BoundsCompute &
19
+ ReturnType<typeof createLinkAccessor> &
20
+ ReturnType<typeof createInterpolators>;
21
+
22
+ type ExtendBoundsResultParams<T extends BoundsOptions> = {
23
+ target: BoundsComputeResult<T>;
24
+ props: BoundsInterpolationProps;
25
+ tag: string | undefined;
26
+ };
27
+
28
+ type CreateBoundsAccessorCoreParams = {
29
+ getProps: () => BoundsInterpolationProps;
30
+ extendResult?: <T extends BoundsOptions>(
31
+ params: ExtendBoundsResultParams<T>,
32
+ ) => void;
33
+ };
34
+
35
+ const createBoundsAccessorParts = ({
36
+ getProps,
37
+ extendResult,
38
+ }: CreateBoundsAccessorCoreParams) => {
39
+ "worklet";
40
+
41
+ const { getMeasured, getSnapshot, getLink } = createLinkAccessor(getProps);
42
+ const { interpolateStyle, interpolateBounds } = createInterpolators({
43
+ getProps,
44
+ getLink,
45
+ });
46
+
47
+ const computeBounds = (<T extends BoundsOptions>(
48
+ params?: T,
49
+ ): BoundsComputeResult<T> => {
50
+ "worklet";
51
+ const props = getProps();
52
+ const options = (params ?? { id: "" }) as T;
53
+ const tag = createBoundTag({
54
+ id: options.id,
55
+ group: options.group,
56
+ });
57
+
58
+ const computed = prepareBoundStyles({
59
+ props,
60
+ options,
61
+ });
62
+ const scopedTag = tag ?? "";
63
+ const target = Object.isExtensible(computed) ? computed : { ...computed };
64
+
65
+ Object.defineProperties(target, {
66
+ getMeasured: {
67
+ value: (key?: string) => {
68
+ "worklet";
69
+ return getMeasured(scopedTag, key);
70
+ },
71
+ enumerable: false,
72
+ configurable: true,
73
+ },
74
+ getSnapshot: {
75
+ value: (key?: string) => {
76
+ "worklet";
77
+ return getSnapshot(scopedTag, key);
78
+ },
79
+ enumerable: false,
80
+ configurable: true,
81
+ },
82
+ getLink: {
83
+ value: () => {
84
+ "worklet";
85
+ return getLink(scopedTag);
86
+ },
87
+ enumerable: false,
88
+ configurable: true,
89
+ },
90
+ interpolateStyle: {
91
+ value: (
92
+ property: Parameters<typeof interpolateStyle>[1],
93
+ fallback?: number,
94
+ ) => {
95
+ "worklet";
96
+ return interpolateStyle(scopedTag, property, fallback);
97
+ },
98
+ enumerable: false,
99
+ configurable: true,
100
+ },
101
+ interpolateBounds: {
102
+ value: (
103
+ property: Parameters<typeof interpolateBounds>[1],
104
+ fallbackOrTargetKey?: Parameters<typeof interpolateBounds>[2],
105
+ fallback?: number,
106
+ ) => {
107
+ "worklet";
108
+ return interpolateBounds(
109
+ scopedTag,
110
+ property,
111
+ fallbackOrTargetKey,
112
+ fallback,
113
+ );
114
+ },
115
+ enumerable: false,
116
+ configurable: true,
117
+ },
118
+ });
119
+
120
+ extendResult?.({
121
+ target: target as BoundsComputeResult<T>,
122
+ props,
123
+ tag,
124
+ });
125
+
126
+ return target as BoundsComputeResult<T>;
127
+ }) as BoundsCompute;
128
+
129
+ return {
130
+ computeBounds,
131
+ getMeasured,
132
+ getSnapshot,
133
+ getLink,
134
+ interpolateStyle,
135
+ interpolateBounds,
136
+ };
137
+ };
138
+
139
+ export const createBoundsAccessorCore = (
140
+ params: CreateBoundsAccessorCoreParams,
141
+ ): BoundsAccessorCore => {
142
+ "worklet";
143
+
144
+ const {
145
+ computeBounds,
146
+ getMeasured,
147
+ getSnapshot,
148
+ getLink,
149
+ interpolateStyle,
150
+ interpolateBounds,
151
+ } = createBoundsAccessorParts(params);
152
+
153
+ return Object.assign(computeBounds, {
154
+ getMeasured,
155
+ getSnapshot,
156
+ getLink,
157
+ interpolateStyle,
158
+ interpolateBounds,
159
+ }) as BoundsAccessorCore;
160
+ };
@@ -4,14 +4,14 @@ import {
4
4
  type MeasuredDimensions,
5
5
  } from "react-native-reanimated";
6
6
  import { ENTER_RANGE, EXIT_RANGE } from "../../../constants";
7
- import { getMeasuredEntry } from "../../../stores/bounds/internals/registry";
8
- import type { ScreenInterpolationProps } from "../../../types/animation.types";
7
+ import { getEntry } from "../../../stores/bounds/internals/entries";
8
+ import type { BoundsInterpolationProps } from "../../../types/bounds.types";
9
9
  import type { BoundId } from "../types/options";
10
10
  import type { LinkAccessor } from "./create-link-accessor";
11
11
  import { interpolateLinkStyle } from "./styles/interpolate-link-style";
12
12
 
13
13
  type InterpolatorParams = {
14
- getProps: () => Omit<ScreenInterpolationProps, "bounds">;
14
+ getProps: () => BoundsInterpolationProps;
15
15
  getLink: LinkAccessor["getLink"];
16
16
  };
17
17
 
@@ -50,13 +50,13 @@ export const createInterpolators = ({
50
50
  const fb = fallback ?? 0;
51
51
  const normalizedTag = String(tag);
52
52
 
53
- const currentMeasuredEntry = currentKey
54
- ? getMeasuredEntry(normalizedTag, currentKey)
53
+ const currentEntry = currentKey
54
+ ? getEntry(normalizedTag, currentKey)
55
55
  : null;
56
- const targetMeasuredEntry = getMeasuredEntry(normalizedTag, targetKey);
56
+ const targetEntry = getEntry(normalizedTag, targetKey);
57
57
 
58
- const currentValue = currentMeasuredEntry?.bounds?.[property] ?? fb;
59
- const targetValue = targetMeasuredEntry?.bounds?.[property] ?? fb;
58
+ const currentValue = currentEntry?.bounds?.[property] ?? fb;
59
+ const targetValue = targetEntry?.bounds?.[property] ?? fb;
60
60
 
61
61
  return interpolate(
62
62
  props.progress,
@@ -1,13 +1,19 @@
1
- import {
2
- getActiveLink,
3
- getMeasuredEntry,
4
- } from "../../../stores/bounds/internals/registry";
5
- import type { MeasuredEntry } from "../../../stores/bounds/types";
6
- import type { ScreenInterpolationProps } from "../../../types/animation.types";
7
- import type { BoundsLink } from "../../../types/bounds.types";
8
- import type { BoundId } from "../types/options";
1
+ import { getEntry } from "../../../stores/bounds/internals/entries";
2
+ import { resolveGroupLink } from "../../../stores/bounds/internals/groups";
3
+ import type {
4
+ MeasuredEntry,
5
+ ResolvedTransitionPair,
6
+ TagLink,
7
+ } from "../../../stores/bounds/types";
8
+ import type {
9
+ BoundsInterpolationProps,
10
+ BoundsLink,
11
+ BoundsLinkComputeOptions,
12
+ } from "../../../types/bounds.types";
13
+ import type { BoundId, BoundsOptionsResult } from "../types/options";
14
+ import { prepareBoundStyles } from "./prepare-bound-styles";
9
15
 
10
- type GetProps = () => Omit<ScreenInterpolationProps, "bounds">;
16
+ type GetProps = () => BoundsInterpolationProps;
11
17
 
12
18
  export type LinkAccessor = {
13
19
  getMeasured: (tag: BoundId, key?: string) => MeasuredEntry | null;
@@ -15,13 +21,26 @@ export type LinkAccessor = {
15
21
  getLink: (tag: BoundId) => BoundsLink | null;
16
22
  };
17
23
 
24
+ const toResolvedPair = (link: TagLink): ResolvedTransitionPair => {
25
+ "worklet";
26
+ return {
27
+ sourceBounds: link.source.bounds,
28
+ destinationBounds: link.destination?.bounds ?? null,
29
+ sourceStyles: link.source.styles,
30
+ destinationStyles: link.destination?.styles ?? null,
31
+ sourceScreenKey: link.source.screenKey,
32
+ destinationScreenKey: link.destination?.screenKey ?? null,
33
+ };
34
+ };
35
+
18
36
  export const createLinkAccessor = (getProps: GetProps): LinkAccessor => {
19
37
  "worklet";
20
38
 
21
39
  const getMeasured = (tag: BoundId, key?: string): MeasuredEntry | null => {
22
40
  "worklet";
23
41
  if (!key) return null;
24
- return getMeasuredEntry(String(tag), key);
42
+ const entry = getEntry(String(tag), key);
43
+ return entry?.bounds ? (entry as MeasuredEntry) : null;
25
44
  };
26
45
 
27
46
  const getSnapshot = (tag: BoundId, key?: string): MeasuredEntry | null => {
@@ -32,15 +51,51 @@ export const createLinkAccessor = (getProps: GetProps): LinkAccessor => {
32
51
  const getLink = (tag: BoundId): BoundsLink | null => {
33
52
  "worklet";
34
53
  const props = getProps();
35
- const link = getActiveLink(String(tag), props.current?.route.key);
54
+ const stringTag = String(tag);
55
+ const screenKey = props.current?.route.key;
56
+ const resolved = resolveGroupLink({
57
+ tag: stringTag,
58
+ screenKey,
59
+ });
60
+ const selectedTag = resolved.tag;
61
+ const link = resolved.link;
62
+
36
63
  if (!link) return null;
64
+ const resolvedPair = toResolvedPair(link);
65
+
37
66
  return {
67
+ id: selectedTag,
38
68
  source: link.source
39
69
  ? { bounds: link.source.bounds, styles: link.source.styles }
40
70
  : null,
41
71
  destination: link.destination
42
72
  ? { bounds: link.destination.bounds, styles: link.destination.styles }
43
73
  : null,
74
+ initialSource: link.initialSource
75
+ ? {
76
+ bounds: link.initialSource.bounds,
77
+ styles: link.initialSource.styles,
78
+ }
79
+ : null,
80
+ initialDestination: link.initialDestination
81
+ ? {
82
+ bounds: link.initialDestination.bounds,
83
+ styles: link.initialDestination.styles,
84
+ }
85
+ : null,
86
+ compute: <T extends BoundsLinkComputeOptions>(
87
+ computeOptions: T,
88
+ ): BoundsOptionsResult<T & { id: string }> => {
89
+ "worklet";
90
+ return prepareBoundStyles({
91
+ props,
92
+ options: {
93
+ ...computeOptions,
94
+ id: selectedTag,
95
+ } as T & { id: string },
96
+ resolvedPair,
97
+ });
98
+ },
44
99
  };
45
100
  };
46
101
 
@@ -1,10 +1,10 @@
1
+ import { getEntry } from "../../../stores/bounds/internals/entries";
1
2
  import {
2
3
  getGroupActiveId,
3
4
  setGroupActiveId,
4
5
  } from "../../../stores/bounds/internals/groups";
5
- import { getEntryConfig } from "../../../stores/bounds/internals/registry";
6
6
  import type { ResolvedTransitionPair } from "../../../stores/bounds/types";
7
- import type { ScreenInterpolationProps } from "../../../types/animation.types";
7
+ import type { BoundsInterpolationProps } from "../../../types/bounds.types";
8
8
  import { DEFAULT_BOUNDS_OPTIONS } from "../constants";
9
9
  import type {
10
10
  BoundId,
@@ -14,7 +14,7 @@ import type {
14
14
  import { createBoundTag } from "./create-bound-tag";
15
15
  import { computeBoundStyles } from "./styles/compute";
16
16
 
17
- type BaseInterpolatorProps = Omit<ScreenInterpolationProps, "bounds">;
17
+ type BaseInterpolatorProps = BoundsInterpolationProps;
18
18
 
19
19
  type ComputeResolvedBoundsStylesParams<T extends BoundsOptions> = {
20
20
  props: BaseInterpolatorProps;
@@ -24,13 +24,13 @@ type ComputeResolvedBoundsStylesParams<T extends BoundsOptions> = {
24
24
  };
25
25
 
26
26
  type BuildBoundsOptionsParams = {
27
- props: Omit<ScreenInterpolationProps, "bounds">;
27
+ props: BoundsInterpolationProps;
28
28
  id?: BoundId;
29
29
  group?: string;
30
30
  overrides?: Partial<BoundsOptions>;
31
31
  };
32
32
 
33
- export const buildBoundsOptions = ({
33
+ const buildBoundsOptions = ({
34
34
  props,
35
35
  id,
36
36
  group,
@@ -42,7 +42,9 @@ export const buildBoundsOptions = ({
42
42
  const currentScreenKey = props.current?.route.key;
43
43
 
44
44
  const boundaryConfig =
45
- tag && currentScreenKey ? getEntryConfig(tag, currentScreenKey) : null;
45
+ tag && currentScreenKey
46
+ ? (getEntry(tag, currentScreenKey)?.boundaryConfig ?? null)
47
+ : null;
46
48
 
47
49
  const resolved = {
48
50
  ...DEFAULT_BOUNDS_OPTIONS,
@@ -320,10 +320,13 @@ export function composeTransformRelative(
320
320
  };
321
321
  }
322
322
 
323
+ const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
324
+ const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
325
+
323
326
  return {
324
327
  transform: [
325
- { translateX: computeOptions.gestures?.x ?? 0 },
326
- { translateY: computeOptions.gestures?.y ?? 0 },
328
+ { translateX: offsetX },
329
+ { translateY: offsetY },
327
330
  { translateX },
328
331
  { translateY },
329
332
  { scaleX },
@@ -1,11 +1,8 @@
1
- import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from "react-native";
2
1
  import { isSharedValue } from "react-native-reanimated";
3
2
 
4
- type AnyStyle = ViewStyle | TextStyle | ImageStyle;
5
- type StyleValue = StyleProp<AnyStyle>;
6
3
  type PlainStyleObject = Record<string, any>;
7
4
 
8
- function mergeStyleArrays<T extends StyleValue>(style: T): T {
5
+ function mergeStyleArrays(style: unknown): unknown {
9
6
  "worklet";
10
7
 
11
8
  // Early returns for non-objects
@@ -21,12 +18,12 @@ function mergeStyleArrays<T extends StyleValue>(style: T): T {
21
18
  // Merge array of styles into single object
22
19
  const merged: PlainStyleObject = {};
23
20
  for (let i = 0; i < style.length; i++) {
24
- const currentStyle = mergeStyleArrays(style[i] as StyleValue);
21
+ const currentStyle = mergeStyleArrays(style[i]);
25
22
  if (currentStyle && typeof currentStyle === "object") {
26
23
  Object.assign(merged, currentStyle);
27
24
  }
28
25
  }
29
- return merged as T;
26
+ return merged;
30
27
  }
31
28
 
32
29
  function stripNonSerializable<T>(value: T): T | undefined {
@@ -56,9 +53,7 @@ function stripNonSerializable<T>(value: T): T | undefined {
56
53
  return value;
57
54
  }
58
55
 
59
- export function prepareStyleForBounds(
60
- style: StyleValue | undefined,
61
- ): PlainStyleObject {
56
+ export function prepareStyleForBounds(style: unknown): PlainStyleObject {
62
57
  if (!style) return {};
63
58
 
64
59
  const flattened = mergeStyleArrays(style);