react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.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 (372) hide show
  1. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +6 -4
  2. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -60
  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/helpers/resolve-pending-source-key.js +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +56 -41
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +111 -2
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +69 -0
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  17. package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
  18. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  19. package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
  20. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  21. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  22. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  23. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
  24. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  25. package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
  26. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
  27. package/lib/commonjs/shared/constants.js +17 -3
  28. package/lib/commonjs/shared/constants.js.map +1 -1
  29. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
  30. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  31. package/lib/commonjs/shared/index.js +6 -0
  32. package/lib/commonjs/shared/index.js.map +1 -1
  33. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
  34. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  35. package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
  36. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  38. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  40. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
  42. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  43. package/lib/commonjs/shared/stores/animation.store.js +9 -3
  44. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  45. package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
  46. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  47. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
  48. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  49. package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -7
  50. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  51. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -51
  52. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  53. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
  54. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  55. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
  56. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  57. package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
  58. package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
  59. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  60. package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
  61. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  62. package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  63. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  64. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
  65. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  66. package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  67. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  68. package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +14 -20
  69. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  70. package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  71. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  72. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  73. package/lib/commonjs/shared/utils/bounds/index.js +16 -44
  74. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  75. package/lib/commonjs/shared/utils/bounds/zoom/build.js +234 -50
  76. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  77. package/lib/commonjs/shared/utils/bounds/zoom/config.js +10 -1
  78. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
  79. package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
  80. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
  81. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
  82. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  83. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -61
  84. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  85. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  86. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  87. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +54 -39
  88. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  89. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  90. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  91. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
  92. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  93. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +114 -4
  94. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  95. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +64 -0
  96. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  97. package/lib/module/shared/components/create-boundary-component/index.js +10 -5
  98. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  99. package/lib/module/shared/components/create-transition-aware-component.js +10 -34
  100. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  101. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  102. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  103. package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
  104. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  105. package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
  106. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  107. package/lib/module/shared/constants.js +16 -2
  108. package/lib/module/shared/constants.js.map +1 -1
  109. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
  110. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  111. package/lib/module/shared/index.js +1 -1
  112. package/lib/module/shared/index.js.map +1 -1
  113. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
  114. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  115. package/lib/module/shared/providers/register-bounds.provider.js +9 -1
  116. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  117. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  118. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  119. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  120. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  121. package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
  122. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  123. package/lib/module/shared/stores/animation.store.js +9 -3
  124. package/lib/module/shared/stores/animation.store.js.map +1 -1
  125. package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
  126. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  127. package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
  128. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  129. package/lib/module/shared/stores/bounds/internals/registry.js +19 -8
  130. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  131. package/lib/module/shared/stores/bounds/internals/resolver.js +8 -52
  132. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  133. package/lib/module/shared/stores/bounds/internals/state.js +0 -78
  134. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  135. package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
  136. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  137. package/lib/module/shared/utils/bounds/constants.js.map +1 -0
  138. package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
  139. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  140. package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
  141. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  142. package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  143. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
  145. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  146. package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  147. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  148. package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +12 -18
  149. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  150. package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  151. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  152. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  153. package/lib/module/shared/utils/bounds/index.js +14 -42
  154. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  155. package/lib/module/shared/utils/bounds/zoom/build.js +238 -54
  156. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  157. package/lib/module/shared/utils/bounds/zoom/config.js +9 -0
  158. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
  159. package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
  160. package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
  161. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  162. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  163. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  164. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +17 -11
  165. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  166. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
  167. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
  168. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
  169. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
  170. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +20 -1
  171. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  172. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +12 -0
  173. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
  174. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
  175. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  176. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +1 -1
  177. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  178. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  179. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  180. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  181. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  182. package/lib/typescript/shared/constants.d.ts +33 -1
  183. package/lib/typescript/shared/constants.d.ts.map +1 -1
  184. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
  185. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
  186. package/lib/typescript/shared/index.d.ts +3 -3
  187. package/lib/typescript/shared/index.d.ts.map +1 -1
  188. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  189. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
  190. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  191. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
  192. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  193. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
  194. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  195. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  196. package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
  197. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  198. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  199. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  200. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  201. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  202. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -3
  203. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  204. package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
  205. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  206. package/lib/typescript/shared/types/animation.types.d.ts +11 -0
  207. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  208. package/lib/typescript/shared/types/bounds.types.d.ts +106 -1
  209. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  210. package/lib/typescript/shared/types/index.d.ts +1 -1
  211. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  212. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  213. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  214. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
  215. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
  216. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
  217. package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
  218. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
  219. package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
  220. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
  221. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
  222. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
  223. package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
  224. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
  225. package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
  226. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
  227. package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
  228. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
  229. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
  230. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  231. package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
  232. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  233. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +9 -0
  235. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
  237. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
  238. package/package.json +1 -1
  239. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
  240. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +28 -60
  241. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
  242. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +72 -53
  243. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
  244. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
  245. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +180 -6
  246. package/src/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts +110 -0
  247. package/src/shared/components/create-boundary-component/index.tsx +10 -5
  248. package/src/shared/components/create-boundary-component/types.ts +1 -2
  249. package/src/shared/components/create-transition-aware-component.tsx +10 -47
  250. package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
  251. package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
  252. package/src/shared/components/screen-lifecycle/index.tsx +1 -4
  253. package/src/shared/constants.ts +11 -1
  254. package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
  255. package/src/shared/index.ts +3 -0
  256. package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
  257. package/src/shared/providers/register-bounds.provider.tsx +8 -1
  258. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
  259. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
  260. package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
  261. package/src/shared/stores/animation.store.ts +11 -2
  262. package/src/shared/stores/bounds/internals/clear.ts +47 -220
  263. package/src/shared/stores/bounds/internals/presence.ts +1 -4
  264. package/src/shared/stores/bounds/internals/registry.ts +25 -14
  265. package/src/shared/stores/bounds/internals/resolver.ts +7 -84
  266. package/src/shared/stores/bounds/internals/state.ts +0 -98
  267. package/src/shared/stores/bounds/types.ts +0 -2
  268. package/src/shared/types/animation.types.ts +13 -0
  269. package/src/shared/types/bounds.types.ts +108 -1
  270. package/src/shared/types/index.ts +2 -0
  271. package/src/shared/utils/animation/animate-to-progress.ts +11 -1
  272. package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
  273. package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
  274. package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
  275. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
  276. package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
  277. package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +10 -20
  278. package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
  279. package/src/shared/utils/bounds/index.ts +13 -53
  280. package/src/shared/utils/bounds/types/options.ts +3 -2
  281. package/src/shared/utils/bounds/zoom/build.ts +316 -95
  282. package/src/shared/utils/bounds/zoom/config.ts +11 -0
  283. package/src/shared/utils/bounds/zoom/math.ts +57 -0
  284. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
  285. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  286. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
  287. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  288. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
  289. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  290. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
  291. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  292. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
  293. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  294. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
  295. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  296. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
  297. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  298. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  299. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
  300. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  301. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
  302. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  303. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  304. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  305. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  306. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  307. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
  308. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
  309. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  310. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
  311. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  312. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
  313. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  314. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
  315. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  316. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
  317. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  318. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
  319. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  320. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
  321. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  322. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  323. package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
  324. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  325. package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
  326. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  327. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  328. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  329. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  330. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  331. package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
  332. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
  333. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
  334. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
  335. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
  336. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
  337. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
  338. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
  339. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
  340. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
  341. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
  342. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
  343. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
  344. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
  345. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
  346. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
  347. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
  348. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
  349. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
  350. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
  351. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
  352. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
  353. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
  354. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
  355. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
  356. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
  357. package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
  358. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
  359. package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
  360. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
  361. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
  362. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
  363. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
  364. package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
  365. /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  366. /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  367. /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  368. /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  369. /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
  370. /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
  371. /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
  372. /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
@@ -3,11 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createEmptyTagState = void 0;
7
- exports.debugClearLog = debugClearLog;
8
- exports.debugResolverLog = debugResolverLog;
9
- exports.debugStoreSizeLog = debugStoreSizeLog;
10
- exports.registry = exports.presence = exports.groups = void 0;
6
+ exports.registry = exports.presence = exports.groups = exports.createEmptyTagState = void 0;
11
7
  var _reactNativeReanimated = require("react-native-reanimated");
12
8
  const createEmptyTagState = () => {
13
9
  "worklet";
@@ -21,82 +17,4 @@ exports.createEmptyTagState = createEmptyTagState;
21
17
  const registry = exports.registry = (0, _reactNativeReanimated.makeMutable)({});
22
18
  const presence = exports.presence = (0, _reactNativeReanimated.makeMutable)({});
23
19
  const groups = exports.groups = (0, _reactNativeReanimated.makeMutable)({});
24
- const RESOLVER_LOG_PREFIX = "[bounds:resolver]";
25
- const ENABLE_RESOLVER_DEBUG_LOGS = false;
26
- const CLEAR_LOG_PREFIX = "[bounds:clear]";
27
- const ENABLE_CLEAR_DEBUG_LOGS = false;
28
- const SIZE_LOG_PREFIX = "[bounds:size]";
29
- const ENABLE_SIZE_DEBUG_LOGS = false;
30
- function debugResolverLog(message) {
31
- "worklet";
32
-
33
- if (!ENABLE_RESOLVER_DEBUG_LOGS) return;
34
- console.warn(`${RESOLVER_LOG_PREFIX} ${message}`);
35
- }
36
- function debugClearLog(message) {
37
- "worklet";
38
-
39
- if (!ENABLE_CLEAR_DEBUG_LOGS) return;
40
- console.warn(`${CLEAR_LOG_PREFIX} ${message}`);
41
- }
42
- const collectBoundStoreSize = () => {
43
- "worklet";
44
-
45
- const currentRegistry = registry.value;
46
- const currentPresence = presence.value;
47
- const currentGroups = groups.value;
48
- let tags = 0;
49
- let snapshots = 0;
50
- let links = 0;
51
- let pendingLinks = 0;
52
- let completedLinks = 0;
53
- for (const tag in currentRegistry) {
54
- tags++;
55
- const tagState = currentRegistry[tag];
56
- for (const _snapshotKey in tagState.snapshots) {
57
- snapshots++;
58
- }
59
- for (let i = 0; i < tagState.linkStack.length; i++) {
60
- links++;
61
- if (tagState.linkStack[i].destination === null) {
62
- pendingLinks++;
63
- } else {
64
- completedLinks++;
65
- }
66
- }
67
- }
68
- let presenceTags = 0;
69
- let presenceEntries = 0;
70
- let presenceCount = 0;
71
- for (const tag in currentPresence) {
72
- presenceTags++;
73
- const entries = currentPresence[tag];
74
- for (const screenKey in entries) {
75
- presenceEntries++;
76
- presenceCount += entries[screenKey].count ?? 0;
77
- }
78
- }
79
- let groupsCount = 0;
80
- for (const _group in currentGroups) {
81
- groupsCount++;
82
- }
83
- return {
84
- tags,
85
- snapshots,
86
- links,
87
- pendingLinks,
88
- completedLinks,
89
- presenceTags,
90
- presenceEntries,
91
- presenceCount,
92
- groups: groupsCount
93
- };
94
- };
95
- function debugStoreSizeLog(action) {
96
- "worklet";
97
-
98
- if (!ENABLE_SIZE_DEBUG_LOGS) return;
99
- const size = collectBoundStoreSize();
100
- console.warn(`${SIZE_LOG_PREFIX} ${action} tags=${size.tags} snapshots=${size.snapshots} links=${size.links} pending=${size.pendingLinks} completed=${size.completedLinks} presenceTags=${size.presenceTags} presenceEntries=${size.presenceEntries} presenceCount=${size.presenceCount} groups=${size.groups}`);
101
- }
102
20
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","createEmptyTagState","snapshots","linkStack","exports","registry","makeMutable","presence","groups","RESOLVER_LOG_PREFIX","ENABLE_RESOLVER_DEBUG_LOGS","CLEAR_LOG_PREFIX","ENABLE_CLEAR_DEBUG_LOGS","SIZE_LOG_PREFIX","ENABLE_SIZE_DEBUG_LOGS","debugResolverLog","message","console","warn","debugClearLog","collectBoundStoreSize","currentRegistry","value","currentPresence","currentGroups","tags","links","pendingLinks","completedLinks","tag","tagState","_snapshotKey","i","length","destination","presenceTags","presenceEntries","presenceCount","entries","screenKey","count","groupsCount","_group","debugStoreSizeLog","action","size"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGO,MAAMC,mBAAmB,GAAGA,CAAA,KAAgB;EAClD,SAAS;;EACT,OAAO;IACNC,SAAS,EAAE,CAAC,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;AACF,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAKK,MAAMI,QAAQ,GAAAD,OAAA,CAAAC,QAAA,GAAG,IAAAC,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAMC,QAAQ,GAAAH,OAAA,CAAAG,QAAA,GAAG,IAAAD,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAME,MAAM,GAAAJ,OAAA,CAAAI,MAAA,GAAG,IAAAF,kCAAW,EAAc,CAAC,CAAC,CAAC;AAElD,MAAMG,mBAAmB,GAAG,mBAAmB;AAC/C,MAAMC,0BAA0B,GAAG,KAAK;AACxC,MAAMC,gBAAgB,GAAG,gBAAgB;AACzC,MAAMC,uBAAuB,GAAG,KAAK;AACrC,MAAMC,eAAe,GAAG,eAAe;AACvC,MAAMC,sBAAsB,GAAG,KAAK;AAc7B,SAASC,gBAAgBA,CAACC,OAAe,EAAE;EACjD,SAAS;;EACT,IAAI,CAACN,0BAA0B,EAAE;EACjCO,OAAO,CAACC,IAAI,CAAC,GAAGT,mBAAmB,IAAIO,OAAO,EAAE,CAAC;AAClD;AAEO,SAASG,aAAaA,CAACH,OAAe,EAAE;EAC9C,SAAS;;EACT,IAAI,CAACJ,uBAAuB,EAAE;EAC9BK,OAAO,CAACC,IAAI,CAAC,GAAGP,gBAAgB,IAAIK,OAAO,EAAE,CAAC;AAC/C;AAEA,MAAMI,qBAAqB,GAAGA,CAAA,KAAsB;EACnD,SAAS;;EACT,MAAMC,eAAe,GAAGhB,QAAQ,CAACiB,KAAK;EACtC,MAAMC,eAA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C,YAAY;IACZC,cAAc;IACdO,YAAY;IACZC,eAAe;IACfC,aAAa;IACb7B,MAAM,EAAEiC;EACT,CAAC;AACF,CAAC;AAEM,SAASE,iBAAiBA,CAACC,MAAc,EAAE;EACjD,SAAS;;EACT,IAAI,CAAC9B,sBAAsB,EAAE;EAC7B,MAAM+B,IAAI,GAAGzB,qBAAqB,CAAC,CAAC;EACpCH,OAAO,CAACC,IAAI,CACX,GAAGL,eAAe,IAAI+B,MAAM,SAASC,IAAI,CAACpB,IAAI,cAAcoB,IAAI,CAAC3C,SAAS,UAAU2C,IAAI,CAACnB,KAAK,YAAYmB,IAAI,CAAClB,YAAY,cAAckB,IAAI,CAACjB,cAAc,iBAAiBiB,IAAI,CAACV,YAAY,oBAAoBU,IAAI,CAACT,eAAe,kBAAkBS,IAAI,CAACR,aAAa,WAAWQ,IAAI,CAACrC,MAAM,EACjS,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","createEmptyTagState","snapshots","linkStack","exports","registry","makeMutable","presence","groups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGO,MAAMC,mBAAmB,GAAGA,CAAA,KAAgB;EAClD,SAAS;;EACT,OAAO;IACNC,SAAS,EAAE,CAAC,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;AACF,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAKK,MAAMI,QAAQ,GAAAD,OAAA,CAAAC,QAAA,GAAG,IAAAC,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAMC,QAAQ,GAAAH,OAAA,CAAAG,QAAA,GAAG,IAAAD,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAME,MAAM,GAAAJ,OAAA,CAAAI,MAAA,GAAG,IAAAF,kCAAW,EAAc,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -13,6 +13,7 @@ const animateToProgress = ({
13
13
  onAnimationFinish,
14
14
  animations,
15
15
  targetProgress,
16
+ emitWillAnimate = true,
16
17
  initialVelocity
17
18
  }) => {
18
19
  "worklet";
@@ -30,10 +31,19 @@ const animateToProgress = ({
30
31
  } : config;
31
32
  const {
32
33
  progress,
34
+ willAnimate,
33
35
  animating,
34
36
  closing,
35
37
  entering
36
38
  } = animations;
39
+ if (emitWillAnimate) {
40
+ willAnimate.set(_constants.TRUE);
41
+ requestAnimationFrame(() => {
42
+ "worklet";
43
+
44
+ willAnimate.set(_constants.FALSE);
45
+ });
46
+ }
37
47
  targetProgress.set(value);
38
48
  if (isClosing) {
39
49
  closing.set(_constants.TRUE);
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","set","TRUE","FALSE","runOnJS","animate","finished","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAkBO,MAAMG,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SAAS,GACdN,MAAM,KAAK,OAAO,IAAK,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,CAAE;EACnE,MAAMO,KAAK,GAAG,OAAOP,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAGA,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC;;EAE7E;EACA,MAAMQ,MAAM,GAAGF,SAAS,GAAGL,IAAI,EAAEQ,KAAK,GAAGR,IAAI,EAAES,I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AQ,CAAC;IACrC;;IAEA;IACAC,qBAAqB,CAAC,MAAM;MAC3BT,SAAS,CAACG,GAAG,CAACE,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACK,OAAA,CAAA1B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","set","TRUE","requestAnimationFrame","FALSE","runOnJS","animate","finished","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAmBO,MAAMG,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,eAAe,GAAG,IAAI;EACtBC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SAAS,GACdP,MAAM,KAAK,OAAO,IAAK,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,CAAE;EACnE,MAAMQ,KAAK,GAAG,OAAOR,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAGA,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC;;EAE7E;EACA,MAAMS,MAAM,GAAGF,SAAS,GAAGN,IAAI,EAAES,KAAK,GAAGT,IAAI,EAAEU,IAAI;EAEnD,MAAMC,cAAc,GACnB,CAAC,CAACH,MAAM,IAAI,EAAE,UAAU,IAAIA,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAIA,MAAM,CAAC;EAE7D,MAAMI,eAAe,GACpBD,cAAc,IAAI,OAAON,eAAe,KAAK,QAAQ,GAClD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wB,QAAQ,CAAC;IACrC;;IAEA;IACAJ,qBAAqB,CAAC,MAAM;MAC3BL,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACI,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DEFAULT_BOUNDS_OPTIONS","exports","target","method","space","scaleMode","anchor","raw"],"sourceRoot":"../../../../../src","sources":["shared/utils/bounds/constants.ts"],"mappings":";;;;;;AAEO,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EACrCE,MAAM,EAAE,OAAO;EACfC,MAAM,EAAE,WAAW;EACnBC,KAAK,EAAE,UAAU;EACjBC,SAAS,EAAE,OAAO;EAClBC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE;AACN,CAAqE","ignoreList":[]}
@@ -3,19 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.resolveBoundTag = void 0;
7
- const resolveBoundTag = ({
6
+ exports.createBoundTag = void 0;
7
+ const createBoundTag = ({
8
8
  id,
9
9
  group
10
10
  }) => {
11
11
  "worklet";
12
12
 
13
- if (id === undefined || id === null || id === "") return undefined;
13
+ if (id == null || id === "") return undefined;
14
14
  const normalizedId = String(id);
15
15
  if (!group) {
16
16
  return normalizedId;
17
17
  }
18
18
  return `${group}:${normalizedId}`;
19
19
  };
20
- exports.resolveBoundTag = resolveBoundTag;
21
- //# sourceMappingURL=resolve-bound-tag.js.map
20
+ exports.createBoundTag = createBoundTag;
21
+ //# sourceMappingURL=create-bound-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;;;;;AAOO,MAAMA,cAAc,GAAGA,CAAC;EAC9BC,EAAE;EACFC;AACsB,CAAC,KAAyB;EAChD,SAAS;;EAET,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAE7C,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC;AAACE,OAAA,CAAAN,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createInterpolators = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
7
8
  var _constants = require("../../../constants");
8
9
  var _bounds = require("../../../stores/bounds");
9
- var _interpolate = require("./interpolate");
10
- var _interpolateStyle = require("./interpolate-style");
10
+ var _interpolateLinkStyle = require("./styles/interpolate-link-style");
11
11
  const createInterpolators = ({
12
12
  getProps,
13
13
  getLink
@@ -20,7 +20,7 @@ const createInterpolators = ({
20
20
  const props = getProps();
21
21
  const link = getLink(tag);
22
22
  const entering = !props.next;
23
- return (0, _interpolateStyle.interpolateLinkStyle)(link, property, props.progress, entering, {
23
+ return (0, _interpolateLinkStyle.interpolateLinkStyle)(link, property, props.progress, entering, {
24
24
  fallback
25
25
  });
26
26
  };
@@ -37,7 +37,7 @@ const createInterpolators = ({
37
37
  const targetSnapshot = _bounds.BoundStore.getSnapshot(normalizedTag, targetKey);
38
38
  const currentValue = currentSnapshot?.bounds?.[property] ?? fb;
39
39
  const targetValue = targetSnapshot?.bounds?.[property] ?? fb;
40
- return (0, _interpolate.interpolateClamped)(props.progress, range, [targetValue, currentValue]);
40
+ return (0, _reactNativeReanimated.interpolate)(props.progress, range, [targetValue, currentValue], _reactNativeReanimated.Extrapolation.CLAMP);
41
41
  };
42
42
  const interpolateBoundsFromLink = (tag, property, fallback) => {
43
43
  "worklet";
@@ -49,7 +49,7 @@ const createInterpolators = ({
49
49
  const fb = fallback ?? 0;
50
50
  const sourceValue = link?.source?.bounds?.[property] ?? fb;
51
51
  const destinationValue = link?.destination?.bounds?.[property] ?? fb;
52
- return (0, _interpolate.interpolateClamped)(props.progress, range, [sourceValue, destinationValue]);
52
+ return (0, _reactNativeReanimated.interpolate)(props.progress, range, [sourceValue, destinationValue], _reactNativeReanimated.Extrapolation.CLAMP);
53
53
  };
54
54
  const interpolateBounds = (tag, property, fallbackOrTargetKey, fallback) => {
55
55
  "worklet";
@@ -65,4 +65,4 @@ const createInterpolators = ({
65
65
  };
66
66
  };
67
67
  exports.createInterpolators = createInterpolators;
68
- //# sourceMappingURL=interpolators.js.map
68
+ //# sourceMappingURL=create-interpolators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_interpolateLinkStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","interpolateLinkStyle","progress","interpolateBoundsFromSnapshot","targetKey","range","ENTER_RANGE","EXIT_RANGE","currentKey","current","route","key","fb","normalizedTag","String","currentSnapshot","BoundStore","getSnapshot","targetSnapshot","currentValue","bounds","targetValue","interpolate","Extrapolation","CLAMP","interpolateBoundsFromLink","sourceValue","source","destinationValue","destination","interpolateBounds","fallbackOrTargetKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-interpolators.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,qBAAA,GAAAH,OAAA;AAOO,MAAMI,mBAAmB,GAAGA,CAAC;EACnCC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,SAAS;;EAET,MAAMC,gBAAgB,GAAGA,CACxBC,GAAY,EACZC,QAAgB,EAChBC,QAAiB,KACL;IACZ,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,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EAClCC,QAAiB,KACL;IACZ,SAAS;;IAET,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMQ,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,MAAMK,KAAK,GAAGN,QAAQ,GAAGO,sBAAW,GAAGC,qBAAU;IACjD,MAAMT,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMkB,EAAE,GAAGhB,QAAQ,IAAI,CAAC;IAExB,MAAM8B,WAAW,GAAG5B,IAAI,EAAE6B,MAAM,EAAEP,MAAM,GAAGzB,QAAQ,CAAC,IAAIiB,EAAE;IAC1D,MAAMgB,gBAAgB,GAAG9B,IAAI,EAAE+B,WAAW,EAAET,MAAM,GAAGzB,QAAQ,CAAC,IAAIiB,EAAE;IAEpE,OAAO,IAAAU,kCAAW,EACjBzB,KAAK,CAACK,QAAQ,EACdG,KAAK,EACL,CAACqB,WAAW,EAAEE,gBAAgB,CAAC,EAC/BL,oCAAa,CAACC,KACf,CAAC;EACF,CAAC;EAED,MAAMM,iBAAiB,GAAGA,CACzBpC,GAAY,EACZC,QAAkC,EAClCoC,mBAAqC,EACrCnC,QAAiB,KACL;IACZ,SAAS;;IAET,IAAI,OAAOmC,mBAAmB,KAAK,QAAQ,EAAE;MAC5C,OAAO5B,6BAA6B,CACnCT,GAAG,EACHC,QAAQ,EACRoC,mBAAmB,EACnBnC,QACD,CAAC;IACF;IAEA,OAAO6B,yBAAyB,CAAC/B,GAAG,EAAEC,QAAQ,EAAEoC,mBAAmB,CAAC;EACrE,CAAC;EAED,OAAO;IACNtC,gBAAgB;IAChBqC;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAA1C,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -37,4 +37,4 @@ const createLinkAccessor = getProps => {
37
37
  };
38
38
  };
39
39
  exports.createLinkAccessor = createLinkAccessor;
40
- //# sourceMappingURL=link-accessor.js.map
40
+ //# sourceMappingURL=create-link-accessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_bounds","require","createLinkAccessor","getProps","getSnapshot","tag","key","BoundStore","String","getLink","props","link","getActiveLink","current","route","source","bounds","styles","destination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAYO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY,EAAEC,GAAY,KAAsB;IACpE,SAAS;;IACT,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;IACrB,OAAOC,kBAAU,CAACH,WAAW,CAACI,MAAM,CAACH,GAAG,CAAC,EAAEC,GAAG,CAAC;EAChD,CAAC;EAED,MAAMG,OAAO,GAAIJ,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMK,KAAK,GAAGP,QAAQ,CAAC,CAAC;IACxB,MAAMQ,IAAI,GAAGJ,kBAAU,CAACK,aAAa,CACpCJ,MAAM,CAACH,GAAG,CAAC,EACXK,KAAK,CAACG,OAAO,EAAEC,KAAK,CAACR,GACtB,CAAC;IACD,IAAI,CAACK,IAAI,EAAE,OAAO,IAAI;IACtB,OAAO;MACNI,MAAM,EAAEJ,IAAI,CAACI,MAAM,GAChB;QAAEC,MAAM,EAAEL,IAAI,CAACI,MAAM,CAACC,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACI,MAAM,CAACE;MAAO,CAAC,GAC1D,IAAI;MACPC,WAAW,EAAEP,IAAI,CAACO,WAAW,GAC1B;QAAEF,MAAM,EAAEL,IAAI,CAACO,WAAW,CAACF,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACO,WAAW,CAACD;MAAO,CAAC,GACpE;IACJ,CAAC;EACF,CAAC;EAED,OAAO;IACNb,WAAW;IACXK;EACD,CAAC;AACF,CAAC;AAACU,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.prepareBoundStyles = exports.buildBoundsOptions = void 0;
7
+ var _bounds = require("../../../stores/bounds");
8
+ var _constants = require("../constants");
9
+ var _createBoundTag = require("./create-bound-tag");
10
+ var _compute = require("./styles/compute");
11
+ const buildBoundsOptions = ({
12
+ props,
13
+ id,
14
+ group,
15
+ overrides
16
+ }) => {
17
+ "worklet";
18
+
19
+ const tag = (0, _createBoundTag.createBoundTag)({
20
+ id,
21
+ group
22
+ });
23
+ const currentScreenKey = props.current?.route.key;
24
+ const boundaryConfig = tag && currentScreenKey ? _bounds.BoundStore.getBoundaryConfig(tag, currentScreenKey) : null;
25
+ const resolved = {
26
+ ..._constants.DEFAULT_BOUNDS_OPTIONS,
27
+ ...(boundaryConfig ?? {}),
28
+ ...(overrides ?? {}),
29
+ id: tag ?? "",
30
+ group
31
+ };
32
+ return resolved;
33
+ };
34
+ exports.buildBoundsOptions = buildBoundsOptions;
35
+ const syncGroupActiveMember = (group, id) => {
36
+ "worklet";
37
+
38
+ if (!group || id == null || id === "") return;
39
+ const normalizedId = String(id);
40
+ if (_bounds.BoundStore.getGroupActiveId(group) === normalizedId) return;
41
+ _bounds.BoundStore.setGroupActiveId(group, normalizedId);
42
+ };
43
+ const prepareBoundStyles = ({
44
+ props,
45
+ options,
46
+ resolvedPair,
47
+ syncGroupActiveId = true
48
+ }) => {
49
+ "worklet";
50
+
51
+ if (syncGroupActiveId) {
52
+ syncGroupActiveMember(options.group, options.id);
53
+ }
54
+ const resolved = buildBoundsOptions({
55
+ props,
56
+ id: options.id,
57
+ group: options.group,
58
+ overrides: options
59
+ });
60
+ return (0, _compute.computeBoundStyles)({
61
+ id: resolved.id,
62
+ previous: props.previous,
63
+ current: props.current,
64
+ next: props.next,
65
+ progress: props.progress,
66
+ dimensions: props.layouts.screen
67
+ }, resolved, resolvedPair);
68
+ };
69
+ exports.prepareBoundStyles = prepareBoundStyles;
70
+ //# sourceMappingURL=prepare-bound-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_bounds","require","_constants","_createBoundTag","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","BoundStore","getBoundaryConfig","resolved","DEFAULT_BOUNDS_OPTIONS","exports","syncGroupActiveMember","normalizedId","String","getGroupActiveId","setGroupActiveId","prepareBoundStyles","options","resolvedPair","syncGroupActiveId","computeBoundStyles","previous","next","progress","dimensions","layouts","screen"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAkBO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMI,gBAAgB,GAAGN,KAAK,CAACO,OAAO,EAAEC,KAAK,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBN,GAAG,IAAIE,gBAAgB,GACpBK,kBAAU,CAACC,iBAAiB,CAACR,GAAG,EAAEE,gBAAgB,CAAC,GACnD,IAAI;EAER,MAAMO,QAAQ,GAAG;IAChB,GAAGC,iCAAsB;IACzB,IAAIJ,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIP,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEG,GAAG,IAAI,EAAE;IACbF;EACD,CAAC;EAED,OAAOW,QAAQ;AAChB,CAAC;AAACE,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA;AAEF,MAAMiB,qBAAqB,GAAGA,CAACd,KAAc,EAAED,EAAY,KAAK;EAC/D,SAAS;;EACT,IAAI,CAACC,KAAK,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE;EAEvC,MAAMgB,YAAY,GAAGC,MAAM,CAACjB,EAAE,CAAC;EAE/B,IAAIU,kBAAU,CAACQ,gBAAgB,CAACjB,KAAK,CAAC,KAAKe,YAAY,EAAE;EAEzDN,kBAAU,CAACS,gBAAgB,CAAClB,KAAK,EAAEe,YAAY,CAAC;AACjD,CAAC;AAEM,MAAMI,kBAAkB,GAAGA,CAA0B;EAC3DrB,KAAK;EACLsB,OAAO;EACPC,YAAY;EACZC,iBAAiB,GAAG;AACiB,CAAC,KAA6B;EACnE,SAAS;;EAET,IAAIA,iBAAiB,EAAE;IACtBR,qBAAqB,CAACM,OAAO,CAACpB,KAAK,EAAEoB,OAAO,CAACrB,EAAE,CAAC;EACjD;EAEA,MAAMY,QAAQ,GAAGd,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEqB,OAAO,CAACrB,EAAE;IACdC,KAAK,EAAEoB,OAAO,CAACpB,KAAK;IACpBC,SAAS,EAAEmB;EACZ,CAAC,CAAC;EAEF,OAAO,IAAAG,2BAAkB,EACxB;IACCxB,EAAE,EAAEY,QAAQ,CAACZ,EAAE;IACfyB,QAAQ,EAAE1B,KAAK,CAAC0B,QAAQ;IACxBnB,OAAO,EAAEP,KAAK,CAACO,OAAO;IACtBoB,IAAI,EAAE3B,KAAK,CAAC2B,IAAI;IAChBC,QAAQ,EAAE5B,KAAK,CAAC4B,QAAQ;IACxBC,UAAU,EAAE7B,KAAK,CAAC8B,OAAO,CAACC;EAC3B,CAAC,EACDlB,QAAQ,EACRU,YACD,CAAC;AACF,CAAC;AAACR,OAAA,CAAAM,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -8,8 +8,8 @@ exports.composeSizeAbsolute = composeSizeAbsolute;
8
8
  exports.composeSizeRelative = composeSizeRelative;
9
9
  exports.composeTransformAbsolute = composeTransformAbsolute;
10
10
  exports.composeTransformRelative = composeTransformRelative;
11
- var _constants = require("../../../constants");
12
- var _interpolate = require("./interpolate");
11
+ var _reactNativeReanimated = require("react-native-reanimated");
12
+ var _constants = require("../../../../constants");
13
13
  /**
14
14
  * Element-level (relative) params shared by size/transform composers.
15
15
  * - start/end: absolute window bounds of the element in previous/next phases
@@ -150,10 +150,10 @@ function composeSizeAbsolute(params) {
150
150
  const anchor = computeOptions.anchor ?? "center";
151
151
  const startAnchor = getAnchorPoint(start, anchor);
152
152
  const endAnchor = getAnchorPoint(end, anchor);
153
- const width = (0, _interpolate.interpolateClamped)(progress, ranges, [start.width, end.width]);
154
- const height = (0, _interpolate.interpolateClamped)(progress, ranges, [start.height, end.height]);
155
- const anchorX = (0, _interpolate.interpolateClamped)(progress, ranges, [startAnchor.x, endAnchor.x]);
156
- const anchorY = (0, _interpolate.interpolateClamped)(progress, ranges, [startAnchor.y, endAnchor.y]);
153
+ const width = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.width, end.width], _reactNativeReanimated.Extrapolation.CLAMP);
154
+ const height = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.height, end.height], _reactNativeReanimated.Extrapolation.CLAMP);
155
+ const anchorX = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.x, endAnchor.x], _reactNativeReanimated.Extrapolation.CLAMP);
156
+ const anchorY = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.y, endAnchor.y], _reactNativeReanimated.Extrapolation.CLAMP);
157
157
  const anchorOffset = getAnchorOffset({
158
158
  width,
159
159
  height,
@@ -197,10 +197,10 @@ function composeSizeRelative(params) {
197
197
  const endAnchor = getAnchorPoint(end, anchor);
198
198
  const baseX = geometry.entering ? end.pageX : start.pageX;
199
199
  const baseY = geometry.entering ? end.pageY : start.pageY;
200
- const width = (0, _interpolate.interpolateClamped)(progress, ranges, [start.width, end.width]);
201
- const height = (0, _interpolate.interpolateClamped)(progress, ranges, [start.height, end.height]);
202
- const anchorX = (0, _interpolate.interpolateClamped)(progress, ranges, [startAnchor.x, endAnchor.x]);
203
- const anchorY = (0, _interpolate.interpolateClamped)(progress, ranges, [startAnchor.y, endAnchor.y]);
200
+ const width = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.width, end.width], _reactNativeReanimated.Extrapolation.CLAMP);
201
+ const height = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.height, end.height], _reactNativeReanimated.Extrapolation.CLAMP);
202
+ const anchorX = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.x, endAnchor.x], _reactNativeReanimated.Extrapolation.CLAMP);
203
+ const anchorY = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.y, endAnchor.y], _reactNativeReanimated.Extrapolation.CLAMP);
204
204
  const anchorOffset = getAnchorOffset({
205
205
  width,
206
206
  height,
@@ -239,10 +239,10 @@ function composeTransformAbsolute(params) {
239
239
  ranges,
240
240
  computeOptions
241
241
  } = params;
242
- const translateX = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [start.pageX, end.pageX]) : (0, _interpolate.interpolateClamped)(progress, ranges, [end.pageX, start.pageX]);
243
- const translateY = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [start.pageY, end.pageY]) : (0, _interpolate.interpolateClamped)(progress, ranges, [end.pageY, start.pageY]);
244
- const scaleX = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.scaleX, 1]) : (0, _interpolate.interpolateClamped)(progress, ranges, [1, 1 / geometry.scaleX]);
245
- const scaleY = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.scaleY, 1]) : (0, _interpolate.interpolateClamped)(progress, ranges, [1, 1 / geometry.scaleY]);
242
+ const translateX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageX, end.pageX], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageX, start.pageX], _reactNativeReanimated.Extrapolation.CLAMP);
243
+ const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageY, end.pageY], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageY, start.pageY], _reactNativeReanimated.Extrapolation.CLAMP);
244
+ const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
245
+ const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
246
246
  if (computeOptions.raw) {
247
247
  return {
248
248
  translateX,
@@ -274,10 +274,10 @@ function composeTransformRelative(params) {
274
274
  progress,
275
275
  ranges
276
276
  } = params;
277
- const translateX = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.dx, 0]) : (0, _interpolate.interpolateClamped)(progress, ranges, [0, -geometry.dx]);
278
- const translateY = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.dy, 0]) : (0, _interpolate.interpolateClamped)(progress, ranges, [0, -geometry.dy]);
279
- const scaleX = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.scaleX, 1]) : (0, _interpolate.interpolateClamped)(progress, ranges, [1, 1 / geometry.scaleX]);
280
- const scaleY = geometry.entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [geometry.scaleY, 1]) : (0, _interpolate.interpolateClamped)(progress, ranges, [1, 1 / geometry.scaleY]);
277
+ const translateX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dx], _reactNativeReanimated.Extrapolation.CLAMP);
278
+ const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dy, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dy], _reactNativeReanimated.Extrapolation.CLAMP);
279
+ const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
280
+ const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
281
281
  if (computeOptions.raw) {
282
282
  return {
283
283
  translateX,
@@ -321,9 +321,9 @@ function composeContentStyle(params) {
321
321
  ty,
322
322
  entering
323
323
  } = geometry;
324
- const translateX = entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [tx, 0]) : (0, _interpolate.interpolateClamped)(progress, ranges, [0, tx]);
325
- const translateY = entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [ty, 0]) : (0, _interpolate.interpolateClamped)(progress, ranges, [0, ty]);
326
- const scale = entering ? (0, _interpolate.interpolateClamped)(progress, ranges, [s, 1]) : (0, _interpolate.interpolateClamped)(progress, ranges, [1, s]);
324
+ const translateX = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [tx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, tx], _reactNativeReanimated.Extrapolation.CLAMP);
325
+ const translateY = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [ty, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, ty], _reactNativeReanimated.Extrapolation.CLAMP);
326
+ const scale = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [s, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, s], _reactNativeReanimated.Extrapolation.CLAMP);
327
327
  if (raw) {
328
328
  return {
329
329
  translateX,
@@ -343,4 +343,4 @@ function composeContentStyle(params) {
343
343
  ..._constants.VISIBLE_STYLE
344
344
  };
345
345
  }
346
- //# sourceMappingURL=style-composers.js.map
346
+ //# sourceMappingURL=composers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","translateX","translateY","raw","VISIBLE_STYLE","transform","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleX","scaleY","composeTransformRelative","dx","dy","gestures","composeContentStyle","s","tx","ty","scale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,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,CAACC,KAAK,CAAC;EAE7D,IAAIM,GAAG,EAAE;IACR,OAAO;MACNF,UAAU;MACVC,UAAU;MACVoB,KAAK;MACL,GAAGlB;IACJ,CAAC;EACF;EAEA,OAAO;IACNC,SAAS,EAAE,CAAC;MAAEJ;IAAW,CAAC,EAAE;MAAEC;IAAW,CAAC,EAAE;MAAEoB;IAAM,CAAC,CAAC;IACtD,GAAGlB;EACJ,CAAC;AACF","ignoreList":[]}
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.computeBoundStyles = void 0;
7
- var _constants = require("../../../constants");
8
- var _bounds = require("../../../stores/bounds");
9
- var _geometry = require("./geometry");
10
- var _styleComposers = require("./style-composers");
11
- const resolveBounds = params => {
7
+ var _constants = require("../../../../constants");
8
+ var _bounds = require("../../../../stores/bounds");
9
+ var _geometry = require("../geometry");
10
+ var _composers = require("./composers");
11
+ const resolveStartEnd = params => {
12
12
  "worklet";
13
13
 
14
14
  const entering = !params.next;
@@ -35,8 +35,7 @@ const resolveBounds = params => {
35
35
  currentScreenKey,
36
36
  sourceScreenKey: resolvedPair.sourceScreenKey,
37
37
  destinationScreenKey: resolvedPair.destinationScreenKey,
38
- hasTargetOverride,
39
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
38
+ hasTargetOverride
40
39
  };
41
40
  }
42
41
 
@@ -49,8 +48,7 @@ const resolveBounds = params => {
49
48
  currentScreenKey,
50
49
  sourceScreenKey: resolvedPair.sourceScreenKey,
51
50
  destinationScreenKey: resolvedPair.destinationScreenKey,
52
- hasTargetOverride,
53
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
51
+ hasTargetOverride
54
52
  };
55
53
  }
56
54
  const start = sourceBounds;
@@ -69,8 +67,7 @@ const resolveBounds = params => {
69
67
  currentScreenKey,
70
68
  sourceScreenKey: resolvedPair.sourceScreenKey,
71
69
  destinationScreenKey: resolvedPair.destinationScreenKey,
72
- hasTargetOverride,
73
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
70
+ hasTargetOverride
74
71
  };
75
72
  };
76
73
  const computeBoundStyles = ({
@@ -97,10 +94,8 @@ const computeBoundStyles = ({
97
94
  entering,
98
95
  currentScreenKey,
99
96
  sourceScreenKey,
100
- destinationScreenKey,
101
- hasTargetOverride,
102
- usedSnapshotDestination
103
- } = resolveBounds({
97
+ destinationScreenKey
98
+ } = resolveStartEnd({
104
99
  id,
105
100
  previous,
106
101
  current,
@@ -117,8 +112,7 @@ const computeBoundStyles = ({
117
112
  }
118
113
  const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
119
114
  if (computeOptions.method === "content") {
120
- const ignoresSnapshotDestinationOwnership = hasTargetOverride && usedSnapshotDestination && destinationScreenKey === sourceScreenKey;
121
- const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
115
+ const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
122
116
  const contentStart = currentOwnsSource ? end : start;
123
117
  const contentEnd = currentOwnsSource ? start : end;
124
118
  const geometry = (0, _geometry.computeContentTransformGeometry)({
@@ -129,7 +123,7 @@ const computeBoundStyles = ({
129
123
  anchor: computeOptions.anchor,
130
124
  scaleMode: computeOptions.scaleMode
131
125
  });
132
- return (0, _styleComposers.composeContentStyle)({
126
+ return (0, _composers.composeContentStyle)({
133
127
  start: contentStart,
134
128
  progress,
135
129
  ranges,
@@ -155,7 +149,7 @@ const computeBoundStyles = ({
155
149
  };
156
150
  const isSize = computeOptions.method === "size";
157
151
  const isAbsolute = computeOptions.space === "absolute";
158
- return isSize ? isAbsolute ? (0, _styleComposers.composeSizeAbsolute)(common) : (0, _styleComposers.composeSizeRelative)(common) : isAbsolute ? (0, _styleComposers.composeTransformAbsolute)(common) : (0, _styleComposers.composeTransformRelative)(common);
152
+ return isSize ? isAbsolute ? (0, _composers.composeSizeAbsolute)(common) : (0, _composers.composeSizeRelative)(common) : isAbsolute ? (0, _composers.composeTransformAbsolute)(common) : (0, _composers.composeTransformRelative)(common);
159
153
  };
160
154
  exports.computeBoundStyles = computeBoundStyles;
161
- //# sourceMappingURL=compute-bounds-styles.js.map
155
+ //# sourceMappingURL=compute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_constants","require","_bounds","_geometry","_composers","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","NO_STYLES","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,UAAA,GAAAH,OAAA;AASA,MAAMI,eAAe,GAAIC,MASxB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,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
  });
6
6
  exports.interpolateLinkStyle = interpolateLinkStyle;
7
- var _constants = require("../../../constants");
8
- var _interpolate = require("./interpolate");
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _constants = require("../../../../constants");
9
9
  /**
10
10
  * Interpolates a numeric style property between source and destination bounds.
11
11
  *
@@ -25,6 +25,6 @@ function interpolateLinkStyle(link, property, progress, entering, options = {})
25
25
  const sourceValue = link?.source?.styles?.[property] ?? fallback;
26
26
  const destValue = link?.destination?.styles?.[property] ?? fallback;
27
27
  const range = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
28
- return (0, _interpolate.interpolateClamped)(progress, range, [sourceValue, destValue]);
28
+ return (0, _reactNativeReanimated.interpolate)(progress, range, [sourceValue, destValue], _reactNativeReanimated.Extrapolation.CLAMP);
29
29
  }
30
- //# sourceMappingURL=interpolate-style.js.map
30
+ //# sourceMappingURL=interpolate-link-style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","interpolateLinkStyle","link","property","progress","entering","options","fallback","sourceValue","source","styles","destValue","destination","range","ENTER_RANGE","EXIT_RANGE","interpolate","Extrapolation","CLAMP"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/interpolate-link-style.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,oBAAoBA,CACnCC,IAAuB,EACvBC,QAAgB,EAChBC,QAAgB,EAChBC,QAAiB,EACjBC,OAAgC,GAAG,CAAC,CAAC,EAC5B;EACT,SAAS;;EAET,MAAM;IAAEC,QAAQ,GAAG;EAAE,CAAC,GAAGD,OAAO;EAEhC,MAAME,WAAW,GACfN,IAAI,EAAEO,MAAM,EAAEC,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EACrE,MAAMI,SAAS,GACbT,IAAI,EAAEU,WAAW,EAAEF,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EAE1E,MAAMM,KAAK,GAAGR,QAAQ,GAAGS,sBAAW,GAAGC,qBAAU;EAEjD,OAAO,IAAAC,kCAAW,EACjBZ,QAAQ,EACRS,KAAK,EACL,CAACL,WAAW,EAAEG,SAAS,CAAC,EACxBM,oCAAa,CAACC,KACf,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","mergeStyleArrays","style","undefined","Array","isArray","merged","i","length","currentStyle","Object","assign","stripNonSerializable","value","isSharedValue","map","cleaned","key","cleanedValue","prepareStyleForBounds","flattened","serializable"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/styles.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,SAASC,gBAAgBA,CAAuBC,KAAQ,EAAK;EAC5D,SAAS;;EAET;EACA,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IACvE,OAAOA,KAAK;EACb;;EAEA;EACA,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IAC1B,OAAOA,KAAK;EACb;;EAEA;EACA,MAAMI,MAAwB,GAAG,CAAC,CAAC;EACnC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,KAAK,CAACM,MAAM,EAAED,CAAC,EAAE,EAAE;IACtC,MAAME,YAAY,GAAGR,gBAAgB,CAACC,KAAK,CAACK,CAAC,CAAe,CAAC;IAC7D,IAAIE,YAAY,IAAI,OAAOA,YAAY,KAAK,QAAQ,EAAE;MACrDC,MAAM,CAACC,MAAM,CAACL,MAAM,EAAEG,YAAY,CAAC;IACpC;EACD;EACA,OAAOH,MAAM;AACd;AAEA,SAASM,oBAAoBA,CAAIC,KAAQ,EAAiB;EACzD,IAAI,IAAAC,oC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