react-native-screen-transitions 3.0.0-beta.9 → 3.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/README.md +60 -5
  2. package/lib/commonjs/blank-stack/components/Overlay.js +7 -4
  3. package/lib/commonjs/blank-stack/components/Overlay.js.map +1 -1
  4. package/lib/commonjs/blank-stack/components/Screens.js +2 -2
  5. package/lib/commonjs/blank-stack/components/Screens.js.map +1 -1
  6. package/lib/commonjs/blank-stack/components/StackView.js +9 -5
  7. package/lib/commonjs/blank-stack/components/StackView.js.map +1 -1
  8. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +4 -4
  9. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  10. package/lib/commonjs/blank-stack/index.js +1 -1
  11. package/lib/commonjs/blank-stack/index.js.map +1 -1
  12. package/lib/commonjs/native-stack/views/NativeStackView.native.js +4 -3
  13. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  14. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js +9 -9
  15. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-transition-aware-component.js +11 -14
  17. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  18. package/lib/commonjs/shared/components/root-transition-aware.js +1 -1
  19. package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -1
  20. package/lib/commonjs/shared/configs/presets.js +20 -9
  21. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  22. package/lib/commonjs/shared/constants.js +0 -1
  23. package/lib/commonjs/shared/constants.js.map +1 -1
  24. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +9 -10
  25. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  26. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +10 -25
  27. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  28. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +11 -11
  29. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  30. package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  31. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
  32. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  33. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  34. package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -1
  35. package/lib/commonjs/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  36. package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -0
  37. package/lib/commonjs/shared/providers/{keys.js → keys.provider.js} +1 -1
  38. package/lib/commonjs/shared/providers/keys.provider.js.map +1 -0
  39. package/lib/commonjs/shared/providers/register-bounds.provider.js +211 -0
  40. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -0
  41. package/lib/commonjs/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  42. package/lib/commonjs/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  43. package/lib/commonjs/shared/providers/{transition-styles.js → transition-styles.provider.js} +9 -9
  44. package/lib/commonjs/shared/providers/transition-styles.provider.js.map +1 -0
  45. package/lib/commonjs/shared/stores/{animation-store.js → animation.store.js} +1 -1
  46. package/lib/commonjs/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  47. package/lib/commonjs/shared/stores/bounds.store.js +141 -0
  48. package/lib/commonjs/shared/stores/bounds.store.js.map +1 -0
  49. package/lib/commonjs/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  50. package/lib/commonjs/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  51. package/lib/commonjs/shared/types/{core.js → animation.types.js} +1 -1
  52. package/lib/commonjs/shared/types/animation.types.js.map +1 -0
  53. package/lib/commonjs/shared/types/{bounds.js → bounds.types.js} +1 -1
  54. package/lib/commonjs/shared/types/bounds.types.js.map +1 -0
  55. package/lib/commonjs/shared/types/{animation.js → core.types.js} +1 -1
  56. package/lib/commonjs/shared/types/{animation.js.map → core.types.js.map} +1 -1
  57. package/lib/commonjs/shared/types/{gesture.js → gesture.types.js} +1 -1
  58. package/lib/commonjs/shared/types/gesture.types.js.map +1 -0
  59. package/lib/commonjs/shared/types/utils.types.js +2 -0
  60. package/lib/commonjs/shared/types/{core.js.map → utils.types.js.map} +1 -1
  61. package/lib/commonjs/shared/utils/animation/derivations.js +1 -7
  62. package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -1
  63. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -0
  64. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +19 -0
  65. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  66. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  67. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -0
  68. package/lib/commonjs/shared/utils/bounds/index.js +45 -35
  69. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  70. package/lib/commonjs/shared/utils/bounds/types/builder.js.map +1 -0
  71. package/lib/commonjs/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  72. package/lib/commonjs/shared/utils/create-provider.js.map +1 -0
  73. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +1 -1
  74. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js +1 -1
  75. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +17 -0
  76. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -0
  77. package/lib/module/blank-stack/components/Overlay.js +7 -4
  78. package/lib/module/blank-stack/components/Overlay.js.map +1 -1
  79. package/lib/module/blank-stack/components/Screens.js +1 -1
  80. package/lib/module/blank-stack/components/StackView.js +8 -4
  81. package/lib/module/blank-stack/components/StackView.js.map +1 -1
  82. package/lib/module/blank-stack/hooks/use-overlay-animation.js +3 -3
  83. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  84. package/lib/module/blank-stack/index.js +1 -1
  85. package/lib/module/blank-stack/index.js.map +1 -1
  86. package/lib/module/native-stack/views/NativeStackView.native.js +3 -2
  87. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  88. package/lib/module/shared/components/controllers/screen-lifecycle.js +8 -8
  89. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -1
  90. package/lib/module/shared/components/create-transition-aware-component.js +11 -14
  91. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  92. package/lib/module/shared/components/root-transition-aware.js +1 -1
  93. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  94. package/lib/module/shared/configs/presets.js +20 -9
  95. package/lib/module/shared/configs/presets.js.map +1 -1
  96. package/lib/module/shared/constants.js +0 -1
  97. package/lib/module/shared/constants.js.map +1 -1
  98. package/lib/module/shared/hooks/animation/use-associated-style.js +9 -10
  99. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  100. package/lib/module/shared/hooks/animation/use-screen-animation.js +7 -22
  101. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  102. package/lib/module/shared/hooks/gestures/use-build-gestures.js +4 -4
  103. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  104. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  105. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  106. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  107. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  108. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  109. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  110. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -1
  111. package/lib/module/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  112. package/lib/module/shared/providers/gestures.provider.js.map +1 -0
  113. package/lib/module/shared/providers/{keys.js → keys.provider.js} +1 -1
  114. package/lib/module/shared/providers/keys.provider.js.map +1 -0
  115. package/lib/module/shared/providers/register-bounds.provider.js +206 -0
  116. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -0
  117. package/lib/module/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  118. package/lib/module/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  119. package/lib/module/shared/providers/{transition-styles.js → transition-styles.provider.js} +8 -9
  120. package/lib/module/shared/providers/transition-styles.provider.js.map +1 -0
  121. package/lib/module/shared/stores/{animation-store.js → animation.store.js} +1 -1
  122. package/lib/module/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  123. package/lib/module/shared/stores/bounds.store.js +137 -0
  124. package/lib/module/shared/stores/bounds.store.js.map +1 -0
  125. package/lib/module/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  126. package/lib/module/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  127. package/lib/module/shared/types/animation.types.js +4 -0
  128. package/lib/module/shared/types/animation.types.js.map +1 -0
  129. package/lib/module/shared/types/bounds.types.js +4 -0
  130. package/lib/module/shared/types/bounds.types.js.map +1 -0
  131. package/lib/module/shared/types/core.types.js +4 -0
  132. package/lib/{commonjs/shared/types/bounds.js.map → module/shared/types/core.types.js.map} +1 -1
  133. package/lib/module/shared/types/{gesture.js → gesture.types.js} +1 -1
  134. package/lib/module/shared/types/gesture.types.js.map +1 -0
  135. package/lib/module/shared/types/utils.types.js +2 -0
  136. package/lib/{commonjs/shared/types/utils.js.map → module/shared/types/utils.types.js.map} +1 -1
  137. package/lib/module/shared/utils/animation/derivations.js +1 -7
  138. package/lib/module/shared/utils/animation/derivations.js.map +1 -1
  139. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -0
  140. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +14 -0
  141. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  142. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  143. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/index.js +45 -35
  145. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  146. package/lib/module/shared/utils/bounds/types/builder.js.map +1 -0
  147. package/lib/module/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  148. package/lib/module/shared/utils/create-provider.js.map +1 -0
  149. package/lib/module/shared/utils/gesture/apply-offset-rules.js +1 -1
  150. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -1
  151. package/lib/module/shared/utils/gesture/check-gesture-activation.js +1 -1
  152. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  153. package/lib/module/shared/utils/reset-stores-for-screen.js +13 -0
  154. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -0
  155. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -1
  156. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -1
  157. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +1 -1
  158. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -1
  159. package/lib/typescript/blank-stack/index.d.ts +1 -1
  160. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  161. package/lib/typescript/blank-stack/types.d.ts +2 -2
  162. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  163. package/lib/typescript/native-stack/types.d.ts +1 -1
  164. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  165. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  166. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -1
  167. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  168. package/lib/typescript/shared/configs/index.d.ts +9 -3
  169. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  170. package/lib/typescript/shared/configs/presets.d.ts +10 -4
  171. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  172. package/lib/typescript/shared/constants.d.ts +6 -6
  173. package/lib/typescript/shared/constants.d.ts.map +1 -1
  174. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  175. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -2
  176. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  177. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts +2 -2
  178. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  179. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -0
  180. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  181. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -1
  182. package/lib/typescript/shared/index.d.ts +25 -19
  183. package/lib/typescript/shared/index.d.ts.map +1 -1
  184. package/lib/typescript/shared/providers/{gestures.d.ts → gestures.provider.d.ts} +2 -2
  185. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -0
  186. package/lib/typescript/shared/providers/{keys.d.ts → keys.provider.d.ts} +2 -2
  187. package/lib/typescript/shared/providers/keys.provider.d.ts.map +1 -0
  188. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +17 -0
  189. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -0
  190. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts → screen-transition.provider.d.ts} +2 -2
  191. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts.map → screen-transition.provider.d.ts.map} +1 -1
  192. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +14 -0
  193. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +1 -0
  194. package/lib/typescript/shared/stores/{animation-store.d.ts → animation.store.d.ts} +2 -2
  195. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -0
  196. package/lib/typescript/shared/stores/bounds.store.d.ts +29 -0
  197. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -0
  198. package/lib/typescript/shared/stores/{gesture-store.d.ts → gesture.store.d.ts} +3 -3
  199. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -0
  200. package/lib/typescript/shared/types/{animation.d.ts → animation.types.d.ts} +48 -20
  201. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -0
  202. package/lib/typescript/shared/types/{bounds.d.ts → bounds.types.d.ts} +4 -4
  203. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -0
  204. package/lib/typescript/shared/types/{core.d.ts → core.types.d.ts} +3 -3
  205. package/lib/typescript/shared/types/core.types.d.ts.map +1 -0
  206. package/lib/typescript/shared/types/{gesture.d.ts → gesture.types.d.ts} +1 -1
  207. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -0
  208. package/lib/typescript/shared/types/{utils.d.ts → utils.types.d.ts} +1 -1
  209. package/lib/typescript/shared/types/utils.types.d.ts.map +1 -0
  210. package/lib/typescript/shared/utils/animation/derivations.d.ts +2 -4
  211. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -1
  212. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +2 -2
  213. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  214. package/lib/typescript/shared/utils/bounds/constants.d.ts +3 -3
  215. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -1
  216. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/geometry.d.ts +3 -3
  217. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -0
  218. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +1 -0
  219. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/style-composers.d.ts +2 -2
  220. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -0
  221. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/styles.d.ts +1 -1
  222. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -0
  223. package/lib/typescript/shared/utils/bounds/index.d.ts +3 -4
  224. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  225. package/lib/typescript/shared/utils/bounds/{_types → types}/builder.d.ts +13 -34
  226. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -0
  227. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -0
  228. package/lib/typescript/shared/{providers/utils → utils}/create-provider.d.ts +2 -2
  229. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -0
  230. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +2 -2
  231. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +2 -2
  233. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +2 -2
  235. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/gesture/velocity.d.ts +1 -1
  237. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +6 -0
  238. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -0
  239. package/package.json +1 -1
  240. package/src/blank-stack/components/Overlay.tsx +5 -2
  241. package/src/blank-stack/components/Screens.tsx +1 -1
  242. package/src/blank-stack/components/StackView.tsx +7 -2
  243. package/src/blank-stack/hooks/use-overlay-animation.tsx +4 -4
  244. package/src/blank-stack/index.ts +1 -1
  245. package/src/blank-stack/types.ts +2 -2
  246. package/src/native-stack/types.ts +1 -1
  247. package/src/native-stack/views/NativeStackView.native.tsx +4 -2
  248. package/src/shared/components/controllers/screen-lifecycle.tsx +12 -10
  249. package/src/shared/components/create-transition-aware-component.tsx +23 -27
  250. package/src/shared/components/root-transition-aware.tsx +1 -1
  251. package/src/shared/configs/presets.ts +31 -17
  252. package/src/shared/constants.ts +6 -7
  253. package/src/shared/hooks/animation/use-associated-style.tsx +12 -9
  254. package/src/shared/hooks/animation/use-screen-animation.tsx +8 -26
  255. package/src/shared/hooks/gestures/use-build-gestures.tsx +5 -5
  256. package/src/shared/hooks/gestures/use-parent-gesture-registry.tsx +1 -1
  257. package/src/shared/hooks/gestures/use-scroll-registry.tsx +2 -2
  258. package/src/shared/index.ts +2 -2
  259. package/src/shared/providers/{gestures.tsx → gestures.provider.tsx} +1 -1
  260. package/src/shared/providers/{keys.tsx → keys.provider.tsx} +1 -1
  261. package/src/shared/providers/register-bounds.provider.tsx +290 -0
  262. package/src/shared/providers/{screen-transition-provider.tsx → screen-transition.provider.tsx} +3 -3
  263. package/src/shared/providers/{transition-styles.tsx → transition-styles.provider.tsx} +18 -16
  264. package/src/shared/stores/{animation-store.ts → animation.store.ts} +1 -1
  265. package/src/shared/stores/bounds.store.ts +166 -0
  266. package/src/shared/stores/{gesture-store.ts → gesture.store.ts} +2 -2
  267. package/src/shared/types/{animation.ts → animation.types.ts} +60 -19
  268. package/src/shared/types/{bounds.ts → bounds.types.ts} +3 -3
  269. package/src/shared/types/{core.ts → core.types.ts} +10 -2
  270. package/src/shared/utils/animation/derivations.ts +2 -8
  271. package/src/shared/utils/animation/start-screen-transition.ts +2 -2
  272. package/src/shared/utils/bounds/constants.ts +3 -3
  273. package/src/shared/utils/bounds/{_utils → helpers}/geometry.ts +3 -3
  274. package/src/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.ts +3 -3
  275. package/src/shared/utils/bounds/{_utils → helpers}/style-composers.ts +2 -2
  276. package/src/shared/utils/bounds/{_utils → helpers}/styles.ts +1 -1
  277. package/src/shared/utils/bounds/index.ts +53 -55
  278. package/src/shared/utils/bounds/{_types → types}/builder.ts +19 -37
  279. package/src/shared/{providers/utils → utils}/create-provider.tsx +3 -9
  280. package/src/shared/utils/gesture/apply-offset-rules.ts +2 -2
  281. package/src/shared/utils/gesture/check-gesture-activation.ts +2 -2
  282. package/src/shared/utils/gesture/reset-gesture-values.ts +2 -2
  283. package/src/shared/utils/gesture/velocity.ts +1 -1
  284. package/src/shared/utils/reset-stores-for-screen.ts +11 -0
  285. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +0 -152
  286. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  287. package/lib/commonjs/shared/hooks/use-derived-value-state.js +0 -33
  288. package/lib/commonjs/shared/hooks/use-derived-value-state.js.map +0 -1
  289. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +0 -1
  290. package/lib/commonjs/shared/providers/gestures.js.map +0 -1
  291. package/lib/commonjs/shared/providers/keys.js.map +0 -1
  292. package/lib/commonjs/shared/providers/transition-styles.js.map +0 -1
  293. package/lib/commonjs/shared/providers/utils/create-provider.js.map +0 -1
  294. package/lib/commonjs/shared/stores/bound-store/_utils.js +0 -118
  295. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +0 -1
  296. package/lib/commonjs/shared/stores/bound-store/index.js +0 -127
  297. package/lib/commonjs/shared/stores/bound-store/index.js.map +0 -1
  298. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +0 -19
  299. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  300. package/lib/commonjs/shared/types/gesture.js.map +0 -1
  301. package/lib/commonjs/shared/types/utils.js +0 -2
  302. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +0 -1
  303. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js +0 -6
  304. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  305. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js +0 -27
  306. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  307. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +0 -1
  308. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js +0 -49
  309. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  310. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +0 -19
  311. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  312. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  313. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +0 -1
  314. package/lib/module/shared/hooks/bounds/use-bound-registry.js +0 -146
  315. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  316. package/lib/module/shared/hooks/use-derived-value-state.js +0 -30
  317. package/lib/module/shared/hooks/use-derived-value-state.js.map +0 -1
  318. package/lib/module/shared/hooks/use-shared-value-state.js.map +0 -1
  319. package/lib/module/shared/providers/gestures.js.map +0 -1
  320. package/lib/module/shared/providers/keys.js.map +0 -1
  321. package/lib/module/shared/providers/transition-styles.js.map +0 -1
  322. package/lib/module/shared/providers/utils/create-provider.js.map +0 -1
  323. package/lib/module/shared/stores/bound-store/_utils.js +0 -113
  324. package/lib/module/shared/stores/bound-store/_utils.js.map +0 -1
  325. package/lib/module/shared/stores/bound-store/index.js +0 -123
  326. package/lib/module/shared/stores/bound-store/index.js.map +0 -1
  327. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +0 -15
  328. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  329. package/lib/module/shared/types/animation.js +0 -4
  330. package/lib/module/shared/types/animation.js.map +0 -1
  331. package/lib/module/shared/types/bounds.js +0 -4
  332. package/lib/module/shared/types/bounds.js.map +0 -1
  333. package/lib/module/shared/types/core.js +0 -4
  334. package/lib/module/shared/types/core.js.map +0 -1
  335. package/lib/module/shared/types/gesture.js.map +0 -1
  336. package/lib/module/shared/types/utils.js +0 -2
  337. package/lib/module/shared/types/utils.js.map +0 -1
  338. package/lib/module/shared/utils/bounds/_types/geometry.js.map +0 -1
  339. package/lib/module/shared/utils/bounds/_types/get-bounds.js +0 -4
  340. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  341. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js +0 -23
  342. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  343. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +0 -1
  344. package/lib/module/shared/utils/bounds/_utils/get-bounds.js +0 -44
  345. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  346. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +0 -14
  347. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  348. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  349. package/lib/module/shared/utils/bounds/_utils/styles.js.map +0 -1
  350. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts +0 -17
  351. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  352. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts +0 -9
  353. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts.map +0 -1
  354. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +0 -1
  355. package/lib/typescript/shared/providers/gestures.d.ts.map +0 -1
  356. package/lib/typescript/shared/providers/keys.d.ts.map +0 -1
  357. package/lib/typescript/shared/providers/transition-styles.d.ts +0 -11
  358. package/lib/typescript/shared/providers/transition-styles.d.ts.map +0 -1
  359. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +0 -1
  360. package/lib/typescript/shared/stores/animation-store.d.ts.map +0 -1
  361. package/lib/typescript/shared/stores/bound-store/_utils.d.ts +0 -24
  362. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +0 -1
  363. package/lib/typescript/shared/stores/bound-store/index.d.ts +0 -24
  364. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +0 -1
  365. package/lib/typescript/shared/stores/gesture-store.d.ts.map +0 -1
  366. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +0 -6
  367. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  368. package/lib/typescript/shared/types/animation.d.ts.map +0 -1
  369. package/lib/typescript/shared/types/bounds.d.ts.map +0 -1
  370. package/lib/typescript/shared/types/core.d.ts.map +0 -1
  371. package/lib/typescript/shared/types/gesture.d.ts.map +0 -1
  372. package/lib/typescript/shared/types/utils.d.ts.map +0 -1
  373. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +0 -1
  374. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +0 -1
  375. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts +0 -10
  376. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  377. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts +0 -2
  378. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  379. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +0 -1
  380. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts +0 -4
  381. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  382. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  383. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  384. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +0 -1
  385. package/src/shared/hooks/bounds/use-bound-registry.tsx +0 -184
  386. package/src/shared/hooks/use-derived-value-state.ts +0 -41
  387. package/src/shared/stores/bound-store/_utils.ts +0 -161
  388. package/src/shared/stores/bound-store/index.ts +0 -148
  389. package/src/shared/stores/utils/reset-stores-for-screen.ts +0 -13
  390. package/src/shared/utils/bounds/_types/get-bounds.ts +0 -10
  391. package/src/shared/utils/bounds/_utils/flatten-styles.ts +0 -21
  392. package/src/shared/utils/bounds/_utils/get-bounds.ts +0 -54
  393. /package/lib/commonjs/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  394. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  395. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  396. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  397. /package/lib/commonjs/shared/utils/bounds/{_types → types}/builder.js +0 -0
  398. /package/lib/commonjs/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  399. /package/lib/commonjs/shared/{providers/utils → utils}/create-provider.js +0 -0
  400. /package/lib/module/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  401. /package/lib/module/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  402. /package/lib/module/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  403. /package/lib/module/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  404. /package/lib/module/shared/utils/bounds/{_types → types}/builder.js +0 -0
  405. /package/lib/module/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  406. /package/lib/module/shared/{providers/utils → utils}/create-provider.js +0 -0
  407. /package/lib/typescript/shared/hooks/{use-shared-value-state.d.ts → reanimated/use-shared-value-state.d.ts} +0 -0
  408. /package/lib/typescript/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.d.ts +0 -0
  409. /package/lib/typescript/shared/utils/bounds/{_types → types}/geometry.d.ts +0 -0
  410. /package/src/shared/hooks/{use-shared-value-state.ts → reanimated/use-shared-value-state.ts} +0 -0
  411. /package/src/shared/hooks/{use-stable-callback-value.tsx → use-stable-callback-value.ts} +0 -0
  412. /package/src/shared/hooks/{use-stable-callback.tsx → use-stable-callback.ts} +0 -0
  413. /package/src/shared/types/{gesture.ts → gesture.types.ts} +0 -0
  414. /package/src/shared/types/{utils.ts → utils.types.ts} +0 -0
  415. /package/src/shared/utils/bounds/{_types → types}/geometry.ts +0 -0
@@ -1,5 +1,5 @@
1
- import type { AnimationStoreMap } from "../../stores/animation-store";
2
- import type { TransitionSpec } from "../../types/animation";
1
+ import type { AnimationStoreMap } from "../../stores/animation.store";
2
+ import type { TransitionSpec } from "../../types/animation.types";
3
3
  interface StartScreenTransitionProps {
4
4
  target: "open" | "close";
5
5
  spec?: TransitionSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"start-screen-transition.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/start-screen-transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,UAAU,0BAA0B;IACnC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,GAAI,mEAMnC,0BAA0B,SAwC5B,CAAC"}
1
+ {"version":3,"file":"start-screen-transition.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/start-screen-transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,0BAA0B;IACnC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,GAAI,mEAMnC,0BAA0B,SAwC5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { MeasuredDimensions } from "react-native-reanimated";
2
- import type { Layout } from "../../types/core";
3
- import type { Complete } from "../../types/utils";
4
- import type { BoundsBuilderOptions } from "./_types/builder";
2
+ import type { Layout } from "../../types/core.types";
3
+ import type { Complete } from "../../types/utils.types";
4
+ import type { BoundsBuilderOptions } from "./types/builder";
5
5
  export declare const FULLSCREEN_DIMENSIONS: (dimensions: Layout) => MeasuredDimensions;
6
6
  export declare const DEFAULT_BUILDER_OPTIONS: Complete<Omit<BoundsBuilderOptions, "id">>;
7
7
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,GACjC,YAAY,MAAM,KAChB,kBAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC7C,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAmBtB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,qBAAqB,GACjC,YAAY,MAAM,KAChB,kBAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC7C,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAmBtB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { MeasuredDimensions } from "react-native-reanimated";
2
- import type { Layout } from "../../../types/core";
3
- import type { BoundsAnchor, BoundsScaleMode } from "../_types/builder";
4
- import type { ContentTransformGeometry, RelativeGeometry } from "../_types/geometry";
2
+ import type { Layout } from "../../../types/core.types";
3
+ import type { BoundsAnchor, BoundsScaleMode } from "../types/builder";
4
+ import type { ContentTransformGeometry, RelativeGeometry } from "../types/geometry";
5
5
  /**
6
6
  * Relative geometry between start/end bounds.
7
7
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,mBAAmB,CAAC;AAsC3B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACvC,KAAK,EACL,GAAG,EACH,QAAQ,EACR,MAAiB,EACjB,SAAmB,GACnB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,gBAAgB,CAoCnB;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,EAC/C,KAAK,EACL,GAAG,EACH,QAAQ,EACR,UAAU,EACV,MAAiB,EACjB,SAAqB,GACrB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,wBAAwB,CAmD3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-bounds-equal.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/is-bounds-equal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,eAAO,MAAM,aAAa,GAAI,oCAI3B;IACF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;CACvB,YAYA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type MeasuredDimensions, type StyleProps } from "react-native-reanimated";
2
- import type { BoundsBuilderOptions } from "../_types/builder";
3
- import type { ContentTransformGeometry, RelativeGeometry } from "../_types/geometry";
2
+ import type { BoundsBuilderOptions } from "../types/builder";
3
+ import type { ContentTransformGeometry, RelativeGeometry } from "../types/geometry";
4
4
  /**
5
5
  * Element-level (relative) params shared by size/transform composers.
6
6
  * - start/end: absolute window bounds of the element in previous/next phases
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-composers.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/style-composers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,mBAAmB,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,oBAAoB,CAAC;CACrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,oBAAoB,CAAC;CACrC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAgC5E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAkC5E;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,oBAAoB,GAC1B,UAAU,CA6BZ;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,oBAAoB,GAC1B,UAAU,CAoCZ;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CA+B5E"}
@@ -1,5 +1,5 @@
1
1
  import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from "react-native";
2
- import type { Any } from "../../../types/utils";
2
+ import type { Any } from "../../../types/utils.types";
3
3
  type AnyStyle = ViewStyle | TextStyle | ImageStyle;
4
4
  type StyleValue = StyleProp<AnyStyle>;
5
5
  type PlainStyleObject = Record<string, Any>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AAEtD,KAAK,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACnD,KAAK,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AACtC,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAqD5C,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,UAAU,GAAG,SAAS,GAC3B,gBAAgB,CAOlB"}
@@ -1,8 +1,7 @@
1
- import type { ScreenInterpolationProps, ScreenTransitionState } from "../../types/animation";
2
- import type { BoundsAccessor } from "../../types/bounds";
3
- import type { Layout } from "../../types/core";
1
+ import type { ScreenInterpolationProps, ScreenTransitionState } from "../../types/animation.types";
2
+ import type { BoundsAccessor } from "../../types/bounds.types";
3
+ import type { Layout } from "../../types/core.types";
4
4
  export interface BuildBoundsAccessorParams {
5
- activeBoundId: string | null;
6
5
  current: ScreenTransitionState;
7
6
  previous?: ScreenTransitionState;
8
7
  next?: ScreenTransitionState;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAmB5D,MAAM,WAAW,yBAAyB;IACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAgJD,eAAO,MAAM,YAAY,GACxB,OAAO,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KAC7C,cAgCF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAkBrD,MAAM,WAAW,yBAAyB;IACzC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAqJD,eAAO,MAAM,YAAY,GACxB,OAAO,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KAC7C,cA0BF,CAAC"}
@@ -1,23 +1,19 @@
1
1
  import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
2
- import type { ScreenTransitionState } from "../../../types/animation";
3
- import type { BoundsMethod } from "../../../types/bounds";
4
- import type { Layout } from "../../../types/core";
5
- /**
6
- * Params passed to the builder initializer. No method required here.
7
- */
8
- export type BoundsBuilderInitParams = {
9
- id: string | null;
2
+ import type { ScreenTransitionState } from "../../../types/animation.types";
3
+ import type { BoundsMethod } from "../../../types/bounds.types";
4
+ import type { Layout } from "../../../types/core.types";
5
+ export type BoundsAnchor = "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing";
6
+ export type BoundsScaleMode = "match" | "none" | "uniform";
7
+ export type BoundsTarget = "bound" | "fullscreen" | MeasuredDimensions;
8
+ export type BoundsSpace = "relative" | "absolute";
9
+ export type BoundsComputeParams = {
10
+ id?: string;
10
11
  previous?: ScreenTransitionState;
11
12
  current: ScreenTransitionState;
12
13
  next?: ScreenTransitionState;
13
14
  progress: number;
14
15
  dimensions: Layout;
15
16
  };
16
- export type BoundsAnchor = "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing";
17
- export type BoundsScaleMode = "match" | "none" | "uniform";
18
- export type BoundsTarget = "bound" | "fullscreen" | MeasuredDimensions;
19
- export type BoundsSpace = "relative" | "absolute";
20
- export type BoundsComputeParams = BoundsBuilderInitParams;
21
17
  export type RawSizeAbsoluteReturn = {
22
18
  width: number;
23
19
  height: number;
@@ -50,25 +46,13 @@ export type RawContentReturn = {
50
46
  export type BoundsReturnType<T extends BoundsBuilderOptions> = T["raw"] extends true ? T["method"] extends "size" ? T["space"] extends "absolute" ? RawSizeAbsoluteReturn : RawSizeRelativeReturn : T["method"] extends "content" ? RawContentReturn : T["space"] extends "absolute" ? RawTransformAbsoluteReturn : RawTransformRelativeReturn : StyleProps;
51
47
  export type BoundsBuilderOptions = {
52
48
  /**
53
- * @deprecated Use `content.scaleMode` instead.
54
- */
55
- toFullscreen?: boolean;
56
- /**
57
- * @deprecated Use `content.anchor` instead.
58
- */
59
- absolute?: boolean;
60
- /**
61
- * @deprecated Use `content.anchor` instead.
62
- */
63
- relative?: boolean;
64
- /**
65
- * @deprecated Use `scaleMode` instead.
49
+ * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
66
50
  */
67
- contentScaleMode?: "aspectFill" | "aspectFit" | "auto";
51
+ id: string;
68
52
  /**
69
- * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
53
+ * Whether the bound should target the screen or the bound.
70
54
  */
71
- id?: string;
55
+ target?: BoundsTarget;
72
56
  /**
73
57
  * The method to use to compute the bounds.
74
58
  *
@@ -87,11 +71,6 @@ export type BoundsBuilderOptions = {
87
71
  * @default "relative"
88
72
  */
89
73
  space?: BoundsSpace;
90
- /**
91
- * Whether the bound should target the screen or the bound.
92
- * @default "bound"
93
- */
94
- target?: BoundsTarget;
95
74
  /**
96
75
  * The gesture offsets to apply to the bounds.
97
76
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,MAAM,YAAY,GACrB,YAAY,GACZ,KAAK,GACL,aAAa,GACb,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,QAAQ,GACR,gBAAgB,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAEvE,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,IAC1D,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,GAClB,CAAC,CAAC,QAAQ,CAAC,SAAS,MAAM,GACzB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,qBAAqB,GACrB,qBAAqB,GACtB,CAAC,CAAC,QAAQ,CAAC,SAAS,SAAS,GAC5B,gBAAgB,GAChB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,0BAA0B,GAC1B,0BAA0B,GAC7B,UAAU,CAAC;AAEf,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtC;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/geometry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;CACV,CAAC"}
@@ -3,10 +3,10 @@
3
3
  * https://github.com/MatiPl01/react-native-sortables/blob/main/packages/react-native-sortables/src/providers/utils/createProvider.tsx
4
4
  * SUPER COOL AMAZING UTILITY
5
5
  */
6
- import { type PropsWithChildren, type ReactNode } from "react";
6
+ import { type ReactNode } from "react";
7
7
  export default function createProvider<ProviderName extends string, Guarded extends boolean = true>(name: ProviderName, options?: {
8
8
  guarded?: Guarded;
9
- }): <ProviderProps extends PropsWithChildren<object>, ContextValue>(factory: (props: ProviderProps) => {
9
+ }): <ProviderProps extends object, ContextValue>(factory: (props: ProviderProps) => {
10
10
  value?: ContextValue;
11
11
  enabled?: boolean;
12
12
  children?: ReactNode;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-provider.d.ts","sourceRoot":"","sources":["../../../../src/shared/utils/create-provider.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAiB,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAE3E,MAAM,CAAC,OAAO,UAAU,cAAc,CACrC,YAAY,SAAS,MAAM,EAC3B,OAAO,SAAS,OAAO,GAAG,IAAI,EAC7B,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,IAC5C,aAAa,SAAS,MAAM,EAAE,YAAY,EACjD,SAAS,CAAC,KAAK,EAAE,aAAa,KAAK;IAClC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,KA4CI,GACH,CAAC,IAAI,YAAY,IAAI,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,GACjE,GAAG,GACF,CAAC,IAAI,YAAY,IAAI,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,GAC9D,GAAG,GACF,CAAC,IAAI,YAAY,IAAI,MAAM,CAAC,SAAS,GAAG,MAAM,OAAO,SAAS,IAAI,GAChE,YAAY,GACZ,YAAY,GAAG,IAAI,GACtB,CAEF"}
@@ -1,7 +1,7 @@
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";
4
- import { type GestureActivationArea, GestureOffsetState } from "../../types/gesture";
3
+ import type { Layout } from "../../types/core.types";
4
+ import { type GestureActivationArea, GestureOffsetState } from "../../types/gesture.types";
5
5
  type Directions = {
6
6
  vertical: boolean;
7
7
  verticalInverted: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"apply-offset-rules.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/apply-offset-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AACjI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAEN,KAAK,qBAAqB,EAC1B,kBAAkB,EAElB,MAAM,qBAAqB,CAAC;AAE7B,KAAK,UAAU,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,UAAU,2BAA2B;IACpC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AA8BD,UAAU,YAAY;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACvB;AAsJD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,iHAS9B,2BAA2B,KAAG,YA+EhC,CAAC"}
1
+ {"version":3,"file":"apply-offset-rules.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/apply-offset-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AACjI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAEN,KAAK,qBAAqB,EAC1B,kBAAkB,EAElB,MAAM,2BAA2B,CAAC;AAEnC,KAAK,UAAU,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,UAAU,2BAA2B;IACpC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AA8BD,UAAU,YAAY;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACvB;AAsJD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,iHAS9B,2BAA2B,KAAG,YA+EhC,CAAC"}
@@ -1,7 +1,7 @@
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";
4
- import { type GestureActivationArea, GestureOffsetState } from "../../types/gesture";
3
+ import type { Layout } from "../../types/core.types";
4
+ import { type GestureActivationArea, GestureOffsetState } from "../../types/gesture.types";
5
5
  type Directions = {
6
6
  vertical: boolean;
7
7
  verticalInverted: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"check-gesture-activation.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/check-gesture-activation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AACjI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAEN,KAAK,qBAAqB,EAC1B,kBAAkB,EAElB,MAAM,qBAAqB,CAAC;AAE7B,KAAK,UAAU,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,UAAU,2BAA2B;IACpC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AA8BD,UAAU,YAAY;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACvB;AAiKD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,iHAS9B,2BAA2B,KAAG,YA2EhC,CAAC"}
1
+ {"version":3,"file":"check-gesture-activation.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/check-gesture-activation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AACjI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAEN,KAAK,qBAAqB,EAC1B,kBAAkB,EAElB,MAAM,2BAA2B,CAAC;AAEnC,KAAK,UAAU,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,UAAU,2BAA2B;IACpC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AA8BD,UAAU,YAAY;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACvB;AAiKD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,iHAS9B,2BAA2B,KAAG,YA2EhC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { GestureStateChangeEvent, PanGestureHandlerEventPayload } from "react-native-gesture-handler";
2
- import type { GestureStoreMap } from "../../stores/gesture-store";
3
- import type { AnimationConfig } from "../../types/animation";
2
+ import type { GestureStoreMap } from "../../stores/gesture.store";
3
+ import type { AnimationConfig } from "../../types/animation.types";
4
4
  interface ResetGestureValuesProps {
5
5
  spec?: AnimationConfig;
6
6
  gestures: GestureStoreMap;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-gesture-values.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/reset-gesture-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,6BAA6B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,UAAU,uBAAuB;IAChC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,CAAC;IAC9D,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,eAAO,MAAM,kBAAkB,GAAI,uDAMhC,uBAAuB,SA2CzB,CAAC"}
1
+ {"version":3,"file":"reset-gesture-values.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/gesture/reset-gesture-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,6BAA6B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAInE,UAAU,uBAAuB;IAChC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,CAAC;IAC9D,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,eAAO,MAAM,kBAAkB,GAAI,uDAMhC,uBAAuB,SA2CzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { GestureStateChangeEvent, PanGestureHandlerEventPayload } from "react-native-gesture-handler";
2
- import type { AnimationStoreMap } from "../../stores/animation-store";
2
+ import type { AnimationStoreMap } from "../../stores/animation.store";
3
3
  interface CalculateProgressProps {
4
4
  animations: AnimationStoreMap;
5
5
  shouldDismiss: boolean;
@@ -0,0 +1,6 @@
1
+ import type { TransitionDescriptor } from "../providers/keys.provider";
2
+ /**
3
+ * Reset all stores for a given screen
4
+ */
5
+ export declare const resetStoresForScreen: (current: TransitionDescriptor) => void;
6
+ //# sourceMappingURL=reset-stores-for-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../src/shared/utils/reset-stores-for-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIvE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,oBAAoB,SAGjE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screen-transitions",
3
- "version": "3.0.0-beta.9",
3
+ "version": "3.0.0-rc.1",
4
4
  "description": "Easy screen transitions for React Native and Expo",
5
5
  "author": "Ed",
6
6
  "license": "MIT",
@@ -6,7 +6,8 @@ import { useMemo } from "react";
6
6
  import { Animated, StyleSheet, View } from "react-native";
7
7
  import { useSafeAreaInsets } from "react-native-safe-area-context";
8
8
  import { useScreenAnimation } from "../../shared/hooks/animation/use-screen-animation";
9
- import { KeysProvider, useKeys } from "../../shared/providers/keys";
9
+ import { KeysProvider, useKeys } from "../../shared/providers/keys.provider";
10
+ import { TransitionStylesProvider } from "../../shared/providers/transition-styles.provider";
10
11
  import { useOverlayAnimation } from "../hooks/use-overlay-animation";
11
12
  import type {
12
13
  BlankStackDescriptor,
@@ -127,7 +128,9 @@ const FloatOverlay = () => {
127
128
 
128
129
  return (
129
130
  <KeysProvider current={current} previous={previous} next={next}>
130
- <OverlayHost scene={scene} isFloating />
131
+ <TransitionStylesProvider>
132
+ <OverlayHost scene={scene} isFloating />
133
+ </TransitionStylesProvider>
131
134
  </KeysProvider>
132
135
  );
133
136
  };
@@ -8,7 +8,7 @@ import Animated, {
8
8
  useSharedValue,
9
9
  } from "react-native-reanimated";
10
10
  import { Screen as RNSScreen } from "react-native-screens";
11
- import { AnimationStore } from "../../shared/stores/animation-store";
11
+ import { AnimationStore } from "../../shared/stores/animation.store";
12
12
 
13
13
  interface ScreenProps {
14
14
  routeKey: string;
@@ -4,10 +4,11 @@ import {
4
4
  NavigationRouteContext,
5
5
  } from "@react-navigation/native";
6
6
  import * as React from "react";
7
+ import { StyleSheet } from "react-native";
7
8
  import { GestureHandlerRootView } from "react-native-gesture-handler";
8
9
  import { ScreenContainer } from "react-native-screens";
9
10
  import { BlankStackScreenLifecycleController } from "../../shared/components/controllers/screen-lifecycle";
10
- import { ScreenTransitionProvider } from "../../shared/providers/screen-transition-provider";
11
+ import { ScreenTransitionProvider } from "../../shared/providers/screen-transition.provider";
11
12
  import type { BlankStackDescriptor } from "../types";
12
13
  import { withStackNavigationProvider } from "../utils/with-stack-navigation";
13
14
  import { Overlay } from "./Overlay";
@@ -49,7 +50,7 @@ export const StackView = withStackNavigationProvider(
49
50
  <GestureHandlerRootView>
50
51
  <SafeAreaProviderCompat>
51
52
  {shouldShowFloatOverlay ? <Overlay.Float /> : null}
52
- <ScreenContainer style={{ flex: 1 }}>
53
+ <ScreenContainer style={styles.container}>
53
54
  {scenes.map((scene, sceneIndex) => {
54
55
  const descriptor = scene.descriptor;
55
56
  const route = scene.route;
@@ -101,3 +102,7 @@ export const StackView = withStackNavigationProvider(
101
102
  );
102
103
  },
103
104
  );
105
+
106
+ const styles = StyleSheet.create({
107
+ container: { flex: 1 },
108
+ });
@@ -2,10 +2,10 @@ import { useMemo } from "react";
2
2
  import { useWindowDimensions } from "react-native";
3
3
  import { type DerivedValue, useDerivedValue } from "react-native-reanimated";
4
4
  import { useSafeAreaInsets } from "react-native-safe-area-context";
5
- import { useSharedValueState } from "../../shared/hooks/use-shared-value-state";
6
- import { useKeys } from "../../shared/providers/keys";
7
- import { AnimationStore } from "../../shared/stores/animation-store";
8
- import type { OverlayInterpolationProps } from "../../shared/types/animation";
5
+ import { useSharedValueState } from "../../shared/hooks/reanimated/use-shared-value-state";
6
+ import { useKeys } from "../../shared/providers/keys.provider";
7
+ import { AnimationStore } from "../../shared/stores/animation.store";
8
+ import type { OverlayInterpolationProps } from "../../shared/types/animation.types";
9
9
  import { useStackNavigationContext } from "../utils/with-stack-navigation";
10
10
 
11
11
  /**
@@ -1,5 +1,5 @@
1
- export { createBlankStackNavigator } from "../blank-stack/navigators/createBlankStackNavigator";
2
1
  export { useOverlayAnimation } from "../blank-stack/hooks/use-overlay-animation";
2
+ export { createBlankStackNavigator } from "../blank-stack/navigators/createBlankStackNavigator";
3
3
  export type {
4
4
  BlankStackNavigationEventMap,
5
5
  BlankStackNavigationOptions,
@@ -19,11 +19,11 @@ import type {
19
19
  ScreenInterpolationProps,
20
20
  ScreenStyleInterpolator,
21
21
  TransitionSpec,
22
- } from "../shared/types/animation";
22
+ } from "../shared/types/animation.types";
23
23
  import type {
24
24
  GestureActivationArea,
25
25
  GestureDirection,
26
- } from "../shared/types/gesture";
26
+ } from "../shared/types/gesture.types";
27
27
 
28
28
  export type BlankStackNavigationEventMap = {
29
29
  /**
@@ -22,7 +22,7 @@ import type {
22
22
  ScreenStackHeaderConfigProps,
23
23
  SearchBarProps,
24
24
  } from "react-native-screens";
25
- import type { ScreenTransitionConfig } from "../shared/types/core";
25
+ import type { ScreenTransitionConfig } from "../shared/types/core.types";
26
26
 
27
27
  export type Layout = {
28
28
  width: number;
@@ -34,7 +34,7 @@ import {
34
34
  ScreenStackItem,
35
35
  } from "react-native-screens";
36
36
  import { NativeStackScreenLifecycleController } from "../../shared/components/controllers/screen-lifecycle";
37
- import { ScreenTransitionProvider } from "../../shared/providers/screen-transition-provider";
37
+ import { ScreenTransitionProvider } from "../../shared/providers/screen-transition.provider";
38
38
  import type {
39
39
  NativeStackDescriptor,
40
40
  NativeStackDescriptorMap,
@@ -513,11 +513,13 @@ export function NativeStackView({
513
513
  return acc;
514
514
  }, {});
515
515
 
516
+ const routes = state.routes.concat(state.preloadedRoutes);
517
+
516
518
  return (
517
519
  <GestureHandlerRootView>
518
520
  <SafeAreaProviderCompat>
519
521
  <ScreenStack style={styles.container}>
520
- {state.routes.concat(state.preloadedRoutes).map((route, index) => {
522
+ {routes.map((route, index) => {
521
523
  const descriptor =
522
524
  descriptors[route.key] ?? preloadedDescriptors[route.key];
523
525
  const isFocused = state.index === index;
@@ -1,16 +1,16 @@
1
1
  import { useEffect, useLayoutEffect } from "react";
2
- import { useAnimatedReaction } from "react-native-reanimated";
2
+ import { useAnimatedReaction, useDerivedValue } from "react-native-reanimated";
3
3
  import type { BlankStackDescriptor } from "../../../blank-stack/types";
4
4
  import { useStackNavigationContext } from "../../../blank-stack/utils/with-stack-navigation";
5
5
  import type { NativeStackDescriptor } from "../../../native-stack/types";
6
6
  import { useParentGestureRegistry } from "../../hooks/gestures/use-parent-gesture-registry";
7
- import { useDerivedValueState } from "../../hooks/use-derived-value-state";
7
+ import { useSharedValueState } from "../../hooks/reanimated/use-shared-value-state";
8
8
  import useStableCallback from "../../hooks/use-stable-callback";
9
- import { useGestureContext } from "../../providers/gestures";
10
- import { useKeys } from "../../providers/keys";
11
- import { AnimationStore } from "../../stores/animation-store";
12
- import { resetStoresForScreen } from "../../stores/utils/reset-stores-for-screen";
9
+ import { useGestureContext } from "../../providers/gestures.provider";
10
+ import { useKeys } from "../../providers/keys.provider";
11
+ import { AnimationStore } from "../../stores/animation.store";
13
12
  import { startScreenTransition } from "../../utils/animation/start-screen-transition";
13
+ import { resetStoresForScreen } from "../../utils/reset-stores-for-screen";
14
14
 
15
15
  export interface ScreenLifecycleProps {
16
16
  children: React.ReactNode;
@@ -25,10 +25,12 @@ export const NativeStackScreenLifecycleController = ({
25
25
  const { current } = useKeys<NativeStackDescriptor>();
26
26
  const { parentContext } = useGestureContext();
27
27
 
28
- const isParentDismissingViaGesture = useDerivedValueState(() => {
29
- "worklet";
30
- return parentContext?.gestureAnimationValues.isDismissing?.value ?? false;
31
- });
28
+ const isParentDismissingViaGesture = useSharedValueState(
29
+ useDerivedValue(() => {
30
+ "worklet";
31
+ return parentContext?.gestureAnimationValues.isDismissing?.value ?? false;
32
+ }),
33
+ );
32
34
 
33
35
  const animations = AnimationStore.getAll(current.route.key);
34
36
 
@@ -4,11 +4,11 @@ import type { View } from "react-native";
4
4
  import { GestureDetector } from "react-native-gesture-handler";
5
5
  import Animated, { runOnUI, useAnimatedRef } from "react-native-reanimated";
6
6
  import { useAssociatedStyles } from "../hooks/animation/use-associated-style";
7
- import { useBoundsRegistry } from "../hooks/bounds/use-bound-registry";
8
7
  import { useScrollRegistry } from "../hooks/gestures/use-scroll-registry";
9
- import { useGestureContext } from "../providers/gestures";
10
- import type { TransitionAwareProps } from "../types/core";
11
- import type { Any } from "../types/utils";
8
+ import { useGestureContext } from "../providers/gestures.provider";
9
+ import { RegisterBoundsProvider } from "../providers/register-bounds.provider";
10
+ import type { TransitionAwareProps } from "../types/core.types";
11
+ import type { Any } from "../types/utils.types";
12
12
 
13
13
  interface CreateTransitionAwareComponentOptions {
14
14
  isScrollable?: boolean;
@@ -61,30 +61,26 @@ export function createTransitionAwareComponent<P extends object>(
61
61
  style,
62
62
  });
63
63
 
64
- const {
65
- handleInitialLayout,
66
- captureActiveOnPress,
67
- MeasurementSyncProvider,
68
- } = useBoundsRegistry({
69
- sharedBoundTag,
70
- animatedRef,
71
- style,
72
- onPress,
73
- });
74
-
75
64
  return (
76
- <MeasurementSyncProvider>
77
- <AnimatedComponent
78
- {...(rest as Any)}
79
- ref={animatedRef}
80
- style={[style, associatedStyles]}
81
- onPress={captureActiveOnPress}
82
- onLayout={runOnUI(handleInitialLayout)}
83
- collapsable={!sharedBoundTag}
84
- >
85
- {children}
86
- </AnimatedComponent>
87
- </MeasurementSyncProvider>
65
+ <RegisterBoundsProvider
66
+ animatedRef={animatedRef}
67
+ style={style}
68
+ onPress={onPress}
69
+ sharedBoundTag={sharedBoundTag}
70
+ >
71
+ {({ captureActiveOnPress, handleInitialLayout }) => (
72
+ <AnimatedComponent
73
+ {...(rest as Any)}
74
+ ref={animatedRef}
75
+ style={[style, associatedStyles]}
76
+ onPress={captureActiveOnPress}
77
+ onLayout={runOnUI(handleInitialLayout)}
78
+ collapsable={!sharedBoundTag}
79
+ >
80
+ {children}
81
+ </AnimatedComponent>
82
+ )}
83
+ </RegisterBoundsProvider>
88
84
  );
89
85
  });
90
86
 
@@ -2,7 +2,7 @@ import { memo } from "react";
2
2
  import { StyleSheet, View } from "react-native";
3
3
  import Animated, { useAnimatedStyle } from "react-native-reanimated";
4
4
  import { NO_STYLES } from "../constants";
5
- import { useTransitionStyles } from "../providers/transition-styles";
5
+ import { useTransitionStyles } from "../providers/transition-styles.provider";
6
6
 
7
7
  type Props = {
8
8
  children: React.ReactNode;