react-native-screen-transitions 3.0.0-beta.9 → 3.0.0-rc.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 (415) hide show
  1. package/README.md +60 -5
  2. package/lib/commonjs/blank-stack/components/Overlay.js +7 -4
  3. package/lib/commonjs/blank-stack/components/Overlay.js.map +1 -1
  4. package/lib/commonjs/blank-stack/components/Screens.js +2 -2
  5. package/lib/commonjs/blank-stack/components/Screens.js.map +1 -1
  6. package/lib/commonjs/blank-stack/components/StackView.js +9 -5
  7. package/lib/commonjs/blank-stack/components/StackView.js.map +1 -1
  8. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +4 -4
  9. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  10. package/lib/commonjs/blank-stack/index.js +1 -1
  11. package/lib/commonjs/blank-stack/index.js.map +1 -1
  12. package/lib/commonjs/native-stack/views/NativeStackView.native.js +4 -3
  13. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  14. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js +9 -9
  15. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-transition-aware-component.js +11 -14
  17. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  18. package/lib/commonjs/shared/components/root-transition-aware.js +1 -1
  19. package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -1
  20. package/lib/commonjs/shared/configs/presets.js +20 -9
  21. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  22. package/lib/commonjs/shared/constants.js +0 -1
  23. package/lib/commonjs/shared/constants.js.map +1 -1
  24. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +9 -10
  25. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  26. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +10 -25
  27. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  28. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +11 -11
  29. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  30. package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  31. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
  32. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  33. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  34. package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -1
  35. package/lib/commonjs/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  36. package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -0
  37. package/lib/commonjs/shared/providers/{keys.js → keys.provider.js} +1 -1
  38. package/lib/commonjs/shared/providers/keys.provider.js.map +1 -0
  39. package/lib/commonjs/shared/providers/register-bounds.provider.js +211 -0
  40. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -0
  41. package/lib/commonjs/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  42. package/lib/commonjs/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  43. package/lib/commonjs/shared/providers/{transition-styles.js → transition-styles.provider.js} +9 -9
  44. package/lib/commonjs/shared/providers/transition-styles.provider.js.map +1 -0
  45. package/lib/commonjs/shared/stores/{animation-store.js → animation.store.js} +1 -1
  46. package/lib/commonjs/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  47. package/lib/commonjs/shared/stores/bounds.store.js +141 -0
  48. package/lib/commonjs/shared/stores/bounds.store.js.map +1 -0
  49. package/lib/commonjs/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  50. package/lib/commonjs/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  51. package/lib/commonjs/shared/types/{core.js → animation.types.js} +1 -1
  52. package/lib/commonjs/shared/types/animation.types.js.map +1 -0
  53. package/lib/commonjs/shared/types/{bounds.js → bounds.types.js} +1 -1
  54. package/lib/commonjs/shared/types/bounds.types.js.map +1 -0
  55. package/lib/commonjs/shared/types/{animation.js → core.types.js} +1 -1
  56. package/lib/commonjs/shared/types/{animation.js.map → core.types.js.map} +1 -1
  57. package/lib/commonjs/shared/types/{gesture.js → gesture.types.js} +1 -1
  58. package/lib/commonjs/shared/types/gesture.types.js.map +1 -0
  59. package/lib/commonjs/shared/types/utils.types.js +2 -0
  60. package/lib/commonjs/shared/types/{core.js.map → utils.types.js.map} +1 -1
  61. package/lib/commonjs/shared/utils/animation/derivations.js +1 -7
  62. package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -1
  63. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -0
  64. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +19 -0
  65. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  66. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  67. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -0
  68. package/lib/commonjs/shared/utils/bounds/index.js +45 -35
  69. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  70. package/lib/commonjs/shared/utils/bounds/types/builder.js.map +1 -0
  71. package/lib/commonjs/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  72. package/lib/commonjs/shared/utils/create-provider.js.map +1 -0
  73. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +1 -1
  74. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js +1 -1
  75. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +17 -0
  76. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -0
  77. package/lib/module/blank-stack/components/Overlay.js +7 -4
  78. package/lib/module/blank-stack/components/Overlay.js.map +1 -1
  79. package/lib/module/blank-stack/components/Screens.js +1 -1
  80. package/lib/module/blank-stack/components/StackView.js +8 -4
  81. package/lib/module/blank-stack/components/StackView.js.map +1 -1
  82. package/lib/module/blank-stack/hooks/use-overlay-animation.js +3 -3
  83. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  84. package/lib/module/blank-stack/index.js +1 -1
  85. package/lib/module/blank-stack/index.js.map +1 -1
  86. package/lib/module/native-stack/views/NativeStackView.native.js +3 -2
  87. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  88. package/lib/module/shared/components/controllers/screen-lifecycle.js +8 -8
  89. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -1
  90. package/lib/module/shared/components/create-transition-aware-component.js +11 -14
  91. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  92. package/lib/module/shared/components/root-transition-aware.js +1 -1
  93. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  94. package/lib/module/shared/configs/presets.js +20 -9
  95. package/lib/module/shared/configs/presets.js.map +1 -1
  96. package/lib/module/shared/constants.js +0 -1
  97. package/lib/module/shared/constants.js.map +1 -1
  98. package/lib/module/shared/hooks/animation/use-associated-style.js +9 -10
  99. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  100. package/lib/module/shared/hooks/animation/use-screen-animation.js +7 -22
  101. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  102. package/lib/module/shared/hooks/gestures/use-build-gestures.js +4 -4
  103. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  104. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  105. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  106. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  107. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  108. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  109. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  110. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -1
  111. package/lib/module/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  112. package/lib/module/shared/providers/gestures.provider.js.map +1 -0
  113. package/lib/module/shared/providers/{keys.js → keys.provider.js} +1 -1
  114. package/lib/module/shared/providers/keys.provider.js.map +1 -0
  115. package/lib/module/shared/providers/register-bounds.provider.js +206 -0
  116. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -0
  117. package/lib/module/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  118. package/lib/module/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  119. package/lib/module/shared/providers/{transition-styles.js → transition-styles.provider.js} +8 -9
  120. package/lib/module/shared/providers/transition-styles.provider.js.map +1 -0
  121. package/lib/module/shared/stores/{animation-store.js → animation.store.js} +1 -1
  122. package/lib/module/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  123. package/lib/module/shared/stores/bounds.store.js +137 -0
  124. package/lib/module/shared/stores/bounds.store.js.map +1 -0
  125. package/lib/module/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  126. package/lib/module/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  127. package/lib/module/shared/types/animation.types.js +4 -0
  128. package/lib/module/shared/types/animation.types.js.map +1 -0
  129. package/lib/module/shared/types/bounds.types.js +4 -0
  130. package/lib/module/shared/types/bounds.types.js.map +1 -0
  131. package/lib/module/shared/types/core.types.js +4 -0
  132. package/lib/{commonjs/shared/types/bounds.js.map → module/shared/types/core.types.js.map} +1 -1
  133. package/lib/module/shared/types/{gesture.js → gesture.types.js} +1 -1
  134. package/lib/module/shared/types/gesture.types.js.map +1 -0
  135. package/lib/module/shared/types/utils.types.js +2 -0
  136. package/lib/{commonjs/shared/types/utils.js.map → module/shared/types/utils.types.js.map} +1 -1
  137. package/lib/module/shared/utils/animation/derivations.js +1 -7
  138. package/lib/module/shared/utils/animation/derivations.js.map +1 -1
  139. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -0
  140. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +14 -0
  141. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  142. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  143. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/index.js +45 -35
  145. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  146. package/lib/module/shared/utils/bounds/types/builder.js.map +1 -0
  147. package/lib/module/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  148. package/lib/module/shared/utils/create-provider.js.map +1 -0
  149. package/lib/module/shared/utils/gesture/apply-offset-rules.js +1 -1
  150. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -1
  151. package/lib/module/shared/utils/gesture/check-gesture-activation.js +1 -1
  152. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  153. package/lib/module/shared/utils/reset-stores-for-screen.js +13 -0
  154. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -0
  155. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -1
  156. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -1
  157. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +1 -1
  158. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -1
  159. package/lib/typescript/blank-stack/index.d.ts +1 -1
  160. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  161. package/lib/typescript/blank-stack/types.d.ts +2 -2
  162. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  163. package/lib/typescript/native-stack/types.d.ts +1 -1
  164. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  165. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  166. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -1
  167. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  168. package/lib/typescript/shared/configs/index.d.ts +9 -3
  169. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  170. package/lib/typescript/shared/configs/presets.d.ts +10 -4
  171. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  172. package/lib/typescript/shared/constants.d.ts +6 -6
  173. package/lib/typescript/shared/constants.d.ts.map +1 -1
  174. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  175. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -2
  176. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  177. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts +2 -2
  178. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  179. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -0
  180. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  181. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -1
  182. package/lib/typescript/shared/index.d.ts +25 -19
  183. package/lib/typescript/shared/index.d.ts.map +1 -1
  184. package/lib/typescript/shared/providers/{gestures.d.ts → gestures.provider.d.ts} +2 -2
  185. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -0
  186. package/lib/typescript/shared/providers/{keys.d.ts → keys.provider.d.ts} +2 -2
  187. package/lib/typescript/shared/providers/keys.provider.d.ts.map +1 -0
  188. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +17 -0
  189. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -0
  190. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts → screen-transition.provider.d.ts} +2 -2
  191. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts.map → screen-transition.provider.d.ts.map} +1 -1
  192. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +14 -0
  193. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +1 -0
  194. package/lib/typescript/shared/stores/{animation-store.d.ts → animation.store.d.ts} +2 -2
  195. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -0
  196. package/lib/typescript/shared/stores/bounds.store.d.ts +29 -0
  197. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -0
  198. package/lib/typescript/shared/stores/{gesture-store.d.ts → gesture.store.d.ts} +3 -3
  199. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -0
  200. package/lib/typescript/shared/types/{animation.d.ts → animation.types.d.ts} +48 -20
  201. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -0
  202. package/lib/typescript/shared/types/{bounds.d.ts → bounds.types.d.ts} +4 -4
  203. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -0
  204. package/lib/typescript/shared/types/{core.d.ts → core.types.d.ts} +3 -3
  205. package/lib/typescript/shared/types/core.types.d.ts.map +1 -0
  206. package/lib/typescript/shared/types/{gesture.d.ts → gesture.types.d.ts} +1 -1
  207. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -0
  208. package/lib/typescript/shared/types/{utils.d.ts → utils.types.d.ts} +1 -1
  209. package/lib/typescript/shared/types/utils.types.d.ts.map +1 -0
  210. package/lib/typescript/shared/utils/animation/derivations.d.ts +2 -4
  211. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -1
  212. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +2 -2
  213. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  214. package/lib/typescript/shared/utils/bounds/constants.d.ts +3 -3
  215. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -1
  216. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/geometry.d.ts +3 -3
  217. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -0
  218. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +1 -0
  219. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/style-composers.d.ts +2 -2
  220. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -0
  221. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/styles.d.ts +1 -1
  222. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -0
  223. package/lib/typescript/shared/utils/bounds/index.d.ts +3 -4
  224. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  225. package/lib/typescript/shared/utils/bounds/{_types → types}/builder.d.ts +13 -34
  226. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -0
  227. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -0
  228. package/lib/typescript/shared/{providers/utils → utils}/create-provider.d.ts +2 -2
  229. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -0
  230. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +2 -2
  231. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +2 -2
  233. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +2 -2
  235. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/gesture/velocity.d.ts +1 -1
  237. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +6 -0
  238. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -0
  239. package/package.json +1 -1
  240. package/src/blank-stack/components/Overlay.tsx +5 -2
  241. package/src/blank-stack/components/Screens.tsx +1 -1
  242. package/src/blank-stack/components/StackView.tsx +7 -2
  243. package/src/blank-stack/hooks/use-overlay-animation.tsx +4 -4
  244. package/src/blank-stack/index.ts +1 -1
  245. package/src/blank-stack/types.ts +2 -2
  246. package/src/native-stack/types.ts +1 -1
  247. package/src/native-stack/views/NativeStackView.native.tsx +4 -2
  248. package/src/shared/components/controllers/screen-lifecycle.tsx +12 -10
  249. package/src/shared/components/create-transition-aware-component.tsx +23 -27
  250. package/src/shared/components/root-transition-aware.tsx +1 -1
  251. package/src/shared/configs/presets.ts +31 -17
  252. package/src/shared/constants.ts +6 -7
  253. package/src/shared/hooks/animation/use-associated-style.tsx +12 -9
  254. package/src/shared/hooks/animation/use-screen-animation.tsx +8 -26
  255. package/src/shared/hooks/gestures/use-build-gestures.tsx +5 -5
  256. package/src/shared/hooks/gestures/use-parent-gesture-registry.tsx +1 -1
  257. package/src/shared/hooks/gestures/use-scroll-registry.tsx +2 -2
  258. package/src/shared/index.ts +2 -2
  259. package/src/shared/providers/{gestures.tsx → gestures.provider.tsx} +1 -1
  260. package/src/shared/providers/{keys.tsx → keys.provider.tsx} +1 -1
  261. package/src/shared/providers/register-bounds.provider.tsx +290 -0
  262. package/src/shared/providers/{screen-transition-provider.tsx → screen-transition.provider.tsx} +3 -3
  263. package/src/shared/providers/{transition-styles.tsx → transition-styles.provider.tsx} +18 -16
  264. package/src/shared/stores/{animation-store.ts → animation.store.ts} +1 -1
  265. package/src/shared/stores/bounds.store.ts +166 -0
  266. package/src/shared/stores/{gesture-store.ts → gesture.store.ts} +2 -2
  267. package/src/shared/types/{animation.ts → animation.types.ts} +60 -19
  268. package/src/shared/types/{bounds.ts → bounds.types.ts} +3 -3
  269. package/src/shared/types/{core.ts → core.types.ts} +10 -2
  270. package/src/shared/utils/animation/derivations.ts +2 -8
  271. package/src/shared/utils/animation/start-screen-transition.ts +2 -2
  272. package/src/shared/utils/bounds/constants.ts +3 -3
  273. package/src/shared/utils/bounds/{_utils → helpers}/geometry.ts +3 -3
  274. package/src/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.ts +3 -3
  275. package/src/shared/utils/bounds/{_utils → helpers}/style-composers.ts +2 -2
  276. package/src/shared/utils/bounds/{_utils → helpers}/styles.ts +1 -1
  277. package/src/shared/utils/bounds/index.ts +53 -55
  278. package/src/shared/utils/bounds/{_types → types}/builder.ts +19 -37
  279. package/src/shared/{providers/utils → utils}/create-provider.tsx +3 -9
  280. package/src/shared/utils/gesture/apply-offset-rules.ts +2 -2
  281. package/src/shared/utils/gesture/check-gesture-activation.ts +2 -2
  282. package/src/shared/utils/gesture/reset-gesture-values.ts +2 -2
  283. package/src/shared/utils/gesture/velocity.ts +1 -1
  284. package/src/shared/utils/reset-stores-for-screen.ts +11 -0
  285. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +0 -152
  286. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  287. package/lib/commonjs/shared/hooks/use-derived-value-state.js +0 -33
  288. package/lib/commonjs/shared/hooks/use-derived-value-state.js.map +0 -1
  289. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +0 -1
  290. package/lib/commonjs/shared/providers/gestures.js.map +0 -1
  291. package/lib/commonjs/shared/providers/keys.js.map +0 -1
  292. package/lib/commonjs/shared/providers/transition-styles.js.map +0 -1
  293. package/lib/commonjs/shared/providers/utils/create-provider.js.map +0 -1
  294. package/lib/commonjs/shared/stores/bound-store/_utils.js +0 -118
  295. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +0 -1
  296. package/lib/commonjs/shared/stores/bound-store/index.js +0 -127
  297. package/lib/commonjs/shared/stores/bound-store/index.js.map +0 -1
  298. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +0 -19
  299. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  300. package/lib/commonjs/shared/types/gesture.js.map +0 -1
  301. package/lib/commonjs/shared/types/utils.js +0 -2
  302. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +0 -1
  303. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js +0 -6
  304. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  305. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js +0 -27
  306. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  307. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +0 -1
  308. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js +0 -49
  309. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  310. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +0 -19
  311. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  312. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  313. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +0 -1
  314. package/lib/module/shared/hooks/bounds/use-bound-registry.js +0 -146
  315. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  316. package/lib/module/shared/hooks/use-derived-value-state.js +0 -30
  317. package/lib/module/shared/hooks/use-derived-value-state.js.map +0 -1
  318. package/lib/module/shared/hooks/use-shared-value-state.js.map +0 -1
  319. package/lib/module/shared/providers/gestures.js.map +0 -1
  320. package/lib/module/shared/providers/keys.js.map +0 -1
  321. package/lib/module/shared/providers/transition-styles.js.map +0 -1
  322. package/lib/module/shared/providers/utils/create-provider.js.map +0 -1
  323. package/lib/module/shared/stores/bound-store/_utils.js +0 -113
  324. package/lib/module/shared/stores/bound-store/_utils.js.map +0 -1
  325. package/lib/module/shared/stores/bound-store/index.js +0 -123
  326. package/lib/module/shared/stores/bound-store/index.js.map +0 -1
  327. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +0 -15
  328. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  329. package/lib/module/shared/types/animation.js +0 -4
  330. package/lib/module/shared/types/animation.js.map +0 -1
  331. package/lib/module/shared/types/bounds.js +0 -4
  332. package/lib/module/shared/types/bounds.js.map +0 -1
  333. package/lib/module/shared/types/core.js +0 -4
  334. package/lib/module/shared/types/core.js.map +0 -1
  335. package/lib/module/shared/types/gesture.js.map +0 -1
  336. package/lib/module/shared/types/utils.js +0 -2
  337. package/lib/module/shared/types/utils.js.map +0 -1
  338. package/lib/module/shared/utils/bounds/_types/geometry.js.map +0 -1
  339. package/lib/module/shared/utils/bounds/_types/get-bounds.js +0 -4
  340. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  341. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js +0 -23
  342. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  343. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +0 -1
  344. package/lib/module/shared/utils/bounds/_utils/get-bounds.js +0 -44
  345. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  346. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +0 -14
  347. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  348. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  349. package/lib/module/shared/utils/bounds/_utils/styles.js.map +0 -1
  350. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts +0 -17
  351. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  352. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts +0 -9
  353. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts.map +0 -1
  354. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +0 -1
  355. package/lib/typescript/shared/providers/gestures.d.ts.map +0 -1
  356. package/lib/typescript/shared/providers/keys.d.ts.map +0 -1
  357. package/lib/typescript/shared/providers/transition-styles.d.ts +0 -11
  358. package/lib/typescript/shared/providers/transition-styles.d.ts.map +0 -1
  359. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +0 -1
  360. package/lib/typescript/shared/stores/animation-store.d.ts.map +0 -1
  361. package/lib/typescript/shared/stores/bound-store/_utils.d.ts +0 -24
  362. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +0 -1
  363. package/lib/typescript/shared/stores/bound-store/index.d.ts +0 -24
  364. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +0 -1
  365. package/lib/typescript/shared/stores/gesture-store.d.ts.map +0 -1
  366. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +0 -6
  367. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  368. package/lib/typescript/shared/types/animation.d.ts.map +0 -1
  369. package/lib/typescript/shared/types/bounds.d.ts.map +0 -1
  370. package/lib/typescript/shared/types/core.d.ts.map +0 -1
  371. package/lib/typescript/shared/types/gesture.d.ts.map +0 -1
  372. package/lib/typescript/shared/types/utils.d.ts.map +0 -1
  373. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +0 -1
  374. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +0 -1
  375. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts +0 -10
  376. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  377. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts +0 -2
  378. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  379. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +0 -1
  380. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts +0 -4
  381. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  382. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  383. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  384. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +0 -1
  385. package/src/shared/hooks/bounds/use-bound-registry.tsx +0 -184
  386. package/src/shared/hooks/use-derived-value-state.ts +0 -41
  387. package/src/shared/stores/bound-store/_utils.ts +0 -161
  388. package/src/shared/stores/bound-store/index.ts +0 -148
  389. package/src/shared/stores/utils/reset-stores-for-screen.ts +0 -13
  390. package/src/shared/utils/bounds/_types/get-bounds.ts +0 -10
  391. package/src/shared/utils/bounds/_utils/flatten-styles.ts +0 -21
  392. package/src/shared/utils/bounds/_utils/get-bounds.ts +0 -54
  393. /package/lib/commonjs/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  394. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  395. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  396. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  397. /package/lib/commonjs/shared/utils/bounds/{_types → types}/builder.js +0 -0
  398. /package/lib/commonjs/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  399. /package/lib/commonjs/shared/{providers/utils → utils}/create-provider.js +0 -0
  400. /package/lib/module/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  401. /package/lib/module/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  402. /package/lib/module/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  403. /package/lib/module/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  404. /package/lib/module/shared/utils/bounds/{_types → types}/builder.js +0 -0
  405. /package/lib/module/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  406. /package/lib/module/shared/{providers/utils → utils}/create-provider.js +0 -0
  407. /package/lib/typescript/shared/hooks/{use-shared-value-state.d.ts → reanimated/use-shared-value-state.d.ts} +0 -0
  408. /package/lib/typescript/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.d.ts +0 -0
  409. /package/lib/typescript/shared/utils/bounds/{_types → types}/geometry.d.ts +0 -0
  410. /package/src/shared/hooks/{use-shared-value-state.ts → reanimated/use-shared-value-state.ts} +0 -0
  411. /package/src/shared/hooks/{use-stable-callback-value.tsx → use-stable-callback-value.ts} +0 -0
  412. /package/src/shared/hooks/{use-stable-callback.tsx → use-stable-callback.ts} +0 -0
  413. /package/src/shared/types/{gesture.ts → gesture.types.ts} +0 -0
  414. /package/src/shared/types/{utils.ts → utils.types.ts} +0 -0
  415. /package/src/shared/utils/bounds/{_types → types}/geometry.ts +0 -0
@@ -6,21 +6,17 @@ import {
6
6
  EXIT_RANGE,
7
7
  FULLSCREEN_DIMENSIONS,
8
8
  } from "../../constants";
9
+ import { BoundStore, type TagData } from "../../stores/bounds.store";
9
10
  import type {
10
11
  ScreenInterpolationProps,
11
12
  ScreenTransitionState,
12
- } from "../../types/animation";
13
- import type { BoundsAccessor } from "../../types/bounds";
14
- import type { Layout, ScreenPhase } from "../../types/core";
15
- import type {
16
- BoundsBuilderInitParams,
17
- BoundsBuilderOptions,
18
- } from "./_types/builder";
13
+ } from "../../types/animation.types";
14
+ import type { BoundsAccessor } from "../../types/bounds.types";
15
+ import type { Layout } from "../../types/core.types";
19
16
  import {
20
17
  computeContentTransformGeometry,
21
18
  computeRelativeGeometry,
22
- } from "./_utils/geometry";
23
- import { getBounds } from "./_utils/get-bounds";
19
+ } from "./helpers/geometry";
24
20
  import {
25
21
  composeContentStyle,
26
22
  composeSizeAbsolute,
@@ -28,10 +24,13 @@ import {
28
24
  composeTransformAbsolute,
29
25
  composeTransformRelative,
30
26
  type ElementComposeParams,
31
- } from "./_utils/style-composers";
27
+ } from "./helpers/style-composers";
28
+ import type {
29
+ BoundsBuilderOptions,
30
+ BoundsComputeParams,
31
+ } from "./types/builder";
32
32
 
33
33
  export interface BuildBoundsAccessorParams {
34
- activeBoundId: string | null;
35
34
  current: ScreenTransitionState;
36
35
  previous?: ScreenTransitionState;
37
36
  next?: ScreenTransitionState;
@@ -50,34 +49,47 @@ const resolveBounds = (props: {
50
49
  }) => {
51
50
  "worklet";
52
51
  const entering = !props.next;
53
-
54
52
  const fullscreen = FULLSCREEN_DIMENSIONS(props.dimensions);
53
+ const isClosing = props.current?.closing === 1;
55
54
 
56
- const startPhase: ScreenPhase = entering ? "previous" : "current";
57
- const endPhase: ScreenPhase = entering ? "current" : "next";
55
+ const isFullscreenTarget = props.computeOptions.target === "fullscreen";
58
56
 
59
- const getPhaseBounds = (phase?: ScreenPhase) => {
60
- "worklet";
61
- switch (phase) {
62
- case "previous":
63
- return props.previous?.bounds?.[props.id]?.bounds;
64
- case "current":
65
- return props.current?.bounds?.[props.id]?.bounds;
66
- case "next":
67
- return props.next?.bounds?.[props.id]?.bounds;
68
- default:
69
- return null;
70
- }
71
- };
57
+ // Try exact match first (strict matching for nested stacks)
58
+ let link = BoundStore.getActiveLink(
59
+ props.id,
60
+ props.current?.route.key,
61
+ isClosing,
62
+ );
72
63
 
73
- const start = getPhaseBounds(startPhase);
74
- let end = getPhaseBounds(endPhase);
64
+ // For fullscreen target, fall back to most recent link for this tag
65
+ // (destination screen might not have a matching element)
66
+ if (!link && isFullscreenTarget) {
67
+ link = BoundStore.getActiveLink(props.id); // No screenKey = get most recent
68
+ }
75
69
 
76
- const isFullscreen =
77
- props.computeOptions.target === "fullscreen" ||
78
- props.computeOptions.toFullscreen;
70
+ if (!link || !link.source) {
71
+ return {
72
+ start: null,
73
+ end: null,
74
+ entering,
75
+ };
76
+ }
79
77
 
80
- if (isFullscreen) {
78
+ // For fullscreen target, destination element is not required
79
+ if (!isFullscreenTarget && !link.destination) {
80
+ return {
81
+ start: null,
82
+ end: null,
83
+ entering,
84
+ };
85
+ }
86
+
87
+ const { destination, source } = link;
88
+
89
+ const start = source.bounds;
90
+ let end = destination?.bounds ?? fullscreen;
91
+
92
+ if (isFullscreenTarget) {
81
93
  end = fullscreen;
82
94
  }
83
95
 
@@ -95,15 +107,8 @@ const resolveBounds = (props: {
95
107
  };
96
108
 
97
109
  const computeBoundStyles = (
98
- {
99
- id,
100
- previous,
101
- current,
102
- next,
103
- progress,
104
- dimensions,
105
- }: BoundsBuilderInitParams,
106
- computeOptions: BoundsBuilderOptions = {},
110
+ { id, previous, current, next, progress, dimensions }: BoundsComputeParams,
111
+ computeOptions: BoundsBuilderOptions = { id: "bound-id" },
107
112
  ) => {
108
113
  "worklet";
109
114
  if (!id) {
@@ -169,8 +174,7 @@ const computeBoundStyles = (
169
174
  };
170
175
 
171
176
  const isSize = computeOptions.method === "size";
172
- const isAbs =
173
- computeOptions.space === "absolute" || !!computeOptions.absolute;
177
+ const isAbs = computeOptions.space === "absolute";
174
178
 
175
179
  return isSize
176
180
  ? isAbs
@@ -188,13 +192,13 @@ export const createBounds = (
188
192
 
189
193
  const boundsFunction = (params?: BoundsBuilderOptions) => {
190
194
  "worklet";
191
- const id = params?.id ?? props.activeBoundId;
195
+ const id = params?.id;
192
196
 
193
197
  return computeBoundStyles(
194
198
  {
195
199
  id,
196
- current: props.current,
197
200
  previous: props.previous,
201
+ current: props.current,
198
202
  next: props.next,
199
203
  progress: props.progress,
200
204
  dimensions: props.layouts.screen,
@@ -203,16 +207,10 @@ export const createBounds = (
203
207
  );
204
208
  };
205
209
 
206
- const get = (id?: string, phase?: ScreenPhase) => {
210
+ const getOccurrence = (tag: string, key: string): TagData => {
207
211
  "worklet";
208
- return getBounds({
209
- id: id ?? props.activeBoundId,
210
- phase,
211
- current: props.current,
212
- previous: props.previous,
213
- next: props.next,
214
- });
212
+ return BoundStore.getOccurrence(tag, key);
215
213
  };
216
214
 
217
- return Object.assign(boundsFunction, { get }) as BoundsAccessor;
215
+ return Object.assign(boundsFunction, { getOccurrence }) as BoundsAccessor;
218
216
  };
@@ -1,19 +1,7 @@
1
1
  import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
2
- import type { ScreenTransitionState } from "../../../types/animation";
3
- import type { BoundsMethod } from "../../../types/bounds";
4
- import type { Layout } from "../../../types/core";
5
-
6
- /**
7
- * Params passed to the builder initializer. No method required here.
8
- */
9
- export type BoundsBuilderInitParams = {
10
- id: string | null;
11
- previous?: ScreenTransitionState;
12
- current: ScreenTransitionState;
13
- next?: ScreenTransitionState;
14
- progress: number;
15
- dimensions: Layout;
16
- };
2
+ import type { ScreenTransitionState } from "../../../types/animation.types";
3
+ import type { BoundsMethod } from "../../../types/bounds.types";
4
+ import type { Layout } from "../../../types/core.types";
17
5
 
18
6
  export type BoundsAnchor =
19
7
  | "topLeading"
@@ -32,7 +20,14 @@ export type BoundsTarget = "bound" | "fullscreen" | MeasuredDimensions;
32
20
 
33
21
  export type BoundsSpace = "relative" | "absolute";
34
22
 
35
- export type BoundsComputeParams = BoundsBuilderInitParams;
23
+ export type BoundsComputeParams = {
24
+ id?: string;
25
+ previous?: ScreenTransitionState;
26
+ current: ScreenTransitionState;
27
+ next?: ScreenTransitionState;
28
+ progress: number;
29
+ dimensions: Layout;
30
+ };
36
31
 
37
32
  export type RawSizeAbsoluteReturn = {
38
33
  width: number;
@@ -84,26 +79,14 @@ export type BoundsReturnType<T extends BoundsBuilderOptions> =
84
79
 
85
80
  export type BoundsBuilderOptions = {
86
81
  /**
87
- * @deprecated Use `content.scaleMode` instead.
88
- */
89
- toFullscreen?: boolean;
90
- /**
91
- * @deprecated Use `content.anchor` instead.
92
- */
93
- absolute?: boolean;
94
- /**
95
- * @deprecated Use `content.anchor` instead.
96
- */
97
- relative?: boolean;
98
- /**
99
- * @deprecated Use `scaleMode` instead.
82
+ * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
100
83
  */
101
- contentScaleMode?: "aspectFill" | "aspectFit" | "auto";
84
+ id: string;
102
85
 
103
86
  /**
104
- * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
87
+ * Whether the bound should target the screen or the bound.
105
88
  */
106
- id?: string;
89
+ target?: BoundsTarget;
107
90
 
108
91
  /**
109
92
  * The method to use to compute the bounds.
@@ -124,25 +107,24 @@ export type BoundsBuilderOptions = {
124
107
  * @default "relative"
125
108
  */
126
109
  space?: BoundsSpace;
127
- /**
128
- * Whether the bound should target the screen or the bound.
129
- * @default "bound"
130
- */
131
- target?: BoundsTarget;
110
+
132
111
  /**
133
112
  * The gesture offsets to apply to the bounds.
134
113
  */
135
114
  gestures?: { x?: number; y?: number };
115
+
136
116
  /**
137
117
  * How the bounds should be scaled between each other.
138
118
  * @default "match"
139
119
  */
140
120
  scaleMode?: BoundsScaleMode;
121
+
141
122
  /**
142
123
  * Where the bounds should be anchored between each other.
143
124
  * @default "center"
144
125
  */
145
126
  anchor?: BoundsAnchor;
127
+
146
128
  /**
147
129
  * If true, the raw values will be returned instead of the computed values.
148
130
  * @default false
@@ -3,19 +3,13 @@
3
3
  * https://github.com/MatiPl01/react-native-sortables/blob/main/packages/react-native-sortables/src/providers/utils/createProvider.tsx
4
4
  * SUPER COOL AMAZING UTILITY
5
5
  */
6
- import {
7
- createContext,
8
- type PropsWithChildren,
9
- type ReactNode,
10
- useContext,
11
- useMemo,
12
- } from "react";
6
+ import { createContext, type ReactNode, useContext, useMemo } from "react";
13
7
 
14
8
  export default function createProvider<
15
9
  ProviderName extends string,
16
10
  Guarded extends boolean = true,
17
11
  >(name: ProviderName, options?: { guarded?: Guarded }) {
18
- return <ProviderProps extends PropsWithChildren<object>, ContextValue>(
12
+ return <ProviderProps extends object, ContextValue>(
19
13
  factory: (props: ProviderProps) => {
20
14
  value?: ContextValue;
21
15
  enabled?: boolean;
@@ -29,7 +23,7 @@ export default function createProvider<
29
23
 
30
24
  const Provider: React.FC<ProviderProps> = (props) => {
31
25
  const {
32
- children = props.children,
26
+ children = (props as { children?: ReactNode }).children,
33
27
  enabled = true,
34
28
  value,
35
29
  } = factory(props);
@@ -9,13 +9,13 @@ import {
9
9
  GESTURE_FAIL_TOLERANCE_X,
10
10
  GESTURE_FAIL_TOLERANCE_Y,
11
11
  } from "../../constants";
12
- import type { Layout } from "../../types/core";
12
+ import type { Layout } from "../../types/core.types";
13
13
  import {
14
14
  type ActivationArea,
15
15
  type GestureActivationArea,
16
16
  GestureOffsetState,
17
17
  type SideActivation,
18
- } from "../../types/gesture";
18
+ } from "../../types/gesture.types";
19
19
 
20
20
  type Directions = {
21
21
  vertical: boolean;
@@ -1,12 +1,12 @@
1
1
  import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
2
2
  import type { SharedValue } from "react-native-reanimated";
3
- import type { Layout } from "../../types/core";
3
+ import type { Layout } from "../../types/core.types";
4
4
  import {
5
5
  type ActivationArea,
6
6
  type GestureActivationArea,
7
7
  GestureOffsetState,
8
8
  type SideActivation,
9
- } from "../../types/gesture";
9
+ } from "../../types/gesture.types";
10
10
 
11
11
  type Directions = {
12
12
  vertical: boolean;
@@ -2,8 +2,8 @@ import type {
2
2
  GestureStateChangeEvent,
3
3
  PanGestureHandlerEventPayload,
4
4
  } from "react-native-gesture-handler";
5
- import type { GestureStoreMap } from "../../stores/gesture-store";
6
- import type { AnimationConfig } from "../../types/animation";
5
+ import type { GestureStoreMap } from "../../stores/gesture.store";
6
+ import type { AnimationConfig } from "../../types/animation.types";
7
7
  import { animate } from "../animation/animate";
8
8
  import { velocity } from "./velocity";
9
9
 
@@ -3,7 +3,7 @@ import type {
3
3
  PanGestureHandlerEventPayload,
4
4
  } from "react-native-gesture-handler";
5
5
  import { clamp } from "react-native-reanimated";
6
- import type { AnimationStoreMap } from "../../stores/animation-store";
6
+ import type { AnimationStoreMap } from "../../stores/animation.store";
7
7
 
8
8
  interface CalculateProgressProps {
9
9
  animations: AnimationStoreMap;
@@ -0,0 +1,11 @@
1
+ import type { TransitionDescriptor } from "../providers/keys.provider";
2
+ import { AnimationStore } from "../stores/animation.store";
3
+ import { GestureStore } from "../stores/gesture.store";
4
+
5
+ /**
6
+ * Reset all stores for a given screen
7
+ */
8
+ export const resetStoresForScreen = (current: TransitionDescriptor) => {
9
+ AnimationStore.clear(current.route.key);
10
+ GestureStore.clear(current.route.key);
11
+ };
@@ -1,152 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useBoundsRegistry = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- var _keys = require("../../providers/keys");
10
- var _boundStore = require("../../stores/bound-store");
11
- var _isBoundsEqual = require("../../utils/bounds/_utils/is-bounds-equal");
12
- var _styles = require("../../utils/bounds/_utils/styles");
13
- var _useStableCallback = _interopRequireDefault(require("../use-stable-callback"));
14
- var _useStableCallbackValue = _interopRequireDefault(require("../use-stable-callback-value"));
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- const MeasurementUpdateContext = /*#__PURE__*/(0, _react.createContext)(null);
18
- const useBoundsRegistry = ({
19
- sharedBoundTag,
20
- animatedRef,
21
- style,
22
- onPress
23
- }) => {
24
- const {
25
- previous,
26
- current,
27
- next
28
- } = (0, _keys.useKeys)();
29
- const preparedStyles = (0, _react.useMemo)(() => (0, _styles.prepareStyleForBounds)(style), [style]);
30
- const ROOT_MEASUREMENT_SIGNAL = (0, _react.useContext)(MeasurementUpdateContext);
31
- const ROOT_SIGNAL = (0, _reactNativeReanimated.useSharedValue)(0);
32
- const IS_ROOT = !ROOT_MEASUREMENT_SIGNAL;
33
- const emitUpdate = (0, _useStableCallbackValue.default)(() => {
34
- "worklet";
35
-
36
- if (IS_ROOT) ROOT_SIGNAL.value = ROOT_SIGNAL.value + 1;
37
- });
38
- const maybeMeasureAndStore = (0, _useStableCallbackValue.default)(({
39
- onPress,
40
- skipMarkingActive
41
- }) => {
42
- "worklet";
43
-
44
- // Currently, there's no necessity to measure when the current route is blurred ( could potentially change in the future )
45
- if (!sharedBoundTag || next) return;
46
- const measured = (0, _reactNativeReanimated.measure)(animatedRef);
47
- if (!measured) {
48
- console.warn(`[react-native-screen-transitions] measure() returned null for sharedBoundTag="${sharedBoundTag}"`);
49
- return;
50
- }
51
- const key = current.route.key;
52
- if ((0, _isBoundsEqual.isBoundsEqual)({
53
- measured,
54
- key,
55
- sharedBoundTag
56
- })) {
57
- emitUpdate();
58
- if (!skipMarkingActive) {
59
- _boundStore.BoundStore.setRouteActive(key, sharedBoundTag);
60
- }
61
- if (onPress) (0, _reactNativeReanimated.runOnJS)(onPress)();
62
- return;
63
- }
64
- emitUpdate();
65
- _boundStore.BoundStore.setBounds(key, sharedBoundTag, measured, preparedStyles);
66
- if (!skipMarkingActive) {
67
- _boundStore.BoundStore.setRouteActive(key, sharedBoundTag);
68
- }
69
- if (onPress) (0, _reactNativeReanimated.runOnJS)(onPress)();
70
- });
71
- const hasMeasuredOnLayout = (0, _reactNativeReanimated.useSharedValue)(false);
72
- const handleInitialLayout = (0, _useStableCallbackValue.default)(() => {
73
- "worklet";
74
-
75
- const prevKey = previous?.route.key;
76
- if (!sharedBoundTag || hasMeasuredOnLayout.value || !prevKey) {
77
- return;
78
- }
79
- const prevBounds = _boundStore.BoundStore.getBounds(prevKey)?.[sharedBoundTag];
80
- if (prevBounds) {
81
- // Should skip mark active if we are in a transition
82
- maybeMeasureAndStore({
83
- skipMarkingActive: true
84
- });
85
- // Should not measure again while in transition
86
- hasMeasuredOnLayout.value = true;
87
- }
88
- });
89
- const captureActiveOnPress = (0, _useStableCallback.default)(() => {
90
- if (!sharedBoundTag) {
91
- if (onPress) onPress();
92
- return;
93
- }
94
-
95
- // In this case, we DO want to mark active
96
- (0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({
97
- onPress
98
- });
99
- });
100
- const MeasurementSyncProvider = (0, _react.useMemo)(() => {
101
- if (!IS_ROOT || !sharedBoundTag) {
102
- return _react.Fragment;
103
- }
104
- return ({
105
- children
106
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(MeasurementUpdateContext.Provider, {
107
- value: {
108
- updateSignal: ROOT_SIGNAL
109
- },
110
- children: children
111
- });
112
- }, [IS_ROOT, sharedBoundTag, ROOT_SIGNAL]);
113
- const prevNextRef = (0, _react.useRef)(next);
114
- /**
115
- * Measure non-pressable elements when the screen goes from focused to blurred
116
- * (or when a new `next` descriptor appears) so we capture final bounds
117
- * right before the transition starts.
118
- */
119
- (0, _react.useLayoutEffect)(() => {
120
- if (!sharedBoundTag || onPress) return;
121
- const hadNext = !!prevNextRef.current;
122
- const hasNext = !!next;
123
- if (!hadNext && hasNext) {
124
- (0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({});
125
- }
126
- prevNextRef.current = next;
127
- }, [next, sharedBoundTag, onPress, maybeMeasureAndStore]);
128
-
129
- /**
130
- * Signal child shared elements (nested under this provider) to refresh their
131
- * measurements when the root updates, while preventing them from marking
132
- * themselves active during that sync.
133
- */
134
- (0, _reactNativeReanimated.useAnimatedReaction)(() => ROOT_MEASUREMENT_SIGNAL?.updateSignal.value, current => {
135
- "worklet";
136
-
137
- // We don't want to run on the initial amount)
138
- if (current === 0 || current === undefined) return;
139
-
140
- // Children should not have the ability to mark active
141
- maybeMeasureAndStore({
142
- skipMarkingActive: true
143
- });
144
- });
145
- return {
146
- handleInitialLayout,
147
- captureActiveOnPress,
148
- MeasurementSyncProvider
149
- };
150
- };
151
- exports.useBoundsRegistry = useBoundsRegistry;
152
- //# sourceMappingURL=use-bound-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_keys","_boundStore","_isBoundsEqual","_styles","_useStableCallback","_interopRequireDefault","_useStableCallbackValue","_jsxRuntime","e","__esModule","default","MeasurementUpdateContext","createContext","useBoundsRegistry","sharedBoundTag","animatedRef","style","onPress","previous","current","next","useKeys","preparedStyles","useMemo","prepareStyleForBounds","ROOT_MEASUREMENT_SIGNAL","useContext","ROOT_SIGNAL","useSharedValue","IS_ROOT","emitUpdate","useStableCallbackValue","value","maybeMeasureAndStore","skipMarkingActive","measured","measure","console","warn","key","route","isBoundsEqual","BoundStore","setRouteActive","runOnJS","setBounds","hasMeasuredOnLayout","handleInitialLayout","prevKey","prevBounds","getBounds","captureActiveOnPress","useStableCallback","runOnUI","MeasurementSyncProvider","Fragment","children","jsx","Provider","updateSignal","prevNextRef","useRef","useLayoutEffect","hadNext","hasNext","useAnimatedReaction","undefined","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/bounds/use-bound-registry.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAD,OAAA;AAUA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAD,sB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AO,KAAK,CAAC,IAAIA,OAAO,KAAK+C,SAAS,EAAE;;IAE5C;IACAjC,oBAAoB,CAAC;MAAEC,iBAAiB,EAAE;IAAK,CAAC,CAAC;EAClD,CACD,CAAC;EAED,OAAO;IACNa,mBAAmB;IACnBI,oBAAoB;IACpBG;EACD,CAAC;AACF,CAAC;AAACa,OAAA,CAAAtD,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useDerivedValueState = useDerivedValueState;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- /**
10
- * Derives React state from a Reanimated worklet.
11
- *
12
- * @param processor - The worklet function that calculates the value
13
- * @param dependencies - Array of dependencies for the worklet
14
- * @returns The derived value as React State
15
- */
16
- function useDerivedValueState(processor, dependencies = []) {
17
- const derivedValue = (0, _reactNativeReanimated.useDerivedValue)(processor, dependencies);
18
- const [state, setState] = (0, _react.useState)(() => {
19
- const readOnUI = (0, _reactNativeReanimated.executeOnUIRuntimeSync)(sv => {
20
- "worklet";
21
-
22
- return sv.value;
23
- });
24
- return readOnUI(derivedValue);
25
- });
26
- (0, _reactNativeReanimated.useAnimatedReaction)(() => derivedValue.value, (curr, prev) => {
27
- if (curr !== prev) {
28
- (0, _reactNativeReanimated.runOnJS)(setState)(curr);
29
- }
30
- });
31
- return state;
32
- }
33
- //# sourceMappingURL=use-derived-value-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","useDerivedValueState","processor","dependencies","derivedValue","useDerivedValue","state","setState","useState","readOnUI","executeOnUIRuntimeSync","sv","value","useAnimatedReaction","curr","prev","runOnJS"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-derived-value-state.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,oBAAoBA,CACnCC,SAAkB,EAClBC,YAAmB,GAAG,EAAE,EACpB;EACJ,MAAMC,YAAY,GAAG,IAAAC,sCAAe,EAACH,SAAS,EAAEC,YAAY,CAAC;EAE7D,MAAM,CAACG,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAI,MAAM;IAC3C,MAAMC,QAAQ,GAAG,IAAAC,6CAAsB,EAAEC,EAAkB,IAAK;MAC/D,SAAS;;MACT,OAAOA,EAAE,CAACC,KAAK;IAChB,CAAC,CAAC;IACF,OAAOH,QAAQ,CAACL,YAAY,CAAC;EAC9B,CAAC,CAAC;EAEF,IAAAS,0CAAmB,EAClB,MAAMT,YAAY,CAACQ,KAAK,EACxB,CAACE,IAAI,EAAEC,IAAI,KAAK;IACf,IAAID,IAAI,KAAKC,IAAI,EAAE;MAClB,IAAAC,8BAAO,EAACT,QAAQ,CAAC,CAACO,IAAI,CAAC;IACxB;EACD,CACD,CAAC;EAED,OAAOR,KAAK;AACb","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","useSharedValueState","sharedValue","state","setState","useState","readOnUI","executeOnUIRuntimeSync","sv","value","useAnimatedReaction","runOnJS"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-shared-value-state.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACO,SAASE,mBAAmBA,CAAIC,WAA2B,EAAK;EACtE,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAI,MAAM;IAC3C,MAAMC,QAAQ,GAAG,IAAAC,6CAAsB,EAAEC,EAAkB,IAAK;MAC/D,SAAS;;MACT,OAAOA,EAAE,CAACC,KAAK;IAChB,CAAC,CAAC;IACF,OAAOH,QAAQ,CAACJ,WAAW,CAAC;EAC7B,CAAC,CAAC;EAEF,IAAAQ,0CAAmB,EAClB,MAAMR,WAAW,CAACO,KAAK,EACtBA,KAAK,IAAK,IAAAE,8BAAO,EAACP,QAAQ,CAAC,CAACK,KAAK,CACnC,CAAC;EAED,OAAON,KAAK;AACb","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_useBuildGestures","_jsxRuntime","GestureContext","createContext","undefined","ScreenGestureProvider","children","parentContext","useContext","scrollConfig","useSharedValue","panGesture","nativeGesture","gestureAnimationValues","useBuildGestures","value","useMemo","jsx","Provider","GestureDetector","gesture","View","style","styles","container","exports","useGestureContext","context","Error","StyleSheet","create","flex"],"sourceRoot":"../../../../src","sources":["shared/providers/gestures.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAAwE,IAAAK,WAAA,GAAAL,OAAA;AAwBxE,MAAMM,cAAc,gBAAG,IAAAC,oBAAa,EAAiCC,SAAS,CAAC;AAExE,MAAMC,qBAAqB,GAAGA,CAAC;EAAEC;AAA+B,CAAC,KAAK;EAC5E,MAAMC,aAAa,GAAG,IAAAC,iBAAU,EAACN,cAAc,CAAC;EAEhD,MAAMO,YAAY,GAAG,IAAAC,qCAAc,EAAsB,IAAI,CAAC;EAE9D,MAAM;IAAEC,UAAU;IAAEC,aAAa;IAAEC;EAAuB,CAAC,GAC1D,IAAAC,kCAAgB,EAAC;IAChBL,YAAY;IACZF;EACD,CAAC,CAAC;EAEH,MAAMQ,KAAyB,GAAG,IAAAC,cAAO,EACxC,OAAO;IACNL,UAAU;IACVF,YAAY;IACZG,aAAa;IACbC,sBAAsB;IACtBN,aAAa,EAAEA,aAAa,IAAI;EACjC,CAAC,CAAC,EACF,CACCI,UAAU,EACVF,YAAY,EACZG,aAAa,EACbC,sBAAsB,EACtBN,aAAa,CAEf,CAAC;EAED,oBACC,IAAAN,WAAA,CAAAgB,GAAA,EAACf,cAAc,CAACgB,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAT,QAAA,eACrC,IAAAL,WAAA,CAAAgB,GAAA,EAACnB,0BAAA,CAAAqB,eAAe;MAACC,OAAO,EAAET,UAAW;MAAAL,QAAA,eACpC,IAAAL,WAAA,CAAAgB,GAAA,EAACpB,YAAA,CAAAwB,IAAI;QAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;QAAAlB,QAAA,EAAEA;MAAQ,CAAO;IAAC,CAChC;EAAC,CACM,CAAC;AAE5B,CAAC;AAACmB,OAAA,CAAApB,qBAAA,GAAAA,qBAAA;AAEK,MAAMqB,iBAAiB,GAAGA,CAAA,KAAM;EACtC,MAAMC,OAAO,GAAG,IAAAnB,iBAAU,EAACN,cAAc,CAAC;EAE1C,IAAI,CAACyB,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CACd,+DACD,CAAC;EACF;EAEA,OAAOD,OAAO;AACf,CAAC;AAACF,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAEF,MAAMH,MAAM,GAAGM,uBAAU,CAACC,MAAM,CAAC;EAChCN,SAAS,EAAE;IACVO,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_jsxRuntime","KeysContext","createContext","undefined","KeysProvider","children","previous","current","next","value","useMemo","jsx","Provider","useKeys","context","useContext","Error"],"sourceRoot":"../../../../src","sources":["shared/providers/keys.tsx"],"mappings":";;;;;;;AAMA,IAAAA,MAAA,GAAAC,OAAA;AAA2D,IAAAC,WAAA,GAAAD,OAAA;AAiB3D,MAAME,WAAW,gBAAG,IAAAC,oBAAa,EAE/BC,SAAS,CAAC;AASL,SAASC,YAAYA,CAA2C;EACtEC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC;AAC+B,CAAC,EAAE;EAClC,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACpB,OAAO;IAAEJ,QAAQ;IAAEC,OAAO;IAAEC;EAAK,CAAC,CAAC,EACnC,CAACF,QAAQ,EAAEC,OAAO,EAAEC,IAAI,CACzB,CAAC;EAED,oBAAO,IAAAR,WAAA,CAAAW,GAAA,EAACV,WAAW,CAACW,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAJ,QAAA,EAAEA;EAAQ,CAAuB,CAAC;AAC7E;AAEO,SAASQ,OAAOA,CAAA,EAEW;EACjC,MAAMC,OAAO,GAAG,IAAAC,iBAAU,EAACd,WAAW,CAAC;EACvC,IAAIa,OAAO,KAAKX,SAAS,EAAE;IAC1B,MAAM,IAAIa,KAAK,CAAC,4CAA4C,CAAC;EAC9D;EACA,OAAOF,OAAO;AACf","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_useScreenAnimation2","_bounds","_jsxRuntime","TransitionStylesContext","createContext","TransitionStylesProvider","children","screenInterpolatorProps","screenStyleInterpolator","_useScreenAnimation","stylesMap","useDerivedValue","props","value","bounds","createBounds","NO_STYLES","err","__DEV__","console","warn","useMemo","jsx","Provider","useTransitionStyles","ctx","useContext","Error"],"sourceRoot":"../../../../src","sources":["shared/providers/transition-styles.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAA+C,IAAAK,WAAA,GAAAL,OAAA;AAM/C,MAAMM,uBAAuB,gBAAG,IAAAC,oBAAa,EAInC,IAAI,CAAC;AAER,SAASC,wBAAwBA,CAAC;EAAEC;AAAgB,CAAC,EAAE;EAC7D,MAAM;IAAEC,uBAAuB;IAAEC;EAAwB,CAAC,GACzD,IAAAC,wCAAmB,EAAC,CAAC;EAEtB,MAAMC,SAAS,GAAG,IAAAC,sCAAe,EAA8B,MAAM;IACpE,SAAS;;IAET;AACF;AACA;AACA;AACA;IACE,MAAMC,KAAK,GAAGL,uBAAuB,CAACM,KAAK;IAE3C,MAAMC,MAAM,GAAG,IAAAC,oBAAY,EAACH,KAAK,CAAC;IAClC,IAAI;MACH,IAAI,CAACJ,uBAAuB,EAAE,OAAOQ,oBAAS;MAE9C,OAAOR,uBAAuB,CAAC;QAC9B,GAAGI,KAAK;QACRE;MACD,CAAC,CAAC;IACH,CAAC,CAAC,OAAOG,GAAG,EAAE;MACb,IAAIC,OAAO,EAAE;QACZC,OAAO,CAACC,IAAI,CACX,6EAA6E,EAC7EH,GACD,CAAC;MACF;MACA,OAAOD,oBAAS;IACjB;EACD,CAAC,CAAC;EAEF,MAAMH,KAAK,GAAG,IAAAQ,cAAO,EAAC,MAAM;IAC3B,OAAO;MACNX;IACD,CAAC;EACF,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,oBACC,IAAAR,WAAA,CAAAoB,GAAA,EAACnB,uBAAuB,CAACoB,QAAQ;IAACV,KAAK,EAAEA,KAAM;IAAAP,QAAA,EAC7CA;EAAQ,CACwB,CAAC;AAErC;AAEO,SAASkB,mBAAmBA,CAAA,EAAG;EACrC,MAAMC,GAAG,GAAG,IAAAC,iBAAU,EAACvB,uBAAuB,CAAC;EAC/C,IAAI,CAACsB,GAAG,EAAE;IACT,MAAM,IAAIE,KAAK,CACd,oEACD,CAAC;EACF;EACA,OAAOF,GAAG;AACX","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_jsxRuntime","createProvider","name","options","factory","guarded","Context","createContext","displayName","Provider","props","children","enabled","value","Error","memoValue","useMemo","jsx","useEnhancedContext","context","useContext"],"sourceRoot":"../../../../../src","sources":["shared/providers/utils/create-provider.tsx"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AAMe,IAAAC,WAAA,GAAAD,OA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