react-native-screen-transitions 3.0.0-beta.8 → 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 (417) 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 +5 -9
  9. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  10. package/lib/commonjs/blank-stack/index.js +7 -0
  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 +2 -4
  31. package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  32. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
  33. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  34. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  35. package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -1
  36. package/lib/commonjs/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  37. package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -0
  38. package/lib/commonjs/shared/providers/{keys.js → keys.provider.js} +1 -1
  39. package/lib/commonjs/shared/providers/keys.provider.js.map +1 -0
  40. package/lib/commonjs/shared/providers/register-bounds.provider.js +211 -0
  41. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -0
  42. package/lib/commonjs/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  43. package/lib/commonjs/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  44. package/lib/commonjs/shared/providers/{transition-styles.js → transition-styles.provider.js} +9 -9
  45. package/lib/commonjs/shared/providers/transition-styles.provider.js.map +1 -0
  46. package/lib/commonjs/shared/stores/{animation-store.js → animation.store.js} +1 -1
  47. package/lib/commonjs/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  48. package/lib/commonjs/shared/stores/bounds.store.js +141 -0
  49. package/lib/commonjs/shared/stores/bounds.store.js.map +1 -0
  50. package/lib/commonjs/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  51. package/lib/commonjs/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  52. package/lib/commonjs/shared/types/{core.js → animation.types.js} +1 -1
  53. package/lib/commonjs/shared/types/animation.types.js.map +1 -0
  54. package/lib/commonjs/shared/types/{bounds.js → bounds.types.js} +1 -1
  55. package/lib/commonjs/shared/types/bounds.types.js.map +1 -0
  56. package/lib/commonjs/shared/types/{animation.js → core.types.js} +1 -1
  57. package/lib/commonjs/shared/types/{animation.js.map → core.types.js.map} +1 -1
  58. package/lib/commonjs/shared/types/{gesture.js → gesture.types.js} +1 -1
  59. package/lib/commonjs/shared/types/gesture.types.js.map +1 -0
  60. package/lib/commonjs/shared/types/utils.types.js +2 -0
  61. package/lib/commonjs/shared/types/{core.js.map → utils.types.js.map} +1 -1
  62. package/lib/commonjs/shared/utils/animation/derivations.js +1 -7
  63. package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -1
  64. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -0
  65. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +19 -0
  66. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  67. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  68. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -0
  69. package/lib/commonjs/shared/utils/bounds/index.js +45 -35
  70. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  71. package/lib/commonjs/shared/utils/bounds/types/builder.js.map +1 -0
  72. package/lib/commonjs/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  73. package/lib/commonjs/shared/utils/create-provider.js.map +1 -0
  74. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +1 -1
  75. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js +1 -1
  76. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +17 -0
  77. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -0
  78. package/lib/module/blank-stack/components/Overlay.js +7 -4
  79. package/lib/module/blank-stack/components/Overlay.js.map +1 -1
  80. package/lib/module/blank-stack/components/Screens.js +1 -1
  81. package/lib/module/blank-stack/components/StackView.js +8 -4
  82. package/lib/module/blank-stack/components/StackView.js.map +1 -1
  83. package/lib/module/blank-stack/hooks/use-overlay-animation.js +5 -9
  84. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  85. package/lib/module/blank-stack/index.js +1 -0
  86. package/lib/module/blank-stack/index.js.map +1 -1
  87. package/lib/module/native-stack/views/NativeStackView.native.js +3 -2
  88. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  89. package/lib/module/shared/components/controllers/screen-lifecycle.js +8 -8
  90. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -1
  91. package/lib/module/shared/components/create-transition-aware-component.js +11 -14
  92. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  93. package/lib/module/shared/components/root-transition-aware.js +1 -1
  94. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  95. package/lib/module/shared/configs/presets.js +20 -9
  96. package/lib/module/shared/configs/presets.js.map +1 -1
  97. package/lib/module/shared/constants.js +0 -1
  98. package/lib/module/shared/constants.js.map +1 -1
  99. package/lib/module/shared/hooks/animation/use-associated-style.js +9 -10
  100. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  101. package/lib/module/shared/hooks/animation/use-screen-animation.js +7 -22
  102. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  103. package/lib/module/shared/hooks/gestures/use-build-gestures.js +4 -4
  104. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  105. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js +2 -4
  106. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  107. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  108. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  109. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  110. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  111. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -1
  112. package/lib/module/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  113. package/lib/module/shared/providers/gestures.provider.js.map +1 -0
  114. package/lib/module/shared/providers/{keys.js → keys.provider.js} +1 -1
  115. package/lib/module/shared/providers/keys.provider.js.map +1 -0
  116. package/lib/module/shared/providers/register-bounds.provider.js +206 -0
  117. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -0
  118. package/lib/module/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  119. package/lib/module/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  120. package/lib/module/shared/providers/{transition-styles.js → transition-styles.provider.js} +8 -9
  121. package/lib/module/shared/providers/transition-styles.provider.js.map +1 -0
  122. package/lib/module/shared/stores/{animation-store.js → animation.store.js} +1 -1
  123. package/lib/module/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  124. package/lib/module/shared/stores/bounds.store.js +137 -0
  125. package/lib/module/shared/stores/bounds.store.js.map +1 -0
  126. package/lib/module/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  127. package/lib/module/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  128. package/lib/module/shared/types/animation.types.js +4 -0
  129. package/lib/module/shared/types/animation.types.js.map +1 -0
  130. package/lib/module/shared/types/bounds.types.js +4 -0
  131. package/lib/module/shared/types/bounds.types.js.map +1 -0
  132. package/lib/module/shared/types/core.types.js +4 -0
  133. package/lib/{commonjs/shared/types/bounds.js.map → module/shared/types/core.types.js.map} +1 -1
  134. package/lib/module/shared/types/{gesture.js → gesture.types.js} +1 -1
  135. package/lib/module/shared/types/gesture.types.js.map +1 -0
  136. package/lib/module/shared/types/utils.types.js +2 -0
  137. package/lib/{commonjs/shared/types/utils.js.map → module/shared/types/utils.types.js.map} +1 -1
  138. package/lib/module/shared/utils/animation/derivations.js +1 -7
  139. package/lib/module/shared/utils/animation/derivations.js.map +1 -1
  140. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -0
  141. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +14 -0
  142. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  143. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -0
  145. package/lib/module/shared/utils/bounds/index.js +45 -35
  146. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  147. package/lib/module/shared/utils/bounds/types/builder.js.map +1 -0
  148. package/lib/module/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  149. package/lib/module/shared/utils/create-provider.js.map +1 -0
  150. package/lib/module/shared/utils/gesture/apply-offset-rules.js +1 -1
  151. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -1
  152. package/lib/module/shared/utils/gesture/check-gesture-activation.js +1 -1
  153. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  154. package/lib/module/shared/utils/reset-stores-for-screen.js +13 -0
  155. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -0
  156. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -1
  157. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -1
  158. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +1 -1
  159. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -1
  160. package/lib/typescript/blank-stack/index.d.ts +1 -0
  161. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  162. package/lib/typescript/blank-stack/types.d.ts +2 -2
  163. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  164. package/lib/typescript/native-stack/types.d.ts +1 -1
  165. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  166. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  167. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -1
  168. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  169. package/lib/typescript/shared/configs/index.d.ts +9 -3
  170. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  171. package/lib/typescript/shared/configs/presets.d.ts +10 -4
  172. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  173. package/lib/typescript/shared/constants.d.ts +6 -6
  174. package/lib/typescript/shared/constants.d.ts.map +1 -1
  175. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  176. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -2
  177. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  178. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts +2 -2
  179. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  180. package/lib/typescript/shared/hooks/gestures/use-parent-gesture-registry.d.ts.map +1 -1
  181. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -0
  182. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  183. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -1
  184. package/lib/typescript/shared/index.d.ts +25 -19
  185. package/lib/typescript/shared/index.d.ts.map +1 -1
  186. package/lib/typescript/shared/providers/{gestures.d.ts → gestures.provider.d.ts} +2 -2
  187. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -0
  188. package/lib/typescript/shared/providers/{keys.d.ts → keys.provider.d.ts} +2 -2
  189. package/lib/typescript/shared/providers/keys.provider.d.ts.map +1 -0
  190. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +17 -0
  191. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -0
  192. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts → screen-transition.provider.d.ts} +2 -2
  193. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts.map → screen-transition.provider.d.ts.map} +1 -1
  194. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +14 -0
  195. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +1 -0
  196. package/lib/typescript/shared/stores/{animation-store.d.ts → animation.store.d.ts} +2 -2
  197. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -0
  198. package/lib/typescript/shared/stores/bounds.store.d.ts +29 -0
  199. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -0
  200. package/lib/typescript/shared/stores/{gesture-store.d.ts → gesture.store.d.ts} +3 -3
  201. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -0
  202. package/lib/typescript/shared/types/{animation.d.ts → animation.types.d.ts} +48 -20
  203. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -0
  204. package/lib/typescript/shared/types/{bounds.d.ts → bounds.types.d.ts} +4 -4
  205. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -0
  206. package/lib/typescript/shared/types/{core.d.ts → core.types.d.ts} +3 -3
  207. package/lib/typescript/shared/types/core.types.d.ts.map +1 -0
  208. package/lib/typescript/shared/types/{gesture.d.ts → gesture.types.d.ts} +1 -1
  209. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -0
  210. package/lib/typescript/shared/types/{utils.d.ts → utils.types.d.ts} +1 -1
  211. package/lib/typescript/shared/types/utils.types.d.ts.map +1 -0
  212. package/lib/typescript/shared/utils/animation/derivations.d.ts +2 -4
  213. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -1
  214. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +2 -2
  215. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  216. package/lib/typescript/shared/utils/bounds/constants.d.ts +3 -3
  217. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -1
  218. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/geometry.d.ts +3 -3
  219. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -0
  220. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +1 -0
  221. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/style-composers.d.ts +2 -2
  222. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -0
  223. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/styles.d.ts +1 -1
  224. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -0
  225. package/lib/typescript/shared/utils/bounds/index.d.ts +3 -4
  226. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  227. package/lib/typescript/shared/utils/bounds/{_types → types}/builder.d.ts +13 -34
  228. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -0
  229. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -0
  230. package/lib/typescript/shared/{providers/utils → utils}/create-provider.d.ts +2 -2
  231. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -0
  232. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +2 -2
  233. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +2 -2
  235. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +2 -2
  237. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  238. package/lib/typescript/shared/utils/gesture/velocity.d.ts +1 -1
  239. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +6 -0
  240. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -0
  241. package/package.json +1 -1
  242. package/src/blank-stack/components/Overlay.tsx +5 -2
  243. package/src/blank-stack/components/Screens.tsx +1 -1
  244. package/src/blank-stack/components/StackView.tsx +7 -2
  245. package/src/blank-stack/hooks/use-overlay-animation.tsx +6 -21
  246. package/src/blank-stack/index.ts +1 -0
  247. package/src/blank-stack/types.ts +2 -2
  248. package/src/native-stack/types.ts +1 -1
  249. package/src/native-stack/views/NativeStackView.native.tsx +4 -2
  250. package/src/shared/components/controllers/screen-lifecycle.tsx +12 -10
  251. package/src/shared/components/create-transition-aware-component.tsx +23 -27
  252. package/src/shared/components/root-transition-aware.tsx +1 -1
  253. package/src/shared/configs/presets.ts +31 -17
  254. package/src/shared/constants.ts +6 -7
  255. package/src/shared/hooks/animation/use-associated-style.tsx +12 -9
  256. package/src/shared/hooks/animation/use-screen-animation.tsx +8 -26
  257. package/src/shared/hooks/gestures/use-build-gestures.tsx +5 -5
  258. package/src/shared/hooks/gestures/use-parent-gesture-registry.tsx +2 -4
  259. package/src/shared/hooks/gestures/use-scroll-registry.tsx +2 -2
  260. package/src/shared/index.ts +2 -2
  261. package/src/shared/providers/{gestures.tsx → gestures.provider.tsx} +1 -1
  262. package/src/shared/providers/{keys.tsx → keys.provider.tsx} +1 -1
  263. package/src/shared/providers/register-bounds.provider.tsx +290 -0
  264. package/src/shared/providers/{screen-transition-provider.tsx → screen-transition.provider.tsx} +3 -3
  265. package/src/shared/providers/{transition-styles.tsx → transition-styles.provider.tsx} +18 -16
  266. package/src/shared/stores/{animation-store.ts → animation.store.ts} +1 -1
  267. package/src/shared/stores/bounds.store.ts +166 -0
  268. package/src/shared/stores/{gesture-store.ts → gesture.store.ts} +2 -2
  269. package/src/shared/types/{animation.ts → animation.types.ts} +60 -19
  270. package/src/shared/types/{bounds.ts → bounds.types.ts} +3 -3
  271. package/src/shared/types/{core.ts → core.types.ts} +10 -2
  272. package/src/shared/utils/animation/derivations.ts +2 -8
  273. package/src/shared/utils/animation/start-screen-transition.ts +2 -2
  274. package/src/shared/utils/bounds/constants.ts +3 -3
  275. package/src/shared/utils/bounds/{_utils → helpers}/geometry.ts +3 -3
  276. package/src/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.ts +3 -3
  277. package/src/shared/utils/bounds/{_utils → helpers}/style-composers.ts +2 -2
  278. package/src/shared/utils/bounds/{_utils → helpers}/styles.ts +1 -1
  279. package/src/shared/utils/bounds/index.ts +53 -55
  280. package/src/shared/utils/bounds/{_types → types}/builder.ts +19 -37
  281. package/src/shared/{providers/utils → utils}/create-provider.tsx +3 -9
  282. package/src/shared/utils/gesture/apply-offset-rules.ts +2 -2
  283. package/src/shared/utils/gesture/check-gesture-activation.ts +2 -2
  284. package/src/shared/utils/gesture/reset-gesture-values.ts +2 -2
  285. package/src/shared/utils/gesture/velocity.ts +1 -1
  286. package/src/shared/utils/reset-stores-for-screen.ts +11 -0
  287. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +0 -152
  288. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  289. package/lib/commonjs/shared/hooks/use-derived-value-state.js +0 -33
  290. package/lib/commonjs/shared/hooks/use-derived-value-state.js.map +0 -1
  291. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +0 -1
  292. package/lib/commonjs/shared/providers/gestures.js.map +0 -1
  293. package/lib/commonjs/shared/providers/keys.js.map +0 -1
  294. package/lib/commonjs/shared/providers/transition-styles.js.map +0 -1
  295. package/lib/commonjs/shared/providers/utils/create-provider.js.map +0 -1
  296. package/lib/commonjs/shared/stores/bound-store/_utils.js +0 -118
  297. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +0 -1
  298. package/lib/commonjs/shared/stores/bound-store/index.js +0 -127
  299. package/lib/commonjs/shared/stores/bound-store/index.js.map +0 -1
  300. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +0 -19
  301. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  302. package/lib/commonjs/shared/types/gesture.js.map +0 -1
  303. package/lib/commonjs/shared/types/utils.js +0 -2
  304. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +0 -1
  305. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js +0 -6
  306. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  307. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js +0 -27
  308. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  309. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +0 -1
  310. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js +0 -49
  311. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  312. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +0 -19
  313. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  314. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  315. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +0 -1
  316. package/lib/module/shared/hooks/bounds/use-bound-registry.js +0 -146
  317. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  318. package/lib/module/shared/hooks/use-derived-value-state.js +0 -30
  319. package/lib/module/shared/hooks/use-derived-value-state.js.map +0 -1
  320. package/lib/module/shared/hooks/use-shared-value-state.js.map +0 -1
  321. package/lib/module/shared/providers/gestures.js.map +0 -1
  322. package/lib/module/shared/providers/keys.js.map +0 -1
  323. package/lib/module/shared/providers/transition-styles.js.map +0 -1
  324. package/lib/module/shared/providers/utils/create-provider.js.map +0 -1
  325. package/lib/module/shared/stores/bound-store/_utils.js +0 -113
  326. package/lib/module/shared/stores/bound-store/_utils.js.map +0 -1
  327. package/lib/module/shared/stores/bound-store/index.js +0 -123
  328. package/lib/module/shared/stores/bound-store/index.js.map +0 -1
  329. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +0 -15
  330. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  331. package/lib/module/shared/types/animation.js +0 -4
  332. package/lib/module/shared/types/animation.js.map +0 -1
  333. package/lib/module/shared/types/bounds.js +0 -4
  334. package/lib/module/shared/types/bounds.js.map +0 -1
  335. package/lib/module/shared/types/core.js +0 -4
  336. package/lib/module/shared/types/core.js.map +0 -1
  337. package/lib/module/shared/types/gesture.js.map +0 -1
  338. package/lib/module/shared/types/utils.js +0 -2
  339. package/lib/module/shared/types/utils.js.map +0 -1
  340. package/lib/module/shared/utils/bounds/_types/geometry.js.map +0 -1
  341. package/lib/module/shared/utils/bounds/_types/get-bounds.js +0 -4
  342. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  343. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js +0 -23
  344. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  345. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +0 -1
  346. package/lib/module/shared/utils/bounds/_utils/get-bounds.js +0 -44
  347. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  348. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +0 -14
  349. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  350. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  351. package/lib/module/shared/utils/bounds/_utils/styles.js.map +0 -1
  352. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts +0 -17
  353. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  354. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts +0 -9
  355. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts.map +0 -1
  356. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +0 -1
  357. package/lib/typescript/shared/providers/gestures.d.ts.map +0 -1
  358. package/lib/typescript/shared/providers/keys.d.ts.map +0 -1
  359. package/lib/typescript/shared/providers/transition-styles.d.ts +0 -11
  360. package/lib/typescript/shared/providers/transition-styles.d.ts.map +0 -1
  361. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +0 -1
  362. package/lib/typescript/shared/stores/animation-store.d.ts.map +0 -1
  363. package/lib/typescript/shared/stores/bound-store/_utils.d.ts +0 -24
  364. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +0 -1
  365. package/lib/typescript/shared/stores/bound-store/index.d.ts +0 -24
  366. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +0 -1
  367. package/lib/typescript/shared/stores/gesture-store.d.ts.map +0 -1
  368. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +0 -6
  369. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  370. package/lib/typescript/shared/types/animation.d.ts.map +0 -1
  371. package/lib/typescript/shared/types/bounds.d.ts.map +0 -1
  372. package/lib/typescript/shared/types/core.d.ts.map +0 -1
  373. package/lib/typescript/shared/types/gesture.d.ts.map +0 -1
  374. package/lib/typescript/shared/types/utils.d.ts.map +0 -1
  375. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +0 -1
  376. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +0 -1
  377. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts +0 -10
  378. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  379. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts +0 -2
  380. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  381. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +0 -1
  382. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts +0 -4
  383. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  384. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  385. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  386. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +0 -1
  387. package/src/shared/hooks/bounds/use-bound-registry.tsx +0 -184
  388. package/src/shared/hooks/use-derived-value-state.ts +0 -41
  389. package/src/shared/stores/bound-store/_utils.ts +0 -161
  390. package/src/shared/stores/bound-store/index.ts +0 -148
  391. package/src/shared/stores/utils/reset-stores-for-screen.ts +0 -13
  392. package/src/shared/utils/bounds/_types/get-bounds.ts +0 -10
  393. package/src/shared/utils/bounds/_utils/flatten-styles.ts +0 -21
  394. package/src/shared/utils/bounds/_utils/get-bounds.ts +0 -54
  395. /package/lib/commonjs/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  396. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  397. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  398. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  399. /package/lib/commonjs/shared/utils/bounds/{_types → types}/builder.js +0 -0
  400. /package/lib/commonjs/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  401. /package/lib/commonjs/shared/{providers/utils → utils}/create-provider.js +0 -0
  402. /package/lib/module/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  403. /package/lib/module/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  404. /package/lib/module/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  405. /package/lib/module/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  406. /package/lib/module/shared/utils/bounds/{_types → types}/builder.js +0 -0
  407. /package/lib/module/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  408. /package/lib/module/shared/{providers/utils → utils}/create-provider.js +0 -0
  409. /package/lib/typescript/shared/hooks/{use-shared-value-state.d.ts → reanimated/use-shared-value-state.d.ts} +0 -0
  410. /package/lib/typescript/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.d.ts +0 -0
  411. /package/lib/typescript/shared/utils/bounds/{_types → types}/geometry.d.ts +0 -0
  412. /package/src/shared/hooks/{use-shared-value-state.ts → reanimated/use-shared-value-state.ts} +0 -0
  413. /package/src/shared/hooks/{use-stable-callback-value.tsx → use-stable-callback-value.ts} +0 -0
  414. /package/src/shared/hooks/{use-stable-callback.tsx → use-stable-callback.ts} +0 -0
  415. /package/src/shared/types/{gesture.ts → gesture.types.ts} +0 -0
  416. /package/src/shared/types/{utils.ts → utils.types.ts} +0 -0
  417. /package/src/shared/utils/bounds/{_types → types}/geometry.ts +0 -0
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useScrollRegistry = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
- var _gestures = require("../../providers/gestures");
8
+ var _gestures = require("../../providers/gestures.provider");
9
9
  var _useStableCallback = _interopRequireDefault(require("../use-stable-callback"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const useScrollRegistry = props => {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","useSharedValueState","sharedValue","state","setState","useState","readOnUI","executeOnUIRuntimeSync","sv","value","useAnimatedReaction","runOnJS"],"sourceRoot":"../../../../../src","sources":["shared/hooks/reanimated/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 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","useMutableValue","initialValue","mutable","useState","makeMutable","useEffect","cancelAnimation","wrap","callback","isWorkletFunction","call","args","runOnJS","useStableCallbackValue","stableCallback","value","useCallback"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-stable-callback-value.t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C,GAAGC,IAAI,CAAC;EACpC,CAAC,EACD,CAACG,cAAc,CAChB,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","useMutableValue","initialValue","mutable","useState","makeMutable","useEffect","cancelAnimation","wrap","callback","isWorkletFunction","call","args","runOnJS","useStableCallbackValue","stableCallback","value","useCallback"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-stable-callback-value.ts"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AALA;AACA;AACA;AACA;;AASA;;AAGA,SAASE,eAAeA,CAAIC,YAAe,EAAE;EAC5C,MAAM,CAACC,OAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,MAAM,IAAAC,kCAAW,EAACH,YAAY,CAAC,CAAC;EAE3D,IAAAI,gBAAS,EAAC,MAAM;IACf,OAAO,MAAM;MACZ,IAAAC,sCAAe,EAACJ,OAAO,CAAC;IACzB,CAAC;EACF,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,OAAOA,OAAO;AACf;;AAEA;AACA;AACA;AACA;;AAKA,MAAMK,IAAI,GAA2BC,QAAW,IAAyB;EACxE,IAAI,IAAAC,wCAAiB,EAACD,QAAQ,CAAC,EAAE;IAChC,OAAO;MAAEE,IAAI,EAAEF;IAAS,CAAC;EAC1B;EACA,OAAO;IACNE,IAAI,EAAGA,CAAC,GAAGC,IAAmB,KAAK;MAClC,SAAS;;MACT,IAAAC,8BAAO,EAACJ,QAAQ,CAAC,CAAC,GAAGG,IAAI,CAAC;IAC3B;EACD,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASE,sBAAsBA,CAC7CL,QAAY,EACX;EACD,MAAMM,cAAc,GAAGd,eAAe,CAA4B,IAAI,CAAC;EAEvE,IAAAK,gBAAS,EAAC,MAAM;IACf,IAAIG,QAAQ,EAAE;MACbM,cAAc,CAACC,KAAK,GAAGR,IAAI,CAACC,QAAQ,CAAC;IACtC,CAAC,MAAM;MACNM,cAAc,CAACC,KAAK,GAAG,IAAI;IAC5B;EACD,CAAC,EAAE,CAACP,QAAQ,EAAEM,cAAc,CAAC,CAAC;EAE9B,OAAO,IAAAE,kBAAW,EACjB,CAAC,GAAGL,IAAmB,KAAK;IAC3B,SAAS;;IACTG,cAAc,CAACC,KAAK,EAAEL,IAAI,CAAC,GAAGC,IAAI,CAAC;EACpC,CAAC,EACD,CAACG,cAAc,CAChB,CAAC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","useStableCallback","callback","callbackRef","useRef","useEffect","current","useCallback","args"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-stable-callback.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEe,SAASC,iBAAiBA,CACxCC,QAAW,EACV;EACD,MAAMC,WAAW,GAAG,IAAAC,aAAM,EAACF,QAAQ,CAAC;EAEpC,IAAAG,gBAAS,EAAC,MAAM;IACfF,WAAW,CAACG,OAAO,GAAGJ,QAAQ;EAC/B,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEd,OAAO,IAAAK,kBAAW,EAAC,CAAC,GAAGC,IAAmB,KAAK;IAC9CL,WAAW,CAACG,OAAO,CAAC,GAAGE,IAAI,CAAC;EAC7B,CAAC,EAAE,EAAE,CAAC;AACP","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","useStableCallback","callback","callbackRef","useRef","useEffect","current","useCallback","args"],"sourceRoot":"../../../../src","sources":["shared/hooks/use-stable-callback.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEe,SAASC,iBAAiBA,CACxCC,QAAW,EACV;EACD,MAAMC,WAAW,GAAG,IAAAC,aAAM,EAACF,QAAQ,CAAC;EAEpC,IAAAG,gBAAS,EAAC,MAAM;IACfF,WAAW,CAACG,OAAO,GAAGJ,QAAQ;EAC/B,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEd,OAAO,IAAAK,kBAAW,EAAC,CAAC,GAAGC,IAAmB,KAAK;IAC9CL,WAAW,CAACG,OAAO,CAAC,GAAGE,IAAI,CAAC;EAC7B,CAAC,EAAE,EAAE,CAAC;AACP","ignoreList":[]}
@@ -56,4 +56,4 @@ const styles = _reactNative.StyleSheet.create({
56
56
  flex: 1
57
57
  }
58
58
  });
59
- //# sourceMappingURL=gestures.js.map
59
+ //# sourceMappingURL=gestures.provider.js.map
@@ -0,0 +1 @@
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.provider.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":[]}
@@ -31,4 +31,4 @@ function useKeys() {
31
31
  }
32
32
  return context;
33
33
  }
34
- //# sourceMappingURL=keys.js.map
34
+ //# sourceMappingURL=keys.provider.js.map
@@ -0,0 +1 @@
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.provider.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":[]}
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RegisterBoundsProvider = void 0;
7
+ var _native = require("@react-navigation/native");
8
+ var _react = require("react");
9
+ var _reactNativeReanimated = require("react-native-reanimated");
10
+ var _useStableCallback = _interopRequireDefault(require("../hooks/use-stable-callback"));
11
+ var _useStableCallbackValue = _interopRequireDefault(require("../hooks/use-stable-callback-value"));
12
+ var _animation = require("../stores/animation.store");
13
+ var _bounds = require("../stores/bounds.store");
14
+ var _styles = require("../utils/bounds/helpers/styles");
15
+ var _createProvider = _interopRequireDefault(require("../utils/create-provider"));
16
+ var _keys = require("./keys.provider");
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ /**
19
+ * Gets the parent screen's route key for nested navigators.
20
+ * Returns undefined if we're not inside a nested navigator.
21
+ */
22
+ const getParentScreenKey = current => {
23
+ const parent = current.navigation.getParent();
24
+ if (!parent) return undefined;
25
+ const parentState = parent.getState();
26
+ if (!parentState?.routes) return undefined;
27
+
28
+ // Check if our route key exists directly in parent's routes
29
+ const existsInParent = parentState.routes.some(r => r.key === current.route.key);
30
+
31
+ // If we don't exist in parent's routes, we're nested inside the focused route
32
+ if (!existsInParent && parentState.index !== undefined) {
33
+ return parentState.routes[parentState.index]?.key;
34
+ }
35
+ return undefined;
36
+ };
37
+
38
+ /**
39
+ * Handles initial layout measurement for destination elements.
40
+ * Only measures if an animation is in progress (local or parent).
41
+ */
42
+ const useInitialLayoutHandler = params => {
43
+ const {
44
+ sharedBoundTag,
45
+ currentScreenKey,
46
+ parentScreenKey,
47
+ maybeMeasureAndStore
48
+ } = params;
49
+ const isAnimating = _animation.AnimationStore.getAnimation(currentScreenKey, "animating");
50
+ const isParentAnimating = parentScreenKey ? _animation.AnimationStore.getAnimation(parentScreenKey, "animating") : null;
51
+ const hasMeasuredOnLayout = (0, _reactNativeReanimated.useSharedValue)(false);
52
+ return (0, _react.useCallback)(() => {
53
+ "worklet";
54
+
55
+ if (!sharedBoundTag || hasMeasuredOnLayout.value) return;
56
+ if (!isAnimating.value && !isParentAnimating?.value) return;
57
+ maybeMeasureAndStore({
58
+ shouldSetSource: false,
59
+ shouldSetDestination: true
60
+ });
61
+ hasMeasuredOnLayout.value = true;
62
+ }, [sharedBoundTag, hasMeasuredOnLayout, isAnimating, isParentAnimating, maybeMeasureAndStore]);
63
+ };
64
+
65
+ /**
66
+ * Measures non-pressable elements when screen becomes blurred.
67
+ * Captures bounds right before transition starts.
68
+ */
69
+ const useBlurMeasurement = params => {
70
+ const {
71
+ sharedBoundTag,
72
+ maybeMeasureAndStore
73
+ } = params;
74
+ const isFocused = (0, _react.useRef)(true);
75
+ const hasCapturedSource = (0, _react.useRef)(false);
76
+ (0, _native.useFocusEffect)((0, _react.useCallback)(() => {
77
+ isFocused.current = true;
78
+ hasCapturedSource.current = false;
79
+ return () => {
80
+ if (!sharedBoundTag) return;
81
+ if (hasCapturedSource.current) return;
82
+ isFocused.current = false;
83
+ (0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({
84
+ shouldSetSource: true
85
+ });
86
+ };
87
+ }, [sharedBoundTag, maybeMeasureAndStore]));
88
+ return {
89
+ markSourceCaptured: () => {
90
+ hasCapturedSource.current = true;
91
+ }
92
+ };
93
+ };
94
+
95
+ /**
96
+ * Syncs child measurements when parent updates.
97
+ */
98
+ const useParentSyncReaction = params => {
99
+ const {
100
+ parentContext,
101
+ maybeMeasureAndStore
102
+ } = params;
103
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => parentContext?.updateSignal.value, value => {
104
+ "worklet";
105
+
106
+ if (value === 0 || value === undefined) return;
107
+ maybeMeasureAndStore();
108
+ });
109
+ };
110
+ const {
111
+ RegisterBoundsProvider,
112
+ useRegisterBoundsContext
113
+ } = (0, _createProvider.default)("RegisterBounds", {
114
+ guarded: false
115
+ })(({
116
+ style,
117
+ onPress,
118
+ sharedBoundTag,
119
+ animatedRef,
120
+ children
121
+ }) => {
122
+ const {
123
+ current
124
+ } = (0, _keys.useKeys)();
125
+ const currentScreenKey = current.route.key;
126
+ const parentScreenKey = getParentScreenKey(current);
127
+
128
+ // Context & signals
129
+ const parentContext = useRegisterBoundsContext();
130
+ const ownSignal = (0, _reactNativeReanimated.useSharedValue)(0);
131
+ const updateSignal = parentContext?.updateSignal ?? ownSignal;
132
+ const isAnimating = _animation.AnimationStore.getAnimation(currentScreenKey, "animating");
133
+ const preparedStyles = (0, _react.useMemo)(() => (0, _styles.prepareStyleForBounds)(style), [style]);
134
+ const emitUpdate = (0, _useStableCallbackValue.default)(() => {
135
+ "worklet";
136
+
137
+ const isRoot = !parentContext;
138
+ if (isRoot) updateSignal.value = updateSignal.value + 1;
139
+ });
140
+ const maybeMeasureAndStore = (0, _useStableCallbackValue.default)(({
141
+ onPress,
142
+ shouldSetSource,
143
+ shouldSetDestination
144
+ } = {}) => {
145
+ "worklet";
146
+
147
+ if (!sharedBoundTag) return;
148
+ const measured = (0, _reactNativeReanimated.measure)(animatedRef);
149
+ if (!measured) return;
150
+ emitUpdate();
151
+
152
+ // Always register occurrence
153
+ _bounds.BoundStore.registerOccurrence(sharedBoundTag, currentScreenKey, measured, preparedStyles);
154
+
155
+ // Set as source (on press or blur)
156
+ if (shouldSetSource) {
157
+ if (isAnimating.value) {
158
+ const existing = _bounds.BoundStore.getOccurrence(sharedBoundTag, currentScreenKey);
159
+ _bounds.BoundStore.setLinkSource(sharedBoundTag, currentScreenKey, existing.bounds, preparedStyles, parentScreenKey);
160
+ return;
161
+ }
162
+ _bounds.BoundStore.setLinkSource(sharedBoundTag, currentScreenKey, measured, preparedStyles, parentScreenKey);
163
+ }
164
+
165
+ // Set as destination (on mount during animation)
166
+ if (shouldSetDestination) {
167
+ _bounds.BoundStore.setLinkDestination(sharedBoundTag, currentScreenKey, measured, preparedStyles, parentScreenKey);
168
+ }
169
+ if (onPress) (0, _reactNativeReanimated.runOnJS)(onPress)();
170
+ });
171
+ const handleInitialLayout = useInitialLayoutHandler({
172
+ sharedBoundTag,
173
+ currentScreenKey,
174
+ parentScreenKey,
175
+ maybeMeasureAndStore
176
+ });
177
+
178
+ // Side effects
179
+ const {
180
+ markSourceCaptured
181
+ } = useBlurMeasurement({
182
+ sharedBoundTag,
183
+ maybeMeasureAndStore
184
+ });
185
+ useParentSyncReaction({
186
+ parentContext,
187
+ maybeMeasureAndStore
188
+ });
189
+ const captureActiveOnPress = (0, _useStableCallback.default)(() => {
190
+ if (!sharedBoundTag) {
191
+ onPress?.();
192
+ return;
193
+ }
194
+ (0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({
195
+ onPress,
196
+ shouldSetSource: true
197
+ });
198
+ markSourceCaptured();
199
+ });
200
+ return {
201
+ value: {
202
+ updateSignal
203
+ },
204
+ children: children({
205
+ handleInitialLayout,
206
+ captureActiveOnPress
207
+ })
208
+ };
209
+ });
210
+ exports.RegisterBoundsProvider = RegisterBoundsProvider;
211
+ //# sourceMappingURL=register-bounds.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_native","require","_react","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","_useStableCallbackValue","_animation","_bounds","_styles","_createProvider","_keys","e","__esModule","default","getParentScreenKey","current","parent","navigation","getParent","undefined","parentState","getState","routes","existsInParent","some","r","key","route","index","useInitialLayoutHandler","params","sharedBoundTag","currentScreenKey","parentScreenKey","maybeMeasureAndStore","isAnimating","AnimationStore","getAnimation","isParentAnimating","hasMeasuredOnLayout","useSharedValue","useCallback","value","shouldSetSource","shouldSetDestination","useBlurMeasurement","isFocused","useRef","hasCapturedSource","useFocusEffect","runOnUI","markSourceCaptured","useParentSyncReaction","parentContext","useAnimatedReaction","updateSignal","RegisterBoundsProvider","useRegisterBoundsContext","createProvider","guarded","style","onPress","animatedRef","children","useKeys","ownSignal","preparedStyles","useMemo","prepareStyleForBounds","emitUpdate","useStableCallbackValue","isRoot","measured","measure","BoundStore","registerOccurrence","existing","getOccurrence","setLinkSource","bounds","setLinkDestination","runOnJS","handleInitialLayout","captureActiveOnPress","useStableCallback","exports"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AAUA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAA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AC;EAEFkB,qBAAqB,CAAC;IAAEC,aAAa;IAAEnB;EAAqB,CAAC,CAAC;EAE9D,MAAMiD,oBAAoB,GAAG,IAAAC,0BAAiB,EAAC,MAAM;IACpD,IAAI,CAACrD,cAAc,EAAE;MACpB8B,OAAO,GAAG,CAAC;MACX;IACD;IACA,IAAAX,8BAAO,EAAChB,oBAAoB,CAAC,CAAC;MAAE2B,OAAO;MAAElB,eAAe,EAAE;IAAK,CAAC,CAAC;IACjEQ,kBAAkB,CAAC,CAAC;EACrB,CAAC,CAAC;EAEF,OAAO;IACNT,KAAK,EAAE;MAAEa;IAAa,CAAC;IACvBQ,QAAQ,EAAEA,QAAQ,CAAC;MAAEmB,mBAAmB;MAAEC;IAAqB,CAAC;EACjE,CAAC;AACF,CACD,CAAC;AAACE,OAAA,CAAA7B,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ScreenTransitionProvider = ScreenTransitionProvider;
7
7
  var _rootTransitionAware = require("../components/root-transition-aware");
8
- var _gestures = require("../providers/gestures");
9
- var _keys = require("../providers/keys");
10
- var _transitionStyles = require("../providers/transition-styles");
8
+ var _gestures = require("./gestures.provider");
9
+ var _keys = require("./keys.provider");
10
+ var _transitionStyles = require("./transition-styles.provider");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function ScreenTransitionProvider({
13
13
  previous,
@@ -31,4 +31,4 @@ function ScreenTransitionProvider({
31
31
  })
32
32
  });
33
33
  }
34
- //# sourceMappingURL=screen-transition-provider.js.map
34
+ //# sourceMappingURL=screen-transition.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_rootTransitionAware","require","_gestures","_keys","_transitionStyles","_jsxRuntime","ScreenTransitionProvider","previous","current","next","children","LifecycleController","jsx","KeysProvider","ScreenGestureProvider","TransitionStylesProvider","RootTransitionAware"],"sourceRoot":"../../../../src","sources":["shared/providers/screen-transition-provider.tsx"],"mappings":";;;;;;AAGA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAA0E,IAAAI,WAAA,GAAAJ,OAAA;AAUnE,SAASK,wBAAwBA,CAEtC;EACDC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC;AACmB,CAAC,EAAE;EACtB,oBACC,IAAAN,WAAA,CAAAO,GAAA,EAACT,KAAA,CAAAU,YAAY;IACZN,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,IAAI,EAAEA,IAAK;IAAAC,QAAA,eAEX,IAAAL,WAAA,CAAAO,GAAA,EAACV,SAAA,CAAAY,qBAAqB;MAAAJ,QAAA,eACrB,IAAAL,WAAA,CAAAO,GAAA,EAACD,mBAAmB;QAAAD,QAAA,eACnB,IAAAL,WAAA,CAAAO,GAAA,EAACR,iBAAA,CAAAW,wBAAwB;UAAAL,QAAA,eACxB,IAAAL,WAAA,CAAAO,GAAA,EAACZ,oBAAA,CAAAgB,mBAAmB;YAAAN,QAAA,EAAEA;UAAQ,CAAsB;QAAC,CAC5B;MAAC,CACP;IAAC,CACA;EAAC,CACX,CAAC;AAEjB","ignoreList":[]}
1
+ {"version":3,"names":["_rootTransitionAware","require","_gestures","_keys","_transitionStyles","_jsxRuntime","ScreenTransitionProvider","previous","current","next","children","LifecycleController","jsx","KeysProvider","ScreenGestureProvider","TransitionStylesProvider","RootTransitionAware"],"sourceRoot":"../../../../src","sources":["shared/providers/screen-transition.provider.tsx"],"mappings":";;;;;;AAGA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAAwE,IAAAI,WAAA,GAAAJ,OAAA;AAUjE,SAASK,wBAAwBA,CAEtC;EACDC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC;AACmB,CAAC,EAAE;EACtB,oBACC,IAAAN,WAAA,CAAAO,GAAA,EAACT,KAAA,CAAAU,YAAY;IACZN,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,IAAI,EAAEA,IAAK;IAAAC,QAAA,eAEX,IAAAL,WAAA,CAAAO,GAAA,EAACV,SAAA,CAAAY,qBAAqB;MAAAJ,QAAA,eACrB,IAAAL,WAAA,CAAAO,GAAA,EAACD,mBAAmB;QAAAD,QAAA,eACnB,IAAAL,WAAA,CAAAO,GAAA,EAACR,iBAAA,CAAAW,wBAAwB;UAAAL,QAAA,eACxB,IAAAL,WAAA,CAAAO,GAAA,EAACZ,oBAAA,CAAAgB,mBAAmB;YAAAN,QAAA,EAAEA;UAAQ,CAAsB;QAAC,CAC5B;MAAC,CACP;IAAC,CACA;EAAC,CACX,CAAC;AAEjB","ignoreList":[]}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.TransitionStylesContext = void 0;
6
7
  exports.TransitionStylesProvider = TransitionStylesProvider;
7
8
  exports.useTransitionStyles = useTransitionStyles;
8
9
  var _react = require("react");
@@ -11,10 +12,11 @@ var _constants = require("../constants");
11
12
  var _useScreenAnimation2 = require("../hooks/animation/use-screen-animation");
12
13
  var _bounds = require("../utils/bounds");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
14
- const TransitionStylesContext = /*#__PURE__*/(0, _react.createContext)(null);
15
+ const TransitionStylesContext = exports.TransitionStylesContext = /*#__PURE__*/(0, _react.createContext)(null);
15
16
  function TransitionStylesProvider({
16
17
  children
17
18
  }) {
19
+ const parentCtx = (0, _react.useContext)(TransitionStylesContext);
18
20
  const {
19
21
  screenInterpolatorProps,
20
22
  screenStyleInterpolator
@@ -22,11 +24,6 @@ function TransitionStylesProvider({
22
24
  const stylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
23
25
  "worklet";
24
26
 
25
- /**
26
- * ### Maintainer note
27
- *
28
- * From my understanding, reanimated will serialize the DerivedValue result. Thus resulting in us receiving a `bounds is not a function, it is an object` error. We'll build the bounds function inside here (the final step) and pass it alongside the interpolator instead.
29
- */
30
27
  const props = screenInterpolatorProps.value;
31
28
  const bounds = (0, _bounds.createBounds)(props);
32
29
  try {
@@ -43,10 +40,13 @@ function TransitionStylesProvider({
43
40
  }
44
41
  });
45
42
  const value = (0, _react.useMemo)(() => {
43
+ // Build ancestor chain: [parent, grandparent, great-grandparent, ...]
44
+ const ancestorStylesMaps = parentCtx ? [parentCtx.stylesMap, ...parentCtx.ancestorStylesMaps] : [];
46
45
  return {
47
- stylesMap
46
+ stylesMap,
47
+ ancestorStylesMaps
48
48
  };
49
- }, [stylesMap]);
49
+ }, [stylesMap, parentCtx]);
50
50
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionStylesContext.Provider, {
51
51
  value: value,
52
52
  children: children
@@ -59,4 +59,4 @@ function useTransitionStyles() {
59
59
  }
60
60
  return ctx;
61
61
  }
62
- //# sourceMappingURL=transition-styles.js.map
62
+ //# sourceMappingURL=transition-styles.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_useScreenAnimation2","_bounds","_jsxRuntime","TransitionStylesContext","exports","createContext","TransitionStylesProvider","children","parentCtx","useContext","screenInterpolatorProps","screenStyleInterpolator","_useScreenAnimation","stylesMap","useDerivedValue","props","value","bounds","createBounds","NO_STYLES","err","__DEV__","console","warn","useMemo","ancestorStylesMaps","jsx","Provider","useTransitionStyles","ctx","Error"],"sourceRoot":"../../../../src","sources":["shared/providers/transition-styles.provider.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,GAA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mBAAmBA,CAAA,EAAG;EACrC,MAAMC,GAAG,GAAG,IAAApB,iBAAU,EAACN,uBAAuB,CAAC;EAC/C,IAAI,CAAC0B,GAAG,EAAE;IACT,MAAM,IAAIC,KAAK,CACd,oEACD,CAAC;EACF;EACA,OAAOD,GAAG;AACX","ignoreList":[]}
@@ -45,4 +45,4 @@ const AnimationStore = exports.AnimationStore = {
45
45
  getAll,
46
46
  debugStoreSize
47
47
  };
48
- //# sourceMappingURL=animation-store.js.map
48
+ //# sourceMappingURL=animation.store.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","store","ensure","key","bag","progress","makeMutable","closing","animating","getAnimation","type","getAll","clear","routeKey","cancelAnimation","debugStoreSize","console","log","Object","keys","length","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation-store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAaA,MAAMC,KAA2C,GAAG,CAAC,CAAC;AAEtD,MAAMC,MAAM,GAAIC,GAAc,IAAK;EAClC,IAAIC,GAAG,GAAGH,KAAK,CAACE,GAAG,CAAC;EACpB,IAAI,CAACC,GAAG,EAAE;IACTA,GAAG,GAAG;MACLC,QAAQ,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;MACxBC,OAAO,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;MACvBE,SAAS,EAAE,IAAAF,kCAAW,EAAC,CAAC;IACzB,CAAC;IACDL,KAAK,CAACE,GAAG,CAAC,GAAGC,GAAG;EACjB;EACA,OAAOA,GAAG;AACX,CAAC;AAED,SAASK,YAAYA,CACpBN,GAAc,EACdO,IAA0C,EACpB;EACtB,OAAOR,MAAM,CAACC,GAAG,CAAC,CAACO,IAAI,CAAC;AACzB;AAEA,SAASC,MAAMA,CAACR,GAAc,EAAE;EAC/B,OAAOD,MAAM,CAACC,GAAG,CAAC;AACnB;AAEA,SAASS,KAAKA,CAACC,QAAmB,EAAE;EACnC,SAAS;;EACT,MAAMT,GAAG,GAAGH,KAAK,CAACY,QAAQ,CAAC;EAC3B,IAAIT,GAAG,EAAE;IACR,IAAAU,sCAAe,EAACV,GAAG,CAACC,QAAQ,CAAC;IAC7B,IAAAS,sCAAe,EAACV,GAAG,CAACG,OAAO,CAAC;IAC5B,IAAAO,sCAAe,EAACV,GAAG,CAACI,SAAS,CAAC;EAC/B;EACA,OAAOP,KAAK,CAACY,QAAQ,CAAC;AACvB;AAEA,SAASE,cAAcA,CAAA,EAAG;EACzBC,OAAO,CAACC,GAAG,CAAC,wBAAwB,EAAEC,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC,CAACmB,MAAM,CAAC;EAChEJ,OAAO,CAACC,GAAG,CAAC,wBAAwB,EAAEC,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC,CAAC;AAC1D;AAEO,MAAMoB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC7BZ,YAAY;EACZG,KAAK;EACLD,MAAM;EACNI;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","store","ensure","key","bag","progress","makeMutable","closing","animating","getAnimation","type","getAll","clear","routeKey","cancelAnimation","debugStoreSize","console","log","Object","keys","length","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAaA,MAAMC,KAA2C,GAAG,CAAC,CAAC;AAEtD,MAAMC,MAAM,GAAIC,GAAc,IAAK;EAClC,IAAIC,GAAG,GAAGH,KAAK,CAACE,GAAG,CAAC;EACpB,IAAI,CAACC,GAAG,EAAE;IACTA,GAAG,GAAG;MACLC,QAAQ,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;MACxBC,OAAO,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;MACvBE,SAAS,EAAE,IAAAF,kCAAW,EAAC,CAAC;IACzB,CAAC;IACDL,KAAK,CAACE,GAAG,CAAC,GAAGC,GAAG;EACjB;EACA,OAAOA,GAAG;AACX,CAAC;AAED,SAASK,YAAYA,CACpBN,GAAc,EACdO,IAA0C,EACpB;EACtB,OAAOR,MAAM,CAACC,GAAG,CAAC,CAACO,IAAI,CAAC;AACzB;AAEA,SAASC,MAAMA,CAACR,GAAc,EAAE;EAC/B,OAAOD,MAAM,CAACC,GAAG,CAAC;AACnB;AAEA,SAASS,KAAKA,CAACC,QAAmB,EAAE;EACnC,SAAS;;EACT,MAAMT,GAAG,GAAGH,KAAK,CAACY,QAAQ,CAAC;EAC3B,IAAIT,GAAG,EAAE;IACR,IAAAU,sCAAe,EAACV,GAAG,CAACC,QAAQ,CAAC;IAC7B,IAAAS,sCAAe,EAACV,GAAG,CAACG,OAAO,CAAC;IAC5B,IAAAO,sCAAe,EAACV,GAAG,CAACI,SAAS,CAAC;EAC/B;EACA,OAAOP,KAAK,CAACY,QAAQ,CAAC;AACvB;AAEA,SAASE,cAAcA,CAAA,EAAG;EACzBC,OAAO,CAACC,GAAG,CAAC,wBAAwB,EAAEC,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC,CAACmB,MAAM,CAAC;EAChEJ,OAAO,CAACC,GAAG,CAAC,wBAAwB,EAAEC,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC,CAAC;AAC1D;AAEO,MAAMoB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC7BZ,YAAY;EACZG,KAAK;EACLD,MAAM;EACNI;AACD,CAAC","ignoreList":[]}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BoundStore = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ /**
9
+ * Note on cleanup: We intentionally skip automatic cleanup of old links.
10
+ * The linkStack grows by one entry per navigation, but `getActiveLink`
11
+ * finds the correct link via screenKey matching regardless of stack size.
12
+ * This is unlikely to cause performance issues in typical apps, but if
13
+ * memory becomes a concern in apps with heavy navigation (hundreds of
14
+ * transitions), we should consider implementing cleanup on screen unmount using
15
+ * screenKey filtering.
16
+ */
17
+
18
+ const registry = (0, _reactNativeReanimated.makeMutable)({});
19
+ function registerOccurrence(tag, screenKey, bounds, styles = {}) {
20
+ "worklet";
21
+
22
+ registry.modify(state => {
23
+ "worklet";
24
+
25
+ if (!state[tag]) {
26
+ state[tag] = {
27
+ occurrences: {},
28
+ linkStack: []
29
+ };
30
+ }
31
+ state[tag].occurrences[screenKey] = {
32
+ bounds,
33
+ styles
34
+ };
35
+ return state;
36
+ });
37
+ }
38
+ function setLinkSource(tag, screenKey, bounds, styles = {}, parentScreenKey) {
39
+ "worklet";
40
+
41
+ registry.modify(state => {
42
+ "worklet";
43
+
44
+ if (!state[tag]) state[tag] = {
45
+ occurrences: {},
46
+ linkStack: []
47
+ };
48
+
49
+ // Push new link onto stack
50
+ state[tag].linkStack.push({
51
+ source: {
52
+ screenKey,
53
+ parentScreenKey,
54
+ bounds,
55
+ styles
56
+ },
57
+ destination: null
58
+ });
59
+ return state;
60
+ });
61
+ }
62
+ function setLinkDestination(tag, screenKey, bounds, styles = {}, parentScreenKey) {
63
+ "worklet";
64
+
65
+ registry.modify(state => {
66
+ "worklet";
67
+
68
+ const stack = state[tag]?.linkStack;
69
+ if (!stack || stack.length === 0) return state;
70
+
71
+ // Find the topmost link without a destination
72
+ for (let i = stack.length - 1; i >= 0; i--) {
73
+ if (stack[i].destination === null) {
74
+ stack[i].destination = {
75
+ screenKey,
76
+ parentScreenKey,
77
+ bounds,
78
+ styles
79
+ };
80
+ break;
81
+ }
82
+ }
83
+ return state;
84
+ });
85
+ }
86
+ function getOccurrence(tag, key) {
87
+ "worklet";
88
+
89
+ return registry.value[tag]?.occurrences[key] ?? null;
90
+ }
91
+
92
+ // Helper to check if a screen identifier matches a given key
93
+ function matchesScreenKey(identifier, key) {
94
+ "worklet";
95
+
96
+ if (!identifier) return false;
97
+ return identifier.screenKey === key || identifier.parentScreenKey === key;
98
+ }
99
+ function getActiveLink(tag, screenKey, isClosing) {
100
+ "worklet";
101
+
102
+ const stack = registry.value[tag]?.linkStack;
103
+ if (!stack || stack.length === 0) {
104
+ return null;
105
+ }
106
+
107
+ // If screenKey provided, find link involving that screen
108
+ if (screenKey) {
109
+ // When closing (backward nav), we want the link where this screen is the DESTINATION
110
+ // When opening (forward nav), we want the link where this screen is the DESTINATION too
111
+ // The source is always the "from" screen, destination is the "to" screen
112
+
113
+ if (isClosing) {
114
+ // Backward: find link where I am the destination (I'm going back to source)
115
+ for (let i = stack.length - 1; i >= 0; i--) {
116
+ const link = stack[i];
117
+ if (matchesScreenKey(link.destination, screenKey)) {
118
+ return link;
119
+ }
120
+ }
121
+ }
122
+
123
+ // Forward or fallback: find any link involving this screen
124
+ for (let i = stack.length - 1; i >= 0; i--) {
125
+ const link = stack[i];
126
+ if (matchesScreenKey(link.source, screenKey) || matchesScreenKey(link.destination, screenKey)) {
127
+ return link;
128
+ }
129
+ }
130
+ return null;
131
+ }
132
+ return stack[stack.length - 1] ?? null;
133
+ }
134
+ const BoundStore = exports.BoundStore = {
135
+ registerOccurrence,
136
+ setLinkSource,
137
+ setLinkDestination,
138
+ getActiveLink,
139
+ getOccurrence
140
+ };
141
+ //# sourceMappingURL=bounds.store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","registry","makeMutable","registerOccurrence","tag","screenKey","bounds","styles","modify","state","occurrences","linkStack","setLinkSource","parentScreenKey","push","source","destination","setLinkDestination","stack","length","i","getOccurrence","key","value","matchesScreenKey","identifier","getActiveLink","isClosing","link","BoundStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/bounds.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,QAAQ,GAAG,IAAAC,kCAAW,EAA0B,CAAC,CAAC,CAAC;AAEzD,SAASC,kBAAkBA,CAC1BC,GAA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IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;QAC3C,MAAMQ,IAAI,GAAGV,KAAK,CAACE,CAAC,CAAC;QACrB,IAAII,gBAAgB,CAACI,IAAI,CAACZ,WAAW,EAAEX,SAAS,CAAC,EAAE;UAClD,OAAOuB,IAAI;QACZ;MACD;IACD;;IAEA;IACA,KAAK,IAAIR,CAAC,GAAGF,KAAK,CAACC,MAAM,GAAG,CAAC,EAAEC,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MAC3C,MAAMQ,IAAI,GAAGV,KAAK,CAACE,CAAC,CAAC;MACrB,IACCI,gBAAgB,CAACI,IAAI,CAACb,MAAM,EAAEV,SAAS,CAAC,IACxCmB,gBAAgB,CAACI,IAAI,CAACZ,WAAW,EAAEX,SAAS,CAAC,EAC5C;QACD,OAAOuB,IAAI;MACZ;IACD;IACA,OAAO,IAAI;EACZ;EAEA,OAAOV,KAAK,CAACA,KAAK,CAACC,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI;AACvC;AAEO,MAAMU,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACzB1B,kBAAkB;EAClBS,aAAa;EACbK,kBAAkB;EAClBS,aAAa;EACbL;AACD,CAAC","ignoreList":[]}
@@ -46,4 +46,4 @@ const GestureStore = exports.GestureStore = {
46
46
  getRouteGestures,
47
47
  clear
48
48
  };
49
- //# sourceMappingURL=gesture-store.js.map
49
+ //# sourceMappingURL=gesture.store.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","store","ensure","routeKey","bag","x","makeMutable","y","normalizedX","normalizedY","isDismissing","isDragging","direction","getGesture","gestureKey","getRouteGestures","clear","cancelAnimation","GestureStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture-store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AA0BA,MAAMC,KAAyC,GAAG,CAAC,CAAC;AAEpD,SAASC,MAAMA,CAACC,QAAmB,EAAmB;E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OAAOX,KAAK,CAACE,QAAQ,CAAC;AACvB;AAEO,MAAMe,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC3BL,UAAU;EACVE,gBAAgB;EAChBC;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","store","ensure","routeKey","bag","x","makeMutable","y","normalizedX","normalizedY","isDismissing","isDragging","direction","getGesture","gestureKey","getRouteGestures","clear","cancelAnimation","GestureStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AA0BA,MAAMC,KAAyC,GAAG,CAAC,CAAC;AAEpD,SAASC,MAAMA,CAACC,QAAmB,EAAmB;EACrD,IAAIC,GAAG,GAAGH,KAAK,CAACE,QAAQ,CAAC;EACzB,IAAI,CAACC,GAAG,EAAE;IACTA,GAAG,GAAG;MACLC,CAAC,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;MACjBC,CAAC,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;MACjBE,WAAW,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;MAC3BG,WAAW,EAAE,IAAAH,kCAAW,EAAC,CAAC,CAAC;MAC3BI,YAAY,EAAE,IAAAJ,kCAAW,EAAC,CAAC,CAAC;MAC5BK,UAAU,EAAE,IAAAL,kCAAW,EAAC,CAAC,CAAC;MAC1BM,SAAS,EAAE,IAAAN,kCAAW,EACrB,IACD;IACD,CAAC;IACDL,KAAK,CAACE,QAAQ,CAAC,GAAGC,GAAG;EACtB;EACA,OAAOA,GAAG;AACX;AAEA,SAASS,UAAUA,CAACV,QAAmB,EAAEW,UAAsB,EAAE;EAChE,OAAOZ,MAAM,CAACC,QAAQ,CAAC,CAACW,UAAU,CAAC;AACpC;AAEA,SAASC,gBAAgBA,CAACZ,QAAmB,EAAE;EAC9C,OAAOD,MAAM,CAACC,QAAQ,CAAC;AACxB;AAEA,SAASa,KAAKA,CAACb,QAAmB,EAAE;EACnC,MAAMC,GAAG,GAAGH,KAAK,CAACE,QAAQ,CAAC;EAC3B,IAAIC,GAAG,EAAE;IACR,IAAAa,sCAAe,EAACb,GAAG,CAACC,CAAC,CAAC;IACtB,IAAAY,sCAAe,EAACb,GAAG,CAACG,CAAC,CAAC;IACtB,IAAAU,sCAAe,EAACb,GAAG,CAACI,WAAW,CAAC;IAChC,IAAAS,sCAAe,EAACb,GAAG,CAACK,WAAW,CAAC;IAChC,IAAAQ,sCAAe,EAACb,GAAG,CAACM,YAAY,CAAC;IACjC,IAAAO,sCAAe,EAACb,GAAG,CAACO,UAAU,CAAC;IAC/B,IAAAM,sCAAe,EAACb,GAAG,CAACQ,SAAS,CAAC;EAC/B;EACA,OAAOX,KAAK,CAACE,QAAQ,CAAC;AACvB;AAEO,MAAMe,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC3BL,UAAU;EACVE,gBAAgB;EAChBC;AACD,CAAC","ignoreList":[]}
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- //# sourceMappingURL=core.js.map
6
+ //# sourceMappingURL=animation.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":"","ignoreList":[]}
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- //# sourceMappingURL=bounds.js.map
6
+ //# sourceMappingURL=bounds.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/bounds.types.ts"],"mappings":"","ignoreList":[]}
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- //# sourceMappingURL=animation.js.map
6
+ //# sourceMappingURL=core.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/animation.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/core.types.ts"],"mappings":"","ignoreList":[]}
@@ -10,4 +10,4 @@ let GestureOffsetState = exports.GestureOffsetState = /*#__PURE__*/function (Ges
10
10
  GestureOffsetState[GestureOffsetState["FAILED"] = 2] = "FAILED";
11
11
  return GestureOffsetState;
12
12
  }({});
13
- //# sourceMappingURL=gesture.js.map
13
+ //# sourceMappingURL=gesture.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GestureOffsetState","exports"],"sourceRoot":"../../../../src","sources":["shared/types/gesture.types.ts"],"mappings":";;;;;;IAgBYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=utils.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/core.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/utils.types.ts"],"mappings":"","ignoreList":[]}