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

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 (497) hide show
  1. package/README.md +60 -5
  2. package/lib/commonjs/blank-stack/components/Overlay.js +15 -15
  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 +6 -7
  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/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +1 -0
  13. package/lib/{module/blank-stack/utils/with-stack-navigation/_utils → commonjs/blank-stack/utils/with-stack-navigation/helpers}/calculate-active-screens-limit.js.map +1 -1
  14. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +1 -0
  15. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +1 -0
  16. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +1 -0
  17. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +1 -0
  18. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +1 -0
  19. package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-stack-navigation-state.js +4 -4
  20. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +1 -0
  21. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js +2 -2
  22. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js.map +1 -1
  23. package/lib/commonjs/native-stack/views/NativeStackView.native.js +4 -3
  24. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  25. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js +9 -9
  26. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js.map +1 -1
  27. package/lib/commonjs/shared/components/create-transition-aware-component.js +11 -14
  28. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  29. package/lib/commonjs/shared/components/root-transition-aware.js +1 -1
  30. package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -1
  31. package/lib/commonjs/shared/configs/presets.js +28 -11
  32. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  33. package/lib/commonjs/shared/constants.js +0 -1
  34. package/lib/commonjs/shared/constants.js.map +1 -1
  35. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +9 -10
  36. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  37. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +16 -26
  38. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  39. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +11 -11
  40. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  41. package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  42. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
  43. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  44. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  45. package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -1
  46. package/lib/commonjs/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  47. package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -0
  48. package/lib/commonjs/shared/providers/{keys.js → keys.provider.js} +1 -1
  49. package/lib/commonjs/shared/providers/keys.provider.js.map +1 -0
  50. package/lib/commonjs/shared/providers/register-bounds.provider.js +211 -0
  51. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -0
  52. package/lib/commonjs/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  53. package/lib/commonjs/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  54. package/lib/commonjs/shared/providers/{transition-styles.js → transition-styles.provider.js} +9 -9
  55. package/lib/commonjs/shared/providers/transition-styles.provider.js.map +1 -0
  56. package/lib/commonjs/shared/stores/{animation-store.js → animation.store.js} +1 -1
  57. package/lib/commonjs/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  58. package/lib/commonjs/shared/stores/bounds.store.js +141 -0
  59. package/lib/commonjs/shared/stores/bounds.store.js.map +1 -0
  60. package/lib/commonjs/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  61. package/lib/commonjs/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  62. package/lib/commonjs/shared/types/{core.js → animation.types.js} +1 -1
  63. package/lib/commonjs/shared/types/animation.types.js.map +1 -0
  64. package/lib/commonjs/shared/types/{bounds.js → bounds.types.js} +1 -1
  65. package/lib/commonjs/shared/types/bounds.types.js.map +1 -0
  66. package/lib/commonjs/shared/types/{animation.js → core.types.js} +1 -1
  67. package/lib/commonjs/shared/types/{animation.js.map → core.types.js.map} +1 -1
  68. package/lib/commonjs/shared/types/{gesture.js → gesture.types.js} +1 -1
  69. package/lib/commonjs/shared/types/gesture.types.js.map +1 -0
  70. package/lib/commonjs/shared/types/utils.types.js +2 -0
  71. package/lib/commonjs/shared/types/{core.js.map → utils.types.js.map} +1 -1
  72. package/lib/commonjs/shared/utils/animation/derivations.js +1 -7
  73. package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -1
  74. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -0
  75. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +19 -0
  76. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  77. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  78. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -0
  79. package/lib/commonjs/shared/utils/bounds/index.js +45 -35
  80. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  81. package/lib/commonjs/shared/utils/bounds/types/builder.js.map +1 -0
  82. package/lib/commonjs/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  83. package/lib/commonjs/shared/utils/create-provider.js.map +1 -0
  84. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +1 -1
  85. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js +1 -1
  86. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +17 -0
  87. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -0
  88. package/lib/module/blank-stack/components/Overlay.js +15 -15
  89. package/lib/module/blank-stack/components/Overlay.js.map +1 -1
  90. package/lib/module/blank-stack/components/Screens.js +1 -1
  91. package/lib/module/blank-stack/components/StackView.js +8 -4
  92. package/lib/module/blank-stack/components/StackView.js.map +1 -1
  93. package/lib/module/blank-stack/hooks/use-overlay-animation.js +5 -6
  94. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -1
  95. package/lib/module/blank-stack/index.js +1 -1
  96. package/lib/module/blank-stack/index.js.map +1 -1
  97. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +1 -0
  98. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js.map +1 -0
  99. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +1 -0
  100. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +1 -0
  101. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +1 -0
  102. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +1 -0
  103. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +1 -0
  104. package/lib/module/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-stack-navigation-state.js +4 -4
  105. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +1 -0
  106. package/lib/module/blank-stack/utils/with-stack-navigation/index.js +2 -2
  107. package/lib/module/blank-stack/utils/with-stack-navigation/index.js.map +1 -1
  108. package/lib/module/native-stack/views/NativeStackView.native.js +3 -2
  109. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  110. package/lib/module/shared/components/controllers/screen-lifecycle.js +8 -8
  111. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -1
  112. package/lib/module/shared/components/create-transition-aware-component.js +11 -14
  113. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  114. package/lib/module/shared/components/root-transition-aware.js +1 -1
  115. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  116. package/lib/module/shared/configs/presets.js +28 -11
  117. package/lib/module/shared/configs/presets.js.map +1 -1
  118. package/lib/module/shared/constants.js +0 -1
  119. package/lib/module/shared/constants.js.map +1 -1
  120. package/lib/module/shared/hooks/animation/use-associated-style.js +9 -10
  121. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  122. package/lib/module/shared/hooks/animation/use-screen-animation.js +13 -23
  123. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  124. package/lib/module/shared/hooks/gestures/use-build-gestures.js +4 -4
  125. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  126. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js +1 -1
  127. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -1
  128. package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
  129. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  130. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -0
  131. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  132. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -1
  133. package/lib/module/shared/providers/{gestures.js → gestures.provider.js} +1 -1
  134. package/lib/module/shared/providers/gestures.provider.js.map +1 -0
  135. package/lib/module/shared/providers/{keys.js → keys.provider.js} +1 -1
  136. package/lib/module/shared/providers/keys.provider.js.map +1 -0
  137. package/lib/module/shared/providers/register-bounds.provider.js +206 -0
  138. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -0
  139. package/lib/module/shared/providers/{screen-transition-provider.js → screen-transition.provider.js} +4 -4
  140. package/lib/module/shared/providers/{screen-transition-provider.js.map → screen-transition.provider.js.map} +1 -1
  141. package/lib/module/shared/providers/{transition-styles.js → transition-styles.provider.js} +8 -9
  142. package/lib/module/shared/providers/transition-styles.provider.js.map +1 -0
  143. package/lib/module/shared/stores/{animation-store.js → animation.store.js} +1 -1
  144. package/lib/module/shared/stores/{animation-store.js.map → animation.store.js.map} +1 -1
  145. package/lib/module/shared/stores/bounds.store.js +137 -0
  146. package/lib/module/shared/stores/bounds.store.js.map +1 -0
  147. package/lib/module/shared/stores/{gesture-store.js → gesture.store.js} +1 -1
  148. package/lib/module/shared/stores/{gesture-store.js.map → gesture.store.js.map} +1 -1
  149. package/lib/module/shared/types/animation.types.js +4 -0
  150. package/lib/module/shared/types/animation.types.js.map +1 -0
  151. package/lib/module/shared/types/bounds.types.js +4 -0
  152. package/lib/module/shared/types/bounds.types.js.map +1 -0
  153. package/lib/module/shared/types/core.types.js +4 -0
  154. package/lib/{commonjs/shared/types/bounds.js.map → module/shared/types/core.types.js.map} +1 -1
  155. package/lib/module/shared/types/{gesture.js → gesture.types.js} +1 -1
  156. package/lib/module/shared/types/gesture.types.js.map +1 -0
  157. package/lib/module/shared/types/utils.types.js +2 -0
  158. package/lib/{commonjs/shared/types/utils.js.map → module/shared/types/utils.types.js.map} +1 -1
  159. package/lib/module/shared/utils/animation/derivations.js +1 -7
  160. package/lib/module/shared/utils/animation/derivations.js.map +1 -1
  161. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -0
  162. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +14 -0
  163. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +1 -0
  164. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -0
  165. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -0
  166. package/lib/module/shared/utils/bounds/index.js +45 -35
  167. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  168. package/lib/module/shared/utils/bounds/types/builder.js.map +1 -0
  169. package/lib/module/shared/utils/bounds/{_types/builder.js.map → types/geometry.js.map} +1 -1
  170. package/lib/module/shared/utils/create-provider.js.map +1 -0
  171. package/lib/module/shared/utils/gesture/apply-offset-rules.js +1 -1
  172. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -1
  173. package/lib/module/shared/utils/gesture/check-gesture-activation.js +1 -1
  174. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  175. package/lib/module/shared/utils/reset-stores-for-screen.js +13 -0
  176. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -0
  177. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -1
  178. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -1
  179. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +1 -1
  180. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -1
  181. package/lib/typescript/blank-stack/index.d.ts +1 -1
  182. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  183. package/lib/typescript/blank-stack/types.d.ts +19 -105
  184. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  185. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.d.ts.map +1 -0
  186. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.d.ts.map +1 -0
  187. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.d.ts.map +1 -0
  188. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.d.ts.map +1 -0
  189. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.d.ts.map +1 -0
  190. package/lib/typescript/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-closing-route-keys.d.ts.map +1 -1
  191. package/lib/typescript/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-previous.d.ts.map +1 -1
  192. package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.d.ts.map +1 -0
  193. package/lib/typescript/native-stack/types.d.ts +8 -2
  194. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  195. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  196. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -1
  197. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  198. package/lib/typescript/shared/configs/index.d.ts +9 -3
  199. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  200. package/lib/typescript/shared/configs/presets.d.ts +10 -4
  201. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  202. package/lib/typescript/shared/constants.d.ts +6 -6
  203. package/lib/typescript/shared/constants.d.ts.map +1 -1
  204. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  205. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -2
  206. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  207. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts +2 -2
  208. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  209. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -0
  210. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  211. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -1
  212. package/lib/typescript/shared/index.d.ts +37 -31
  213. package/lib/typescript/shared/index.d.ts.map +1 -1
  214. package/lib/typescript/shared/providers/{gestures.d.ts → gestures.provider.d.ts} +2 -2
  215. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -0
  216. package/lib/typescript/shared/providers/{keys.d.ts → keys.provider.d.ts} +2 -2
  217. package/lib/typescript/shared/providers/keys.provider.d.ts.map +1 -0
  218. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +17 -0
  219. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -0
  220. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts → screen-transition.provider.d.ts} +2 -2
  221. package/lib/typescript/shared/providers/{screen-transition-provider.d.ts.map → screen-transition.provider.d.ts.map} +1 -1
  222. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +14 -0
  223. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +1 -0
  224. package/lib/typescript/shared/stores/{animation-store.d.ts → animation.store.d.ts} +2 -2
  225. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -0
  226. package/lib/typescript/shared/stores/bounds.store.d.ts +29 -0
  227. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -0
  228. package/lib/typescript/shared/stores/{gesture-store.d.ts → gesture.store.d.ts} +3 -3
  229. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -0
  230. package/lib/typescript/shared/types/{animation.d.ts → animation.types.d.ts} +48 -20
  231. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -0
  232. package/lib/typescript/shared/types/{bounds.d.ts → bounds.types.d.ts} +4 -4
  233. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -0
  234. package/lib/typescript/shared/types/{core.d.ts → core.types.d.ts} +3 -7
  235. package/lib/typescript/shared/types/core.types.d.ts.map +1 -0
  236. package/lib/typescript/shared/types/{gesture.d.ts → gesture.types.d.ts} +1 -1
  237. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -0
  238. package/lib/typescript/shared/types/{utils.d.ts → utils.types.d.ts} +1 -1
  239. package/lib/typescript/shared/types/utils.types.d.ts.map +1 -0
  240. package/lib/typescript/shared/utils/animation/derivations.d.ts +2 -4
  241. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -1
  242. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +2 -2
  243. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  244. package/lib/typescript/shared/utils/bounds/constants.d.ts +3 -3
  245. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -1
  246. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/geometry.d.ts +3 -3
  247. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -0
  248. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +1 -0
  249. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/style-composers.d.ts +2 -2
  250. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -0
  251. package/lib/typescript/shared/utils/bounds/{_utils → helpers}/styles.d.ts +1 -1
  252. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -0
  253. package/lib/typescript/shared/utils/bounds/index.d.ts +3 -4
  254. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  255. package/lib/typescript/shared/utils/bounds/{_types → types}/builder.d.ts +13 -34
  256. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -0
  257. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -0
  258. package/lib/typescript/shared/{providers/utils → utils}/create-provider.d.ts +2 -2
  259. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -0
  260. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +2 -2
  261. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  262. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +2 -2
  263. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  264. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +2 -2
  265. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  266. package/lib/typescript/shared/utils/gesture/velocity.d.ts +1 -1
  267. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +6 -0
  268. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -0
  269. package/package.json +1 -1
  270. package/src/blank-stack/components/Overlay.tsx +12 -13
  271. package/src/blank-stack/components/Screens.tsx +1 -1
  272. package/src/blank-stack/components/StackView.tsx +7 -2
  273. package/src/blank-stack/hooks/use-overlay-animation.tsx +15 -15
  274. package/src/blank-stack/index.ts +1 -1
  275. package/src/blank-stack/types.ts +28 -104
  276. package/src/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-stack-navigation-state.tsx +4 -4
  277. package/src/blank-stack/utils/with-stack-navigation/index.tsx +2 -2
  278. package/src/native-stack/types.ts +9 -2
  279. package/src/native-stack/views/NativeStackView.native.tsx +4 -2
  280. package/src/shared/components/controllers/screen-lifecycle.tsx +12 -10
  281. package/src/shared/components/create-transition-aware-component.tsx +23 -27
  282. package/src/shared/components/root-transition-aware.tsx +1 -1
  283. package/src/shared/configs/presets.ts +39 -19
  284. package/src/shared/constants.ts +6 -7
  285. package/src/shared/hooks/animation/use-associated-style.tsx +12 -9
  286. package/src/shared/hooks/animation/use-screen-animation.tsx +17 -27
  287. package/src/shared/hooks/gestures/use-build-gestures.tsx +5 -5
  288. package/src/shared/hooks/gestures/use-parent-gesture-registry.tsx +1 -1
  289. package/src/shared/hooks/gestures/use-scroll-registry.tsx +2 -2
  290. package/src/shared/index.ts +2 -2
  291. package/src/shared/providers/{gestures.tsx → gestures.provider.tsx} +1 -1
  292. package/src/shared/providers/{keys.tsx → keys.provider.tsx} +1 -1
  293. package/src/shared/providers/register-bounds.provider.tsx +290 -0
  294. package/src/shared/providers/{screen-transition-provider.tsx → screen-transition.provider.tsx} +3 -3
  295. package/src/shared/providers/{transition-styles.tsx → transition-styles.provider.tsx} +18 -16
  296. package/src/shared/stores/{animation-store.ts → animation.store.ts} +1 -1
  297. package/src/shared/stores/bounds.store.ts +166 -0
  298. package/src/shared/stores/{gesture-store.ts → gesture.store.ts} +2 -2
  299. package/src/shared/types/{animation.ts → animation.types.ts} +60 -19
  300. package/src/shared/types/{bounds.ts → bounds.types.ts} +3 -3
  301. package/src/shared/types/{core.ts → core.types.ts} +12 -6
  302. package/src/shared/utils/animation/derivations.ts +2 -8
  303. package/src/shared/utils/animation/start-screen-transition.ts +2 -2
  304. package/src/shared/utils/bounds/constants.ts +3 -3
  305. package/src/shared/utils/bounds/{_utils → helpers}/geometry.ts +3 -3
  306. package/src/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.ts +3 -3
  307. package/src/shared/utils/bounds/{_utils → helpers}/style-composers.ts +2 -2
  308. package/src/shared/utils/bounds/{_utils → helpers}/styles.ts +1 -1
  309. package/src/shared/utils/bounds/index.ts +53 -55
  310. package/src/shared/utils/bounds/{_types → types}/builder.ts +19 -37
  311. package/src/shared/{providers/utils → utils}/create-provider.tsx +3 -9
  312. package/src/shared/utils/gesture/apply-offset-rules.ts +2 -2
  313. package/src/shared/utils/gesture/check-gesture-activation.ts +2 -2
  314. package/src/shared/utils/gesture/reset-gesture-values.ts +2 -2
  315. package/src/shared/utils/gesture/velocity.ts +1 -1
  316. package/src/shared/utils/reset-stores-for-screen.ts +11 -0
  317. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
  318. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
  319. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
  320. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
  321. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +0 -1
  322. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
  323. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
  324. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
  325. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +0 -152
  326. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  327. package/lib/commonjs/shared/hooks/use-derived-value-state.js +0 -33
  328. package/lib/commonjs/shared/hooks/use-derived-value-state.js.map +0 -1
  329. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +0 -1
  330. package/lib/commonjs/shared/providers/gestures.js.map +0 -1
  331. package/lib/commonjs/shared/providers/keys.js.map +0 -1
  332. package/lib/commonjs/shared/providers/transition-styles.js.map +0 -1
  333. package/lib/commonjs/shared/providers/utils/create-provider.js.map +0 -1
  334. package/lib/commonjs/shared/stores/bound-store/_utils.js +0 -118
  335. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +0 -1
  336. package/lib/commonjs/shared/stores/bound-store/index.js +0 -127
  337. package/lib/commonjs/shared/stores/bound-store/index.js.map +0 -1
  338. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +0 -19
  339. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  340. package/lib/commonjs/shared/types/gesture.js.map +0 -1
  341. package/lib/commonjs/shared/types/utils.js +0 -2
  342. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +0 -1
  343. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js +0 -6
  344. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  345. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js +0 -27
  346. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  347. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +0 -1
  348. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js +0 -49
  349. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  350. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +0 -19
  351. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  352. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  353. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +0 -1
  354. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
  355. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
  356. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
  357. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
  358. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
  359. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
  360. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
  361. package/lib/module/shared/hooks/bounds/use-bound-registry.js +0 -146
  362. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +0 -1
  363. package/lib/module/shared/hooks/use-derived-value-state.js +0 -30
  364. package/lib/module/shared/hooks/use-derived-value-state.js.map +0 -1
  365. package/lib/module/shared/hooks/use-shared-value-state.js.map +0 -1
  366. package/lib/module/shared/providers/gestures.js.map +0 -1
  367. package/lib/module/shared/providers/keys.js.map +0 -1
  368. package/lib/module/shared/providers/transition-styles.js.map +0 -1
  369. package/lib/module/shared/providers/utils/create-provider.js.map +0 -1
  370. package/lib/module/shared/stores/bound-store/_utils.js +0 -113
  371. package/lib/module/shared/stores/bound-store/_utils.js.map +0 -1
  372. package/lib/module/shared/stores/bound-store/index.js +0 -123
  373. package/lib/module/shared/stores/bound-store/index.js.map +0 -1
  374. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +0 -15
  375. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +0 -1
  376. package/lib/module/shared/types/animation.js +0 -4
  377. package/lib/module/shared/types/animation.js.map +0 -1
  378. package/lib/module/shared/types/bounds.js +0 -4
  379. package/lib/module/shared/types/bounds.js.map +0 -1
  380. package/lib/module/shared/types/core.js +0 -4
  381. package/lib/module/shared/types/core.js.map +0 -1
  382. package/lib/module/shared/types/gesture.js.map +0 -1
  383. package/lib/module/shared/types/utils.js +0 -2
  384. package/lib/module/shared/types/utils.js.map +0 -1
  385. package/lib/module/shared/utils/bounds/_types/geometry.js.map +0 -1
  386. package/lib/module/shared/utils/bounds/_types/get-bounds.js +0 -4
  387. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +0 -1
  388. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js +0 -23
  389. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +0 -1
  390. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +0 -1
  391. package/lib/module/shared/utils/bounds/_utils/get-bounds.js +0 -44
  392. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +0 -1
  393. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +0 -14
  394. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  395. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +0 -1
  396. package/lib/module/shared/utils/bounds/_utils/styles.js.map +0 -1
  397. package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +0 -1
  398. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +0 -1
  399. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts.map +0 -1
  400. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +0 -1
  401. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +0 -1
  402. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +0 -1
  403. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts +0 -17
  404. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  405. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts +0 -9
  406. package/lib/typescript/shared/hooks/use-derived-value-state.d.ts.map +0 -1
  407. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +0 -1
  408. package/lib/typescript/shared/providers/gestures.d.ts.map +0 -1
  409. package/lib/typescript/shared/providers/keys.d.ts.map +0 -1
  410. package/lib/typescript/shared/providers/transition-styles.d.ts +0 -11
  411. package/lib/typescript/shared/providers/transition-styles.d.ts.map +0 -1
  412. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +0 -1
  413. package/lib/typescript/shared/stores/animation-store.d.ts.map +0 -1
  414. package/lib/typescript/shared/stores/bound-store/_utils.d.ts +0 -24
  415. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +0 -1
  416. package/lib/typescript/shared/stores/bound-store/index.d.ts +0 -24
  417. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +0 -1
  418. package/lib/typescript/shared/stores/gesture-store.d.ts.map +0 -1
  419. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +0 -6
  420. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  421. package/lib/typescript/shared/types/animation.d.ts.map +0 -1
  422. package/lib/typescript/shared/types/bounds.d.ts.map +0 -1
  423. package/lib/typescript/shared/types/core.d.ts.map +0 -1
  424. package/lib/typescript/shared/types/gesture.d.ts.map +0 -1
  425. package/lib/typescript/shared/types/utils.d.ts.map +0 -1
  426. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +0 -1
  427. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +0 -1
  428. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts +0 -10
  429. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  430. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts +0 -2
  431. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  432. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +0 -1
  433. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts +0 -4
  434. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  435. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  436. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  437. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +0 -1
  438. package/src/shared/hooks/bounds/use-bound-registry.tsx +0 -184
  439. package/src/shared/hooks/use-derived-value-state.ts +0 -41
  440. package/src/shared/stores/bound-store/_utils.ts +0 -161
  441. package/src/shared/stores/bound-store/index.ts +0 -148
  442. package/src/shared/stores/utils/reset-stores-for-screen.ts +0 -13
  443. package/src/shared/utils/bounds/_types/get-bounds.ts +0 -10
  444. package/src/shared/utils/bounds/_utils/flatten-styles.ts +0 -21
  445. package/src/shared/utils/bounds/_utils/get-bounds.ts +0 -54
  446. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_utils → helpers}/are-descriptors-equal.js +0 -0
  447. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_utils → helpers}/calculate-active-screens-limit.js +0 -0
  448. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_utils → helpers}/compose-descriptors.js +0 -0
  449. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_utils → helpers}/have-same-route-keys.js +0 -0
  450. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_utils → helpers}/routes-are-identical.js +0 -0
  451. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-closing-route-keys.js +0 -0
  452. /package/lib/commonjs/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-previous.js +0 -0
  453. /package/lib/commonjs/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  454. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  455. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  456. /package/lib/commonjs/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  457. /package/lib/commonjs/shared/utils/bounds/{_types → types}/builder.js +0 -0
  458. /package/lib/commonjs/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  459. /package/lib/commonjs/shared/{providers/utils → utils}/create-provider.js +0 -0
  460. /package/lib/module/blank-stack/utils/with-stack-navigation/{_utils → helpers}/are-descriptors-equal.js +0 -0
  461. /package/lib/module/blank-stack/utils/with-stack-navigation/{_utils → helpers}/calculate-active-screens-limit.js +0 -0
  462. /package/lib/module/blank-stack/utils/with-stack-navigation/{_utils → helpers}/compose-descriptors.js +0 -0
  463. /package/lib/module/blank-stack/utils/with-stack-navigation/{_utils → helpers}/have-same-route-keys.js +0 -0
  464. /package/lib/module/blank-stack/utils/with-stack-navigation/{_utils → helpers}/routes-are-identical.js +0 -0
  465. /package/lib/module/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-closing-route-keys.js +0 -0
  466. /package/lib/module/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-previous.js +0 -0
  467. /package/lib/module/shared/hooks/{use-shared-value-state.js → reanimated/use-shared-value-state.js} +0 -0
  468. /package/lib/module/shared/utils/bounds/{_utils → helpers}/geometry.js +0 -0
  469. /package/lib/module/shared/utils/bounds/{_utils → helpers}/style-composers.js +0 -0
  470. /package/lib/module/shared/utils/bounds/{_utils → helpers}/styles.js +0 -0
  471. /package/lib/module/shared/utils/bounds/{_types → types}/builder.js +0 -0
  472. /package/lib/module/shared/utils/bounds/{_types → types}/geometry.js +0 -0
  473. /package/lib/module/shared/{providers/utils → utils}/create-provider.js +0 -0
  474. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_utils → helpers}/are-descriptors-equal.d.ts +0 -0
  475. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_utils → helpers}/calculate-active-screens-limit.d.ts +0 -0
  476. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_utils → helpers}/compose-descriptors.d.ts +0 -0
  477. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_utils → helpers}/have-same-route-keys.d.ts +0 -0
  478. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_utils → helpers}/routes-are-identical.d.ts +0 -0
  479. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-closing-route-keys.d.ts +0 -0
  480. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-previous.d.ts +0 -0
  481. /package/lib/typescript/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-stack-navigation-state.d.ts +0 -0
  482. /package/lib/typescript/shared/hooks/{use-shared-value-state.d.ts → reanimated/use-shared-value-state.d.ts} +0 -0
  483. /package/lib/typescript/shared/utils/bounds/{_utils → helpers}/is-bounds-equal.d.ts +0 -0
  484. /package/lib/typescript/shared/utils/bounds/{_types → types}/geometry.d.ts +0 -0
  485. /package/src/blank-stack/utils/with-stack-navigation/{_utils → helpers}/are-descriptors-equal.ts +0 -0
  486. /package/src/blank-stack/utils/with-stack-navigation/{_utils → helpers}/calculate-active-screens-limit.ts +0 -0
  487. /package/src/blank-stack/utils/with-stack-navigation/{_utils → helpers}/compose-descriptors.ts +0 -0
  488. /package/src/blank-stack/utils/with-stack-navigation/{_utils → helpers}/have-same-route-keys.ts +0 -0
  489. /package/src/blank-stack/utils/with-stack-navigation/{_utils → helpers}/routes-are-identical.ts +0 -0
  490. /package/src/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-closing-route-keys.tsx +0 -0
  491. /package/src/blank-stack/utils/with-stack-navigation/{_hooks → hooks}/use-previous.tsx +0 -0
  492. /package/src/shared/hooks/{use-shared-value-state.ts → reanimated/use-shared-value-state.ts} +0 -0
  493. /package/src/shared/hooks/{use-stable-callback-value.tsx → use-stable-callback-value.ts} +0 -0
  494. /package/src/shared/hooks/{use-stable-callback.tsx → use-stable-callback.ts} +0 -0
  495. /package/src/shared/types/{gesture.ts → gesture.types.ts} +0 -0
  496. /package/src/shared/types/{utils.ts → utils.types.ts} +0 -0
  497. /package/src/shared/utils/bounds/{_types → types}/geometry.ts +0 -0
@@ -1,6 +1,9 @@
1
1
  import type { AnimatedProps } from "react-native-reanimated";
2
- import type { ScreenStyleInterpolator, TransitionSpec } from "./animation";
3
- import type { GestureActivationArea, GestureDirection } from "./gesture";
2
+ import type {
3
+ ScreenStyleInterpolator,
4
+ TransitionSpec,
5
+ } from "./animation.types";
6
+ import type { GestureActivationArea, GestureDirection } from "./gesture.types";
4
7
 
5
8
  export type Layout = {
6
9
  width: number;
@@ -62,36 +65,39 @@ export type ScreenTransitionConfig = {
62
65
  * The user-provided function to calculate styles based on animation progress.
63
66
  */
64
67
  screenStyleInterpolator?: ScreenStyleInterpolator;
68
+
65
69
  /**
66
70
  * The Reanimated animation config for opening and closing transitions.
67
71
  */
68
72
  transitionSpec?: TransitionSpec;
73
+
69
74
  /**
70
75
  * Whether the gesture is enabled.
71
76
  */
72
77
  gestureEnabled?: boolean;
78
+
73
79
  /**
74
80
  * The direction of the swipe gesture used to dismiss the screen.
75
81
  */
76
82
  gestureDirection?: GestureDirection | GestureDirection[];
83
+
77
84
  /**
78
85
  * How much the gesture's final velocity impacts the dismiss decision.
79
86
  */
80
87
  gestureVelocityImpact?: number;
88
+
81
89
  /**
82
90
  * Distance threshold for gesture recognition throughout the screen.
83
91
  */
84
92
  gestureResponseDistance?: number;
93
+
85
94
  /**
86
95
  * Whether the gesture drives the progress.
87
96
  */
88
97
  gestureDrivesProgress?: boolean;
98
+
89
99
  /**
90
100
  * The area of the screen where the gesture is activated.
91
101
  */
92
102
  gestureActivationArea?: GestureActivationArea;
93
- /**
94
- * Whether to enable transitions. It sets the presentation to containedTransparentModal, animation none, and headerShown to false.
95
- */
96
- enableTransitions?: boolean;
97
103
  };
@@ -1,16 +1,14 @@
1
- import { BoundStore } from "../../stores/bound-store";
2
- import type { ScreenTransitionState } from "../../types/animation";
1
+ import type { ScreenTransitionState } from "../../types/animation.types";
3
2
 
4
3
  interface DerivationsParams {
5
4
  current: ScreenTransitionState;
6
5
  next?: ScreenTransitionState;
7
- previous?: ScreenTransitionState;
8
6
  }
9
7
 
10
8
  /**
11
9
  * Additional values to help make defining animations easier.
12
10
  */
13
- export const derivations = ({ current, next, previous }: DerivationsParams) => {
11
+ export const derivations = ({ current, next }: DerivationsParams) => {
14
12
  "worklet";
15
13
 
16
14
  // The combined progress
@@ -26,13 +24,9 @@ export const derivations = ({ current, next, previous }: DerivationsParams) => {
26
24
 
27
25
  const isDismissing = !!(active.gesture.isDismissing || active.closing);
28
26
 
29
- // The active bound id
30
- const activeBoundId = BoundStore.getActiveBound(current, next, previous);
31
-
32
27
  return {
33
28
  progress,
34
29
  focused,
35
- activeBoundId,
36
30
  active,
37
31
  isActiveTransitioning,
38
32
  isDismissing,
@@ -1,6 +1,6 @@
1
1
  import { runOnJS } from "react-native-reanimated";
2
- import type { AnimationStoreMap } from "../../stores/animation-store";
3
- import type { TransitionSpec } from "../../types/animation";
2
+ import type { AnimationStoreMap } from "../../stores/animation.store";
3
+ import type { TransitionSpec } from "../../types/animation.types";
4
4
  import { animate } from "./animate";
5
5
 
6
6
  interface StartScreenTransitionProps {
@@ -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
 
6
6
  export const FULLSCREEN_DIMENSIONS = (
7
7
  dimensions: Layout,
@@ -1,10 +1,10 @@
1
1
  import type { MeasuredDimensions } from "react-native-reanimated";
2
- import type { Layout } from "../../../types/core";
3
- import type { BoundsAnchor, BoundsScaleMode } from "../_types/builder";
2
+ import type { Layout } from "../../../types/core.types";
3
+ import type { BoundsAnchor, BoundsScaleMode } from "../types/builder";
4
4
  import type {
5
5
  ContentTransformGeometry,
6
6
  RelativeGeometry,
7
- } from "../_types/geometry";
7
+ } from "../types/geometry";
8
8
 
9
9
  /**
10
10
  * Get the anchor point coordinates for a given bound
@@ -1,5 +1,5 @@
1
1
  import type { MeasuredDimensions } from "react-native-reanimated";
2
- import { BoundStore } from "../../../stores/bound-store";
2
+ import { BoundStore } from "../../../stores/bounds.store";
3
3
 
4
4
  export const isBoundsEqual = ({
5
5
  measured,
@@ -11,9 +11,9 @@ export const isBoundsEqual = ({
11
11
  sharedBoundTag: string;
12
12
  }) => {
13
13
  "worklet";
14
- const existing = BoundStore.getBounds(key)?.[sharedBoundTag]?.bounds;
14
+ const existing = BoundStore.getOccurrence(sharedBoundTag, key)?.bounds;
15
15
  return (
16
- existing &&
16
+ !!existing &&
17
17
  existing.width === measured.width &&
18
18
  existing.height === measured.height &&
19
19
  existing.pageX === measured.pageX &&
@@ -3,11 +3,11 @@ import {
3
3
  type MeasuredDimensions,
4
4
  type StyleProps,
5
5
  } from "react-native-reanimated";
6
- import type { BoundsBuilderOptions } from "../_types/builder";
6
+ import type { BoundsBuilderOptions } from "../types/builder";
7
7
  import type {
8
8
  ContentTransformGeometry,
9
9
  RelativeGeometry,
10
- } from "../_types/geometry";
10
+ } from "../types/geometry";
11
11
 
12
12
  /**
13
13
  * Element-level (relative) params shared by size/transform composers.
@@ -1,6 +1,6 @@
1
1
  import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from "react-native";
2
2
  import { isSharedValue } from "react-native-reanimated";
3
- import type { Any } from "../../../types/utils";
3
+ import type { Any } from "../../../types/utils.types";
4
4
 
5
5
  type AnyStyle = ViewStyle | TextStyle | ImageStyle;
6
6
  type StyleValue = StyleProp<AnyStyle>;
@@ -6,21 +6,17 @@ import {
6
6
  EXIT_RANGE,
7
7
  FULLSCREEN_DIMENSIONS,
8
8
  } from "../../constants";
9
+ import { BoundStore, type TagData } from "../../stores/bounds.store";
9
10
  import type {
10
11
  ScreenInterpolationProps,
11
12
  ScreenTransitionState,
12
- } from "../../types/animation";
13
- import type { BoundsAccessor } from "../../types/bounds";
14
- import type { Layout, ScreenPhase } from "../../types/core";
15
- import type {
16
- BoundsBuilderInitParams,
17
- BoundsBuilderOptions,
18
- } from "./_types/builder";
13
+ } from "../../types/animation.types";
14
+ import type { BoundsAccessor } from "../../types/bounds.types";
15
+ import type { Layout } from "../../types/core.types";
19
16
  import {
20
17
  computeContentTransformGeometry,
21
18
  computeRelativeGeometry,
22
- } from "./_utils/geometry";
23
- import { getBounds } from "./_utils/get-bounds";
19
+ } from "./helpers/geometry";
24
20
  import {
25
21
  composeContentStyle,
26
22
  composeSizeAbsolute,
@@ -28,10 +24,13 @@ import {
28
24
  composeTransformAbsolute,
29
25
  composeTransformRelative,
30
26
  type ElementComposeParams,
31
- } from "./_utils/style-composers";
27
+ } from "./helpers/style-composers";
28
+ import type {
29
+ BoundsBuilderOptions,
30
+ BoundsComputeParams,
31
+ } from "./types/builder";
32
32
 
33
33
  export interface BuildBoundsAccessorParams {
34
- activeBoundId: string | null;
35
34
  current: ScreenTransitionState;
36
35
  previous?: ScreenTransitionState;
37
36
  next?: ScreenTransitionState;
@@ -50,34 +49,47 @@ const resolveBounds = (props: {
50
49
  }) => {
51
50
  "worklet";
52
51
  const entering = !props.next;
53
-
54
52
  const fullscreen = FULLSCREEN_DIMENSIONS(props.dimensions);
53
+ const isClosing = props.current?.closing === 1;
55
54
 
56
- const startPhase: ScreenPhase = entering ? "previous" : "current";
57
- const endPhase: ScreenPhase = entering ? "current" : "next";
55
+ const isFullscreenTarget = props.computeOptions.target === "fullscreen";
58
56
 
59
- const getPhaseBounds = (phase?: ScreenPhase) => {
60
- "worklet";
61
- switch (phase) {
62
- case "previous":
63
- return props.previous?.bounds?.[props.id]?.bounds;
64
- case "current":
65
- return props.current?.bounds?.[props.id]?.bounds;
66
- case "next":
67
- return props.next?.bounds?.[props.id]?.bounds;
68
- default:
69
- return null;
70
- }
71
- };
57
+ // Try exact match first (strict matching for nested stacks)
58
+ let link = BoundStore.getActiveLink(
59
+ props.id,
60
+ props.current?.route.key,
61
+ isClosing,
62
+ );
72
63
 
73
- const start = getPhaseBounds(startPhase);
74
- let end = getPhaseBounds(endPhase);
64
+ // For fullscreen target, fall back to most recent link for this tag
65
+ // (destination screen might not have a matching element)
66
+ if (!link && isFullscreenTarget) {
67
+ link = BoundStore.getActiveLink(props.id); // No screenKey = get most recent
68
+ }
75
69
 
76
- const isFullscreen =
77
- props.computeOptions.target === "fullscreen" ||
78
- props.computeOptions.toFullscreen;
70
+ if (!link || !link.source) {
71
+ return {
72
+ start: null,
73
+ end: null,
74
+ entering,
75
+ };
76
+ }
79
77
 
80
- if (isFullscreen) {
78
+ // For fullscreen target, destination element is not required
79
+ if (!isFullscreenTarget && !link.destination) {
80
+ return {
81
+ start: null,
82
+ end: null,
83
+ entering,
84
+ };
85
+ }
86
+
87
+ const { destination, source } = link;
88
+
89
+ const start = source.bounds;
90
+ let end = destination?.bounds ?? fullscreen;
91
+
92
+ if (isFullscreenTarget) {
81
93
  end = fullscreen;
82
94
  }
83
95
 
@@ -95,15 +107,8 @@ const resolveBounds = (props: {
95
107
  };
96
108
 
97
109
  const computeBoundStyles = (
98
- {
99
- id,
100
- previous,
101
- current,
102
- next,
103
- progress,
104
- dimensions,
105
- }: BoundsBuilderInitParams,
106
- computeOptions: BoundsBuilderOptions = {},
110
+ { id, previous, current, next, progress, dimensions }: BoundsComputeParams,
111
+ computeOptions: BoundsBuilderOptions = { id: "bound-id" },
107
112
  ) => {
108
113
  "worklet";
109
114
  if (!id) {
@@ -169,8 +174,7 @@ const computeBoundStyles = (
169
174
  };
170
175
 
171
176
  const isSize = computeOptions.method === "size";
172
- const isAbs =
173
- computeOptions.space === "absolute" || !!computeOptions.absolute;
177
+ const isAbs = computeOptions.space === "absolute";
174
178
 
175
179
  return isSize
176
180
  ? isAbs
@@ -188,13 +192,13 @@ export const createBounds = (
188
192
 
189
193
  const boundsFunction = (params?: BoundsBuilderOptions) => {
190
194
  "worklet";
191
- const id = params?.id ?? props.activeBoundId;
195
+ const id = params?.id;
192
196
 
193
197
  return computeBoundStyles(
194
198
  {
195
199
  id,
196
- current: props.current,
197
200
  previous: props.previous,
201
+ current: props.current,
198
202
  next: props.next,
199
203
  progress: props.progress,
200
204
  dimensions: props.layouts.screen,
@@ -203,16 +207,10 @@ export const createBounds = (
203
207
  );
204
208
  };
205
209
 
206
- const get = (id?: string, phase?: ScreenPhase) => {
210
+ const getOccurrence = (tag: string, key: string): TagData => {
207
211
  "worklet";
208
- return getBounds({
209
- id: id ?? props.activeBoundId,
210
- phase,
211
- current: props.current,
212
- previous: props.previous,
213
- next: props.next,
214
- });
212
+ return BoundStore.getOccurrence(tag, key);
215
213
  };
216
214
 
217
- return Object.assign(boundsFunction, { get }) as BoundsAccessor;
215
+ return Object.assign(boundsFunction, { getOccurrence }) as BoundsAccessor;
218
216
  };
@@ -1,19 +1,7 @@
1
1
  import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
2
- import type { ScreenTransitionState } from "../../../types/animation";
3
- import type { BoundsMethod } from "../../../types/bounds";
4
- import type { Layout } from "../../../types/core";
5
-
6
- /**
7
- * Params passed to the builder initializer. No method required here.
8
- */
9
- export type BoundsBuilderInitParams = {
10
- id: string | null;
11
- previous?: ScreenTransitionState;
12
- current: ScreenTransitionState;
13
- next?: ScreenTransitionState;
14
- progress: number;
15
- dimensions: Layout;
16
- };
2
+ import type { ScreenTransitionState } from "../../../types/animation.types";
3
+ import type { BoundsMethod } from "../../../types/bounds.types";
4
+ import type { Layout } from "../../../types/core.types";
17
5
 
18
6
  export type BoundsAnchor =
19
7
  | "topLeading"
@@ -32,7 +20,14 @@ export type BoundsTarget = "bound" | "fullscreen" | MeasuredDimensions;
32
20
 
33
21
  export type BoundsSpace = "relative" | "absolute";
34
22
 
35
- export type BoundsComputeParams = BoundsBuilderInitParams;
23
+ export type BoundsComputeParams = {
24
+ id?: string;
25
+ previous?: ScreenTransitionState;
26
+ current: ScreenTransitionState;
27
+ next?: ScreenTransitionState;
28
+ progress: number;
29
+ dimensions: Layout;
30
+ };
36
31
 
37
32
  export type RawSizeAbsoluteReturn = {
38
33
  width: number;
@@ -84,26 +79,14 @@ export type BoundsReturnType<T extends BoundsBuilderOptions> =
84
79
 
85
80
  export type BoundsBuilderOptions = {
86
81
  /**
87
- * @deprecated Use `content.scaleMode` instead.
88
- */
89
- toFullscreen?: boolean;
90
- /**
91
- * @deprecated Use `content.anchor` instead.
92
- */
93
- absolute?: boolean;
94
- /**
95
- * @deprecated Use `content.anchor` instead.
96
- */
97
- relative?: boolean;
98
- /**
99
- * @deprecated Use `scaleMode` instead.
82
+ * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
100
83
  */
101
- contentScaleMode?: "aspectFill" | "aspectFit" | "auto";
84
+ id: string;
102
85
 
103
86
  /**
104
- * The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
87
+ * Whether the bound should target the screen or the bound.
105
88
  */
106
- id?: string;
89
+ target?: BoundsTarget;
107
90
 
108
91
  /**
109
92
  * The method to use to compute the bounds.
@@ -124,25 +107,24 @@ export type BoundsBuilderOptions = {
124
107
  * @default "relative"
125
108
  */
126
109
  space?: BoundsSpace;
127
- /**
128
- * Whether the bound should target the screen or the bound.
129
- * @default "bound"
130
- */
131
- target?: BoundsTarget;
110
+
132
111
  /**
133
112
  * The gesture offsets to apply to the bounds.
134
113
  */
135
114
  gestures?: { x?: number; y?: number };
115
+
136
116
  /**
137
117
  * How the bounds should be scaled between each other.
138
118
  * @default "match"
139
119
  */
140
120
  scaleMode?: BoundsScaleMode;
121
+
141
122
  /**
142
123
  * Where the bounds should be anchored between each other.
143
124
  * @default "center"
144
125
  */
145
126
  anchor?: BoundsAnchor;
127
+
146
128
  /**
147
129
  * If true, the raw values will be returned instead of the computed values.
148
130
  * @default false
@@ -3,19 +3,13 @@
3
3
  * https://github.com/MatiPl01/react-native-sortables/blob/main/packages/react-native-sortables/src/providers/utils/createProvider.tsx
4
4
  * SUPER COOL AMAZING UTILITY
5
5
  */
6
- import {
7
- createContext,
8
- type PropsWithChildren,
9
- type ReactNode,
10
- useContext,
11
- useMemo,
12
- } from "react";
6
+ import { createContext, type ReactNode, useContext, useMemo } from "react";
13
7
 
14
8
  export default function createProvider<
15
9
  ProviderName extends string,
16
10
  Guarded extends boolean = true,
17
11
  >(name: ProviderName, options?: { guarded?: Guarded }) {
18
- return <ProviderProps extends PropsWithChildren<object>, ContextValue>(
12
+ return <ProviderProps extends object, ContextValue>(
19
13
  factory: (props: ProviderProps) => {
20
14
  value?: ContextValue;
21
15
  enabled?: boolean;
@@ -29,7 +23,7 @@ export default function createProvider<
29
23
 
30
24
  const Provider: React.FC<ProviderProps> = (props) => {
31
25
  const {
32
- children = props.children,
26
+ children = (props as { children?: ReactNode }).children,
33
27
  enabled = true,
34
28
  value,
35
29
  } = factory(props);
@@ -9,13 +9,13 @@ import {
9
9
  GESTURE_FAIL_TOLERANCE_X,
10
10
  GESTURE_FAIL_TOLERANCE_Y,
11
11
  } from "../../constants";
12
- import type { Layout } from "../../types/core";
12
+ import type { Layout } from "../../types/core.types";
13
13
  import {
14
14
  type ActivationArea,
15
15
  type GestureActivationArea,
16
16
  GestureOffsetState,
17
17
  type SideActivation,
18
- } from "../../types/gesture";
18
+ } from "../../types/gesture.types";
19
19
 
20
20
  type Directions = {
21
21
  vertical: boolean;
@@ -1,12 +1,12 @@
1
1
  import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
2
2
  import type { SharedValue } from "react-native-reanimated";
3
- import type { Layout } from "../../types/core";
3
+ import type { Layout } from "../../types/core.types";
4
4
  import {
5
5
  type ActivationArea,
6
6
  type GestureActivationArea,
7
7
  GestureOffsetState,
8
8
  type SideActivation,
9
- } from "../../types/gesture";
9
+ } from "../../types/gesture.types";
10
10
 
11
11
  type Directions = {
12
12
  vertical: boolean;
@@ -2,8 +2,8 @@ import type {
2
2
  GestureStateChangeEvent,
3
3
  PanGestureHandlerEventPayload,
4
4
  } from "react-native-gesture-handler";
5
- import type { GestureStoreMap } from "../../stores/gesture-store";
6
- import type { AnimationConfig } from "../../types/animation";
5
+ import type { GestureStoreMap } from "../../stores/gesture.store";
6
+ import type { AnimationConfig } from "../../types/animation.types";
7
7
  import { animate } from "../animation/animate";
8
8
  import { velocity } from "./velocity";
9
9
 
@@ -3,7 +3,7 @@ import type {
3
3
  PanGestureHandlerEventPayload,
4
4
  } from "react-native-gesture-handler";
5
5
  import { clamp } from "react-native-reanimated";
6
- import type { AnimationStoreMap } from "../../stores/animation-store";
6
+ import type { AnimationStoreMap } from "../../stores/animation.store";
7
7
 
8
8
  interface CalculateProgressProps {
9
9
  animations: AnimationStoreMap;
@@ -0,0 +1,11 @@
1
+ import type { TransitionDescriptor } from "../providers/keys.provider";
2
+ import { AnimationStore } from "../stores/animation.store";
3
+ import { GestureStore } from "../stores/gesture.store";
4
+
5
+ /**
6
+ * Reset all stores for a given screen
7
+ */
8
+ export const resetStoresForScreen = (current: TransitionDescriptor) => {
9
+ AnimationStore.clear(current.route.key);
10
+ GestureStore.clear(current.route.key);
11
+ };
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","e","__esModule","default","useClosingRouteKeys","keysRef","useRef","Set","finishedRef","shared","useSharedValue","add","useStableCallback","key","keys","current","has","delete","modify","prev","includes","push","remove","index","indexOf","splice","clear","size","length","useMemo","ref","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,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AC/BJ,MAAM,CAACS,MAAM,CAAEC,IAAI,IAAK;MACvB,SAAS;;MACT,MAAMI,KAAK,GAAGJ,IAAI,CAACK,OAAO,CAACX,GAAG,CAAC;MAC/B,IAAIU,KAAK,KAAK,CAAC,CAAC,EAAE;QACjBJ,IAAI,CAACM,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;MACtB;MACA,OAAOJ,IAAI;IACZ,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,MAAMO,KAAK,GAAG,IAAAd,0BAAiB,EAAC,MAAM;IACrC,MAAME,IAAI,GAAGT,OAAO,CAACU,OAAO;IAC5B,IAAI,CAACD,IAAI,CAACa,IAAI,EAAE;MACfnB,WAAW,CAACO,OAAO,CAACW,KAAK,CAAC,CAAC;MAC3B;IACD;IAEAZ,IAAI,CAACY,KAAK,CAAC,CAAC;IACZlB,WAAW,CAACO,OAAO,CAACW,KAAK,CAAC,CAAC;IAC3BjB,MAAM,CAACS,MAAM,CAAEC,IAAI,IAAK;MACvB,SAAS;;MACTA,IAAI,CAACS,MAAM,GAAG,CAAC;MACf,OAAOT,IAAI;IACZ,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,OAAO,IAAAU,cAAO,EACb,OAAO;IACNC,GAAG,EAAEzB,OAAO;IACZI,MAAM;IACNE,GAAG;IACHW,MAAM;IACNI;EACD,CAAC,CAAC,EACF,CAACjB,MAAM,EAAEE,GAAG,EAAEW,MAAM,EAAEI,KAAK,CAC5B,CAAC;AACF,CAAC;AAACK,OAAA,CAAA3B,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_hooks/use-previous.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,WAAW,GAAQC,KAAQ,IAAe;EACtD,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAI,IAAI,CAAC;EAE3B,IAAAC,gBAAS,EAAC,MAAM;IACfF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACpB,CAAC,CAAC;EAEF,OAAOC,GAAG,CAACG,OAAO;AACnB,CAAC;AAACC,OAAA,CAAAN,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_native","require","_react","_useStableCallback","_interopRequireDefault","_areDescriptorsEqual","_composeDescriptors","_haveSameRouteKeys","_routesAreIdentical","_useClosingRouteKeys","_usePrevious","e","__esModule","default","alignRoutesWithLatest","currentRoutes","currentDescriptors","nextRoutes","nextDescriptors","length","routes","descriptors","composeDescriptors","nextRouteLookup","Map","route","set","key","didChange","alignedRoutes","map","nextRoute","get","routesResult","syncRoutesWithRemoved","prevRoutes","prevDescriptors","closingRouteKeys","clear","derivedRoutes","slice","previousFocusedRoute","nextFocusedRoute","nextRouteWasPresent","some","previousRouteStillPresent","add","push","remove","insertIndex","Math","max","splice","activeKeys","Set","Array","from","ref","current","has","useStackNavigationState","props","previousRoutes","usePrevious","state","useClosingRouteKeys","localState","setLocalState","useState","useLayoutEffect","nextRoutesSnapshot","previousRoutesSnapshot","routeKeysUnchanged","haveSameRouteKeys","derivedDescriptors","result","fallbackRoutes","routesChanged","routesAreIdentical","descriptorsChanged","areDescriptorsEqual","handleCloseRoute","useStableCallback","r","navigation","dispatch","StackActions","pop","source","target","candidate","filter","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,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,CAAC;MAEjC,OAAO;QACNP,MAAM,EAAEH,UAAU;QAClBI,WAAW,EAAEH;MACd,CAAC;IACF,CAAC,CAAC;EACH,CACD,CAAC;EAED,OAAO;IACN8C,KAAK,EAAEE,UAAU;IACjBe,gBAAgB;IAChB5C;EACD,CAAC;AACF,CAAC;AAACuD,OAAA,CAAAhC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["areDescriptorsEqual","a","b","aKeys","Object","keys","bKeys","length","every","key","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts"],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAGA,CAClCC,CAA0B,EAC1BC,CAA0B,KACb;EACb,IAAID,CAAC,KAAKC,CAAC,EAAE,OAAO,IAAI;EAExB,MAAMC,KAAK,GAAGC,MAAM,CAACC,IAAI,CAACJ,CAAC,CAAC;EAC5B,MAAMK,KAAK,GAAGF,MAAM,CAACC,IAAI,CAACH,CAAC,CAAC;EAE5B,IAAIC,KAAK,CAACI,MAAM,KAAKD,KAAK,CAACC,MAAM,EAAE,OAAO,KAAK;EAE/C,OAAOJ,KAAK,CAACK,KAAK,CAAEC,GAAG,IAAKR,CAAC,CAACQ,GAAG,CAAC,KAAKP,CAAC,CAACO,GAAG,CAAC,CAAC;AAC/C,CAAC;AAACC,OAAA,CAAAV,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["calculateActiveScreensLimit","routes","descriptors","length","limit","i","route","shouldKeepPrevious","key","options","detachPreviousScreen","Math","min"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.ts"],"mappings":";;;;;;AAGO,SAASA,2BAA2BA,CAC1CC,MAAgD,EAChDC,WAAoC,EAC3B;EACT,IAAID,MAAM,CAACE,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,CAAC;EACT;EAEA,IAAIC,KAAK,GAAG,CAAC;EAEb,KAAK,IAAIC,CAAC,GAAGJ,MAAM,CAACE,MAAM,GAAG,CAAC,EAAEE,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC5C,MAAMC,KAAK,GAAGL,MAAM,CAACI,CAAC,CAAC;IAEvB,MAAME,kBAAkB,GACvBL,WAAW,GAAGI,KAAK,CAACE,GAAG,CAAC,EAAEC,OAAO,EAAEC,oBAAoB,KAAK,IAAI;IAEjE,IAAIH,kBAAkB,EAAE;MACvBH,KAAK,EAAE;MACP;IACD;IAEA;EACD;EAEA,OAAOO,IAAI,CAACC,GAAG,CAACR,KAAK,EAAEH,MAAM,CAACE,MAAM,CAAC;AACtC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["composeDescriptors","routes","nextDescriptors","currentDescriptors","composed","route","adjusted","key","withEnableTransitions","options","enableTransitions","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts"],"mappings":";;;;;;AAGO,MAAMA,kBAAkB,GAAGA,CACjCC,MAAuB,EACvBC,eAAwC,EACxCC,kBAA2C,KACd;EAC7B,MAAMC,QAAiC,GAAG,CAAC,CAAC;EAE5C,KAAK,MAAMC,KAAK,IAAIJ,MAAM,EAAE;IAC3B,MAAMK,QAAQ,GACbJ,eAAe,CAACG,KAAK,CAACE,GAAG,CAAC,IAAIJ,kBAAkB,CAACE,KAAK,CAACE,GAAG,CAAC;;IAE5D;IACA,MAAMC,qBAAqB,GAAG;MAC7B,GAAGF,QAAQ;MACXG,OAAO,EAAE;QAAE,GAAGH,QAAQ,CAACG,OAAO;QAAEC,iBAAiB,EAAE;MAAK;IACzD,CAAC;IACDN,QAAQ,CAACC,KAAK,CAACE,GAAG,CAAC,GAAGC,qBAAqB;EAC5C;EAEA,OAAOJ,QAAQ;AAChB,CAAC;AAACO,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["haveSameRouteKeys","previous","next","length","every","route","index","key","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.ts"],"mappings":";;;;;;AAEO,MAAMA,iBAAiB,GAAGA,CAChCC,QAAyB,EACzBC,IAAqB,KACR;EACb,IAAID,QAAQ,CAACE,MAAM,KAAKD,IAAI,CAACC,MAAM,EAAE;IACpC,OAAO,KAAK;EACb;EAEA,OAAOF,QAAQ,CAACG,KAAK,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAKD,KAAK,EAAEE,GAAG,KAAKL,IAAI,CAACI,KAAK,CAAC,EAAEC,GAAG,CAAC;AACzE,CAAC;AAACC,OAAA,CAAAR,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["routesAreIdentical","a","b","length","every","route","index","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.ts"],"mappings":";;;;;;AAEO,MAAMA,kBAAkB,GAAGA,CACjCC,CAAkB,EAClBC,CAAkB,KACL;EACb,IAAID,CAAC,KAAKC,CAAC,EAAE,OAAO,IAAI;EACxB,IAAID,CAAC,CAACE,MAAM,KAAKD,CAAC,CAACC,MAAM,EAAE,OAAO,KAAK;EAEvC,OAAOF,CAAC,CAACG,KAAK,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAKD,KAAK,KAAKH,CAAC,CAACI,KAAK,CAAC,CAAC;AACrD,CAAC;AAACC,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}