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

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 (433) hide show
  1. package/lib/commonjs/component-stack/components/component-screen.js +1 -7
  2. package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +27 -34
  4. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +17 -19
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +27 -7
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +23 -51
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  15. package/lib/commonjs/shared/components/create-boundary-component/index.js +3 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  17. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +75 -0
  18. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +15 -2
  20. package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
  21. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +103 -0
  22. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
  23. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +52 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
  25. package/lib/commonjs/shared/components/native-screen.js +2 -13
  26. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  27. package/lib/commonjs/shared/constants.js +2 -7
  28. package/lib/commonjs/shared/constants.js.map +1 -1
  29. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +35 -0
  30. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
  31. package/lib/commonjs/shared/providers/register-bounds.provider.js +48 -55
  32. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  33. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
  34. package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
  35. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -6
  36. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  38. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
  39. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
  40. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +9 -2
  41. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
  42. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +19 -0
  43. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
  44. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
  45. package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
  46. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +2 -2
  47. package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
  48. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +2 -2
  49. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
  50. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
  51. package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
  52. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +2 -2
  53. package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
  54. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +18 -2
  55. package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -1
  56. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +1 -5
  57. package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
  58. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
  59. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  60. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +125 -0
  61. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
  62. package/lib/commonjs/shared/stores/bounds/index.js +6 -12
  63. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  64. package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -21
  65. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  66. package/lib/commonjs/shared/stores/bounds/internals/entries.js +49 -9
  67. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  68. package/lib/commonjs/shared/stores/bounds/internals/links.js +143 -82
  69. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  70. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +17 -43
  71. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  72. package/lib/commonjs/shared/stores/bounds/internals/state.js +26 -3
  73. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  74. package/lib/commonjs/shared/stores/gesture.store.js +2 -0
  75. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  76. package/lib/commonjs/shared/types/gesture.types.js +2 -2
  77. package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
  78. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
  79. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  80. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
  81. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  82. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
  83. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  84. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +23 -0
  85. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
  86. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +91 -199
  87. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  88. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +15 -2
  89. package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
  90. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +155 -14
  91. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  92. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
  93. package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
  94. package/lib/module/component-stack/components/component-screen.js +2 -8
  95. package/lib/module/component-stack/components/component-screen.js.map +1 -1
  96. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +27 -34
  97. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  98. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
  99. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  100. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +18 -20
  101. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
  102. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +28 -8
  103. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
  104. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +22 -50
  105. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  106. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
  107. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  108. package/lib/module/shared/components/create-boundary-component/index.js +3 -1
  109. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  110. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +70 -0
  111. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
  112. package/lib/module/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +13 -1
  113. package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
  114. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +98 -0
  115. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
  116. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +47 -0
  117. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
  118. package/lib/module/shared/components/native-screen.js +3 -14
  119. package/lib/module/shared/components/native-screen.js.map +1 -1
  120. package/lib/module/shared/constants.js +1 -6
  121. package/lib/module/shared/constants.js.map +1 -1
  122. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +30 -0
  123. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
  124. package/lib/module/shared/providers/register-bounds.provider.js +48 -55
  125. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  126. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
  127. package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
  128. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -1
  129. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  130. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  131. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
  132. package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
  133. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +10 -3
  134. package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
  135. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +20 -1
  136. package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
  137. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
  138. package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
  139. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +3 -3
  140. package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
  141. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +3 -3
  142. package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
  143. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
  144. package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
  145. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +3 -3
  146. package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
  147. package/lib/module/shared/providers/screen/gestures/shared/physics.js +15 -0
  148. package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -1
  149. package/lib/module/shared/providers/screen/gestures/shared/policy.js +3 -3
  150. package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
  151. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
  152. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  153. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +105 -0
  154. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
  155. package/lib/module/shared/stores/bounds/index.js +7 -13
  156. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  157. package/lib/module/shared/stores/bounds/internals/clear.js +14 -22
  158. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  159. package/lib/module/shared/stores/bounds/internals/entries.js +49 -9
  160. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  161. package/lib/module/shared/stores/bounds/internals/links.js +139 -80
  162. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  163. package/lib/module/shared/stores/bounds/internals/resolver.js +17 -43
  164. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  165. package/lib/module/shared/stores/bounds/internals/state.js +25 -2
  166. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  167. package/lib/module/shared/stores/gesture.store.js +2 -0
  168. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  169. package/lib/module/shared/types/animation.types.js +0 -4
  170. package/lib/module/shared/types/animation.types.js.map +1 -1
  171. package/lib/module/shared/types/gesture.types.js +0 -1
  172. package/lib/module/shared/types/gesture.types.js.map +1 -1
  173. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
  174. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  175. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
  176. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  177. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
  178. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  179. package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +18 -0
  180. package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
  181. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +90 -198
  182. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  183. package/lib/module/shared/utils/bounds/navigation/reveal/config.js +14 -1
  184. package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
  185. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +144 -12
  186. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  187. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
  188. package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
  189. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
  190. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +1 -0
  191. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  192. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +1 -1
  193. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  194. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +5 -4
  195. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
  196. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +6 -2
  197. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -1
  198. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +5 -4
  199. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  200. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +7 -7
  201. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  202. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  203. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +11 -7
  204. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  205. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts +10 -0
  206. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +1 -0
  207. package/lib/typescript/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.d.ts → utils/measured-bounds.d.ts} +3 -2
  208. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -0
  209. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts +22 -0
  210. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +1 -0
  211. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts +16 -0
  212. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +1 -0
  213. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  214. package/lib/typescript/shared/constants.d.ts +0 -5
  215. package/lib/typescript/shared/constants.d.ts.map +1 -1
  216. package/lib/typescript/shared/index.d.ts +1 -1
  217. package/lib/typescript/shared/index.d.ts.map +1 -1
  218. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +21 -0
  219. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -0
  220. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  221. package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
  222. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +0 -1
  223. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  224. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +1 -1
  225. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  226. package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -1
  227. package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
  228. package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -1
  229. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +2 -1
  230. package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -1
  231. package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
  232. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -1
  233. package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
  234. package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
  235. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +7 -0
  236. package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -1
  237. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +0 -10
  238. package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
  239. package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
  240. package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
  241. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  242. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +18 -0
  243. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -0
  244. package/lib/typescript/shared/stores/bounds/index.d.ts +6 -12
  245. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  246. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  247. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  248. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +13 -10
  249. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  250. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  251. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +26 -5
  252. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  253. package/lib/typescript/shared/stores/bounds/types.d.ts +14 -7
  254. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  255. package/lib/typescript/shared/stores/gesture.store.d.ts +1 -0
  256. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  257. package/lib/typescript/shared/types/animation.types.d.ts +0 -18
  258. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  259. package/lib/typescript/shared/types/gesture.types.d.ts +8 -1
  260. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  261. package/lib/typescript/shared/types/index.d.ts +1 -1
  262. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  263. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  264. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  265. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  266. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  267. package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts +4 -0
  268. package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -0
  269. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  270. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +14 -1
  271. package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
  272. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +48 -7
  273. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
  274. package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -3
  275. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  276. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +3 -2
  277. package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
  278. package/package.json +1 -1
  279. package/src/component-stack/components/component-screen.tsx +3 -11
  280. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -27
  281. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +5 -5
  282. package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +25 -24
  283. package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +41 -11
  284. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +49 -64
  285. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +44 -83
  286. package/src/shared/components/create-boundary-component/index.tsx +3 -1
  287. package/src/shared/components/create-boundary-component/types.ts +13 -11
  288. package/src/shared/components/create-boundary-component/utils/destination-signals.ts +129 -0
  289. package/src/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.ts → utils/measured-bounds.ts} +25 -1
  290. package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +164 -0
  291. package/src/shared/components/create-boundary-component/utils/source-signals.ts +72 -0
  292. package/src/shared/components/native-screen.tsx +3 -12
  293. package/src/shared/constants.ts +1 -6
  294. package/src/shared/index.ts +0 -3
  295. package/src/shared/providers/helpers/measured-bounds-writes.ts +67 -0
  296. package/src/shared/providers/register-bounds.provider.tsx +68 -91
  297. package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +0 -14
  298. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +1 -2
  299. package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -4
  300. package/src/shared/providers/screen/gestures/pan/pan-activation.ts +4 -1
  301. package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +18 -2
  302. package/src/shared/providers/screen/gestures/pan/pan-release.ts +33 -0
  303. package/src/shared/providers/screen/gestures/pan/pan-reset.ts +3 -0
  304. package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +9 -6
  305. package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +5 -2
  306. package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +1 -0
  307. package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +9 -6
  308. package/src/shared/providers/screen/gestures/shared/physics.ts +25 -0
  309. package/src/shared/providers/screen/gestures/shared/policy.ts +3 -5
  310. package/src/shared/providers/screen/gestures/types.ts +2 -0
  311. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
  312. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +161 -0
  313. package/src/shared/stores/bounds/index.ts +10 -20
  314. package/src/shared/stores/bounds/internals/clear.ts +17 -41
  315. package/src/shared/stores/bounds/internals/entries.ts +56 -13
  316. package/src/shared/stores/bounds/internals/links.ts +222 -113
  317. package/src/shared/stores/bounds/internals/resolver.ts +23 -87
  318. package/src/shared/stores/bounds/internals/state.ts +27 -5
  319. package/src/shared/stores/bounds/types.ts +17 -7
  320. package/src/shared/stores/gesture.store.ts +3 -0
  321. package/src/shared/types/animation.types.ts +0 -23
  322. package/src/shared/types/gesture.types.ts +8 -2
  323. package/src/shared/types/index.ts +0 -4
  324. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
  325. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +6 -6
  326. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +20 -11
  327. package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +22 -0
  328. package/src/shared/utils/bounds/navigation/reveal/build.ts +153 -297
  329. package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
  330. package/src/shared/utils/bounds/navigation/reveal/math.ts +234 -18
  331. package/src/shared/utils/bounds/types/options.ts +2 -3
  332. package/src/shared/utils/navigation/resolve-scene-neighbors.ts +36 -23
  333. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -43
  334. package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
  335. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -17
  336. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
  337. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -28
  338. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
  339. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -75
  340. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
  341. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -20
  342. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
  343. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
  344. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -16
  345. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
  346. package/lib/commonjs/shared/providers/layout-anchor.provider.js +0 -86
  347. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +0 -1
  348. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +0 -49
  349. package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
  350. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +0 -25
  351. package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +0 -1
  352. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +0 -30
  353. package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
  354. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +0 -79
  355. package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
  356. package/lib/commonjs/shared/stores/bounds/helpers/matching.js +0 -13
  357. package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +0 -1
  358. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +0 -30
  359. package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
  360. package/lib/commonjs/shared/stores/bounds/internals/groups.js +0 -102
  361. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +0 -1
  362. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -38
  363. package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
  364. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -12
  365. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
  366. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -23
  367. package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
  368. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -68
  369. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
  370. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -15
  371. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
  372. package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
  373. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -12
  374. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
  375. package/lib/module/shared/providers/layout-anchor.provider.js +0 -80
  376. package/lib/module/shared/providers/layout-anchor.provider.js.map +0 -1
  377. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +0 -42
  378. package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
  379. package/lib/module/shared/stores/bounds/helpers/find-latest.js +0 -19
  380. package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +0 -1
  381. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +0 -23
  382. package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
  383. package/lib/module/shared/stores/bounds/helpers/link.helpers.js +0 -69
  384. package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
  385. package/lib/module/shared/stores/bounds/helpers/matching.js +0 -9
  386. package/lib/module/shared/stores/bounds/helpers/matching.js.map +0 -1
  387. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +0 -24
  388. package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
  389. package/lib/module/shared/stores/bounds/internals/groups.js +0 -95
  390. package/lib/module/shared/stores/bounds/internals/groups.js.map +0 -1
  391. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -15
  392. package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
  393. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +0 -2
  394. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +0 -1
  395. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +0 -22
  396. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +0 -1
  397. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +0 -29
  398. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +0 -1
  399. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -3
  400. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +0 -1
  401. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +0 -1
  402. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -8
  403. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +0 -1
  404. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +0 -39
  405. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +0 -1
  406. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +0 -5
  407. package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +0 -1
  408. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +0 -3
  409. package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +0 -1
  410. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +0 -10
  411. package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +0 -1
  412. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -14
  413. package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +0 -1
  414. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +0 -3
  415. package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +0 -1
  416. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +0 -5
  417. package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +0 -1
  418. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +0 -16
  419. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +0 -1
  420. package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -83
  421. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +0 -20
  422. package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +0 -48
  423. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +0 -101
  424. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -25
  425. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -14
  426. package/src/shared/providers/layout-anchor.provider.tsx +0 -112
  427. package/src/shared/stores/bounds/helpers/entries.helpers.ts +0 -55
  428. package/src/shared/stores/bounds/helpers/find-latest.ts +0 -22
  429. package/src/shared/stores/bounds/helpers/groups.helpers.ts +0 -27
  430. package/src/shared/stores/bounds/helpers/link.helpers.ts +0 -131
  431. package/src/shared/stores/bounds/helpers/matching.ts +0 -11
  432. package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +0 -24
  433. package/src/shared/stores/bounds/internals/groups.ts +0 -116
@@ -1 +1 @@
1
- {"version":3,"file":"gesture.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/gesture.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAChD,mBAAmB,EACnB,eAAe,CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,2BAA2B,GAAG,qBAAqB,CAAC;AAEhF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAChC,QAAQ,EAA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AC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,gBAAgB,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAE9C,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"gesture.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/gesture.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAChD,mBAAmB,EACnB,eAAe,CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,G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2B,GAAG,IAAI,CAAC;IAE9C,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { FALSE, TRUE } from "../constants";
2
- export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionAccessor, ScreenTransitionDepthTarget, ScreenTransitionOptions, ScreenTransitionState, ScreenTransitionTarget, TransitionInterpolatedStyle, TransitionInterpolatorConfig, TransitionInterpolatorOptions, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
2
+ export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionOptions, ScreenTransitionState, TransitionInterpolatedStyle, TransitionInterpolatorOptions, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
3
3
  export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
4
4
  export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, PanGestureDirection, PinchGestureDirection, SideActivation, } from "./gesture.types";
5
5
  export type { OverlayProps } from "./overlay.types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-bounds-accessor-core.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,KAAK,mBAAmB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACzE,qBAAqB,CAAC;AAEvB,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,aAAa,EAC5C,OAAO,EAAE,CAAC,KACN,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE5B,KAAK,kBAAkB,GAAG,aAAa,GACtC,UAAU,CAAC,OAAO,kBAAkB,CAAC,GACrC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,KAAK,wBAAwB,CAAC,CAAC,SAAS,aAAa,IAAI;IACxD,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACrC,QAAQ,EAAE,MAAM,wBAAwB,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,CAAC,SAAS,aAAa,EACtC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,KAC/B,IAAI,CAAC;CACV,CAAC;AA0GF,eAAO,MAAM,wBAAwB,GACpC,QAAQ,8BAA8B,KACpC,kBAmBF,CAAC"}
1
+ {"version":3,"file":"create-bounds-accessor-core.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,KAAK,mBAAmB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACzE,qBAAqB,CAAC;AAEvB,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,aAAa,EAC5C,OAAO,EAAE,CAAC,KACN,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE5B,KAAK,kBAAkB,GAAG,aAAa,GACtC,UAAU,CAAC,OAAO,kBAAkB,CAAC,GACrC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,KAAK,wBAAwB,CAAC,CAAC,SAAS,aAAa,IAAI;IACxD,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACrC,QAAQ,EAAE,MAAM,wBAAwB,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,CAAC,SAAS,aAAa,EACtC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,KAC/B,IAAI,CAAC;CACV,CAAC;AA2GF,eAAO,MAAM,wBAAwB,GACpC,QAAQ,8BAA8B,KACpC,kBAmBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,aAAa,EAGb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACX,wBAAwB,EACxB,UAAU,EAEV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,kBAAkB,CAAC;AAGrE,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAcF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YAuEvD,CAAC"}
1
+ {"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,aAAa,EAGb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACX,wBAAwB,EACxB,UAAU,EAEV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,kBAAkB,CAAC;AAIrE,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAcF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YAsEvD,CAAC"}
@@ -8,6 +8,6 @@ type ComputeResolvedBoundsStylesParams<T extends BoundsOptions> = {
8
8
  resolvedPair?: ResolvedTransitionPair;
9
9
  syncGroupActiveId?: boolean;
10
10
  };
11
- export declare const prepareBoundStyles: <T extends BoundsOptions>({ props, options, resolvedPair, }: ComputeResolvedBoundsStylesParams<T>) => BoundsOptionsResult<T>;
11
+ export declare const prepareBoundStyles: <T extends BoundsOptions>({ props, options, resolvedPair, syncGroupActiveId, }: ComputeResolvedBoundsStylesParams<T>) => BoundsOptionsResult<T>;
12
12
  export {};
13
13
  //# sourceMappingURL=prepare-bound-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-bound-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/prepare-bound-styles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAEX,aAAa,EACb,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AAI1B,KAAK,qBAAqB,GAAG,wBAAwB,CAAC;AAEtD,KAAK,iCAAiC,CAAC,CAAC,SAAS,aAAa,IAAI;IACjE,KAAK,EAAE,qBAAqB,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AA+CF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,aAAa,EAAE,mCAIzD,iCAAiC,CAAC,CAAC,CAAC,KAAG,mBAAmB,CAAC,CAAC,CAwB9D,CAAC"}
1
+ {"version":3,"file":"prepare-bound-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/prepare-bound-styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAEX,aAAa,EACb,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AAK1B,KAAK,qBAAqB,GAAG,wBAAwB,CAAC;AAEtD,KAAK,iCAAiC,CAAC,CAAC,SAAS,aAAa,IAAI;IACjE,KAAK,EAAE,qBAAqB,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAmDF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,aAAa,EAAE,sDAKzD,iCAAiC,CAAC,CAAC,CAAC,KAAG,mBAAmB,CAAC,CAAC,CA8B9D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ScreenPairKey } from "../../../stores/bounds/types";
2
+ import type { BoundsInterpolationProps } from "../../../types/bounds.types";
3
+ export declare const resolveBoundsPairKey: (props: BoundsInterpolationProps) => ScreenPairKey | null;
4
+ //# sourceMappingURL=resolve-bounds-pair-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-bounds-pair-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,oBAAoB,GAChC,OAAO,wBAAwB,KAC7B,aAAa,GAAG,IAelB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/build.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA+KhF,wBAAgB,iBAAiB,CAAC,EACjC,GAAG,EACH,KAAK,GACL,EAAE,uBAAuB,GAAG,uBAAuB,CAuYnD"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/build.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAMhF,wBAAgB,iBAAiB,CAAC,EACjC,GAAG,EACH,KAAK,GACL,EAAE,uBAAuB,GAAG,uBAAuB,CAoZnD"}
@@ -1,9 +1,22 @@
1
1
  export declare const REVEAL_BORDER_RADIUS: number;
2
+ export declare const REVEAL_USES_TRANSFORM_MASK: boolean;
2
3
  export declare const DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
3
4
  export declare const DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
4
5
  export declare const DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
5
6
  export declare const DRAG_MASK_HEIGHT_COLLAPSE_END = 0.7;
6
7
  export declare const HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE = 0.5;
7
- export declare const DISMISS_SCALE_ORBIT_DEPTH = 0.8;
8
+ export declare const DISMISS_SCALE_ORBIT_DEPTH = 0.5;
8
9
  export declare const CLOSE_SOURCE_HANDOFF_PROGRESS = 0.25;
10
+ export declare const IDENTITY_DRAG_SCALE_OUTPUT: readonly [1, 1];
11
+ export declare const ZERO_TO_ONE_RANGE: readonly [0, 1];
12
+ export declare const CONTENT_ENTERING_OPACITY_RANGE: readonly [0, 0.25];
13
+ export declare const CONTENT_CLOSING_OPACITY_RANGE: readonly [0, 0.25, 1];
14
+ export declare const CONTENT_ENTERING_OPACITY_OUTPUT: readonly [0, 1];
15
+ export declare const CONTENT_CLOSING_OPACITY_OUTPUT: readonly [0, 1, 1];
16
+ export declare const CONTENT_SHADOW_OPACITY_OUTPUT: readonly [0, 0.25];
17
+ export declare const UNFOCUSED_ELEMENT_OPACITY_OUTPUT: readonly [1, 0];
18
+ export declare const REVEAL_SHADOW_OFFSET: {
19
+ readonly width: 0;
20
+ readonly height: 2;
21
+ };
9
22
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAI/B,CAAC;AAEH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,6BAA6B,OAAO,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAI/B,CAAC;AAEH,eAAO,MAAM,0BAA0B,SAA4B,CAAC;AAEpE,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,eAAO,MAAM,0BAA0B,iBAAkB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,iBAAkB,CAAC;AACjD,eAAO,MAAM,8BAA8B,oBAGjC,CAAC;AACX,eAAO,MAAM,6BAA6B,uBAIhC,CAAC;AACX,eAAO,MAAM,+BAA+B,iBAAkB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,oBAAqB,CAAC;AACjE,eAAO,MAAM,6BAA6B,oBAAqB,CAAC;AAChE,eAAO,MAAM,gCAAgC,iBAAkB,CAAC;AAChE,eAAO,MAAM,oBAAoB;;;CAAmC,CAAC"}
@@ -1,8 +1,49 @@
1
- export declare const resolveDirectionalDragTranslation: ({ translation, dimension, negativeMax, positiveMax, exponent, }: {
2
- translation: number;
3
- dimension: number;
4
- negativeMax: number;
5
- positiveMax: number;
6
- exponent?: number;
7
- }) => number;
1
+ import type { MeasuredDimensions } from "react-native-reanimated";
2
+ import type { Layout } from "../../../../types/screen.types";
3
+ export declare function mixUnit(from: number, to: number, progress: number): number;
4
+ export declare function interpolateClamped(value: number, inputStart: number, inputEnd: number, outputStart: number, outputEnd: number): number;
5
+ export declare function resolveSafeScale(scale: number): number;
6
+ export declare const resolveUnitDragTranslation: (translation: number, dimension: number) => number;
7
+ export declare function resolveRevealDirectionalDragScale(normalized: number, inverted: boolean): number;
8
+ export declare function resolveUniformScale({ sourceWidth, sourceHeight, destinationWidth, destinationHeight, }: {
9
+ sourceWidth: number;
10
+ sourceHeight: number;
11
+ destinationWidth: number;
12
+ destinationHeight: number;
13
+ }): number;
14
+ export declare function resolveRevealGestureHandoff(rawDrag: number): {
15
+ gestureSensitivity: number;
16
+ gestureReleaseVelocityScale: number;
17
+ };
18
+ export declare function resolveDismissScaleHandoff({ progress, releaseScale, targetScale, velocity, }: {
19
+ progress: number;
20
+ releaseScale: number;
21
+ targetScale: number;
22
+ velocity: number;
23
+ }): number;
24
+ export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, }: {
25
+ progress: number;
26
+ sourceBounds: MeasuredDimensions;
27
+ destinationBounds: MeasuredDimensions;
28
+ screenLayout: Layout;
29
+ }): {
30
+ translateX: number;
31
+ translateY: number;
32
+ scale: number;
33
+ };
34
+ export declare function resolveTrackedSourceElementTransform({ sourceBounds, destinationBounds, contentTranslateX, contentTranslateY, contentScale, parentScale, screenWidth, screenHeight, }: {
35
+ sourceBounds: MeasuredDimensions;
36
+ destinationBounds: MeasuredDimensions;
37
+ contentTranslateX: number;
38
+ contentTranslateY: number;
39
+ contentScale: number;
40
+ parentScale: number;
41
+ screenWidth: number;
42
+ screenHeight: number;
43
+ }): {
44
+ translateX: number;
45
+ translateY: number;
46
+ scaleX: number;
47
+ scaleY: number;
48
+ };
8
49
  //# sourceMappingURL=math.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,GAAI,iEAM/C;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,WAYA,CAAC"}
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAc7D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,M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E,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;;;;;EAuCA"}
@@ -53,9 +53,8 @@ export type BoundsOptions = {
53
53
  id: BoundId;
54
54
  /**
55
55
  * Optional group name for collection/list scenarios.
56
- * When provided, boundaries are tracked as a group and the active member id
57
- * is managed automatically. The internal tag becomes `group:id`.
58
- * Without this, `id` is used directly as the tag (backward compatible).
56
+ * When provided, concrete boundary entries use `group:id`, while transition
57
+ * links stay keyed by the member `id` inside the active screen pair.
59
58
  */
60
59
  group?: string;
61
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,MAAM,MAAM,YAAY,GACrB,YAAY,GACZ,KAAK,GACL,aAAa,GACb,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,QAAQ,GACR,gBAAgB,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3D,KAAK,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAEhE,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IACjC,EAAE,CAA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nB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,aAAa,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,GAC7E,CAAC,CAAC,QAAQ,CAAC,SAAS,MAAM,GACzB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,qBAAqB,GACrB,qBAAqB,GACtB,CAAC,CAAC,QAAQ,CAAC,SAAS,SAAS,GAC5B,gBAAgB,GAChB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,0BAA0B,GAC1B,0BAA0B,GAC7B,UAAU,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG;IAC3B;;;OAGG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtC;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
@@ -10,8 +10,9 @@ type IsRouteClosing = (routeKey: string) => boolean;
10
10
  * visually closing.
11
11
  *
12
12
  * Rules:
13
- * - Closing scenes are isolated (no previous/next) so their transition does not
14
- * mix with newly pushed screens.
13
+ * - Closing scenes keep their previous descriptor so their original pair can
14
+ * keep resolving while they remain mounted, but they never receive a next
15
+ * descriptor.
15
16
  * - Non-closing scenes skip over closing neighbors to find the actual active
16
17
  * neighbor.
17
18
  * - If there is no non-closing neighbor above/below, we fall back to the first
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-scene-neighbors.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/navigation/resolve-scene-neighbors.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACrB,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAC3D,MAAM,EAAE,CAAC,EAAE,EACX,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,cAAc,GAC5B;IACF,kBAAkB,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;CAC5C,CA8DA"}
1
+ {"version":3,"file":"resolve-scene-neighbors.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/navigation/resolve-scene-neighbors.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACrB,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;AAyBpD;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAC3D,MAAM,EAAE,CAAC,EAAE,EACX,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,cAAc,GAC5B;IACF,kBAAkB,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;CAC5C,CAmDA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screen-transitions",
3
- "version": "3.6.0-alpha.1",
3
+ "version": "3.6.0-alpha.2",
4
4
  "description": "Easy screen transitions for React Native and Expo",
5
5
  "author": "Ed",
6
6
  "license": "MIT",
@@ -1,10 +1,6 @@
1
1
  import type * as React from "react";
2
- import { StyleSheet, type View } from "react-native";
3
- import Animated, {
4
- useAnimatedProps,
5
- useAnimatedRef,
6
- } from "react-native-reanimated";
7
- import { LayoutAnchorProvider } from "../../shared/providers/layout-anchor.provider";
2
+ import { StyleSheet } from "react-native";
3
+ import Animated, { useAnimatedProps } from "react-native-reanimated";
8
4
  import { AnimationStore } from "../../shared/stores/animation.store";
9
5
 
10
6
  interface ScreenProps {
@@ -16,7 +12,6 @@ const POINT_BOX_NONE = "box-none" as const;
16
12
 
17
13
  export const ComponentScreen = ({ routeKey, children }: ScreenProps) => {
18
14
  const sceneClosing = AnimationStore.getValue(routeKey, "closing");
19
- const screenRef = useAnimatedRef<View>();
20
15
 
21
16
  const animatedProps = useAnimatedProps(() => {
22
17
  return {
@@ -28,13 +23,10 @@ export const ComponentScreen = ({ routeKey, children }: ScreenProps) => {
28
23
 
29
24
  return (
30
25
  <ComponentScreenComponent
31
- ref={screenRef}
32
26
  style={StyleSheet.absoluteFill}
33
27
  animatedProps={animatedProps}
34
28
  >
35
- <LayoutAnchorProvider anchorRef={screenRef}>
36
- {children}
37
- </LayoutAnchorProvider>
29
+ {children}
38
30
  </ComponentScreenComponent>
39
31
  );
40
32
  };
@@ -15,7 +15,7 @@ import Animated, {
15
15
  import { NO_STYLES } from "../../constants";
16
16
  import { useDescriptorDerivations } from "../../providers/screen/descriptors";
17
17
  import { useScreenStyles } from "../../providers/screen/styles";
18
- import { setGroupInitialId } from "../../stores/bounds/internals/groups";
18
+ import { createPendingPairKey } from "../../stores/bounds/helpers/link-pairs.helpers";
19
19
  import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles/styles";
20
20
  import { useBoundaryPresence } from "./hooks/use-boundary-presence";
21
21
  import { useInitialDestinationMeasurement } from "./hooks/use-initial-destination-measurement";
@@ -27,17 +27,17 @@ import {
27
27
  useBoundaryOwner,
28
28
  } from "./providers/boundary-owner.provider";
29
29
  import type { BoundaryComponentProps, BoundaryConfigProps } from "./types";
30
- import { buildBoundaryMatchKey } from "./utils/build-boundary-match-key";
31
30
 
32
31
  interface CreateBoundaryComponentOptions {
33
32
  alreadyAnimated?: boolean;
33
+ shouldAutoMeasure?: boolean;
34
34
  }
35
35
 
36
36
  export function createBoundaryComponent<P extends object>(
37
37
  Wrapped: ComponentType<P>,
38
38
  options: CreateBoundaryComponentOptions = {},
39
39
  ) {
40
- const { alreadyAnimated = false } = options;
40
+ const { alreadyAnimated = false, shouldAutoMeasure = false } = options;
41
41
  const AnimatedComponent = alreadyAnimated
42
42
  ? Wrapped
43
43
  : Animated.createAnimatedComponent(Wrapped);
@@ -60,12 +60,14 @@ export function createBoundaryComponent<P extends object>(
60
60
  ...rest
61
61
  } = props as any;
62
62
 
63
- const sharedBoundTag = buildBoundaryMatchKey({ group, id });
63
+ const linkId = String(id);
64
+ const entryTag = group ? `${group}:${linkId}` : linkId;
64
65
 
65
66
  const {
66
67
  previousScreenKey: preferredSourceScreenKey,
67
68
  currentScreenKey,
68
69
  nextScreenKey,
70
+ ancestorKeys,
69
71
  hasConfiguredInterpolator,
70
72
  } = useDescriptorDerivations();
71
73
 
@@ -97,12 +99,12 @@ export function createBoundaryComponent<P extends object>(
97
99
 
98
100
  const associatedStyles = useAnimatedStyle(() => {
99
101
  "worklet";
100
- return stylesMap.get()[sharedBoundTag]?.style ?? NO_STYLES;
102
+ return stylesMap.get()[entryTag]?.style ?? NO_STYLES;
101
103
  });
102
104
 
103
105
  const associatedStackingStyles = useAnimatedStyle(() => {
104
106
  "worklet";
105
- const baseStyle = stylesMap.get()[sharedBoundTag]?.style;
107
+ const baseStyle = stylesMap.get()[entryTag]?.style;
106
108
  const zIndex = baseStyle?.zIndex ?? 0;
107
109
  const elevation = baseStyle?.elevation ?? 0;
108
110
 
@@ -123,8 +125,9 @@ export function createBoundaryComponent<P extends object>(
123
125
 
124
126
  const measureBoundary = useMeasurer({
125
127
  enabled,
126
- sharedBoundTag,
127
- preferredSourceScreenKey,
128
+ entryTag,
129
+ linkId,
130
+ group,
128
131
  currentScreenKey,
129
132
  preparedStyles,
130
133
  measuredAnimatedRef: measuredRef,
@@ -136,57 +139,57 @@ export function createBoundaryComponent<P extends object>(
136
139
  // matching can resolve across concrete screen keys.
137
140
  useBoundaryPresence({
138
141
  enabled: runtimeEnabled,
139
- sharedBoundTag,
142
+ entryTag,
140
143
  currentScreenKey,
141
144
  boundaryConfig,
142
145
  });
143
146
 
144
- // Initial source measurement: capture source bounds when a matching
145
- // destination appears on the next screen.
147
+ const shouldPassivelyMeasureSource =
148
+ shouldAutoMeasure && typeof onPress !== "function";
149
+
146
150
  useInitialSourceMeasurement({
147
151
  enabled: runtimeEnabled,
148
152
  nextScreenKey,
149
153
  measureBoundary,
154
+ currentScreenKey,
155
+ linkId,
156
+ group,
157
+ shouldAutoMeasure: shouldPassivelyMeasureSource,
150
158
  });
151
159
 
152
- // Initial destination measurement: hold lifecycle start until the first
153
- // valid destination measurement attaches, then release the pending transition.
154
160
  useInitialDestinationMeasurement({
155
- sharedBoundTag,
161
+ linkId,
156
162
  enabled: shouldRunDestinationEffects,
157
163
  currentScreenKey,
158
164
  preferredSourceScreenKey,
165
+ ancestorScreenKeys: ancestorKeys,
159
166
  measureBoundary,
160
167
  });
161
168
 
162
- // Pre-transition measurement path: when this route or its next sibling is
163
- // about to animate, capture or refresh the measurements needed before
164
- // progress or transform state mutates. Grouped sources refresh existing
165
- // links; plain sources only backfill when missing.
166
169
  useRefreshBoundary({
167
170
  enabled: runtimeEnabled,
168
- sharedBoundTag,
169
- id,
170
- group,
171
171
  currentScreenKey,
172
+ preferredSourceScreenKey,
172
173
  nextScreenKey,
173
- hasNextScreen,
174
+ linkId,
175
+ group,
176
+ ancestorScreenKeys: ancestorKeys,
174
177
  measureBoundary,
175
178
  });
176
179
 
177
180
  const handlePress = useCallback(
178
181
  (...args: unknown[]) => {
179
182
  // Press path has priority: capture source before user onPress/navigation.
180
- if (group) {
181
- runOnUI(setGroupInitialId)(group, String(id));
182
- }
183
- runOnUI(measureBoundary)({ intent: "capture-source" });
183
+ runOnUI(measureBoundary)({
184
+ type: "source",
185
+ pairKey: createPendingPairKey(currentScreenKey),
186
+ });
184
187
 
185
188
  if (typeof onPress === "function") {
186
189
  onPress(...args);
187
190
  }
188
191
  },
189
- [group, id, measureBoundary, onPress],
192
+ [measureBoundary, onPress, currentScreenKey],
190
193
  );
191
194
 
192
195
  const resolvedOnPress =
@@ -8,21 +8,21 @@ import type { BoundaryConfigProps } from "../types";
8
8
 
9
9
  export const useBoundaryPresence = (params: {
10
10
  enabled: boolean;
11
- sharedBoundTag: string;
11
+ entryTag: string;
12
12
  currentScreenKey: string;
13
13
  boundaryConfig?: BoundaryConfigProps;
14
14
  }) => {
15
- const { enabled, sharedBoundTag, currentScreenKey, boundaryConfig } = params;
15
+ const { enabled, entryTag, currentScreenKey, boundaryConfig } = params;
16
16
 
17
17
  useLayoutEffect(() => {
18
18
  if (!enabled) return;
19
19
 
20
- runOnUI(setEntry)(sharedBoundTag, currentScreenKey, {
20
+ runOnUI(setEntry)(entryTag, currentScreenKey, {
21
21
  boundaryConfig,
22
22
  });
23
23
 
24
24
  return () => {
25
- runOnUI(removeEntry)(sharedBoundTag, currentScreenKey);
25
+ runOnUI(removeEntry)(entryTag, currentScreenKey);
26
26
  };
27
- }, [enabled, sharedBoundTag, currentScreenKey, boundaryConfig]);
27
+ }, [enabled, entryTag, currentScreenKey, boundaryConfig]);
28
28
  };
@@ -6,30 +6,32 @@ import {
6
6
  withTiming,
7
7
  } from "react-native-reanimated";
8
8
  import { AnimationStore } from "../../../stores/animation.store";
9
- import { hasDestinationLink } from "../../../stores/bounds/internals/links";
9
+ import { getDestination } from "../../../stores/bounds/internals/links";
10
+ import { pairs } from "../../../stores/bounds/internals/state";
10
11
  import {
11
12
  LifecycleTransitionRequestKind,
12
13
  SystemStore,
13
14
  } from "../../../stores/system.store";
14
- import type { MeasureParams } from "../types";
15
- import { createLinkContext } from "./helpers/boundary-link-context";
16
- import { shouldBlockInitialDestinationMeasurement } from "./helpers/measurement-rules";
15
+ import type { MeasureBoundary } from "../types";
16
+ import { getInitialDestinationMeasurePairKey } from "../utils/destination-signals";
17
17
 
18
18
  const VIEWPORT_RETRY_DELAY_MS = 16;
19
19
 
20
20
  interface UseInitialDestinationMeasurementParams {
21
- sharedBoundTag: string;
21
+ linkId: string;
22
22
  enabled: boolean;
23
23
  currentScreenKey: string;
24
24
  preferredSourceScreenKey?: string;
25
- measureBoundary: (options: MeasureParams) => void;
25
+ ancestorScreenKeys: string[];
26
+ measureBoundary: MeasureBoundary;
26
27
  }
27
28
 
28
29
  export const useInitialDestinationMeasurement = ({
29
- sharedBoundTag,
30
+ linkId,
30
31
  enabled,
31
32
  currentScreenKey,
32
33
  preferredSourceScreenKey,
34
+ ancestorScreenKeys,
33
35
  measureBoundary,
34
36
  }: UseInitialDestinationMeasurementParams) => {
35
37
  const progress = AnimationStore.getValue(currentScreenKey, "progress");
@@ -87,35 +89,34 @@ export const useInitialDestinationMeasurement = ({
87
89
  return [0, retryTick] as const;
88
90
  }
89
91
 
90
- const linkContext = createLinkContext({
91
- sharedBoundTag,
92
+ const destinationPairKey = getInitialDestinationMeasurePairKey({
93
+ enabled,
92
94
  currentScreenKey,
93
95
  preferredSourceScreenKey,
96
+ ancestorScreenKeys,
97
+ linkId,
98
+ linkState: ancestorScreenKeys.length ? pairs.get() : undefined,
94
99
  });
95
100
 
96
- const shouldBlock = shouldBlockInitialDestinationMeasurement({
97
- enabled,
98
- hasDestinationLink: linkContext.hasDestinationLink,
99
- hasAttachableSourceLink: linkContext.hasAttachableSourceLink,
100
- });
101
-
102
- if (!shouldBlock) {
103
- return [0, retryTick] as const;
104
- }
105
-
106
- return [1, retryTick] as const;
101
+ return [destinationPairKey, retryTick] as const;
107
102
  },
108
- ([shouldBlock]) => {
103
+ ([destinationPairKey]) => {
109
104
  "worklet";
110
- if (!shouldBlock) {
105
+ if (!destinationPairKey) {
111
106
  releaseLifecycleStartBlock();
112
107
  return;
113
108
  }
114
109
 
115
110
  ensureLifecycleStartBlocked();
116
- measureBoundary({ intent: "complete-destination" });
111
+ measureBoundary({
112
+ type: "destination",
113
+ pairKey: destinationPairKey,
114
+ });
115
+
116
+ const destinationAttached =
117
+ getDestination(destinationPairKey, linkId) !== null;
117
118
 
118
- if (hasDestinationLink(sharedBoundTag, currentScreenKey)) {
119
+ if (destinationAttached) {
119
120
  releaseLifecycleStartBlock();
120
121
  return;
121
122
  }
@@ -1,27 +1,57 @@
1
- import { useAnimatedReaction } from "react-native-reanimated";
2
- import type { MeasureParams } from "../types";
1
+ import { useAnimatedReaction, useSharedValue } from "react-native-reanimated";
2
+ import { pairs } from "../../../stores/bounds/internals/state";
3
+ import type { MeasureBoundary } from "../types";
4
+ import { getInitialSourceCaptureSignal } from "../utils/source-signals";
3
5
 
4
6
  export const useInitialSourceMeasurement = (params: {
5
7
  enabled: boolean;
6
8
  nextScreenKey?: string;
7
- measureBoundary: (options: MeasureParams) => void;
9
+ currentScreenKey?: string;
10
+ measureBoundary: MeasureBoundary;
11
+ linkId: string;
12
+ group?: string;
13
+ shouldAutoMeasure: boolean;
8
14
  }) => {
9
- const { enabled, nextScreenKey, measureBoundary } = params;
15
+ const {
16
+ enabled,
17
+ nextScreenKey,
18
+ measureBoundary,
19
+ linkId,
20
+ currentScreenKey,
21
+ group,
22
+ shouldAutoMeasure,
23
+ } = params;
24
+ const lastSourceCaptureSignal = useSharedValue<string | null>(null);
10
25
 
11
26
  useAnimatedReaction(
12
27
  () => {
13
28
  "worklet";
14
- if (!enabled || !nextScreenKey) {
15
- return 0;
16
- }
17
-
18
- return nextScreenKey;
29
+ return getInitialSourceCaptureSignal({
30
+ enabled,
31
+ nextScreenKey,
32
+ currentScreenKey,
33
+ linkId,
34
+ group,
35
+ shouldAutoMeasure,
36
+ linkState: group ? pairs.get() : undefined,
37
+ });
19
38
  },
20
39
  (captureSignal) => {
21
40
  "worklet";
22
- if (!enabled || !captureSignal) return;
41
+ if (!enabled || !captureSignal) {
42
+ lastSourceCaptureSignal.set(null);
43
+ return;
44
+ }
45
+
46
+ if (lastSourceCaptureSignal.get() === captureSignal.signal) {
47
+ return;
48
+ }
23
49
 
24
- measureBoundary({ intent: "capture-source" });
50
+ lastSourceCaptureSignal.set(captureSignal.signal);
51
+ measureBoundary({
52
+ type: "source",
53
+ pairKey: captureSignal.pairKey,
54
+ });
25
55
  },
26
56
  );
27
57
  };