react-native-screen-transitions 3.0.0-beta.1 → 3.0.0-beta.11

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 (429) hide show
  1. package/README.md +60 -5
  2. package/lib/commonjs/blank-stack/components/Overlay.js +20 -6
  3. package/lib/commonjs/blank-stack/components/Overlay.js.map +1 -1
  4. package/lib/commonjs/blank-stack/components/Screens.js +5 -5
  5. package/lib/commonjs/blank-stack/components/Screens.js.map +1 -1
  6. package/lib/commonjs/blank-stack/components/StackView.js +14 -8
  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 +25 -11
  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 +48 -36
  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 +7 -1
  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} +7 -4
  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 +207 -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} +7 -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} +13 -4
  47. package/lib/commonjs/shared/stores/animation.store.js.map +1 -0
  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} +11 -1
  51. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -0
  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 +51 -0
  74. package/lib/commonjs/shared/utils/create-provider.js.map +1 -0
  75. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +1 -1
  76. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js +1 -1
  77. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +17 -0
  78. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -0
  79. package/lib/module/blank-stack/components/Overlay.js +20 -6
  80. package/lib/module/blank-stack/components/Overlay.js.map +1 -1
  81. package/lib/module/blank-stack/components/Screens.js +4 -4
  82. package/lib/module/blank-stack/components/Screens.js.map +1 -1
  83. package/lib/module/blank-stack/components/StackView.js +12 -7
  84. package/lib/module/blank-stack/components/StackView.js.map +1 -1
  85. package/lib/module/blank-stack/hooks/use-overlay-animation.js +5 -9
  86. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  87. package/lib/module/blank-stack/index.js +1 -0
  88. package/lib/module/blank-stack/index.js.map +1 -1
  89. package/lib/module/native-stack/views/NativeStackView.native.js +3 -2
  90. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  91. package/lib/module/shared/components/controllers/screen-lifecycle.js +24 -10
  92. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -1
  93. package/lib/module/shared/components/create-transition-aware-component.js +11 -14
  94. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  95. package/lib/module/shared/components/root-transition-aware.js +1 -1
  96. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  97. package/lib/module/shared/configs/presets.js +20 -9
  98. package/lib/module/shared/configs/presets.js.map +1 -1
  99. package/lib/module/shared/constants.js +0 -1
  100. package/lib/module/shared/constants.js.map +1 -1
  101. package/lib/module/shared/hooks/animation/use-associated-style.js +9 -10
  102. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  103. package/lib/module/shared/hooks/animation/use-screen-animation.js +7 -22
  104. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  105. package/lib/module/shared/hooks/gestures/use-build-gestures.js +46 -34
  106. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  107. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  108. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  109. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  110. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  111. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  112. package/lib/module/shared/hooks/use-stable-callback-value.js +8 -2
  113. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  114. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -1
  115. package/lib/module/shared/providers/{gestures.js → gestures.provider.js} +7 -4
  116. package/lib/module/shared/providers/gestures.provider.js.map +1 -0
  117. package/lib/module/shared/providers/{keys.js → keys.provider.js} +1 -1
  118. package/lib/module/shared/providers/keys.provider.js.map +1 -0
  119. package/lib/module/shared/providers/register-bounds.provider.js +202 -0
  120. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -0
  121. package/lib/module/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  122. package/lib/module/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  123. package/lib/module/shared/providers/{transition-styles.js → transition-styles.provider.js} +6 -9
  124. package/lib/module/shared/providers/transition-styles.provider.js.map +1 -0
  125. package/lib/module/shared/stores/animation.store.js +44 -0
  126. package/lib/module/shared/stores/animation.store.js.map +1 -0
  127. package/lib/module/shared/stores/bounds.store.js +137 -0
  128. package/lib/module/shared/stores/bounds.store.js.map +1 -0
  129. package/lib/module/shared/stores/{gesture-store.js → gesture.store.js} +12 -2
  130. package/lib/module/shared/stores/gesture.store.js.map +1 -0
  131. package/lib/module/shared/types/animation.types.js +4 -0
  132. package/lib/module/shared/types/animation.types.js.map +1 -0
  133. package/lib/module/shared/types/bounds.types.js +4 -0
  134. package/lib/module/shared/types/bounds.types.js.map +1 -0
  135. package/lib/module/shared/types/core.types.js +4 -0
  136. package/lib/{commonjs/shared/types/bounds.js.map → module/shared/types/core.types.js.map} +1 -1
  137. package/lib/module/shared/types/{gesture.js → gesture.types.js} +1 -1
  138. package/lib/module/shared/types/gesture.types.js.map +1 -0
  139. package/lib/module/shared/types/utils.types.js +2 -0
  140. package/lib/{commonjs/shared/types/utils.js.map → module/shared/types/utils.types.js.map} +1 -1
  141. package/lib/module/shared/utils/animation/derivations.js +1 -7
  142. package/lib/module/shared/utils/animation/derivations.js.map +1 -1
  143. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +14 -0
  145. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  146. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  147. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -0
  148. package/lib/module/shared/utils/bounds/index.js +45 -35
  149. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  150. package/lib/module/shared/utils/bounds/types/builder.js.map +1 -0
  151. package/lib/module/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  152. package/lib/module/shared/utils/create-provider.js +46 -0
  153. package/lib/module/shared/utils/create-provider.js.map +1 -0
  154. package/lib/module/shared/utils/gesture/apply-offset-rules.js +1 -1
  155. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -1
  156. package/lib/module/shared/utils/gesture/check-gesture-activation.js +1 -1
  157. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  158. package/lib/module/shared/utils/reset-stores-for-screen.js +13 -0
  159. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -0
  160. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -1
  161. package/lib/typescript/blank-stack/components/Screens.d.ts +2 -3
  162. package/lib/typescript/blank-stack/components/Screens.d.ts.map +1 -1
  163. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -1
  164. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +1 -1
  165. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -1
  166. package/lib/typescript/blank-stack/index.d.ts +1 -0
  167. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  168. package/lib/typescript/blank-stack/types.d.ts +6 -2
  169. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  170. package/lib/typescript/native-stack/types.d.ts +1 -1
  171. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  172. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  173. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -1
  174. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  175. package/lib/typescript/shared/configs/index.d.ts +15 -9
  176. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  177. package/lib/typescript/shared/configs/presets.d.ts +10 -4
  178. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  179. package/lib/typescript/shared/constants.d.ts +6 -6
  180. package/lib/typescript/shared/constants.d.ts.map +1 -1
  181. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  182. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -2
  183. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  184. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts +5 -2
  185. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  186. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -0
  187. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  188. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -1
  189. package/lib/typescript/shared/index.d.ts +25 -18
  190. package/lib/typescript/shared/index.d.ts.map +1 -1
  191. package/lib/typescript/shared/providers/{gestures.d.ts → gestures.provider.d.ts} +5 -3
  192. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -0
  193. package/lib/typescript/shared/providers/{keys.d.ts → keys.provider.d.ts} +2 -2
  194. package/lib/typescript/shared/providers/keys.provider.d.ts.map +1 -0
  195. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +17 -0
  196. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -0
  197. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts → screen-transition.provider.d.ts} +2 -2
  198. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts.map → screen-transition.provider.d.ts.map} +1 -1
  199. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +14 -0
  200. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +1 -0
  201. package/lib/typescript/shared/stores/{animation-store.d.ts → animation.store.d.ts} +6 -4
  202. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -0
  203. package/lib/typescript/shared/stores/bounds.store.d.ts +29 -0
  204. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -0
  205. package/lib/typescript/shared/stores/{gesture-store.d.ts → gesture.store.d.ts} +3 -3
  206. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -0
  207. package/lib/typescript/shared/types/{animation.d.ts → animation.types.d.ts} +48 -20
  208. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -0
  209. package/lib/typescript/shared/types/{bounds.d.ts → bounds.types.d.ts} +4 -4
  210. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -0
  211. package/lib/typescript/shared/types/{core.d.ts → core.types.d.ts} +3 -3
  212. package/lib/typescript/shared/types/core.types.d.ts.map +1 -0
  213. package/lib/typescript/shared/types/{gesture.d.ts → gesture.types.d.ts} +1 -1
  214. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -0
  215. package/lib/typescript/shared/types/{utils.d.ts → utils.types.d.ts} +1 -1
  216. package/lib/typescript/shared/types/utils.types.d.ts.map +1 -0
  217. package/lib/typescript/shared/utils/animation/derivations.d.ts +2 -4
  218. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -1
  219. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +2 -2
  220. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  221. package/lib/typescript/shared/utils/bounds/constants.d.ts +3 -3
  222. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -1
  223. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/geometry.d.ts +3 -3
  224. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -0
  225. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +1 -0
  226. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/style-composers.d.ts +2 -2
  227. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -0
  228. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/styles.d.ts +1 -1
  229. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -0
  230. package/lib/typescript/shared/utils/bounds/index.d.ts +3 -4
  231. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/bounds/{_types → types}/builder.d.ts +13 -34
  233. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -0
  234. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -0
  235. package/lib/typescript/shared/utils/create-provider.d.ts +14 -0
  236. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -0
  237. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +2 -2
  238. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  239. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +2 -2
  240. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  241. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +2 -2
  242. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  243. package/lib/typescript/shared/utils/gesture/velocity.d.ts +1 -1
  244. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +6 -0
  245. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -0
  246. package/package.json +1 -1
  247. package/src/blank-stack/components/Overlay.tsx +25 -5
  248. package/src/blank-stack/components/Screens.tsx +6 -6
  249. package/src/blank-stack/components/StackView.tsx +11 -5
  250. package/src/blank-stack/hooks/use-overlay-animation.tsx +6 -21
  251. package/src/blank-stack/index.ts +1 -0
  252. package/src/blank-stack/types.ts +6 -2
  253. package/src/native-stack/types.ts +1 -1
  254. package/src/native-stack/views/NativeStackView.native.tsx +4 -2
  255. package/src/shared/components/controllers/screen-lifecycle.tsx +26 -11
  256. package/src/shared/components/create-transition-aware-component.tsx +23 -27
  257. package/src/shared/components/root-transition-aware.tsx +1 -1
  258. package/src/shared/configs/presets.ts +31 -17
  259. package/src/shared/constants.ts +6 -7
  260. package/src/shared/hooks/animation/use-associated-style.tsx +8 -9
  261. package/src/shared/hooks/animation/use-screen-animation.tsx +8 -26
  262. package/src/shared/hooks/gestures/use-build-gestures.tsx +66 -38
  263. package/src/shared/hooks/gestures/use-parent-gesture-registry.tsx +1 -1
  264. package/src/shared/hooks/gestures/use-scroll-registry.tsx +2 -2
  265. package/src/shared/hooks/{use-stable-callback-value.tsx → use-stable-callback-value.ts} +10 -1
  266. package/src/shared/index.ts +4 -1
  267. package/src/shared/providers/{gestures.tsx → gestures.provider.tsx} +17 -8
  268. package/src/shared/providers/{keys.tsx → keys.provider.tsx} +1 -1
  269. package/src/shared/providers/register-bounds.provider.tsx +284 -0
  270. package/src/shared/providers/{screen-transition-provider.tsx → screen-transition.provider.tsx} +3 -3
  271. package/src/shared/providers/{transition-styles.tsx → transition-styles.provider.tsx} +13 -14
  272. package/src/shared/stores/{animation-store.ts → animation.store.ts} +20 -4
  273. package/src/shared/stores/bounds.store.ts +166 -0
  274. package/src/shared/stores/{gesture-store.ts → gesture.store.ts} +17 -3
  275. package/src/shared/types/{animation.ts → animation.types.ts} +60 -19
  276. package/src/shared/types/{bounds.ts → bounds.types.ts} +3 -3
  277. package/src/shared/types/{core.ts → core.types.ts} +10 -2
  278. package/src/shared/utils/animation/derivations.ts +2 -8
  279. package/src/shared/utils/animation/start-screen-transition.ts +2 -2
  280. package/src/shared/utils/bounds/constants.ts +3 -3
  281. package/src/shared/utils/bounds/{_utils → helpers}/geometry.ts +3 -3
  282. package/src/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.ts +3 -3
  283. package/src/shared/utils/bounds/{_utils → helpers}/style-composers.ts +2 -2
  284. package/src/shared/utils/bounds/{_utils → helpers}/styles.ts +1 -1
  285. package/src/shared/utils/bounds/index.ts +53 -55
  286. package/src/shared/utils/bounds/{_types → types}/builder.ts +19 -37
  287. package/src/shared/utils/create-provider.tsx +71 -0
  288. package/src/shared/utils/gesture/apply-offset-rules.ts +2 -2
  289. package/src/shared/utils/gesture/check-gesture-activation.ts +2 -2
  290. package/src/shared/utils/gesture/reset-gesture-values.ts +2 -2
  291. package/src/shared/utils/gesture/velocity.ts +1 -1
  292. package/src/shared/utils/reset-stores-for-screen.ts +11 -0
  293. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +0 -131
  294. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  295. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +0 -1
  296. package/lib/commonjs/shared/providers/gestures.js.map +0 -1
  297. package/lib/commonjs/shared/providers/keys.js.map +0 -1
  298. package/lib/commonjs/shared/providers/transition-styles.js.map +0 -1
  299. package/lib/commonjs/shared/providers/utils/create-provider.js +0 -39
  300. package/lib/commonjs/shared/providers/utils/create-provider.js.map +0 -1
  301. package/lib/commonjs/shared/stores/animation-store.js.map +0 -1
  302. package/lib/commonjs/shared/stores/bound-store/_utils.js +0 -118
  303. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +0 -1
  304. package/lib/commonjs/shared/stores/bound-store/index.js +0 -116
  305. package/lib/commonjs/shared/stores/bound-store/index.js.map +0 -1
  306. package/lib/commonjs/shared/stores/gesture-store.js.map +0 -1
  307. package/lib/commonjs/shared/stores/navigator-dismiss-state.js +0 -23
  308. package/lib/commonjs/shared/stores/navigator-dismiss-state.js.map +0 -1
  309. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +0 -19
  310. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  311. package/lib/commonjs/shared/types/gesture.js.map +0 -1
  312. package/lib/commonjs/shared/types/utils.js +0 -2
  313. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +0 -1
  314. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js +0 -6
  315. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  316. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js +0 -27
  317. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  318. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +0 -1
  319. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js +0 -49
  320. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  321. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +0 -19
  322. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  323. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  324. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +0 -1
  325. package/lib/module/shared/hooks/bounds/use-bound-registry.js +0 -125
  326. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  327. package/lib/module/shared/hooks/use-shared-value-state.js.map +0 -1
  328. package/lib/module/shared/providers/gestures.js.map +0 -1
  329. package/lib/module/shared/providers/keys.js.map +0 -1
  330. package/lib/module/shared/providers/transition-styles.js.map +0 -1
  331. package/lib/module/shared/providers/utils/create-provider.js +0 -33
  332. package/lib/module/shared/providers/utils/create-provider.js.map +0 -1
  333. package/lib/module/shared/stores/animation-store.js +0 -33
  334. package/lib/module/shared/stores/animation-store.js.map +0 -1
  335. package/lib/module/shared/stores/bound-store/_utils.js +0 -113
  336. package/lib/module/shared/stores/bound-store/_utils.js.map +0 -1
  337. package/lib/module/shared/stores/bound-store/index.js +0 -112
  338. package/lib/module/shared/stores/bound-store/index.js.map +0 -1
  339. package/lib/module/shared/stores/gesture-store.js.map +0 -1
  340. package/lib/module/shared/stores/navigator-dismiss-state.js +0 -19
  341. package/lib/module/shared/stores/navigator-dismiss-state.js.map +0 -1
  342. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +0 -15
  343. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  344. package/lib/module/shared/types/animation.js +0 -4
  345. package/lib/module/shared/types/animation.js.map +0 -1
  346. package/lib/module/shared/types/bounds.js +0 -4
  347. package/lib/module/shared/types/bounds.js.map +0 -1
  348. package/lib/module/shared/types/core.js +0 -4
  349. package/lib/module/shared/types/core.js.map +0 -1
  350. package/lib/module/shared/types/gesture.js.map +0 -1
  351. package/lib/module/shared/types/utils.js +0 -2
  352. package/lib/module/shared/types/utils.js.map +0 -1
  353. package/lib/module/shared/utils/bounds/_types/geometry.js.map +0 -1
  354. package/lib/module/shared/utils/bounds/_types/get-bounds.js +0 -4
  355. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  356. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js +0 -23
  357. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  358. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +0 -1
  359. package/lib/module/shared/utils/bounds/_utils/get-bounds.js +0 -44
  360. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  361. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +0 -14
  362. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  363. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  364. package/lib/module/shared/utils/bounds/_utils/styles.js.map +0 -1
  365. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts +0 -17
  366. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  367. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +0 -1
  368. package/lib/typescript/shared/providers/gestures.d.ts.map +0 -1
  369. package/lib/typescript/shared/providers/keys.d.ts.map +0 -1
  370. package/lib/typescript/shared/providers/transition-styles.d.ts +0 -11
  371. package/lib/typescript/shared/providers/transition-styles.d.ts.map +0 -1
  372. package/lib/typescript/shared/providers/utils/create-provider.d.ts +0 -32
  373. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +0 -1
  374. package/lib/typescript/shared/stores/animation-store.d.ts.map +0 -1
  375. package/lib/typescript/shared/stores/bound-store/_utils.d.ts +0 -24
  376. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +0 -1
  377. package/lib/typescript/shared/stores/bound-store/index.d.ts +0 -22
  378. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +0 -1
  379. package/lib/typescript/shared/stores/gesture-store.d.ts.map +0 -1
  380. package/lib/typescript/shared/stores/navigator-dismiss-state.d.ts +0 -7
  381. package/lib/typescript/shared/stores/navigator-dismiss-state.d.ts.map +0 -1
  382. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +0 -6
  383. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  384. package/lib/typescript/shared/types/animation.d.ts.map +0 -1
  385. package/lib/typescript/shared/types/bounds.d.ts.map +0 -1
  386. package/lib/typescript/shared/types/core.d.ts.map +0 -1
  387. package/lib/typescript/shared/types/gesture.d.ts.map +0 -1
  388. package/lib/typescript/shared/types/utils.d.ts.map +0 -1
  389. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +0 -1
  390. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +0 -1
  391. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts +0 -10
  392. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  393. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts +0 -2
  394. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  395. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +0 -1
  396. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts +0 -4
  397. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  398. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  399. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  400. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +0 -1
  401. package/src/shared/hooks/bounds/use-bound-registry.tsx +0 -153
  402. package/src/shared/providers/utils/create-provider.ts +0 -64
  403. package/src/shared/stores/bound-store/_utils.ts +0 -161
  404. package/src/shared/stores/bound-store/index.ts +0 -125
  405. package/src/shared/stores/navigator-dismiss-state.ts +0 -17
  406. package/src/shared/stores/utils/reset-stores-for-screen.ts +0 -13
  407. package/src/shared/utils/bounds/_types/get-bounds.ts +0 -10
  408. package/src/shared/utils/bounds/_utils/flatten-styles.ts +0 -21
  409. package/src/shared/utils/bounds/_utils/get-bounds.ts +0 -54
  410. /package/lib/commonjs/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  411. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  412. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  413. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  414. /package/lib/commonjs/shared/utils/bounds/{_types → types}/builder.js +0 -0
  415. /package/lib/commonjs/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  416. /package/lib/module/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  417. /package/lib/module/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  418. /package/lib/module/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  419. /package/lib/module/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  420. /package/lib/module/shared/utils/bounds/{_types → types}/builder.js +0 -0
  421. /package/lib/module/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  422. /package/lib/typescript/shared/hooks/{use-shared-value-state.d.ts → reanimated/use-shared-value-state.d.ts} +0 -0
  423. /package/lib/typescript/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.d.ts +0 -0
  424. /package/lib/typescript/shared/utils/bounds/{_types → types}/geometry.d.ts +0 -0
  425. /package/src/shared/hooks/{use-shared-value-state.ts → reanimated/use-shared-value-state.ts} +0 -0
  426. /package/src/shared/hooks/{use-stable-callback.tsx → use-stable-callback.ts} +0 -0
  427. /package/src/shared/types/{gesture.ts → gesture.types.ts} +0 -0
  428. /package/src/shared/types/{utils.ts → utils.types.ts} +0 -0
  429. /package/src/shared/utils/bounds/{_types → types}/geometry.ts +0 -0
@@ -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,131 +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
- (0, _reactNativeReanimated.useAnimatedReaction)(() => ROOT_MEASUREMENT_SIGNAL?.updateSignal.value, current => {
114
- "worklet";
115
-
116
- // We don't want to run on the initial amount)
117
- if (current === 0 || current === undefined) return;
118
-
119
- // Children should not have the ability to mark active
120
- maybeMeasureAndStore({
121
- skipMarkingActive: true
122
- });
123
- });
124
- return {
125
- handleInitialLayout,
126
- captureActiveOnPress,
127
- MeasurementSyncProvider
128
- };
129
- };
130
- exports.useBoundsRegistry = useBoundsRegistry;
131
- //# 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","useAnimatedReaction","undefined","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/bounds/use-bound-registry.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AAUA,IAAAE,KAAA,GAAAF,OA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AE;MAAK,CAAC,CAAC;MACjD;MACAY,mBAAmB,CAACd,KAAK,GAAG,IAAI;IACjC;EACD,CAAC,CAAC;EAEF,MAAMmB,oBAAoB,GAAG,IAAAC,0BAAiB,EAAC,MAAM;IACpD,IAAI,CAACtC,cAAc,EAAE;MACpB,IAAIG,OAAO,EAAEA,OAAO,CAAC,CAAC;MACtB;IACD;;IAEA;IACA,IAAAoC,8BAAO,EAACpB,oBAAoB,CAAC,CAAC;MAAEhB;IAAQ,CAAC,CAAC;EAC3C,CAAC,CAAC;EAEF,MAAMqC,uBAAuB,GAAG,IAAA/B,cAAO,EAAC,MAAM;IAC7C,IAAI,CAACM,OAAO,IAAI,CAACf,cAAc,EAAE;MAChC,OAAOyC,eAAQ;IAChB;IAEA,OAAO,CAAC;MAAEC;IAAwC,CAAC,kBAClD,IAAAjD,WAAA,CAAAkD,GAAA,EAAC9C,wBAAwB,CAAC+C,QAAQ;MAAC1B,KAAK,EAAE;QAAE2B,YAAY,EAAEhC;MAAY,CAAE;MAAA6B,QAAA,EACtEA;IAAQ,CACyB,CACnC;EACF,CAAC,EAAE,CAAC3B,OAAO,EAAEf,cAAc,EAAEa,WAAW,CAAC,CAAC;EAE1C,IAAAiC,0CAAmB,EAClB,MAAMnC,uBAAuB,EAAEkC,YAAY,CAAC3B,KAAK,EAChDb,OAAO,IAAK;IACZ,SAAS;;IAET;IACA,IAAIA,OAAO,KAAK,CAAC,IAAIA,OAAO,KAAK0C,SAAS,EAAE;;IAE5C;IACA5B,oBAAoB,CAAC;MAAEC,iBAAiB,EAAE;IAAK,CAAC,CAAC;EAClD,CACD,CAAC;EAED,OAAO;IACNa,mBAAmB;IACnBI,oBAAoB;IACpBG;EACD,CAAC;AACF,CAAC;AAACQ,OAAA,CAAAjD,iBAAA,GAAAA,iBAAA","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","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;AAsBxE,MAAMM,cAAc,gBAAG,IAAAC,oBAAa,EAAiCC,SAAS,CAAC;AAExE,MAAMC,qBAAqB,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AC,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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AC,iBAAU,EAACvB,uBAAuB,CAAC;EAC/C,IAAI,CAACsB,GAAG,EAAE;IACT,MAAM,IAAIE,KAAK,CACd,oEACD,CAAC;EACF;EACA,OAAOF,GAAG;AACX","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createContext = createContext;
7
- var React = _interopRequireWildcard(require("react"));
8
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
9
- /**
10
- * Credits to
11
- * https://github.com/heroui-inc/heroui-native/blob/beta/src/helpers/utils/create-context.ts
12
- */
13
-
14
- /**
15
- * Creates a named context, provider, and hook.
16
- *
17
- * @param options create context options
18
- */
19
- function createContext(options = {}) {
20
- const {
21
- strict = true,
22
- errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
23
- name
24
- } = options;
25
- const Context = /*#__PURE__*/React.createContext(undefined);
26
- Context.displayName = name;
27
- function useContext() {
28
- const context = React.useContext(Context);
29
- if (!context && strict) {
30
- const error = new Error(errorMessage);
31
- error.name = "ContextError";
32
- Error.captureStackTrace?.(error, useContext);
33
- throw error;
34
- }
35
- return context;
36
- }
37
- return [Context.Provider, useContext, Context];
38
- }
39
- //# sourceMappingURL=create-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createContext","options","strict","errorMessage","name","Context","undefined","displayName","useContext","context","error","Error","captureStackTrace","Provider"],"sourceRoot":"../../../../../src","sources":["shared/providers/utils/create-provider.ts"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAJ/B;AACA;AACA;AACA;;AAyBA;AACA;AACA;AACA;AACA;AACO,SAASkB,aAAaA,CAAcC,OAA6B,GAAG,CAAC,CAAC,EAAE;EAC9E,MAAM;IACLC,MAAM,GAAG,IAAI;IACbC,YAAY,GAAG,4FAA4F;IAC3GC;EACD,CAAC,GAAGH,OAAO;EAEX,MAAMI,OAAO,gBAAG3B,KAAK,CAACsB,aAAa,CAA0BM,SAAS,CAAC;EAEvED,OAAO,CAACE,WAAW,GAAGH,IAAI;EAE1B,SAASI,UAAUA,CAAA,EAAG;IACrB,MAAMC,OAAO,GAAG/B,KAAK,CAAC8B,UAAU,CAACH,OAAO,CAAC;IAEzC,IAAI,CAACI,OAAO,IAAIP,MAAM,EAAE;MACvB,MAAMQ,KAAK,GAAG,IAAIC,KAAK,CAACR,YAAY,CAAC;MAErCO,KAAK,CAACN,IAAI,GAAG,cAAc;MAC3BO,KAAK,CAACC,iBAAiB,GAAGF,KAAK,EAAEF,UAAU,CAAC;MAC5C,MAAME,KAAK;IACZ;IAEA,OAAOD,OAAO;EACf;EAEA,OAAO,CACNJ,OAAO,CAACQ,QAAQ,EAChBL,UAAU,EACVH,OAAO,CACP;AACF","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","store","ensure","key","bag","progress","makeMutable","closing","animating","getAnimation","type","getAll","clear","routeKey","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation-store.ts"],"mappings":";;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AASA,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;AAEM,SAASK,YAAYA,CAC3BN,GAAc,EACdO,IAA0C,EACpB;EACtB,OAAOR,MAAM,CAACC,GAAG,CAAC,CAACO,IAAI,CAAC;AACzB;AAEO,SAASC,MAAMA,CAACR,GAAc,EAAE;EACtC,OAAOD,MAAM,CAACC,GAAG,CAAC;AACnB;AAEA,SAASS,KAAKA,CAACC,QAAmB,EAAE;EACnC,SAAS;;EACT,OAAOZ,KAAK,CAACY,QAAQ,CAAC;AACvB;AAEO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC7BL,YAAY;EACZG,KAAK;EACLD;AACD,CAAC","ignoreList":[]}
@@ -1,118 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.pairKey = pairKey;
7
- exports.resolveActiveBound = resolveActiveBound;
8
- function pairKey(fromKey, toKey) {
9
- "worklet";
10
-
11
- return fromKey && toKey ? `${fromKey}|${toKey}` : "";
12
- }
13
- const hasBound = (s, id) => {
14
- "worklet";
15
-
16
- return !!id && !!s && !!s.bounds && !!s.bounds[id];
17
- };
18
- const getRoutePair = (current, next, previous) => {
19
- "worklet";
20
-
21
- const isClosing = !!next;
22
- const fromKey = isClosing ? current.route.key : previous?.route.key;
23
- const toKey = isClosing ? next?.route.key : current.route.key;
24
- const other = next ?? previous;
25
- return {
26
- fromKey,
27
- toKey,
28
- other
29
- };
30
- };
31
- const resolveFromPairCache = (fromKey, toKey, other, getPairCache) => {
32
- "worklet";
33
-
34
- if (fromKey && toKey) {
35
- const cached = getPairCache(fromKey, toKey);
36
- if (hasBound(other, cached)) return cached;
37
- }
38
- return "";
39
- };
40
- const resolveFromRequested = (reqId, current, other) => {
41
- "worklet";
42
-
43
- if (hasBound(other, reqId)) return reqId;
44
- if (hasBound(current, reqId)) return reqId;
45
- return "";
46
- };
47
- const resolveFromInteresection = (current, other, fromKey, getRouteActive) => {
48
- "worklet";
49
-
50
- if (!other) return "";
51
- const a = Object.keys(current.bounds);
52
- const b = Object.keys(other.bounds);
53
- const inter = a.filter(k => b.includes(k));
54
- const otherHasAny = b.length > 0;
55
- const routeActive = fromKey ? getRouteActive(fromKey) : null;
56
- if (inter.length > 0) {
57
- if (routeActive && inter.includes(routeActive)) return routeActive;
58
- return inter[0];
59
- }
60
- if (routeActive && hasBound(other, routeActive)) return routeActive;
61
- if (b.length === 1) return b[0];
62
- if (!otherHasAny) {
63
- if (routeActive && hasBound(current, routeActive)) return routeActive;
64
- if (a.length === 1) return a[0];
65
- }
66
- return "";
67
- };
68
-
69
- /**
70
- * Util function to get the active bound id for a given transition state.
71
- *
72
- * It will check by ( priority from highest to lowest ):
73
- * 1. Requested id
74
- * 2. Cache
75
- * 3. Intersection
76
- */
77
- function resolveActiveBound({
78
- current,
79
- next,
80
- previous,
81
- getPairCache,
82
- setPairCache,
83
- getRouteActive
84
- }) {
85
- "worklet";
86
-
87
- const {
88
- fromKey,
89
- toKey,
90
- other
91
- } = getRoutePair(current, next, previous);
92
-
93
- // Resolve requested from per-route most recently used (last active bound by route)
94
- const requestedId = fromKey ? getRouteActive(fromKey) : null;
95
- const byRequested = resolveFromRequested(requestedId, current, other);
96
- if (byRequested) {
97
- if (fromKey && toKey && hasBound(current, byRequested) && hasBound(other, byRequested)) {
98
- setPairCache(fromKey, toKey, byRequested);
99
- }
100
- return byRequested;
101
- }
102
- const byPairCache = resolveFromPairCache(fromKey, toKey, other, getPairCache);
103
- if (byPairCache) {
104
- if (fromKey && toKey && hasBound(current, byPairCache) && hasBound(other, byPairCache)) {
105
- setPairCache(fromKey, toKey, byPairCache);
106
- }
107
- return byPairCache;
108
- }
109
- const byIntersection = resolveFromInteresection(current, other, fromKey, getRouteActive);
110
- if (byIntersection) {
111
- if (fromKey && toKey && hasBound(current, byIntersection) && hasBound(other, byIntersection)) {
112
- setPairCache(fromKey, toKey, byIntersection);
113
- }
114
- return byIntersection;
115
- }
116
- return "";
117
- }
118
- //# sourceMappingURL=_utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pairKey","fromKey","toKey","hasBound","s","id","bounds","getRoutePair","current","next","previous","isClosing","route","key","other","resolveFromPairCache","getPairCache","cached","resolveFromRequested","reqId","resolveFromInteresection","getRouteActive","a","Object","keys","b","inter","filter","k","includes","otherHasAny","length","routeActive","resolveActiveBound","setPairCache","requestedId","byRequested","byPairCache","byIntersection"],"sourceRoot":"../../../../../src","sources":["shared/stores/bound-store/_utils.ts"],"mappings":";;;;;;;AAeO,SAASA,OAAOA,CAACC,OAAgB,EAAEC,KAAc,EAAE;EACzD,SAAS;;EACT,OAAOD,OAAO,IAAIC,KAAK,GAAG,GAAGD,OAAO,IAAIC,KAAK,EAAE,GAAG,EAAE;AACrD;AAEA,MAAMC,QAAQ,GAAGA,CAACC,CAAoC,EAAEC,EAAkB,KAAK;EAC9E,SAAS;;EACT,OAAO,CAAC,CAACA,EAAE,IAAI,CAAC,CAACD,CAAC,IAAI,CAAC,CAACA,CAAC,CAACE,MAAM,IAAI,CAAC,CAACF,CAAC,CAACE,MAAM,CAACD,EAAE,CAAC;AACnD,CAAC;AAED,MAAME,YAAY,GAAGA,CACpBC,OAA8B,EAC9BC,IAAuC,EACvCC,QAA2C,KACvC;EACJ,SAAS;;EACT,MAAMC,SAAS,GAAG,CAAC,CAACF,IAAI;EACxB,MAAMR,OAAO,GAAGU,SAAS,GAAGH,OAAO,CAACI,KAAK,CAACC,GAAG,GAAGH,QAAQ,EAAEE,KAAK,CAACC,GAAG;EACnE,MAAMX,KAAK,GAAGS,SAAS,GAAGF,IAAI,EAAEG,KAAK,CAACC,GAAG,GAAGL,OAAO,CAACI,KAAK,CAACC,GAAG;EAC7D,MAAMC,KAAK,GAAGL,IAAI,IAAIC,QAAQ;EAC9B,OAAO;IAAET,OAAO;IAAEC,KAAK;IAAEY;EAAM,CAAC;AACjC,CAAC;AAED,MAAMC,oBAAoB,GAAGA,CAC5Bd,OAA2B,EAC3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AC7E,IAAIqB,WAAW,EAAE;IAChB,IACCpC,OAAO,IACPC,KAAK,IACLC,QAAQ,CAACK,OAAO,EAAE6B,WAAW,CAAC,IAC9BlC,QAAQ,CAACW,KAAK,EAAEuB,WAAW,CAAC,EAC3B;MACDH,YAAY,CAACjC,OAAO,EAAEC,KAAK,EAAEmC,WAAW,CAAC;IAC1C;IACA,OAAOA,WAAW;EACnB;EAEA,MAAMC,cAAc,GAAGlB,wBAAwB,CAC9CZ,OAAO,EACPM,KAAK,EACLb,OAAO,EACPoB,cACD,CAAC;EAED,IAAIiB,cAAc,EAAE;IACnB,IACCrC,OAAO,IACPC,KAAK,IACLC,QAAQ,CAACK,OAAO,EAAE8B,cAAc,CAAC,IACjCnC,QAAQ,CAACW,KAAK,EAAEwB,cAAc,CAAC,EAC9B;MACDJ,YAAY,CAACjC,OAAO,EAAEC,KAAK,EAAEoC,cAAc,CAAC;IAC7C;IACA,OAAOA,cAAc;EACtB;EAEA,OAAO,EAAE;AACV","ignoreList":[]}
@@ -1,116 +0,0 @@
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
- var _utils = require("./_utils");
9
- const registry = (0, _reactNativeReanimated.makeMutable)({});
10
- const pairCache = (0, _reactNativeReanimated.makeMutable)({});
11
- const lastActiveByRoute = (0, _reactNativeReanimated.makeMutable)({});
12
- function setBounds(screenId, boundId, bounds = null, styles = {}) {
13
- "worklet";
14
-
15
- registry.modify(state => {
16
- "worklet";
17
-
18
- if (!state[screenId]) {
19
- state[screenId] = {};
20
- }
21
- state[screenId][boundId] = {
22
- bounds,
23
- styles
24
- };
25
- return state;
26
- });
27
- }
28
- function getBounds(screenId) {
29
- "worklet";
30
-
31
- return registry.value[screenId] ?? {};
32
- }
33
- function setRouteActive(routeKey, boundId) {
34
- "worklet";
35
-
36
- lastActiveByRoute.modify(state => {
37
- "worklet";
38
-
39
- state[routeKey] = boundId;
40
- return state;
41
- });
42
- }
43
- function getRouteActive(routeKey) {
44
- "worklet";
45
-
46
- return lastActiveByRoute.value[routeKey] ?? null;
47
- }
48
- function setPairCache(fromKey, toKey, boundId) {
49
- "worklet";
50
-
51
- const key = (0, _utils.pairKey)(fromKey, toKey);
52
- if (!key) return;
53
- pairCache.modify(state => {
54
- "worklet";
55
-
56
- state[key] = boundId;
57
- return state;
58
- });
59
- }
60
- function getPairCache(fromKey, toKey) {
61
- "worklet";
62
-
63
- const key = (0, _utils.pairKey)(fromKey, toKey);
64
- if (!key) return null;
65
- return pairCache.value[key] ?? null;
66
- }
67
- function clear(routeKey) {
68
- "worklet";
69
-
70
- registry.modify(state => {
71
- "worklet";
72
-
73
- delete state[routeKey];
74
- return state;
75
- });
76
- lastActiveByRoute.modify(state => {
77
- "worklet";
78
-
79
- if (state[routeKey]) delete state[routeKey];
80
- return state;
81
- });
82
- pairCache.modify(state => {
83
- "worklet";
84
-
85
- const keys = Object.keys(state);
86
- for (let i = 0; i < keys.length; i++) {
87
- const k = keys[i];
88
- const [from, to] = k.split("|");
89
- if (from === routeKey || to === routeKey) {
90
- delete state[k];
91
- }
92
- }
93
- return state;
94
- });
95
- }
96
- function getActiveBound(current, next, previous) {
97
- "worklet";
98
-
99
- return (0, _utils.resolveActiveBound)({
100
- current,
101
- next,
102
- previous,
103
- getPairCache,
104
- setPairCache,
105
- getRouteActive
106
- });
107
- }
108
- const BoundStore = exports.BoundStore = {
109
- setBounds,
110
- getBounds,
111
- setRouteActive,
112
- getRouteActive,
113
- clear,
114
- getActiveBound
115
- };
116
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_utils","registry","makeMutable","pairCache","lastActiveByRoute","setBounds","screenId","boundId","bounds","styles","modify","state","getBounds","value","setRouteActive","routeKey","getRouteActive","setPairCache","fromKey","toKey","key","pairKey","getPairCache","clear","keys","Object","i","length","k","from","to","split","getActiveBound","current","next","previous","resolveActiveBound","BoundStore","exports"],"sourceRoot":"../../../../../src","sources":["shared/stores/bound-store/index.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAD,OAAA;AAOA,MAAME,QAAQ,GAAG,IAAAC,kCAAW,EAAa,CAAC,CAAC,CAAC;AAC5C,MAAMC,SAAS,GAAG,IAAAD,kCAAW,EAAyB,CAAC,CAAC,CAAC;AACzD,MAAME,iBAAiB,GAAG,IAAAF,kCAAW,EAAyB,CAAC,CAAC,CAAC;AAEjE,SAASG,SAASA,CACjBC,QAAgB,EAChBC,OAAe,EACfC,MAAiC,GAAG,IAAI,EACxCC,MAAkB,GAAG,CAAC,CAAC,EACtB;EACD,SAAS;;EACTR,QAAQ,CAACS,MAAM,CAAEC,KAAU,IAAK;IAC/B,SAAS;;IACT,IAAI,CAACA,KAAK,CAACL,QAAQ,CAAC,EAAE;MACrBK,KAAK,CAACL,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrB;IACAK,KAAK,CAACL,QAAQ,CAAC,CAACC,OAAO,CAAC,GAAG;MAAEC,MAAM;MAAEC;IAAO,CAAC;IAE7C,OAAOE,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASC,SAASA,CAACN,QAAgB,EAAE;EACpC,SAAS;;EACT,OAAOL,QAAQ,CAACY,KAAK,CAACP,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC;AAEA,SAASQ,cAAcA,CAACC,QAAgB,EAAER,OAAe,EAAE;EAC1D,SAAS;;EACTH,iBAAiB,CAACM,MAAM,CAAEC,KAAU,IAAK;IACxC,SAAS;;IACTA,KAAK,CAACI,QAAQ,CAAC,GAAGR,OAAO;IACzB,OAAOI,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASK,cAAcA,CAACD,QAAgB,EAAE;EACzC,SAAS;;EACT,OAAOX,iBAAiB,CAACS,KAAK,CAACE,QAAQ,CAAC,IAAI,IAAI;AACjD;AAEA,SAASE,Y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CAAC,CAACG,KAAK,CAAC,GAAG,CAAC;MAC/B,IAAIF,IAAI,KAAKd,QAAQ,IAAIe,EAAE,KAAKf,QAAQ,EAAE;QACzC,OAAOJ,KAAK,CAACiB,CAAC,CAAC;MAChB;IACD;IACA,OAAOjB,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASqB,cAAcA,CACtBC,OAA8B,EAC9BC,IAAuC,EACvCC,QAA2C,EAC1C;EACD,SAAS;;EACT,OAAO,IAAAC,yBAAkB,EAAC;IACzBH,OAAO;IACPC,IAAI;IACJC,QAAQ;IACRb,YAAY;IACZL,YAAY;IACZD;EACD,CAAC,CAAC;AACH;AAEO,MAAMqB,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACzBhC,SAAS;EACTO,SAAS;EACTE,cAAc;EACdE,cAAc;EACdO,KAAK;EACLS;AACD,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","store","ensure","routeKey","bag","x","makeMutable","y","normalizedX","normalizedY","isDismissing","isDragging","direction","getGesture","gestureKey","getRouteGestures","clear","GestureStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture-store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAsBA,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,OAAOF,KAAK,CAACE,QAAQ,CAAC;AACvB;AAEO,MAAMc,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC3BJ,UAAU;EACVE,gBAAgB;EAChBC;AACD,CAAC","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NavigatorDismissState = void 0;
7
- const map = new Map();
8
- const NavigatorDismissState = exports.NavigatorDismissState = {
9
- get(id) {
10
- if (!id) return false;
11
- return map.get(id) === true;
12
- },
13
- set(id, val) {
14
- map.set(id, !!val);
15
- },
16
- remove(id) {
17
- map.delete(id);
18
- },
19
- clear() {
20
- map.clear();
21
- }
22
- };
23
- //# sourceMappingURL=navigator-dismiss-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["map","Map","NavigatorDismissState","exports","get","id","set","val","remove","delete","clear"],"sourceRoot":"../../../../src","sources":["shared/stores/navigator-dismiss-state.ts"],"mappings":";;;;;;AAAA,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAkB,CAAC;AAE/B,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACpCE,GAAGA,CAACC,EAAsB,EAAW;IACpC,IAAI,CAACA,EAAE,EAAE,OAAO,KAAK;IACrB,OAAOL,GAAG,CAACI,GAAG,CAACC,EAAE,CAAC,KAAK,IAAI;EAC5B,CAAC;EACDC,GAAGA,CAACD,EAAU,EAAEE,GAAY,EAAE;IAC7BP,GAAG,CAACM,GAAG,CAACD,EAAE,EAAE,CAAC,CAACE,GAAG,CAAC;EACnB,CAAC;EACDC,MAAMA,CAACH,EAAU,EAAE;IAClBL,GAAG,CAACS,MAAM,CAACJ,EAAE,CAAC;EACf,CAAC;EACDK,KAAKA,CAAA,EAAG;IACPV,GAAG,CAACU,KAAK,CAAC,CAAC;EACZ;AACD,CAAC","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.resetStoresForScreen = void 0;
7
- var _animationStore = require("../animation-store");
8
- var _boundStore = require("../bound-store");
9
- var _gestureStore = require("../gesture-store");
10
- /**
11
- * Reset all stores for a given screen
12
- */
13
- const resetStoresForScreen = current => {
14
- _animationStore.AnimationStore.clear(current.route.key);
15
- _gestureStore.GestureStore.clear(current.route.key);
16
- _boundStore.BoundStore.clear(current.route.key);
17
- };
18
- exports.resetStoresForScreen = resetStoresForScreen;
19
- //# sourceMappingURL=reset-stores-for-screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_animationStore","require","_boundStore","_gestureStore","resetStoresForScreen","current","AnimationStore","clear","route","key","GestureStore","BoundStore","exports"],"sourceRoot":"../../../../../src","sources":["shared/stores/utils/reset-stores-for-screen.ts"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACO,MAAMG,oBAAoB,GAAIC,OAA8B,IAAK;EACvEC,8BAAc,CAACC,KAAK,CAACF,OAAO,CAACG,KAAK,CAACC,GAAG,CAAC;EACvCC,0BAAY,CAACH,KAAK,CAACF,OAAO,CAACG,KAAK,CAACC,GAAG,CAAC;EACrCE,sBAAU,CAACJ,KAAK,CAACF,OAAO,CAACG,KAAK,CAACC,GAAG,CAAC;AACpC,CAAC;AAACG,OAAA,CAAAR,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["GestureOffsetState","exports"],"sourceRoot":"../../../../src","sources":["shared/types/gesture.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":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/_types/geometry.ts"],"mappings":"","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=get-bounds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/_types/get-bounds.ts"],"mappings":"","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.flattenStyle = flattenStyle;
7
- function flattenStyle(style) {
8
- "worklet";
9
-
10
- if (style === null || typeof style !== "object") {
11
- return style;
12
- }
13
- if (!Array.isArray(style)) {
14
- return style;
15
- }
16
- const result = {};
17
- for (let i = 0, styleLength = style.length; i < styleLength; ++i) {
18
- const computedStyle = flattenStyle(style[i]);
19
- if (computedStyle) {
20
- for (const key in computedStyle) {
21
- result[key] = computedStyle[key];
22
- }
23
- }
24
- }
25
- return result;
26
- }
27
- //# sourceMappingURL=flatten-styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["flattenStyle","style","Array","isArray","result","i","styleLength","length","computedStyle","key"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/_utils/flatten-styles.ts"],"mappings":";;;;;;AAAO,SAASA,YAAYA,CAAaC,KAAiB,EAAc;EACvE,SAAS;;EACT,IAAIA,KAAK,KAAK,IAAI,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAChD,OAAOA,KAAK;EACb;EAEA,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IAC1B,OAAOA,KAAK;EACb;EAEA,MAAMG,MAAqC,GAAG,CAAC,CAAC;EAChD,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEC,WAAW,GAAGL,KAAK,CAACM,MAAM,EAAEF,CAAC,GAAGC,WAAW,EAAE,EAAED,CAAC,EAAE;IACjE,MAAMG,aAAa,GAAGR,YAAY,CAACC,KAAK,CAACI,CAAC,CAAC,CAAC;IAC5C,IAAIG,aAAa,EAAE;MAClB,KAAK,MAAMC,GAAG,IAAID,aAAa,EAAE;QAChCJ,MAAM,CAACK,GAAG,CAAC,GAAGD,aAAa,CAACC,GAAG,CAAC;MACjC;IACD;EACD;EACA,OAAOL,MAAM;AACd","ignoreList":[]}