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
@@ -0,0 +1,590 @@
1
+ import { interpolate, type MeasuredDimensions } from "react-native-reanimated";
2
+ import {
3
+ EPSILON,
4
+ NAVIGATION_MASK_ELEMENT_STYLE_ID,
5
+ } from "../../../../constants";
6
+ import { createLinkAccessor } from "../../helpers/create-link-accessor";
7
+ import { computeContentTransformGeometry } from "../../helpers/geometry";
8
+ import { getSourceBorderRadius } from "../helpers";
9
+ import { combineScales, resolveDirectionalDragScale } from "../math";
10
+ import {
11
+ CLOSE_SOURCE_HANDOFF_PROGRESS,
12
+ DISMISS_SCALE_ORBIT_DEPTH,
13
+ DRAG_DIRECTIONAL_SCALE_EXPONENT,
14
+ DRAG_DIRECTIONAL_SCALE_MAX,
15
+ DRAG_DIRECTIONAL_SCALE_MIN,
16
+ DRAG_MASK_HEIGHT_COLLAPSE_END,
17
+ HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE,
18
+ REVEAL_BORDER_RADIUS,
19
+ } from "./config";
20
+ import { resolveDirectionalDragTranslation } from "./math";
21
+ import type { BuildRevealStylesParams, RevealInterpolatedStyle } from "./types";
22
+
23
+ const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1] as const;
24
+
25
+ function resolveUniformScale({
26
+ sourceWidth,
27
+ sourceHeight,
28
+ destinationWidth,
29
+ destinationHeight,
30
+ }: {
31
+ sourceWidth: number;
32
+ sourceHeight: number;
33
+ destinationWidth: number;
34
+ destinationHeight: number;
35
+ }) {
36
+ "worklet";
37
+
38
+ const sx = sourceWidth / destinationWidth;
39
+ const sy = sourceHeight / destinationHeight;
40
+
41
+ const sourceAspect = sourceWidth / sourceHeight;
42
+ const destinationAspect = destinationWidth / destinationHeight;
43
+ const aspectDifference = Math.abs(sourceAspect - destinationAspect);
44
+
45
+ return aspectDifference < 0.1 ? Math.max(sx, sy) : Math.min(sx, sy);
46
+ }
47
+
48
+ function resolveRevealGestureHandoff(rawDrag: number) {
49
+ "worklet";
50
+
51
+ const gestureSensitivity = interpolate(rawDrag, [0, 1], [0.8, 0.1], "clamp");
52
+
53
+ const releaseBoost = interpolate(rawDrag, [0, 1], [1, 1.4], "clamp");
54
+
55
+ const releaseSensitivity = interpolate(
56
+ gestureSensitivity,
57
+ [0.28, 0.9],
58
+ [0.7, 1],
59
+ "clamp",
60
+ );
61
+
62
+ return {
63
+ gestureSensitivity,
64
+ gestureReleaseVelocityScale: releaseBoost * releaseSensitivity,
65
+ };
66
+ }
67
+
68
+ function resolveDismissScaleHandoff({
69
+ progress,
70
+ releaseScale,
71
+ targetScale,
72
+ rawDrag,
73
+ }: {
74
+ progress: number;
75
+ releaseScale: number;
76
+ targetScale: number;
77
+ rawDrag: number;
78
+ }) {
79
+ "worklet";
80
+
81
+ const closeProgress = 1 - progress;
82
+ const scaleProgress = Math.sin((Math.PI / 2) * closeProgress);
83
+ const baseScale = releaseScale + (targetScale - releaseScale) * scaleProgress;
84
+ const orbitDepth = interpolate(
85
+ rawDrag,
86
+ [0, 1],
87
+ [0, DISMISS_SCALE_ORBIT_DEPTH],
88
+ "clamp",
89
+ );
90
+ const orbitScale = 1 - orbitDepth * Math.sin(Math.PI * closeProgress);
91
+
92
+ return baseScale * orbitScale;
93
+ }
94
+
95
+ function getBoundsCenterX(bounds: MeasuredDimensions) {
96
+ "worklet";
97
+ return bounds.pageX + bounds.width / 2;
98
+ }
99
+
100
+ function getBoundsCenterY(bounds: MeasuredDimensions) {
101
+ "worklet";
102
+ return bounds.pageY + bounds.height / 2;
103
+ }
104
+
105
+ function resolveRevealContentBaseTransform({
106
+ progress,
107
+ sourceBounds,
108
+ destinationBounds,
109
+ screenLayout,
110
+ }: {
111
+ progress: number;
112
+ sourceBounds: MeasuredDimensions;
113
+ destinationBounds: MeasuredDimensions;
114
+ screenLayout: BuildRevealStylesParams["props"]["layouts"]["screen"];
115
+ }) {
116
+ "worklet";
117
+
118
+ const geometry = computeContentTransformGeometry({
119
+ start: sourceBounds,
120
+ end: destinationBounds,
121
+ entering: true,
122
+ dimensions: screenLayout,
123
+ scaleMode: "uniform",
124
+ });
125
+
126
+ return {
127
+ translateX: interpolate(progress, [0, 1], [geometry.tx, 0], "clamp"),
128
+ translateY: interpolate(progress, [0, 1], [geometry.ty, 0], "clamp"),
129
+ scale: interpolate(progress, [0, 1], [geometry.s, 1], "clamp"),
130
+ };
131
+ }
132
+
133
+ function resolveTrackedSourceElementTransform({
134
+ sourceBounds,
135
+ destinationBounds,
136
+ contentTranslateX,
137
+ contentTranslateY,
138
+ contentScale,
139
+ parentScale,
140
+ screenWidth,
141
+ screenHeight,
142
+ }: {
143
+ sourceBounds: MeasuredDimensions;
144
+ destinationBounds: MeasuredDimensions;
145
+ contentTranslateX: number;
146
+ contentTranslateY: number;
147
+ contentScale: number;
148
+ parentScale: number;
149
+ screenWidth: number;
150
+ screenHeight: number;
151
+ }) {
152
+ "worklet";
153
+
154
+ const screenCenterX = screenWidth / 2;
155
+ const screenCenterY = screenHeight / 2;
156
+ const safeParentScale = Math.max(Math.abs(parentScale), EPSILON);
157
+ const safeSourceWidth = Math.max(Math.abs(sourceBounds.width), EPSILON);
158
+ const safeSourceHeight = Math.max(Math.abs(sourceBounds.height), EPSILON);
159
+
160
+ const sourceCenterX = getBoundsCenterX(sourceBounds);
161
+ const sourceCenterY = getBoundsCenterY(sourceBounds);
162
+ const destinationCenterX = getBoundsCenterX(destinationBounds);
163
+ const destinationCenterY = getBoundsCenterY(destinationBounds);
164
+
165
+ const trackedCenterX =
166
+ screenCenterX +
167
+ (destinationCenterX - screenCenterX) * contentScale +
168
+ contentTranslateX;
169
+ const trackedCenterY =
170
+ screenCenterY +
171
+ (destinationCenterY - screenCenterY) * contentScale +
172
+ contentTranslateY;
173
+
174
+ return {
175
+ translateX:
176
+ (trackedCenterX - screenCenterX) / safeParentScale +
177
+ screenCenterX -
178
+ sourceCenterX,
179
+ translateY:
180
+ (trackedCenterY - screenCenterY) / safeParentScale +
181
+ screenCenterY -
182
+ sourceCenterY,
183
+ scaleX:
184
+ (destinationBounds.width * contentScale) /
185
+ (safeSourceWidth * safeParentScale),
186
+ scaleY:
187
+ (destinationBounds.height * contentScale) /
188
+ (safeSourceHeight * safeParentScale),
189
+ };
190
+ }
191
+
192
+ /* -------------------------------------------------------------------------- */
193
+ /* BUILD REVEAL STYLES */
194
+ /* -------------------------------------------------------------------------- */
195
+
196
+ export function buildRevealStyles({
197
+ tag,
198
+ props,
199
+ }: BuildRevealStylesParams): RevealInterpolatedStyle {
200
+ "worklet";
201
+
202
+ if (!tag) {
203
+ return {};
204
+ }
205
+
206
+ /* ------------------------------ Shared Setup ------------------------------ */
207
+
208
+ const {
209
+ focused,
210
+ progress,
211
+ layouts: { screen: screenLayout },
212
+ } = props;
213
+
214
+ const baseRawOptions = {
215
+ raw: true,
216
+ scaleMode: "uniform",
217
+ } as const;
218
+
219
+ const boundsAccessor = createLinkAccessor(() => props);
220
+ const link = boundsAccessor.getLink(tag);
221
+
222
+ if (!link?.source?.bounds || !link.destination?.bounds) {
223
+ return {};
224
+ }
225
+
226
+ const sourceBorderRadius = getSourceBorderRadius(link);
227
+
228
+ /* --------------------------- Gesture / Drag Values ------------------------- */
229
+
230
+ const initialGesture =
231
+ props.active.gesture.active ?? props.active.gesture.direction;
232
+
233
+ const isHorizontalDismiss = initialGesture?.includes("horizontal");
234
+ const isVerticalDismiss = initialGesture?.includes("vertical");
235
+
236
+ const rawDrag = isHorizontalDismiss
237
+ ? Math.abs(props.active.gesture.raw.normX)
238
+ : isVerticalDismiss
239
+ ? Math.abs(props.active.gesture.raw.normY)
240
+ : 0;
241
+
242
+ const dragX = resolveDirectionalDragTranslation({
243
+ translation: props.active.gesture.x,
244
+ dimension: screenLayout.width,
245
+ negativeMax: 1,
246
+ positiveMax: 1,
247
+ exponent: 1,
248
+ });
249
+
250
+ const dragY = resolveDirectionalDragTranslation({
251
+ translation: props.active.gesture.y,
252
+ dimension: screenLayout.height,
253
+ negativeMax: 1,
254
+ positiveMax: 1,
255
+ exponent: 1,
256
+ });
257
+
258
+ const dragXScale = isHorizontalDismiss
259
+ ? resolveDirectionalDragScale({
260
+ normalized: props.active.gesture.normX,
261
+ dismissDirection:
262
+ initialGesture === "horizontal-inverted" ? "negative" : "positive",
263
+ shrinkMin: DRAG_DIRECTIONAL_SCALE_MIN,
264
+ growMax: DRAG_DIRECTIONAL_SCALE_MAX,
265
+ exponent: DRAG_DIRECTIONAL_SCALE_EXPONENT,
266
+ })
267
+ : IDENTITY_DRAG_SCALE_OUTPUT[0];
268
+
269
+ const dragYScale = isVerticalDismiss
270
+ ? resolveDirectionalDragScale({
271
+ normalized: props.active.gesture.normY,
272
+ dismissDirection:
273
+ initialGesture === "vertical-inverted" ? "negative" : "positive",
274
+ shrinkMin: DRAG_DIRECTIONAL_SCALE_MIN,
275
+ growMax: DRAG_DIRECTIONAL_SCALE_MAX,
276
+ exponent: DRAG_DIRECTIONAL_SCALE_EXPONENT,
277
+ })
278
+ : IDENTITY_DRAG_SCALE_OUTPUT[1];
279
+
280
+ const dragScale = combineScales(dragXScale, dragYScale);
281
+
282
+ const initialDestinationTarget =
283
+ props.active.closing && link.initialDestination?.bounds
284
+ ? link.initialDestination.bounds
285
+ : undefined;
286
+
287
+ /* ----------------------------- Focused Screen ----------------------------- */
288
+
289
+ if (focused) {
290
+ const contentRaw = link.compute({
291
+ ...baseRawOptions,
292
+ method: "content",
293
+ target: initialDestinationTarget,
294
+ });
295
+
296
+ const maskRaw = link.compute({
297
+ ...baseRawOptions,
298
+ method: "size",
299
+ space: "absolute",
300
+ target: "fullscreen",
301
+ });
302
+
303
+ const maskBorderRadius = interpolate(
304
+ progress,
305
+ [0, 1],
306
+ [sourceBorderRadius, REVEAL_BORDER_RADIUS],
307
+ "clamp",
308
+ );
309
+
310
+ const maskSizeMultiplier = props.active.closing
311
+ ? interpolate(props.active.progress, [0, 1], [0.9, 1], "clamp")
312
+ : 1;
313
+
314
+ const maskWidth = Math.max(1, maskRaw.width * maskSizeMultiplier);
315
+ const maskHeight = Math.max(1, maskRaw.height * maskSizeMultiplier);
316
+
317
+ const contentBaseScale = contentRaw.scale;
318
+ const contentTargetBounds =
319
+ initialDestinationTarget ?? link.destination.bounds;
320
+ const sourceContentScale = resolveUniformScale({
321
+ sourceWidth: link.source.bounds.width,
322
+ sourceHeight: link.source.bounds.height,
323
+ destinationWidth: contentTargetBounds.width,
324
+ destinationHeight: contentTargetBounds.height,
325
+ });
326
+ const safeContentBaseScale =
327
+ Math.abs(contentBaseScale) > EPSILON ? contentBaseScale : 1;
328
+
329
+ const contentScale = props.active.gesture.dismissing
330
+ ? resolveDismissScaleHandoff({
331
+ progress: props.active.progress,
332
+ releaseScale: dragScale,
333
+ targetScale: sourceContentScale,
334
+ rawDrag,
335
+ })
336
+ : contentBaseScale * dragScale;
337
+ const contentTranslateX = contentRaw.translateX + dragX;
338
+ const contentTranslateY = contentRaw.translateY + dragY;
339
+
340
+ const liveHorizontalDismissDrag =
341
+ initialGesture === "horizontal-inverted"
342
+ ? -props.active.gesture.normX
343
+ : props.active.gesture.normX;
344
+
345
+ const liveVerticalDismissDrag =
346
+ initialGesture === "vertical-inverted"
347
+ ? -props.active.gesture.normY
348
+ : props.active.gesture.normY;
349
+
350
+ const dismissProgressDrag = props.active.gesture.dismissing
351
+ ? 1 - props.active.progress
352
+ : 0;
353
+
354
+ const maskHeightCollapseDrag =
355
+ isHorizontalDismiss || isVerticalDismiss
356
+ ? Math.max(
357
+ 0,
358
+ isHorizontalDismiss
359
+ ? liveHorizontalDismissDrag * HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE
360
+ : 0,
361
+ isVerticalDismiss ? liveVerticalDismissDrag : 0,
362
+ dismissProgressDrag,
363
+ )
364
+ : 0;
365
+
366
+ const minMaskHeight = Math.min(
367
+ maskHeight,
368
+ Math.max(maskWidth, link.source.bounds.height),
369
+ );
370
+
371
+ const renderedMaskHeight = interpolate(
372
+ maskHeightCollapseDrag,
373
+ [0, DRAG_MASK_HEIGHT_COLLAPSE_END],
374
+ [maskHeight, minMaskHeight],
375
+ "clamp",
376
+ );
377
+
378
+ const maskCenterX = maskWidth / 2;
379
+ const maskCenterY = renderedMaskHeight / 2;
380
+ const maskCenteringOffsetX = (maskRaw.width - maskWidth) / 2;
381
+ const maskCenteringOffsetY = (maskRaw.height - maskHeight) / 2;
382
+ const verticalCollapseOffsetY =
383
+ initialGesture === "vertical-inverted"
384
+ ? maskHeight - renderedMaskHeight
385
+ : 0;
386
+
387
+ const contentCenterX = screenLayout.width / 2;
388
+ const contentCenterY = screenLayout.height / 2;
389
+
390
+ // The mask lives inside the transformed content container. Compensate only
391
+ // for the reveal's base content scale; drag scale should be inherited from
392
+ // the same parent transform as the screen content.
393
+ const compensatedMaskTranslateX =
394
+ (maskRaw.translateX -
395
+ contentRaw.translateX +
396
+ maskCenteringOffsetX +
397
+ (1 - contentBaseScale) * (maskCenterX - contentCenterX)) /
398
+ safeContentBaseScale;
399
+
400
+ const compensatedMaskTranslateY =
401
+ (maskRaw.translateY -
402
+ contentRaw.translateY +
403
+ maskCenteringOffsetY +
404
+ verticalCollapseOffsetY +
405
+ (1 - contentBaseScale) * (maskCenterY - contentCenterY)) /
406
+ safeContentBaseScale;
407
+
408
+ const compensatedMaskScale = 1 / safeContentBaseScale;
409
+
410
+ const elementOffsetX = initialDestinationTarget
411
+ ? initialDestinationTarget.pageX - link.destination.bounds.pageX
412
+ : 0;
413
+
414
+ const elementOffsetY = initialDestinationTarget
415
+ ? initialDestinationTarget.pageY - link.destination.bounds.pageY
416
+ : 0;
417
+
418
+ const elementTX = props.active.closing
419
+ ? interpolate(
420
+ props.active.progress,
421
+ [CLOSE_SOURCE_HANDOFF_PROGRESS, 1],
422
+ [elementOffsetX, 0],
423
+ "clamp",
424
+ )
425
+ : 0;
426
+ const elementY = props.active.closing
427
+ ? interpolate(
428
+ props.active.progress,
429
+ [CLOSE_SOURCE_HANDOFF_PROGRESS, 1],
430
+ [elementOffsetY, 0],
431
+ "clamp",
432
+ )
433
+ : 0;
434
+
435
+ const { gestureSensitivity, gestureReleaseVelocityScale } =
436
+ resolveRevealGestureHandoff(rawDrag);
437
+
438
+ return {
439
+ options: {
440
+ gestureProgressMode: "freeform",
441
+ gestureSensitivity,
442
+ gestureReleaseVelocityScale,
443
+ },
444
+ content: {
445
+ style: {
446
+ transform: [
447
+ { translateX: contentTranslateX },
448
+ { translateY: contentTranslateY },
449
+ { scale: contentScale },
450
+ ],
451
+ shadowColor: "#000",
452
+ shadowOffset: { width: 0, height: 2 },
453
+ shadowOpacity: interpolate(props.active.progress, [0, 1], [0, 0.25]),
454
+ shadowRadius: 32,
455
+ elevation: 5,
456
+ opacity: props.active.entering
457
+ ? interpolate(
458
+ props.active.progress,
459
+ [0, CLOSE_SOURCE_HANDOFF_PROGRESS],
460
+ [0, 1],
461
+ )
462
+ : interpolate(
463
+ props.active.progress,
464
+ [0, CLOSE_SOURCE_HANDOFF_PROGRESS, 1],
465
+ [0, 1, 1],
466
+ ),
467
+ },
468
+ },
469
+ [NAVIGATION_MASK_ELEMENT_STYLE_ID]: {
470
+ style: {
471
+ width: maskWidth,
472
+ height: renderedMaskHeight,
473
+ borderRadius: props.active.settled ? 0 : maskBorderRadius,
474
+ borderCurve: "continuous",
475
+ transform: [
476
+ { translateX: compensatedMaskTranslateX },
477
+ { translateY: compensatedMaskTranslateY },
478
+ { scale: compensatedMaskScale },
479
+ ],
480
+ },
481
+ },
482
+ [link.id]: {
483
+ style: {
484
+ position: "relative",
485
+ zIndex: 999,
486
+ transform: [{ translateX: elementTX }, { translateY: elementY }],
487
+ },
488
+ },
489
+ };
490
+ }
491
+
492
+ /* ---------------------------- Unfocused Screen ---------------------------- */
493
+
494
+ const unfocusedScale = interpolate(
495
+ props.active.progress,
496
+ [0, 1],
497
+ [1, 0.9375],
498
+ "clamp",
499
+ );
500
+ const unfocusedContentScale = props.active.logicallySettled
501
+ ? 1
502
+ : unfocusedScale;
503
+
504
+ const trackingContentTarget =
505
+ initialDestinationTarget ?? link.destination.bounds;
506
+
507
+ const trackingContentBaseTransform = resolveRevealContentBaseTransform({
508
+ progress: props.active.progress,
509
+ sourceBounds: link.source.bounds,
510
+ destinationBounds: trackingContentTarget,
511
+ screenLayout,
512
+ });
513
+ const trackingTargetScale = resolveUniformScale({
514
+ sourceWidth: link.source.bounds.width,
515
+ sourceHeight: link.source.bounds.height,
516
+ destinationWidth: trackingContentTarget.width,
517
+ destinationHeight: trackingContentTarget.height,
518
+ });
519
+ const trackingContentScale = props.active.gesture.dismissing
520
+ ? resolveDismissScaleHandoff({
521
+ progress: props.active.progress,
522
+ releaseScale: dragScale,
523
+ targetScale: trackingTargetScale,
524
+ rawDrag,
525
+ })
526
+ : trackingContentBaseTransform.scale * dragScale;
527
+ const trackingContentTranslateX =
528
+ trackingContentBaseTransform.translateX + dragX;
529
+ const trackingContentTranslateY =
530
+ trackingContentBaseTransform.translateY + dragY;
531
+ const trackedSourceElement = resolveTrackedSourceElementTransform({
532
+ sourceBounds: link.source.bounds,
533
+ destinationBounds: trackingContentTarget,
534
+ contentTranslateX: trackingContentTranslateX,
535
+ contentTranslateY: trackingContentTranslateY,
536
+ contentScale: trackingContentScale,
537
+ parentScale: unfocusedContentScale,
538
+ screenWidth: screenLayout.width,
539
+ screenHeight: screenLayout.height,
540
+ });
541
+
542
+ return {
543
+ options: {
544
+ gestureProgressMode: "freeform",
545
+ },
546
+ content: {
547
+ style: {
548
+ transform: [{ scale: unfocusedContentScale }],
549
+ },
550
+ props: {
551
+ pointerEvents:
552
+ props.active.progress <= CLOSE_SOURCE_HANDOFF_PROGRESS
553
+ ? "auto"
554
+ : "none",
555
+ },
556
+ },
557
+ [link.id]: {
558
+ style: {
559
+ opacity: props.active.closing
560
+ ? 1
561
+ : interpolate(props.active.progress, [0, 1], [1, 0], "clamp"),
562
+
563
+ zIndex: 9999,
564
+ elevation: 9999,
565
+ transform: [
566
+ {
567
+ translateX: props.active.logicallySettled
568
+ ? 0
569
+ : trackedSourceElement.translateX,
570
+ },
571
+ {
572
+ translateY: props.active.logicallySettled
573
+ ? 0
574
+ : trackedSourceElement.translateY,
575
+ },
576
+ {
577
+ scaleX: props.active.logicallySettled
578
+ ? 1
579
+ : trackedSourceElement.scaleX,
580
+ },
581
+ {
582
+ scaleY: props.active.logicallySettled
583
+ ? 1
584
+ : trackedSourceElement.scaleY,
585
+ },
586
+ ],
587
+ },
588
+ },
589
+ };
590
+ }
@@ -0,0 +1,15 @@
1
+ import { Platform } from "react-native";
2
+
3
+ export const REVEAL_BORDER_RADIUS = Platform.select({
4
+ ios: 58,
5
+ android: 36,
6
+ default: 36,
7
+ });
8
+
9
+ export const DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
10
+ export const DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
11
+ export const DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
12
+ export const DRAG_MASK_HEIGHT_COLLAPSE_END = 0.7;
13
+ export const HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE = 0.5;
14
+ export const DISMISS_SCALE_ORBIT_DEPTH = 0.8;
15
+ export const CLOSE_SOURCE_HANDOFF_PROGRESS = 0.25;
@@ -0,0 +1,25 @@
1
+ export const resolveDirectionalDragTranslation = ({
2
+ translation,
3
+ dimension,
4
+ negativeMax,
5
+ positiveMax,
6
+ exponent = 1,
7
+ }: {
8
+ translation: number;
9
+ dimension: number;
10
+ negativeMax: number;
11
+ positiveMax: number;
12
+ exponent?: number;
13
+ }) => {
14
+ "worklet";
15
+
16
+ const baseDistance = Math.max(1, dimension);
17
+ const clampedMagnitude = Math.min(1, Math.abs(translation) / baseDistance);
18
+ const curvedMagnitude = clampedMagnitude ** Math.max(1, exponent);
19
+
20
+ if (translation < 0) {
21
+ return -baseDistance * negativeMax * curvedMagnitude;
22
+ }
23
+
24
+ return baseDistance * positiveMax * curvedMagnitude;
25
+ };
@@ -0,0 +1,18 @@
1
+ import {
2
+ NAVIGATION_MASK_CONTAINER_STYLE_ID,
3
+ NAVIGATION_MASK_ELEMENT_STYLE_ID,
4
+ } from "../../../../constants";
5
+ import type {
6
+ BoundsInterpolationProps,
7
+ BoundsNavigationRevealStyle,
8
+ } from "../../../../types/bounds.types";
9
+
10
+ export type RevealInterpolatedStyle = BoundsNavigationRevealStyle & {
11
+ [NAVIGATION_MASK_CONTAINER_STYLE_ID]?: BoundsNavigationRevealStyle[typeof NAVIGATION_MASK_CONTAINER_STYLE_ID];
12
+ [NAVIGATION_MASK_ELEMENT_STYLE_ID]?: BoundsNavigationRevealStyle[typeof NAVIGATION_MASK_ELEMENT_STYLE_ID];
13
+ };
14
+
15
+ export type BuildRevealStylesParams = {
16
+ tag?: string;
17
+ props: BoundsInterpolationProps;
18
+ };