react-native-screen-transitions 2.4.2-beta.2 → 3.0.0-beta.0

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 (1010) hide show
  1. package/README.md +85 -71
  2. package/lib/commonjs/blank-stack/components/Overlay.js +128 -0
  3. package/lib/commonjs/blank-stack/components/Overlay.js.map +1 -0
  4. package/lib/commonjs/blank-stack/components/Screens.js +64 -0
  5. package/lib/commonjs/blank-stack/components/Screens.js.map +1 -0
  6. package/lib/commonjs/blank-stack/components/StackView.js +87 -0
  7. package/lib/commonjs/blank-stack/components/StackView.js.map +1 -0
  8. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +77 -0
  9. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +1 -0
  10. package/lib/commonjs/blank-stack/index.js +13 -0
  11. package/lib/commonjs/blank-stack/index.js.map +1 -0
  12. package/lib/commonjs/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
  13. package/lib/commonjs/blank-stack/types.js +6 -0
  14. package/lib/commonjs/blank-stack/types.js.map +1 -0
  15. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +72 -0
  16. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
  17. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
  18. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +196 -0
  19. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
  20. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
  21. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
  22. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +1 -0
  23. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +25 -0
  24. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
  25. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
  26. package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
  27. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js +66 -0
  28. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
  29. package/lib/commonjs/native-stack/index.js +13 -0
  30. package/lib/commonjs/native-stack/index.js.map +1 -0
  31. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
  32. package/lib/commonjs/native-stack/types.js +6 -0
  33. package/lib/commonjs/native-stack/types.js.map +1 -0
  34. package/lib/commonjs/native-stack/utils/debounce.js.map +1 -0
  35. package/lib/commonjs/native-stack/utils/getModalRoutesKeys.js.map +1 -0
  36. package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
  37. package/lib/commonjs/native-stack/utils/useDismissedRouteError.js.map +1 -0
  38. package/lib/commonjs/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
  39. package/lib/commonjs/native-stack/views/FontProcessor.js.map +1 -0
  40. package/lib/commonjs/native-stack/views/FontProcessor.native.js.map +1 -0
  41. package/lib/commonjs/native-stack/views/FooterComponent.js.map +1 -0
  42. package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -0
  43. package/lib/commonjs/native-stack/views/NativeStackView.native.js +493 -0
  44. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -0
  45. package/lib/commonjs/native-stack/views/useHeaderConfigProps.js.map +1 -0
  46. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js +128 -0
  47. package/lib/commonjs/shared/components/controllers/screen-lifecycle.js.map +1 -0
  48. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -0
  49. package/lib/commonjs/shared/components/integrations/masked-view.js.map +1 -0
  50. package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -0
  51. package/lib/commonjs/shared/configs/index.js +22 -0
  52. package/lib/commonjs/shared/configs/index.js.map +1 -0
  53. package/lib/commonjs/shared/configs/presets.js.map +1 -0
  54. package/lib/commonjs/shared/configs/specs.js.map +1 -0
  55. package/lib/commonjs/shared/constants.js.map +1 -0
  56. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -0
  57. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +118 -0
  58. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -0
  59. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +131 -0
  60. package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +1 -0
  61. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +236 -0
  62. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -0
  63. package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
  64. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -0
  65. package/lib/commonjs/shared/hooks/use-shared-value-state.js +25 -0
  66. package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +1 -0
  67. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -0
  68. package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -0
  69. package/lib/commonjs/shared/index.js +33 -0
  70. package/lib/commonjs/shared/index.js.map +1 -0
  71. package/lib/commonjs/shared/providers/gestures.js.map +1 -0
  72. package/lib/commonjs/shared/providers/keys.js +34 -0
  73. package/lib/commonjs/shared/providers/keys.js.map +1 -0
  74. package/lib/commonjs/shared/providers/screen-transition-provider.js +34 -0
  75. package/lib/commonjs/shared/providers/screen-transition-provider.js.map +1 -0
  76. package/lib/commonjs/shared/providers/transition-styles.js +62 -0
  77. package/lib/commonjs/shared/providers/transition-styles.js.map +1 -0
  78. package/lib/commonjs/shared/providers/utils/create-provider.js +39 -0
  79. package/lib/commonjs/shared/providers/utils/create-provider.js.map +1 -0
  80. package/lib/commonjs/shared/stores/animation-store.js +39 -0
  81. package/lib/commonjs/shared/stores/animation-store.js.map +1 -0
  82. package/lib/commonjs/shared/stores/bound-store/_utils.js.map +1 -0
  83. package/lib/commonjs/shared/stores/bound-store/index.js +116 -0
  84. package/lib/commonjs/shared/stores/bound-store/index.js.map +1 -0
  85. package/lib/commonjs/shared/stores/gesture-store.js +39 -0
  86. package/lib/commonjs/shared/stores/gesture-store.js.map +1 -0
  87. package/lib/commonjs/shared/stores/navigator-dismiss-state.js.map +1 -0
  88. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +19 -0
  89. package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +1 -0
  90. package/lib/commonjs/shared/types/animation.js.map +1 -0
  91. package/lib/commonjs/shared/types/bounds.js.map +1 -0
  92. package/lib/commonjs/shared/types/core.js.map +1 -0
  93. package/lib/commonjs/shared/types/gesture.js.map +1 -0
  94. package/lib/commonjs/shared/types/utils.js.map +1 -0
  95. package/lib/commonjs/shared/utils/animation/animate.js.map +1 -0
  96. package/lib/commonjs/shared/utils/animation/derivations.js +39 -0
  97. package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -0
  98. package/lib/commonjs/shared/utils/animation/start-screen-transition.js.map +1 -0
  99. package/lib/commonjs/shared/utils/bounds/_types/builder.js.map +1 -0
  100. package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +1 -0
  101. package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +1 -0
  102. package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +1 -0
  103. package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +1 -0
  104. package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +1 -0
  105. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +19 -0
  106. package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
  107. package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +1 -0
  108. package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +1 -0
  109. package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
  110. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -0
  111. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js.map +1 -0
  112. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +1 -0
  113. package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +1 -0
  114. package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +1 -0
  115. package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +1 -0
  116. package/lib/commonjs/shared/utils/gesture/velocity.js.map +1 -0
  117. package/lib/commonjs/shared/utils/reanimated/version.js.map +1 -0
  118. package/lib/module/blank-stack/components/Overlay.js +124 -0
  119. package/lib/module/blank-stack/components/Overlay.js.map +1 -0
  120. package/lib/module/blank-stack/components/Screens.js +58 -0
  121. package/lib/module/blank-stack/components/Screens.js.map +1 -0
  122. package/lib/module/blank-stack/components/StackView.js +83 -0
  123. package/lib/module/blank-stack/components/StackView.js.map +1 -0
  124. package/lib/module/blank-stack/hooks/use-overlay-animation.js +73 -0
  125. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -0
  126. package/lib/module/blank-stack/index.js +4 -0
  127. package/lib/module/blank-stack/index.js.map +1 -0
  128. package/lib/module/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
  129. package/lib/module/blank-stack/types.js +4 -0
  130. package/lib/module/blank-stack/types.js.map +1 -0
  131. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +66 -0
  132. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
  133. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
  134. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +190 -0
  135. package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
  136. package/lib/module/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
  137. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
  138. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +1 -0
  139. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +20 -0
  140. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
  141. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
  142. package/lib/module/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
  143. package/lib/module/blank-stack/utils/with-stack-navigation/index.js +60 -0
  144. package/lib/module/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
  145. package/lib/module/native-stack/index.js +4 -0
  146. package/lib/module/native-stack/index.js.map +1 -0
  147. package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
  148. package/lib/module/native-stack/types.js +4 -0
  149. package/lib/module/native-stack/types.js.map +1 -0
  150. package/lib/module/native-stack/utils/debounce.js.map +1 -0
  151. package/lib/module/native-stack/utils/getModalRoutesKeys.js.map +1 -0
  152. package/lib/module/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
  153. package/lib/module/native-stack/utils/useDismissedRouteError.js.map +1 -0
  154. package/lib/module/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
  155. package/lib/module/native-stack/views/FontProcessor.js.map +1 -0
  156. package/lib/module/native-stack/views/FontProcessor.native.js.map +1 -0
  157. package/lib/module/native-stack/views/FooterComponent.js.map +1 -0
  158. package/lib/module/native-stack/views/NativeStackView.js.map +1 -0
  159. package/lib/module/native-stack/views/NativeStackView.native.js +488 -0
  160. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -0
  161. package/lib/module/native-stack/views/useHeaderConfigProps.js.map +1 -0
  162. package/lib/module/shared/components/controllers/screen-lifecycle.js +122 -0
  163. package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -0
  164. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -0
  165. package/lib/module/shared/components/integrations/masked-view.js.map +1 -0
  166. package/lib/module/shared/components/root-transition-aware.js.map +1 -0
  167. package/lib/module/shared/configs/index.js +18 -0
  168. package/lib/module/shared/configs/index.js.map +1 -0
  169. package/lib/module/shared/configs/presets.js.map +1 -0
  170. package/lib/module/shared/configs/specs.js.map +1 -0
  171. package/lib/module/shared/constants.js.map +1 -0
  172. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -0
  173. package/lib/module/shared/hooks/animation/use-screen-animation.js +113 -0
  174. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -0
  175. package/lib/module/shared/hooks/bounds/use-bound-registry.js +125 -0
  176. package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +1 -0
  177. package/lib/module/shared/hooks/gestures/use-build-gestures.js +230 -0
  178. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -0
  179. package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
  180. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -0
  181. package/lib/module/shared/hooks/use-shared-value-state.js +22 -0
  182. package/lib/module/shared/hooks/use-shared-value-state.js.map +1 -0
  183. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -0
  184. package/lib/module/shared/hooks/use-stable-callback.js.map +1 -0
  185. package/lib/module/shared/index.js +22 -0
  186. package/lib/module/shared/index.js.map +1 -0
  187. package/lib/module/shared/providers/gestures.js.map +1 -0
  188. package/lib/module/shared/providers/keys.js +29 -0
  189. package/lib/module/shared/providers/keys.js.map +1 -0
  190. package/lib/module/shared/providers/screen-transition-provider.js +30 -0
  191. package/lib/module/shared/providers/screen-transition-provider.js.map +1 -0
  192. package/lib/module/shared/providers/transition-styles.js +57 -0
  193. package/lib/module/shared/providers/transition-styles.js.map +1 -0
  194. package/lib/module/shared/providers/utils/create-provider.js +33 -0
  195. package/lib/module/shared/providers/utils/create-provider.js.map +1 -0
  196. package/lib/module/shared/stores/animation-store.js +33 -0
  197. package/lib/module/shared/stores/animation-store.js.map +1 -0
  198. package/lib/module/shared/stores/bound-store/_utils.js.map +1 -0
  199. package/lib/module/shared/stores/bound-store/index.js +112 -0
  200. package/lib/module/shared/stores/bound-store/index.js.map +1 -0
  201. package/lib/module/shared/stores/gesture-store.js +35 -0
  202. package/lib/module/shared/stores/gesture-store.js.map +1 -0
  203. package/lib/module/shared/stores/navigator-dismiss-state.js.map +1 -0
  204. package/lib/module/shared/stores/utils/reset-stores-for-screen.js +15 -0
  205. package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +1 -0
  206. package/lib/module/shared/types/animation.js.map +1 -0
  207. package/lib/module/shared/types/bounds.js.map +1 -0
  208. package/lib/module/shared/types/core.js.map +1 -0
  209. package/lib/module/shared/types/gesture.js.map +1 -0
  210. package/lib/module/shared/types/utils.js.map +1 -0
  211. package/lib/module/shared/utils/animation/animate.js.map +1 -0
  212. package/lib/module/shared/utils/animation/derivations.js +34 -0
  213. package/lib/module/shared/utils/animation/derivations.js.map +1 -0
  214. package/lib/module/shared/utils/animation/start-screen-transition.js.map +1 -0
  215. package/lib/module/shared/utils/bounds/_types/builder.js.map +1 -0
  216. package/lib/module/shared/utils/bounds/_types/geometry.js.map +1 -0
  217. package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +1 -0
  218. package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +1 -0
  219. package/lib/module/shared/utils/bounds/_utils/geometry.js.map +1 -0
  220. package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +1 -0
  221. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +14 -0
  222. package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
  223. package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +1 -0
  224. package/lib/module/shared/utils/bounds/_utils/styles.js.map +1 -0
  225. package/lib/module/shared/utils/bounds/constants.js.map +1 -0
  226. package/lib/module/shared/utils/bounds/index.js.map +1 -0
  227. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -0
  228. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -0
  229. package/lib/module/shared/utils/gesture/determine-dismissal.js.map +1 -0
  230. package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +1 -0
  231. package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +1 -0
  232. package/lib/module/shared/utils/gesture/velocity.js.map +1 -0
  233. package/lib/module/shared/utils/reanimated/version.js.map +1 -0
  234. package/lib/typescript/blank-stack/components/Overlay.d.ts +5 -0
  235. package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -0
  236. package/lib/typescript/blank-stack/components/Screens.d.ts.map +1 -0
  237. package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -0
  238. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +12 -0
  239. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -0
  240. package/lib/typescript/blank-stack/index.d.ts +3 -0
  241. package/lib/typescript/blank-stack/index.d.ts.map +1 -0
  242. package/lib/typescript/blank-stack/navigators/createBlankStackNavigator.d.ts +16 -0
  243. package/lib/typescript/blank-stack/navigators/createBlankStackNavigator.d.ts.map +1 -0
  244. package/lib/typescript/blank-stack/types.d.ts +213 -0
  245. package/lib/typescript/blank-stack/types.d.ts.map +1 -0
  246. package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +1 -0
  247. package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +1 -0
  248. package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +20 -0
  249. package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +1 -0
  250. package/lib/typescript/blank-stack/utils/with-stack-navigation/_types.d.ts +22 -0
  251. package/lib/typescript/blank-stack/utils/with-stack-navigation/_types.d.ts.map +1 -0
  252. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +3 -0
  253. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +1 -0
  254. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts +4 -0
  255. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts.map +1 -0
  256. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +4 -0
  257. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +1 -0
  258. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +1 -0
  259. package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +1 -0
  260. package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts.map +1 -0
  261. package/lib/typescript/native-stack/index.d.ts +3 -0
  262. package/lib/typescript/native-stack/index.d.ts.map +1 -0
  263. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +16 -0
  264. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -0
  265. package/lib/typescript/native-stack/types.d.ts +651 -0
  266. package/lib/typescript/native-stack/types.d.ts.map +1 -0
  267. package/lib/typescript/native-stack/utils/debounce.d.ts.map +1 -0
  268. package/lib/typescript/native-stack/utils/getModalRoutesKeys.d.ts +4 -0
  269. package/lib/typescript/native-stack/utils/getModalRoutesKeys.d.ts.map +1 -0
  270. package/lib/typescript/native-stack/utils/useAnimatedHeaderHeight.d.ts.map +1 -0
  271. package/lib/typescript/native-stack/utils/useDismissedRouteError.d.ts.map +1 -0
  272. package/lib/typescript/native-stack/utils/useInvalidPreventRemoveError.d.ts +3 -0
  273. package/lib/typescript/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +1 -0
  274. package/lib/typescript/native-stack/views/FontProcessor.d.ts.map +1 -0
  275. package/lib/typescript/native-stack/views/FontProcessor.native.d.ts.map +1 -0
  276. package/lib/typescript/native-stack/views/FooterComponent.d.ts.map +1 -0
  277. package/lib/typescript/native-stack/views/NativeStackView.d.ts +11 -0
  278. package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -0
  279. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +11 -0
  280. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -0
  281. package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +44 -0
  282. package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts.map +1 -0
  283. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts +12 -0
  284. package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -0
  285. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -0
  286. package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +1 -0
  287. package/lib/typescript/shared/components/root-transition-aware.d.ts.map +1 -0
  288. package/lib/typescript/shared/configs/index.d.ts +16 -0
  289. package/lib/typescript/shared/configs/index.d.ts.map +1 -0
  290. package/lib/typescript/shared/configs/presets.d.ts +12 -0
  291. package/lib/typescript/shared/configs/presets.d.ts.map +1 -0
  292. package/lib/typescript/shared/configs/specs.d.ts.map +1 -0
  293. package/lib/typescript/shared/constants.d.ts +57 -0
  294. package/lib/typescript/shared/constants.d.ts.map +1 -0
  295. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -0
  296. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +7 -0
  297. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -0
  298. package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +1 -0
  299. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -0
  300. package/lib/typescript/shared/hooks/gestures/use-parent-gesture-registry.d.ts.map +1 -0
  301. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -0
  302. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts +7 -0
  303. package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +1 -0
  304. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -0
  305. package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -0
  306. package/lib/typescript/shared/index.d.ts +1323 -0
  307. package/lib/typescript/shared/index.d.ts.map +1 -0
  308. package/lib/typescript/shared/providers/gestures.d.ts.map +1 -0
  309. package/lib/typescript/shared/providers/keys.d.ts +18 -0
  310. package/lib/typescript/shared/providers/keys.d.ts.map +1 -0
  311. package/lib/typescript/shared/providers/screen-transition-provider.d.ts +14 -0
  312. package/lib/typescript/shared/providers/screen-transition-provider.d.ts.map +1 -0
  313. package/lib/typescript/shared/providers/transition-styles.d.ts +11 -0
  314. package/lib/typescript/shared/providers/transition-styles.d.ts.map +1 -0
  315. package/lib/typescript/shared/providers/utils/create-provider.d.ts +32 -0
  316. package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +1 -0
  317. package/lib/typescript/shared/stores/animation-store.d.ts +17 -0
  318. package/lib/typescript/shared/stores/animation-store.d.ts.map +1 -0
  319. package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +1 -0
  320. package/lib/typescript/shared/stores/bound-store/index.d.ts +22 -0
  321. package/lib/typescript/shared/stores/bound-store/index.d.ts.map +1 -0
  322. package/lib/typescript/shared/stores/gesture-store.d.ts +23 -0
  323. package/lib/typescript/shared/stores/gesture-store.d.ts.map +1 -0
  324. package/lib/typescript/shared/stores/navigator-dismiss-state.d.ts.map +1 -0
  325. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +6 -0
  326. package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +1 -0
  327. package/lib/typescript/shared/types/animation.d.ts +78 -0
  328. package/lib/typescript/shared/types/animation.d.ts.map +1 -0
  329. package/lib/typescript/shared/types/bounds.d.ts.map +1 -0
  330. package/lib/typescript/shared/types/core.d.ts +91 -0
  331. package/lib/typescript/shared/types/core.d.ts.map +1 -0
  332. package/lib/typescript/shared/types/gesture.d.ts.map +1 -0
  333. package/lib/typescript/shared/types/utils.d.ts.map +1 -0
  334. package/lib/typescript/shared/utils/animation/animate.d.ts.map +1 -0
  335. package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -0
  336. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +13 -0
  337. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -0
  338. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts +118 -0
  339. package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +1 -0
  340. package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +1 -0
  341. package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +1 -0
  342. package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +1 -0
  343. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts +27 -0
  344. package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +1 -0
  345. package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +1 -0
  346. package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +1 -0
  347. package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +1 -0
  348. package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +1 -0
  349. package/lib/typescript/shared/utils/bounds/constants.d.ts +7 -0
  350. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
  351. package/lib/typescript/shared/utils/bounds/index.d.ts +13 -0
  352. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -0
  353. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +38 -0
  354. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -0
  355. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +38 -0
  356. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -0
  357. package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +1 -0
  358. package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +1 -0
  359. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +16 -0
  360. package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -0
  361. package/lib/typescript/shared/utils/gesture/velocity.d.ts +25 -0
  362. package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +1 -0
  363. package/lib/typescript/shared/utils/reanimated/version.d.ts.map +1 -0
  364. package/package.json +37 -5
  365. package/src/blank-stack/components/Overlay.tsx +134 -0
  366. package/src/blank-stack/components/Screens.tsx +96 -0
  367. package/src/blank-stack/components/StackView.tsx +102 -0
  368. package/src/blank-stack/hooks/use-overlay-animation.tsx +101 -0
  369. package/src/blank-stack/index.ts +10 -0
  370. package/src/blank-stack/navigators/createBlankStackNavigator.tsx +111 -0
  371. package/src/blank-stack/types.ts +267 -0
  372. package/src/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +71 -0
  373. package/src/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +267 -0
  374. package/src/blank-stack/utils/with-stack-navigation/_types.ts +35 -0
  375. package/src/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +15 -0
  376. package/src/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.ts +29 -0
  377. package/src/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +24 -0
  378. package/src/blank-stack/utils/with-stack-navigation/index.tsx +80 -0
  379. package/src/native-stack/index.ts +12 -0
  380. package/src/native-stack/navigators/createNativeStackNavigator.tsx +112 -0
  381. package/src/native-stack/types.ts +711 -0
  382. package/src/native-stack/utils/getModalRoutesKeys.ts +21 -0
  383. package/src/native-stack/utils/useInvalidPreventRemoveError.tsx +31 -0
  384. package/src/native-stack/views/NativeStackView.native.tsx +655 -0
  385. package/src/native-stack/views/NativeStackView.tsx +214 -0
  386. package/src/native-stack/views/useHeaderConfigProps.tsx +295 -0
  387. package/src/shared/__tests__/gesture.velocity.test.ts +139 -0
  388. package/src/shared/components/controllers/screen-lifecycle.tsx +139 -0
  389. package/src/shared/components/root-transition-aware.tsx +44 -0
  390. package/src/shared/configs/index.ts +26 -0
  391. package/src/shared/configs/presets.ts +628 -0
  392. package/src/shared/constants.ts +108 -0
  393. package/src/shared/hooks/animation/use-screen-animation.tsx +150 -0
  394. package/src/shared/hooks/bounds/use-bound-registry.tsx +153 -0
  395. package/src/shared/hooks/gestures/use-build-gestures.tsx +324 -0
  396. package/src/shared/hooks/use-shared-value-state.ts +28 -0
  397. package/src/shared/index.ts +21 -0
  398. package/src/shared/providers/keys.tsx +57 -0
  399. package/src/shared/providers/screen-transition-provider.tsx +41 -0
  400. package/src/shared/providers/transition-styles.tsx +72 -0
  401. package/src/shared/providers/utils/create-provider.ts +64 -0
  402. package/src/shared/stores/animation-store.ts +45 -0
  403. package/src/shared/stores/bound-store/index.ts +125 -0
  404. package/src/shared/stores/gesture-store.ts +60 -0
  405. package/src/shared/stores/utils/reset-stores-for-screen.ts +13 -0
  406. package/src/shared/types/animation.ts +90 -0
  407. package/src/shared/types/core.ts +97 -0
  408. package/src/shared/utils/animation/derivations.ts +40 -0
  409. package/src/shared/utils/animation/start-screen-transition.ts +61 -0
  410. package/src/shared/utils/bounds/_types/builder.ts +151 -0
  411. package/src/shared/utils/bounds/_utils/geometry.ts +166 -0
  412. package/src/shared/utils/bounds/_utils/is-bounds-equal.ts +24 -0
  413. package/src/shared/utils/bounds/constants.ts +40 -0
  414. package/src/shared/utils/bounds/index.ts +218 -0
  415. package/src/shared/utils/gesture/apply-offset-rules.ts +312 -0
  416. package/src/shared/utils/gesture/check-gesture-activation.ts +310 -0
  417. package/src/shared/utils/gesture/reset-gesture-values.ts +67 -0
  418. package/src/shared/utils/gesture/velocity.ts +143 -0
  419. package/lib/commonjs/__configs__/index.js +0 -22
  420. package/lib/commonjs/__configs__/index.js.map +0 -1
  421. package/lib/commonjs/__configs__/presets.js.map +0 -1
  422. package/lib/commonjs/__configs__/specs.js.map +0 -1
  423. package/lib/commonjs/components/controllers/screen-lifecycle.blank.js +0 -59
  424. package/lib/commonjs/components/controllers/screen-lifecycle.blank.js.map +0 -1
  425. package/lib/commonjs/components/controllers/screen-lifecycle.js +0 -71
  426. package/lib/commonjs/components/controllers/screen-lifecycle.js.map +0 -1
  427. package/lib/commonjs/components/create-transition-aware-component.js.map +0 -1
  428. package/lib/commonjs/components/integrations/masked-view.js.map +0 -1
  429. package/lib/commonjs/components/root-transition-aware.js.map +0 -1
  430. package/lib/commonjs/constants.js.map +0 -1
  431. package/lib/commonjs/hooks/animation/use-associated-style.js.map +0 -1
  432. package/lib/commonjs/hooks/animation/use-screen-animation.js +0 -120
  433. package/lib/commonjs/hooks/animation/use-screen-animation.js.map +0 -1
  434. package/lib/commonjs/hooks/bounds/use-bound-registry.js +0 -131
  435. package/lib/commonjs/hooks/bounds/use-bound-registry.js.map +0 -1
  436. package/lib/commonjs/hooks/gestures/use-build-gestures.js +0 -236
  437. package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +0 -1
  438. package/lib/commonjs/hooks/gestures/use-parent-gesture-registry.js.map +0 -1
  439. package/lib/commonjs/hooks/gestures/use-scroll-registry.js.map +0 -1
  440. package/lib/commonjs/hooks/use-stable-callback-value.js.map +0 -1
  441. package/lib/commonjs/hooks/use-stable-callback.js.map +0 -1
  442. package/lib/commonjs/index.js +0 -47
  443. package/lib/commonjs/index.js.map +0 -1
  444. package/lib/commonjs/integrations/blank-stack/components/Header.js +0 -135
  445. package/lib/commonjs/integrations/blank-stack/components/Header.js.map +0 -1
  446. package/lib/commonjs/integrations/blank-stack/components/Screens.js +0 -64
  447. package/lib/commonjs/integrations/blank-stack/components/Screens.js.map +0 -1
  448. package/lib/commonjs/integrations/blank-stack/components/StackView.js +0 -85
  449. package/lib/commonjs/integrations/blank-stack/components/StackView.js.map +0 -1
  450. package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +0 -1
  451. package/lib/commonjs/integrations/blank-stack/providers/screen-transition-provider.js +0 -12
  452. package/lib/commonjs/integrations/blank-stack/providers/screen-transition-provider.js.map +0 -1
  453. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +0 -66
  454. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
  455. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
  456. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +0 -208
  457. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
  458. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +0 -1
  459. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
  460. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +0 -1
  461. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +0 -15
  462. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
  463. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
  464. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
  465. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js +0 -66
  466. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
  467. package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js.map +0 -1
  468. package/lib/commonjs/integrations/native-stack/providers/screen-transition-provider.js +0 -10
  469. package/lib/commonjs/integrations/native-stack/providers/screen-transition-provider.js.map +0 -1
  470. package/lib/commonjs/integrations/native-stack/utils/debounce.js.map +0 -1
  471. package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js.map +0 -1
  472. package/lib/commonjs/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +0 -1
  473. package/lib/commonjs/integrations/native-stack/utils/useDismissedRouteError.js.map +0 -1
  474. package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +0 -1
  475. package/lib/commonjs/integrations/native-stack/views/FontProcessor.js.map +0 -1
  476. package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js.map +0 -1
  477. package/lib/commonjs/integrations/native-stack/views/FooterComponent.js.map +0 -1
  478. package/lib/commonjs/integrations/native-stack/views/NativeStackView.js.map +0 -1
  479. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js +0 -488
  480. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +0 -1
  481. package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js.map +0 -1
  482. package/lib/commonjs/providers/create-screen-transition-provider.js +0 -38
  483. package/lib/commonjs/providers/create-screen-transition-provider.js.map +0 -1
  484. package/lib/commonjs/providers/gestures.js.map +0 -1
  485. package/lib/commonjs/providers/keys.js +0 -35
  486. package/lib/commonjs/providers/keys.js.map +0 -1
  487. package/lib/commonjs/providers/transition-styles.js +0 -63
  488. package/lib/commonjs/providers/transition-styles.js.map +0 -1
  489. package/lib/commonjs/stores/animations.js +0 -39
  490. package/lib/commonjs/stores/animations.js.map +0 -1
  491. package/lib/commonjs/stores/bounds/_utils.js.map +0 -1
  492. package/lib/commonjs/stores/bounds/index.js +0 -116
  493. package/lib/commonjs/stores/bounds/index.js.map +0 -1
  494. package/lib/commonjs/stores/gestures.js +0 -39
  495. package/lib/commonjs/stores/gestures.js.map +0 -1
  496. package/lib/commonjs/stores/navigator-dismiss-state.js.map +0 -1
  497. package/lib/commonjs/stores/utils/reset-stores-for-screen.js +0 -19
  498. package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +0 -1
  499. package/lib/commonjs/types/animation.js.map +0 -1
  500. package/lib/commonjs/types/blank-stack.navigator.js +0 -6
  501. package/lib/commonjs/types/blank-stack.navigator.js.map +0 -1
  502. package/lib/commonjs/types/bounds.js.map +0 -1
  503. package/lib/commonjs/types/core.js.map +0 -1
  504. package/lib/commonjs/types/gesture.js.map +0 -1
  505. package/lib/commonjs/types/native-stack.navigator.js +0 -6
  506. package/lib/commonjs/types/native-stack.navigator.js.map +0 -1
  507. package/lib/commonjs/types/utils.js.map +0 -1
  508. package/lib/commonjs/utils/animation/animate.js.map +0 -1
  509. package/lib/commonjs/utils/animation/derivations.js +0 -39
  510. package/lib/commonjs/utils/animation/derivations.js.map +0 -1
  511. package/lib/commonjs/utils/animation/start-screen-transition.js.map +0 -1
  512. package/lib/commonjs/utils/bounds/_types/builder.js.map +0 -1
  513. package/lib/commonjs/utils/bounds/_types/geometry.js.map +0 -1
  514. package/lib/commonjs/utils/bounds/_types/get-bounds.js.map +0 -1
  515. package/lib/commonjs/utils/bounds/_utils/flatten-styles.js.map +0 -1
  516. package/lib/commonjs/utils/bounds/_utils/geometry.js.map +0 -1
  517. package/lib/commonjs/utils/bounds/_utils/get-bounds.js.map +0 -1
  518. package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js +0 -19
  519. package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  520. package/lib/commonjs/utils/bounds/_utils/style-composers.js.map +0 -1
  521. package/lib/commonjs/utils/bounds/_utils/styles.js.map +0 -1
  522. package/lib/commonjs/utils/bounds/constants.js.map +0 -1
  523. package/lib/commonjs/utils/bounds/index.js.map +0 -1
  524. package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +0 -1
  525. package/lib/commonjs/utils/gesture/check-gesture-activation.js.map +0 -1
  526. package/lib/commonjs/utils/gesture/determine-dismissal.js.map +0 -1
  527. package/lib/commonjs/utils/gesture/map-gesture-to-progress.js.map +0 -1
  528. package/lib/commonjs/utils/gesture/reset-gesture-values.js.map +0 -1
  529. package/lib/commonjs/utils/gesture/velocity.js.map +0 -1
  530. package/lib/commonjs/utils/reanimated/version.js.map +0 -1
  531. package/lib/module/__configs__/index.js +0 -18
  532. package/lib/module/__configs__/index.js.map +0 -1
  533. package/lib/module/__configs__/presets.js.map +0 -1
  534. package/lib/module/__configs__/specs.js.map +0 -1
  535. package/lib/module/components/controllers/screen-lifecycle.blank.js +0 -53
  536. package/lib/module/components/controllers/screen-lifecycle.blank.js.map +0 -1
  537. package/lib/module/components/controllers/screen-lifecycle.js +0 -65
  538. package/lib/module/components/controllers/screen-lifecycle.js.map +0 -1
  539. package/lib/module/components/create-transition-aware-component.js.map +0 -1
  540. package/lib/module/components/integrations/masked-view.js.map +0 -1
  541. package/lib/module/components/root-transition-aware.js.map +0 -1
  542. package/lib/module/constants.js.map +0 -1
  543. package/lib/module/hooks/animation/use-associated-style.js.map +0 -1
  544. package/lib/module/hooks/animation/use-screen-animation.js +0 -115
  545. package/lib/module/hooks/animation/use-screen-animation.js.map +0 -1
  546. package/lib/module/hooks/bounds/use-bound-registry.js +0 -125
  547. package/lib/module/hooks/bounds/use-bound-registry.js.map +0 -1
  548. package/lib/module/hooks/gestures/use-build-gestures.js +0 -230
  549. package/lib/module/hooks/gestures/use-build-gestures.js.map +0 -1
  550. package/lib/module/hooks/gestures/use-parent-gesture-registry.js.map +0 -1
  551. package/lib/module/hooks/gestures/use-scroll-registry.js.map +0 -1
  552. package/lib/module/hooks/use-stable-callback-value.js.map +0 -1
  553. package/lib/module/hooks/use-stable-callback.js.map +0 -1
  554. package/lib/module/index.js +0 -24
  555. package/lib/module/index.js.map +0 -1
  556. package/lib/module/integrations/blank-stack/components/Header.js +0 -131
  557. package/lib/module/integrations/blank-stack/components/Header.js.map +0 -1
  558. package/lib/module/integrations/blank-stack/components/Screens.js +0 -58
  559. package/lib/module/integrations/blank-stack/components/Screens.js.map +0 -1
  560. package/lib/module/integrations/blank-stack/components/StackView.js +0 -81
  561. package/lib/module/integrations/blank-stack/components/StackView.js.map +0 -1
  562. package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +0 -1
  563. package/lib/module/integrations/blank-stack/providers/screen-transition-provider.js +0 -8
  564. package/lib/module/integrations/blank-stack/providers/screen-transition-provider.js.map +0 -1
  565. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +0 -60
  566. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
  567. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
  568. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +0 -202
  569. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
  570. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +0 -1
  571. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
  572. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +0 -1
  573. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +0 -10
  574. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
  575. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
  576. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
  577. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js +0 -60
  578. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
  579. package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js.map +0 -1
  580. package/lib/module/integrations/native-stack/providers/screen-transition-provider.js +0 -6
  581. package/lib/module/integrations/native-stack/providers/screen-transition-provider.js.map +0 -1
  582. package/lib/module/integrations/native-stack/utils/debounce.js.map +0 -1
  583. package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js.map +0 -1
  584. package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +0 -1
  585. package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js.map +0 -1
  586. package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +0 -1
  587. package/lib/module/integrations/native-stack/views/FontProcessor.js.map +0 -1
  588. package/lib/module/integrations/native-stack/views/FontProcessor.native.js.map +0 -1
  589. package/lib/module/integrations/native-stack/views/FooterComponent.js.map +0 -1
  590. package/lib/module/integrations/native-stack/views/NativeStackView.js.map +0 -1
  591. package/lib/module/integrations/native-stack/views/NativeStackView.native.js +0 -483
  592. package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +0 -1
  593. package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js.map +0 -1
  594. package/lib/module/providers/create-screen-transition-provider.js +0 -34
  595. package/lib/module/providers/create-screen-transition-provider.js.map +0 -1
  596. package/lib/module/providers/gestures.js.map +0 -1
  597. package/lib/module/providers/keys.js +0 -29
  598. package/lib/module/providers/keys.js.map +0 -1
  599. package/lib/module/providers/transition-styles.js +0 -58
  600. package/lib/module/providers/transition-styles.js.map +0 -1
  601. package/lib/module/stores/animations.js +0 -33
  602. package/lib/module/stores/animations.js.map +0 -1
  603. package/lib/module/stores/bounds/_utils.js.map +0 -1
  604. package/lib/module/stores/bounds/index.js +0 -112
  605. package/lib/module/stores/bounds/index.js.map +0 -1
  606. package/lib/module/stores/gestures.js +0 -35
  607. package/lib/module/stores/gestures.js.map +0 -1
  608. package/lib/module/stores/navigator-dismiss-state.js.map +0 -1
  609. package/lib/module/stores/utils/reset-stores-for-screen.js +0 -15
  610. package/lib/module/stores/utils/reset-stores-for-screen.js.map +0 -1
  611. package/lib/module/types/animation.js.map +0 -1
  612. package/lib/module/types/blank-stack.navigator.js +0 -4
  613. package/lib/module/types/blank-stack.navigator.js.map +0 -1
  614. package/lib/module/types/bounds.js.map +0 -1
  615. package/lib/module/types/core.js.map +0 -1
  616. package/lib/module/types/gesture.js.map +0 -1
  617. package/lib/module/types/native-stack.navigator.js +0 -4
  618. package/lib/module/types/native-stack.navigator.js.map +0 -1
  619. package/lib/module/types/utils.js.map +0 -1
  620. package/lib/module/utils/animation/animate.js.map +0 -1
  621. package/lib/module/utils/animation/derivations.js +0 -34
  622. package/lib/module/utils/animation/derivations.js.map +0 -1
  623. package/lib/module/utils/animation/start-screen-transition.js.map +0 -1
  624. package/lib/module/utils/bounds/_types/builder.js.map +0 -1
  625. package/lib/module/utils/bounds/_types/geometry.js.map +0 -1
  626. package/lib/module/utils/bounds/_types/get-bounds.js.map +0 -1
  627. package/lib/module/utils/bounds/_utils/flatten-styles.js.map +0 -1
  628. package/lib/module/utils/bounds/_utils/geometry.js.map +0 -1
  629. package/lib/module/utils/bounds/_utils/get-bounds.js.map +0 -1
  630. package/lib/module/utils/bounds/_utils/is-bounds-equal.js +0 -14
  631. package/lib/module/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
  632. package/lib/module/utils/bounds/_utils/style-composers.js.map +0 -1
  633. package/lib/module/utils/bounds/_utils/styles.js.map +0 -1
  634. package/lib/module/utils/bounds/constants.js.map +0 -1
  635. package/lib/module/utils/bounds/index.js.map +0 -1
  636. package/lib/module/utils/gesture/apply-offset-rules.js.map +0 -1
  637. package/lib/module/utils/gesture/check-gesture-activation.js.map +0 -1
  638. package/lib/module/utils/gesture/determine-dismissal.js.map +0 -1
  639. package/lib/module/utils/gesture/map-gesture-to-progress.js.map +0 -1
  640. package/lib/module/utils/gesture/reset-gesture-values.js.map +0 -1
  641. package/lib/module/utils/gesture/velocity.js.map +0 -1
  642. package/lib/module/utils/reanimated/version.js.map +0 -1
  643. package/lib/typescript/__configs__/index.d.ts +0 -16
  644. package/lib/typescript/__configs__/index.d.ts.map +0 -1
  645. package/lib/typescript/__configs__/presets.d.ts +0 -12
  646. package/lib/typescript/__configs__/presets.d.ts.map +0 -1
  647. package/lib/typescript/__configs__/specs.d.ts.map +0 -1
  648. package/lib/typescript/components/controllers/screen-lifecycle.blank.d.ts +0 -7
  649. package/lib/typescript/components/controllers/screen-lifecycle.blank.d.ts.map +0 -1
  650. package/lib/typescript/components/controllers/screen-lifecycle.d.ts +0 -6
  651. package/lib/typescript/components/controllers/screen-lifecycle.d.ts.map +0 -1
  652. package/lib/typescript/components/create-transition-aware-component.d.ts.map +0 -1
  653. package/lib/typescript/components/integrations/masked-view.d.ts.map +0 -1
  654. package/lib/typescript/components/root-transition-aware.d.ts.map +0 -1
  655. package/lib/typescript/constants.d.ts +0 -57
  656. package/lib/typescript/constants.d.ts.map +0 -1
  657. package/lib/typescript/hooks/animation/use-associated-style.d.ts.map +0 -1
  658. package/lib/typescript/hooks/animation/use-screen-animation.d.ts +0 -7
  659. package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +0 -1
  660. package/lib/typescript/hooks/bounds/use-bound-registry.d.ts.map +0 -1
  661. package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +0 -1
  662. package/lib/typescript/hooks/gestures/use-parent-gesture-registry.d.ts.map +0 -1
  663. package/lib/typescript/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
  664. package/lib/typescript/hooks/use-stable-callback-value.d.ts.map +0 -1
  665. package/lib/typescript/hooks/use-stable-callback.d.ts.map +0 -1
  666. package/lib/typescript/index.d.ts +0 -1327
  667. package/lib/typescript/index.d.ts.map +0 -1
  668. package/lib/typescript/integrations/blank-stack/components/Header.d.ts +0 -5
  669. package/lib/typescript/integrations/blank-stack/components/Header.d.ts.map +0 -1
  670. package/lib/typescript/integrations/blank-stack/components/Screens.d.ts.map +0 -1
  671. package/lib/typescript/integrations/blank-stack/components/StackView.d.ts.map +0 -1
  672. package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts +0 -16
  673. package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts.map +0 -1
  674. package/lib/typescript/integrations/blank-stack/providers/screen-transition-provider.d.ts +0 -8
  675. package/lib/typescript/integrations/blank-stack/providers/screen-transition-provider.d.ts.map +0 -1
  676. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +0 -1
  677. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +0 -1
  678. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +0 -20
  679. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +0 -1
  680. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts +0 -22
  681. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts.map +0 -1
  682. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +0 -3
  683. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +0 -1
  684. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts +0 -4
  685. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts.map +0 -1
  686. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +0 -4
  687. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +0 -1
  688. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +0 -1
  689. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +0 -1
  690. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts.map +0 -1
  691. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts +0 -16
  692. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts.map +0 -1
  693. package/lib/typescript/integrations/native-stack/providers/screen-transition-provider.d.ts +0 -8
  694. package/lib/typescript/integrations/native-stack/providers/screen-transition-provider.d.ts.map +0 -1
  695. package/lib/typescript/integrations/native-stack/utils/debounce.d.ts.map +0 -1
  696. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts +0 -4
  697. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts.map +0 -1
  698. package/lib/typescript/integrations/native-stack/utils/useAnimatedHeaderHeight.d.ts.map +0 -1
  699. package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts.map +0 -1
  700. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts +0 -3
  701. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +0 -1
  702. package/lib/typescript/integrations/native-stack/views/FontProcessor.d.ts.map +0 -1
  703. package/lib/typescript/integrations/native-stack/views/FontProcessor.native.d.ts.map +0 -1
  704. package/lib/typescript/integrations/native-stack/views/FooterComponent.d.ts.map +0 -1
  705. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts +0 -11
  706. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts.map +0 -1
  707. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts +0 -11
  708. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +0 -1
  709. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts +0 -44
  710. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts.map +0 -1
  711. package/lib/typescript/providers/create-screen-transition-provider.d.ts +0 -18
  712. package/lib/typescript/providers/create-screen-transition-provider.d.ts.map +0 -1
  713. package/lib/typescript/providers/gestures.d.ts.map +0 -1
  714. package/lib/typescript/providers/keys.d.ts +0 -18
  715. package/lib/typescript/providers/keys.d.ts.map +0 -1
  716. package/lib/typescript/providers/transition-styles.d.ts +0 -12
  717. package/lib/typescript/providers/transition-styles.d.ts.map +0 -1
  718. package/lib/typescript/stores/animations.d.ts +0 -17
  719. package/lib/typescript/stores/animations.d.ts.map +0 -1
  720. package/lib/typescript/stores/bounds/_utils.d.ts.map +0 -1
  721. package/lib/typescript/stores/bounds/index.d.ts +0 -22
  722. package/lib/typescript/stores/bounds/index.d.ts.map +0 -1
  723. package/lib/typescript/stores/gestures.d.ts +0 -23
  724. package/lib/typescript/stores/gestures.d.ts.map +0 -1
  725. package/lib/typescript/stores/navigator-dismiss-state.d.ts.map +0 -1
  726. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +0 -6
  727. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
  728. package/lib/typescript/types/animation.d.ts +0 -70
  729. package/lib/typescript/types/animation.d.ts.map +0 -1
  730. package/lib/typescript/types/blank-stack.navigator.d.ts +0 -214
  731. package/lib/typescript/types/blank-stack.navigator.d.ts.map +0 -1
  732. package/lib/typescript/types/bounds.d.ts.map +0 -1
  733. package/lib/typescript/types/core.d.ts +0 -47
  734. package/lib/typescript/types/core.d.ts.map +0 -1
  735. package/lib/typescript/types/gesture.d.ts.map +0 -1
  736. package/lib/typescript/types/native-stack.navigator.d.ts +0 -691
  737. package/lib/typescript/types/native-stack.navigator.d.ts.map +0 -1
  738. package/lib/typescript/types/utils.d.ts.map +0 -1
  739. package/lib/typescript/utils/animation/animate.d.ts.map +0 -1
  740. package/lib/typescript/utils/animation/derivations.d.ts.map +0 -1
  741. package/lib/typescript/utils/animation/start-screen-transition.d.ts +0 -13
  742. package/lib/typescript/utils/animation/start-screen-transition.d.ts.map +0 -1
  743. package/lib/typescript/utils/bounds/_types/builder.d.ts +0 -118
  744. package/lib/typescript/utils/bounds/_types/builder.d.ts.map +0 -1
  745. package/lib/typescript/utils/bounds/_types/geometry.d.ts.map +0 -1
  746. package/lib/typescript/utils/bounds/_types/get-bounds.d.ts.map +0 -1
  747. package/lib/typescript/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
  748. package/lib/typescript/utils/bounds/_utils/geometry.d.ts +0 -27
  749. package/lib/typescript/utils/bounds/_utils/geometry.d.ts.map +0 -1
  750. package/lib/typescript/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
  751. package/lib/typescript/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
  752. package/lib/typescript/utils/bounds/_utils/style-composers.d.ts.map +0 -1
  753. package/lib/typescript/utils/bounds/_utils/styles.d.ts.map +0 -1
  754. package/lib/typescript/utils/bounds/constants.d.ts +0 -7
  755. package/lib/typescript/utils/bounds/constants.d.ts.map +0 -1
  756. package/lib/typescript/utils/bounds/index.d.ts +0 -13
  757. package/lib/typescript/utils/bounds/index.d.ts.map +0 -1
  758. package/lib/typescript/utils/gesture/apply-offset-rules.d.ts +0 -38
  759. package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +0 -1
  760. package/lib/typescript/utils/gesture/check-gesture-activation.d.ts +0 -38
  761. package/lib/typescript/utils/gesture/check-gesture-activation.d.ts.map +0 -1
  762. package/lib/typescript/utils/gesture/determine-dismissal.d.ts.map +0 -1
  763. package/lib/typescript/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
  764. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts +0 -16
  765. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts.map +0 -1
  766. package/lib/typescript/utils/gesture/velocity.d.ts +0 -25
  767. package/lib/typescript/utils/gesture/velocity.d.ts.map +0 -1
  768. package/lib/typescript/utils/reanimated/version.d.ts.map +0 -1
  769. package/src/__configs__/index.ts +0 -26
  770. package/src/__configs__/presets.ts +0 -628
  771. package/src/__tests__/gesture.velocity.test.ts +0 -138
  772. package/src/components/controllers/screen-lifecycle.blank.ts +0 -62
  773. package/src/components/controllers/screen-lifecycle.tsx +0 -78
  774. package/src/components/root-transition-aware.tsx +0 -44
  775. package/src/constants.ts +0 -108
  776. package/src/hooks/animation/use-screen-animation.tsx +0 -157
  777. package/src/hooks/bounds/use-bound-registry.tsx +0 -159
  778. package/src/hooks/gestures/use-build-gestures.tsx +0 -324
  779. package/src/index.ts +0 -45
  780. package/src/integrations/blank-stack/components/Header.tsx +0 -141
  781. package/src/integrations/blank-stack/components/Screens.tsx +0 -96
  782. package/src/integrations/blank-stack/components/StackView.tsx +0 -100
  783. package/src/integrations/blank-stack/navigators/createBlankStackNavigator.tsx +0 -111
  784. package/src/integrations/blank-stack/providers/screen-transition-provider.tsx +0 -9
  785. package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +0 -62
  786. package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +0 -280
  787. package/src/integrations/blank-stack/utils/with-stack-navigation/_types.ts +0 -35
  788. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +0 -15
  789. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.ts +0 -29
  790. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +0 -17
  791. package/src/integrations/blank-stack/utils/with-stack-navigation/index.tsx +0 -80
  792. package/src/integrations/native-stack/navigators/createNativeStackNavigator.tsx +0 -112
  793. package/src/integrations/native-stack/providers/screen-transition-provider.tsx +0 -8
  794. package/src/integrations/native-stack/utils/getModalRoutesKeys.ts +0 -21
  795. package/src/integrations/native-stack/utils/useInvalidPreventRemoveError.tsx +0 -31
  796. package/src/integrations/native-stack/views/NativeStackView.native.tsx +0 -650
  797. package/src/integrations/native-stack/views/NativeStackView.tsx +0 -214
  798. package/src/integrations/native-stack/views/useHeaderConfigProps.tsx +0 -295
  799. package/src/providers/create-screen-transition-provider.tsx +0 -55
  800. package/src/providers/keys.tsx +0 -50
  801. package/src/providers/transition-styles.tsx +0 -76
  802. package/src/stores/animations.ts +0 -45
  803. package/src/stores/bounds/index.ts +0 -125
  804. package/src/stores/gestures.ts +0 -60
  805. package/src/stores/utils/reset-stores-for-screen.ts +0 -13
  806. package/src/types/animation.ts +0 -81
  807. package/src/types/blank-stack.navigator.ts +0 -266
  808. package/src/types/core.ts +0 -50
  809. package/src/types/native-stack.navigator.ts +0 -753
  810. package/src/utils/animation/derivations.ts +0 -40
  811. package/src/utils/animation/start-screen-transition.ts +0 -61
  812. package/src/utils/bounds/_types/builder.ts +0 -151
  813. package/src/utils/bounds/_utils/geometry.ts +0 -166
  814. package/src/utils/bounds/_utils/is-bounds-equal.ts +0 -24
  815. package/src/utils/bounds/constants.ts +0 -40
  816. package/src/utils/bounds/index.ts +0 -219
  817. package/src/utils/gesture/apply-offset-rules.ts +0 -312
  818. package/src/utils/gesture/check-gesture-activation.ts +0 -310
  819. package/src/utils/gesture/reset-gesture-values.ts +0 -67
  820. package/src/utils/gesture/velocity.ts +0 -143
  821. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/navigators/createBlankStackNavigator.js +0 -0
  822. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.js +0 -0
  823. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_types.js +0 -0
  824. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/are-descriptors-equal.js +0 -0
  825. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js +0 -0
  826. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.js +0 -0
  827. /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.js +0 -0
  828. /package/lib/commonjs/{integrations/native-stack → native-stack}/navigators/createNativeStackNavigator.js +0 -0
  829. /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/debounce.js +0 -0
  830. /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/getModalRoutesKeys.js +0 -0
  831. /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.js +0 -0
  832. /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.js +0 -0
  833. /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useInvalidPreventRemoveError.js +0 -0
  834. /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FontProcessor.js +0 -0
  835. /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FontProcessor.native.js +0 -0
  836. /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FooterComponent.js +0 -0
  837. /package/lib/commonjs/{integrations/native-stack → native-stack}/views/NativeStackView.js +0 -0
  838. /package/lib/commonjs/{integrations/native-stack → native-stack}/views/useHeaderConfigProps.js +0 -0
  839. /package/lib/commonjs/{components → shared/components}/create-transition-aware-component.js +0 -0
  840. /package/lib/commonjs/{components → shared/components}/integrations/masked-view.js +0 -0
  841. /package/lib/commonjs/{components → shared/components}/root-transition-aware.js +0 -0
  842. /package/lib/commonjs/{__configs__ → shared/configs}/presets.js +0 -0
  843. /package/lib/commonjs/{__configs__ → shared/configs}/specs.js +0 -0
  844. /package/lib/commonjs/{constants.js → shared/constants.js} +0 -0
  845. /package/lib/commonjs/{hooks → shared/hooks}/animation/use-associated-style.js +0 -0
  846. /package/lib/commonjs/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.js +0 -0
  847. /package/lib/commonjs/{hooks → shared/hooks}/gestures/use-scroll-registry.js +0 -0
  848. /package/lib/commonjs/{hooks → shared/hooks}/use-stable-callback-value.js +0 -0
  849. /package/lib/commonjs/{hooks → shared/hooks}/use-stable-callback.js +0 -0
  850. /package/lib/commonjs/{providers → shared/providers}/gestures.js +0 -0
  851. /package/lib/commonjs/{stores/bounds → shared/stores/bound-store}/_utils.js +0 -0
  852. /package/lib/commonjs/{stores → shared/stores}/navigator-dismiss-state.js +0 -0
  853. /package/lib/commonjs/{types → shared/types}/animation.js +0 -0
  854. /package/lib/commonjs/{types → shared/types}/bounds.js +0 -0
  855. /package/lib/commonjs/{types → shared/types}/core.js +0 -0
  856. /package/lib/commonjs/{types → shared/types}/gesture.js +0 -0
  857. /package/lib/commonjs/{types → shared/types}/utils.js +0 -0
  858. /package/lib/commonjs/{utils → shared/utils}/animation/animate.js +0 -0
  859. /package/lib/commonjs/{utils → shared/utils}/animation/start-screen-transition.js +0 -0
  860. /package/lib/commonjs/{utils → shared/utils}/bounds/_types/builder.js +0 -0
  861. /package/lib/commonjs/{utils → shared/utils}/bounds/_types/geometry.js +0 -0
  862. /package/lib/commonjs/{utils → shared/utils}/bounds/_types/get-bounds.js +0 -0
  863. /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/flatten-styles.js +0 -0
  864. /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/geometry.js +0 -0
  865. /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/get-bounds.js +0 -0
  866. /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/style-composers.js +0 -0
  867. /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/styles.js +0 -0
  868. /package/lib/commonjs/{utils → shared/utils}/bounds/constants.js +0 -0
  869. /package/lib/commonjs/{utils → shared/utils}/bounds/index.js +0 -0
  870. /package/lib/commonjs/{utils → shared/utils}/gesture/apply-offset-rules.js +0 -0
  871. /package/lib/commonjs/{utils → shared/utils}/gesture/check-gesture-activation.js +0 -0
  872. /package/lib/commonjs/{utils → shared/utils}/gesture/determine-dismissal.js +0 -0
  873. /package/lib/commonjs/{utils → shared/utils}/gesture/map-gesture-to-progress.js +0 -0
  874. /package/lib/commonjs/{utils → shared/utils}/gesture/reset-gesture-values.js +0 -0
  875. /package/lib/commonjs/{utils → shared/utils}/gesture/velocity.js +0 -0
  876. /package/lib/commonjs/{utils → shared/utils}/reanimated/version.js +0 -0
  877. /package/lib/module/{integrations/blank-stack → blank-stack}/navigators/createBlankStackNavigator.js +0 -0
  878. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.js +0 -0
  879. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_types.js +0 -0
  880. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/are-descriptors-equal.js +0 -0
  881. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js +0 -0
  882. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.js +0 -0
  883. /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.js +0 -0
  884. /package/lib/module/{integrations/native-stack → native-stack}/navigators/createNativeStackNavigator.js +0 -0
  885. /package/lib/module/{integrations/native-stack → native-stack}/utils/debounce.js +0 -0
  886. /package/lib/module/{integrations/native-stack → native-stack}/utils/getModalRoutesKeys.js +0 -0
  887. /package/lib/module/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.js +0 -0
  888. /package/lib/module/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.js +0 -0
  889. /package/lib/module/{integrations/native-stack → native-stack}/utils/useInvalidPreventRemoveError.js +0 -0
  890. /package/lib/module/{integrations/native-stack → native-stack}/views/FontProcessor.js +0 -0
  891. /package/lib/module/{integrations/native-stack → native-stack}/views/FontProcessor.native.js +0 -0
  892. /package/lib/module/{integrations/native-stack → native-stack}/views/FooterComponent.js +0 -0
  893. /package/lib/module/{integrations/native-stack → native-stack}/views/NativeStackView.js +0 -0
  894. /package/lib/module/{integrations/native-stack → native-stack}/views/useHeaderConfigProps.js +0 -0
  895. /package/lib/module/{components → shared/components}/create-transition-aware-component.js +0 -0
  896. /package/lib/module/{components → shared/components}/integrations/masked-view.js +0 -0
  897. /package/lib/module/{components → shared/components}/root-transition-aware.js +0 -0
  898. /package/lib/module/{__configs__ → shared/configs}/presets.js +0 -0
  899. /package/lib/module/{__configs__ → shared/configs}/specs.js +0 -0
  900. /package/lib/module/{constants.js → shared/constants.js} +0 -0
  901. /package/lib/module/{hooks → shared/hooks}/animation/use-associated-style.js +0 -0
  902. /package/lib/module/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.js +0 -0
  903. /package/lib/module/{hooks → shared/hooks}/gestures/use-scroll-registry.js +0 -0
  904. /package/lib/module/{hooks → shared/hooks}/use-stable-callback-value.js +0 -0
  905. /package/lib/module/{hooks → shared/hooks}/use-stable-callback.js +0 -0
  906. /package/lib/module/{providers → shared/providers}/gestures.js +0 -0
  907. /package/lib/module/{stores/bounds → shared/stores/bound-store}/_utils.js +0 -0
  908. /package/lib/module/{stores → shared/stores}/navigator-dismiss-state.js +0 -0
  909. /package/lib/module/{types → shared/types}/animation.js +0 -0
  910. /package/lib/module/{types → shared/types}/bounds.js +0 -0
  911. /package/lib/module/{types → shared/types}/core.js +0 -0
  912. /package/lib/module/{types → shared/types}/gesture.js +0 -0
  913. /package/lib/module/{types → shared/types}/utils.js +0 -0
  914. /package/lib/module/{utils → shared/utils}/animation/animate.js +0 -0
  915. /package/lib/module/{utils → shared/utils}/animation/start-screen-transition.js +0 -0
  916. /package/lib/module/{utils → shared/utils}/bounds/_types/builder.js +0 -0
  917. /package/lib/module/{utils → shared/utils}/bounds/_types/geometry.js +0 -0
  918. /package/lib/module/{utils → shared/utils}/bounds/_types/get-bounds.js +0 -0
  919. /package/lib/module/{utils → shared/utils}/bounds/_utils/flatten-styles.js +0 -0
  920. /package/lib/module/{utils → shared/utils}/bounds/_utils/geometry.js +0 -0
  921. /package/lib/module/{utils → shared/utils}/bounds/_utils/get-bounds.js +0 -0
  922. /package/lib/module/{utils → shared/utils}/bounds/_utils/style-composers.js +0 -0
  923. /package/lib/module/{utils → shared/utils}/bounds/_utils/styles.js +0 -0
  924. /package/lib/module/{utils → shared/utils}/bounds/constants.js +0 -0
  925. /package/lib/module/{utils → shared/utils}/bounds/index.js +0 -0
  926. /package/lib/module/{utils → shared/utils}/gesture/apply-offset-rules.js +0 -0
  927. /package/lib/module/{utils → shared/utils}/gesture/check-gesture-activation.js +0 -0
  928. /package/lib/module/{utils → shared/utils}/gesture/determine-dismissal.js +0 -0
  929. /package/lib/module/{utils → shared/utils}/gesture/map-gesture-to-progress.js +0 -0
  930. /package/lib/module/{utils → shared/utils}/gesture/reset-gesture-values.js +0 -0
  931. /package/lib/module/{utils → shared/utils}/gesture/velocity.js +0 -0
  932. /package/lib/module/{utils → shared/utils}/reanimated/version.js +0 -0
  933. /package/lib/typescript/{integrations/blank-stack → blank-stack}/components/Screens.d.ts +0 -0
  934. /package/lib/typescript/{integrations/blank-stack → blank-stack}/components/StackView.d.ts +0 -0
  935. /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts +0 -0
  936. /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.d.ts +0 -0
  937. /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts +0 -0
  938. /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.d.ts +0 -0
  939. /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/index.d.ts +0 -0
  940. /package/lib/typescript/{integrations/native-stack → native-stack}/utils/debounce.d.ts +0 -0
  941. /package/lib/typescript/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.d.ts +0 -0
  942. /package/lib/typescript/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.d.ts +0 -0
  943. /package/lib/typescript/{integrations/native-stack → native-stack}/views/FontProcessor.d.ts +0 -0
  944. /package/lib/typescript/{integrations/native-stack → native-stack}/views/FontProcessor.native.d.ts +0 -0
  945. /package/lib/typescript/{integrations/native-stack → native-stack}/views/FooterComponent.d.ts +0 -0
  946. /package/lib/typescript/{components → shared/components}/create-transition-aware-component.d.ts +0 -0
  947. /package/lib/typescript/{components → shared/components}/integrations/masked-view.d.ts +0 -0
  948. /package/lib/typescript/{components → shared/components}/root-transition-aware.d.ts +0 -0
  949. /package/lib/typescript/{__configs__ → shared/configs}/specs.d.ts +0 -0
  950. /package/lib/typescript/{hooks → shared/hooks}/animation/use-associated-style.d.ts +0 -0
  951. /package/lib/typescript/{hooks → shared/hooks}/bounds/use-bound-registry.d.ts +0 -0
  952. /package/lib/typescript/{hooks → shared/hooks}/gestures/use-build-gestures.d.ts +0 -0
  953. /package/lib/typescript/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.d.ts +0 -0
  954. /package/lib/typescript/{hooks → shared/hooks}/gestures/use-scroll-registry.d.ts +0 -0
  955. /package/lib/typescript/{hooks → shared/hooks}/use-stable-callback-value.d.ts +0 -0
  956. /package/lib/typescript/{hooks → shared/hooks}/use-stable-callback.d.ts +0 -0
  957. /package/lib/typescript/{providers → shared/providers}/gestures.d.ts +0 -0
  958. /package/lib/typescript/{stores/bounds → shared/stores/bound-store}/_utils.d.ts +0 -0
  959. /package/lib/typescript/{stores → shared/stores}/navigator-dismiss-state.d.ts +0 -0
  960. /package/lib/typescript/{types → shared/types}/bounds.d.ts +0 -0
  961. /package/lib/typescript/{types → shared/types}/gesture.d.ts +0 -0
  962. /package/lib/typescript/{types → shared/types}/utils.d.ts +0 -0
  963. /package/lib/typescript/{utils → shared/utils}/animation/animate.d.ts +0 -0
  964. /package/lib/typescript/{utils → shared/utils}/animation/derivations.d.ts +0 -0
  965. /package/lib/typescript/{utils → shared/utils}/bounds/_types/geometry.d.ts +0 -0
  966. /package/lib/typescript/{utils → shared/utils}/bounds/_types/get-bounds.d.ts +0 -0
  967. /package/lib/typescript/{utils → shared/utils}/bounds/_utils/flatten-styles.d.ts +0 -0
  968. /package/lib/typescript/{utils → shared/utils}/bounds/_utils/get-bounds.d.ts +0 -0
  969. /package/lib/typescript/{utils → shared/utils}/bounds/_utils/is-bounds-equal.d.ts +0 -0
  970. /package/lib/typescript/{utils → shared/utils}/bounds/_utils/style-composers.d.ts +0 -0
  971. /package/lib/typescript/{utils → shared/utils}/bounds/_utils/styles.d.ts +0 -0
  972. /package/lib/typescript/{utils → shared/utils}/gesture/determine-dismissal.d.ts +0 -0
  973. /package/lib/typescript/{utils → shared/utils}/gesture/map-gesture-to-progress.d.ts +0 -0
  974. /package/lib/typescript/{utils → shared/utils}/reanimated/version.d.ts +0 -0
  975. /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.tsx +0 -0
  976. /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.ts +0 -0
  977. /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.ts +0 -0
  978. /package/src/{integrations/native-stack → native-stack}/utils/debounce.tsx +0 -0
  979. /package/src/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.tsx +0 -0
  980. /package/src/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.tsx +0 -0
  981. /package/src/{integrations/native-stack → native-stack}/views/FontProcessor.native.tsx +0 -0
  982. /package/src/{integrations/native-stack → native-stack}/views/FontProcessor.tsx +0 -0
  983. /package/src/{integrations/native-stack → native-stack}/views/FooterComponent.tsx +0 -0
  984. /package/src/{__tests__ → shared/__tests__}/bounds.store.test.ts +0 -0
  985. /package/src/{__tests__ → shared/__tests__}/determine-dismissal.test.ts +0 -0
  986. /package/src/{__tests__ → shared/__tests__}/geometry.test.ts +0 -0
  987. /package/src/{components → shared/components}/create-transition-aware-component.tsx +0 -0
  988. /package/src/{components → shared/components}/integrations/masked-view.tsx +0 -0
  989. /package/src/{__configs__ → shared/configs}/specs.ts +0 -0
  990. /package/src/{hooks → shared/hooks}/animation/use-associated-style.tsx +0 -0
  991. /package/src/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.tsx +0 -0
  992. /package/src/{hooks → shared/hooks}/gestures/use-scroll-registry.tsx +0 -0
  993. /package/src/{hooks → shared/hooks}/use-stable-callback-value.tsx +0 -0
  994. /package/src/{hooks → shared/hooks}/use-stable-callback.tsx +0 -0
  995. /package/src/{providers → shared/providers}/gestures.tsx +0 -0
  996. /package/src/{stores/bounds → shared/stores/bound-store}/_utils.ts +0 -0
  997. /package/src/{stores → shared/stores}/navigator-dismiss-state.ts +0 -0
  998. /package/src/{types → shared/types}/bounds.ts +0 -0
  999. /package/src/{types → shared/types}/gesture.ts +0 -0
  1000. /package/src/{types → shared/types}/utils.ts +0 -0
  1001. /package/src/{utils → shared/utils}/animation/animate.ts +0 -0
  1002. /package/src/{utils → shared/utils}/bounds/_types/geometry.ts +0 -0
  1003. /package/src/{utils → shared/utils}/bounds/_types/get-bounds.ts +0 -0
  1004. /package/src/{utils → shared/utils}/bounds/_utils/flatten-styles.ts +0 -0
  1005. /package/src/{utils → shared/utils}/bounds/_utils/get-bounds.ts +0 -0
  1006. /package/src/{utils → shared/utils}/bounds/_utils/style-composers.ts +0 -0
  1007. /package/src/{utils → shared/utils}/bounds/_utils/styles.ts +0 -0
  1008. /package/src/{utils → shared/utils}/gesture/determine-dismissal.ts +0 -0
  1009. /package/src/{utils → shared/utils}/gesture/map-gesture-to-progress.ts +0 -0
  1010. /package/src/{utils → shared/utils}/reanimated/version.ts +0 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ import { createContext, useContext, useMemo } from "react";
4
+ import { useStackNavigationState } from "./_hooks/use-stack-navigation-state";
5
+ import { calculateActiveScreensLimit } from "./_utils/calculate-active-screens-limit";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const StackNavigationContext = /*#__PURE__*/createContext(null);
8
+ export function withStackNavigationProvider(Component) {
9
+ return function StackNavigationWrapper(props) {
10
+ const {
11
+ state,
12
+ handleCloseRoute,
13
+ closingRouteKeys
14
+ } = useStackNavigationState(props);
15
+ const scenes = useMemo(() => {
16
+ return state.routes.reduce((acc, route) => {
17
+ acc.push({
18
+ route,
19
+ descriptor: state.descriptors[route.key]
20
+ });
21
+ return acc;
22
+ }, []);
23
+ }, [state.routes, state.descriptors]);
24
+ const activeScreensLimit = useMemo(() => {
25
+ return calculateActiveScreensLimit(state.routes, state.descriptors);
26
+ }, [state.routes, state.descriptors]);
27
+ const shouldShowFloatOverlay = useMemo(() => {
28
+ return state.routes.some(route => {
29
+ const options = state.descriptors[route.key]?.options;
30
+ return options?.overlayMode === "float" && options?.overlayShown;
31
+ });
32
+ }, [state.routes, state.descriptors]);
33
+ const contextValue = useMemo(() => {
34
+ return {
35
+ routes: state.routes,
36
+ focusedIndex: props.state.index,
37
+ descriptors: state.descriptors,
38
+ closingRouteKeysShared: closingRouteKeys.shared,
39
+ activeScreensLimit,
40
+ handleCloseRoute,
41
+ scenes,
42
+ shouldShowFloatOverlay
43
+ };
44
+ }, [state, scenes, activeScreensLimit, closingRouteKeys, handleCloseRoute, props.state.index, shouldShowFloatOverlay]);
45
+ return /*#__PURE__*/_jsx(StackNavigationContext.Provider, {
46
+ value: contextValue,
47
+ children: /*#__PURE__*/_jsx(Component, {
48
+ ...contextValue
49
+ })
50
+ });
51
+ };
52
+ }
53
+ export const useStackNavigationContext = () => {
54
+ const context = useContext(StackNavigationContext);
55
+ if (!context) {
56
+ throw new Error("StackNavigationContext.Provider is missing in the component tree.");
57
+ }
58
+ return context;
59
+ };
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createContext","useContext","useMemo","useStackNavigationState","calculateActiveScreensLimit","jsx","_jsx","StackNavigationContext","withStackNavigationProvider","Component","StackNavigationWrapper","props","state","handleCloseRoute","closingRouteKeys","scenes","routes","reduce","acc","route","push","descriptor","descriptors","key","activeScreensLimit","shouldShowFloatOverlay","some","options","overlayMode","overlayShown","contextValue","focusedIndex","index","closingRouteKeysShared","shared","Provider","value","children","useStackNavigationContext","context","Error"],"sourceRoot":"../../../../../src","sources":["blank-stack/utils/with-stack-navigation/index.tsx"],"mappings":";;AAAA,SAA6BA,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAE9E,SAASC,uBAAuB,QAAQ,qCAAqC;AAK7E,SAASC,2BAA2B,QAAQ,yCAAyC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtF,OAAO,MAAMC,sBAAsB,gBAClCP,aAAa,CAAqC,IAAI,CAAC;AAExD,OAAO,SAASQ,2BAA2BA,CAC1CC,SAAqD,EACpD;EACD,OAAO,SAASC,sBAAsBA,CAACC,KAAkC,EAAE;IAC1E,MAAM;MAAEC,KAAK;MAAEC,gBAAgB;MAAEC;IAAiB,CAAC,GAClDX,uBAAuB,CAACQ,KAAK,CAAC;IAE/B,MAAMI,MAAM,GAAGb,OAAO,CAAC,MAAM;MAC5B,OAAOU,KAAK,CAACI,MAAM,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK;QAC1CD,GAAG,CAACE,IAAI,CAAC;UACRD,KAAK;UACLE,UAAU,EAAET,KAAK,CAACU,WAAW,CAACH,KAAK,CAACI,GAAG;QACxC,CAAC,CAAC;QACF,OAAOL,GAAG;MACX,CAAC,EAAE,EAAuB,CAAC;IAC5B,CAAC,EAAE,CAACN,KAAK,CAACI,MAAM,EAAEJ,KAAK,CAACU,WAAW,CAAC,CAAC;IAErC,MAAME,kBAAkB,GAAGtB,OAAO,CAAC,MAAM;MACxC,OAAOE,2BAA2B,CAACQ,KAAK,CAACI,MAAM,EAAEJ,KAAK,CAACU,WAAW,CAAC;IACpE,CAAC,EAAE,CAACV,KAAK,CAACI,MAAM,EAAEJ,KAAK,CAACU,WAAW,CAAC,CAAC;IAErC,MAAMG,sBAAsB,GAAGvB,OAAO,CAAC,MAAM;MAC5C,OAAOU,KAAK,CAACI,MAAM,CAACU,IAAI,CAAEP,KAAK,IAAK;QACnC,MAAMQ,OAAO,GAAGf,KAAK,CAACU,WAAW,CAACH,KAAK,CAACI,GAAG,CAAC,EAAEI,OAAO;QACrD,OAAOA,OAAO,EAAEC,WAAW,KAAK,OAAO,IAAID,OAAO,EAAEE,YAAY;MACjE,CAAC,CAAC;IACH,CAAC,EAAE,CAACjB,KAAK,CAACI,MAAM,EAAEJ,KAAK,CAACU,WAAW,CAAC,CAAC;IAErC,MAAMQ,YAAY,GAAG5B,OAAO,CAA8B,MAAM;MAC/D,OAAO;QACNc,MAAM,EAAEJ,KAAK,CAACI,MAAM;QACpBe,YAAY,EAAEpB,KAAK,CAACC,KAAK,CAACoB,KAAK;QAC/BV,WAAW,EAAEV,KAAK,CAACU,WAAW;QAC9BW,sBAAsB,EAAEnB,gBAAgB,CAACoB,MAAM;QAC/CV,kBAAkB;QAClBX,gBAAgB;QAChBE,MAAM;QACNU;MACD,CAAC;IACF,CAAC,EAAE,CACFb,KAAK,EACLG,MAAM,EACNS,kBAAkB,EAClBV,gBAAgB,EAChBD,gBAAgB,EAChBF,KAAK,CAACC,KAAK,CAACoB,KAAK,EACjBP,sBAAsB,CACtB,CAAC;IAEF,oBACCnB,IAAA,CAACC,sBAAsB,CAAC4B,QAAQ;MAACC,KAAK,EAAEN,YAAa;MAAAO,QAAA,eACpD/B,IAAA,CAACG,SAAS;QAAA,GAAKqB;MAAY,CAAG;IAAC,CACC,CAAC;EAEpC,CAAC;AACF;AAEA,OAAO,MAAMQ,yBAAyB,GAAGA,CAAA,KAAM;EAC9C,MAAMC,OAAO,GAAGtC,UAAU,CAACM,sBAAsB,CAAC;EAElD,IAAI,CAACgC,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CACd,mEACD,CAAC;EACF;EAEA,OAAOD,OAAO;AACf,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { createNativeStackNavigator } from "./navigators/createNativeStackNavigator";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createNativeStackNavigator"],"sourceRoot":"../../../src","sources":["native-stack/index.ts"],"mappings":";;AAAA,SAASA,0BAA0B,QAAQ,yCAAyC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createNavigatorFactory","StackActions","StackRouter","useNavigationBuilder","React","NativeStackView","jsx","_jsx","NativeStackNavigator","id","initialRouteName","children","layout","screenListeners","screenOptions","screenLayout","rest","state","describe","descriptors","navigation","NavigationContent","useEffect","addListener","e","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","popToTop","target","key","createNativeStackNavigator","config"],"sourceRoot":"../../../../src","sources":["native-stack/navigators/createNativeStackNavigator.tsx"],"mappings":";;AAAA,SACCA,sBAAsB,EAKtBC,YAAY,EAEZC,WAAW,EAIXC,oBAAoB,QACd,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAQ9B,SAASC,eAAe,QAAQ,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE3D,SAASC,oBAAoBA,CAAC;EAC7BC,EAAE;EACFC,gBAAgB;EAChBC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZ,GAAGC;AACuB,CAAC,EAAE;EAC7B,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAkB,CAAC,GACpElB,oBAAoB,CAMlBD,WAAW,EAAE;IACdO,EAAE;IACFC,gBAAgB;IAChBC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC;EACD,CAAC,CAAC;EAEHX,KAAK,CAACkB,SAAS,CACd;EACC;EACAF,UAAU,EAAEG,WAAW,GAAG,UAAU,EAAGC,CAAM,IAAK;IACjD,MAAMC,SAAS,GAAGL,UAAU,CAACK,SAAS,CAAC,CAAC;;IAExC;IACA;IACAC,qBAAqB,CAAC,MAAM;MAC3B,IACCT,KAAK,CAACU,KAAK,GAAG,CAAC,IACfF,SAAS,IACT,CAAED,CAAC,CAAgCI,gBAAgB,EAClD;QACD;QACA;QACAR,UAAU,CAACS,QAAQ,CAAC;UACnB,GAAG5B,YAAY,CAAC6B,QAAQ,CAAC,CAAC;UAC1BC,MAAM,EAAEd,KAAK,CAACe;QACf,CAAC,CAAC;MACH;IACD,CAAC,CAAC;EACH,CAAC,CAAC,EACH,CAACZ,UAAU,EAAEH,KAAK,CAACU,KAAK,EAAEV,KAAK,CAACe,GAAG,CACpC,CAAC;EAED,oBACCzB,IAAA,CAACc,iBAAiB;IAAAV,QAAA,eACjBJ,IAAA,CAACF,eAAe;MAAA,GACXW,IAAI;MACRC,KAAK,EAAEA,KAAM;MACbG,UAAU,EAAEA,UAAW;MACvBD,WAAW,EAAEA,WAAY;MACzBD,QAAQ,EAAEA;IAAS,CACnB;EAAC,CACgB,CAAC;AAEtB;AAEA,OAAO,SAASe,0BAA0BA,CAmBxCC,MAAe,EAAmC;EACnD,OAAOlC,sBAAsB,CAACQ,oBAAoB,CAAC,CAAC0B,MAAM,CAAC;AAC5D","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["native-stack/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["debounce","func","duration","timeout","args","clearTimeout","setTimeout","apply"],"sourceRoot":"../../../../src","sources":["native-stack/utils/debounce.tsx"],"mappings":";;AAAA,OAAO,SAASA,QAAQA,CACvBC,IAAO,EACPC,QAAgB,EACZ;EACJ,IAAIC,OAAsC;EAE1C,OAAO,UAAyB,GAAGC,IAAI,EAAE;IACxCC,YAAY,CAACF,OAAO,CAAC;IAErBA,OAAO,GAAGG,UAAU,CAAC,MAAM;MAC1BL,IAAI,CAACM,KAAK,CAAC,IAAI,EAAEH,IAAI,CAAC;IACvB,CAAC,EAAEF,QAAQ,CAAC;EACb,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getModalRouteKeys","routes","descriptors","reduce","acc","route","presentation","key","options","length","push"],"sourceRoot":"../../../../src","sources":["native-stack/utils/getModalRoutesKeys.ts"],"mappings":";;AAIA,OAAO,MAAMA,iBAAiB,GAAGA,CAChCC,MAAuB,EACvBC,WAAqC,KAErCD,MAAM,CAACE,MAAM,CAAW,CAACC,GAAG,EAAEC,KAAK,KAAK;EACvC,MAAM;IAAEC;EAAa,CAAC,GAAGJ,WAAW,CAACG,KAAK,CAACE,GAAG,CAAC,EAAEC,OAAO,IAAI,CAAC,CAAC;EAE9D,IACEJ,GAAG,CAACK,MAAM,IAAI,CAACH,YAAY,IAC5BA,YAAY,KAAK,OAAO,IACxBA,YAAY,KAAK,kBAAkB,EAClC;IACDF,GAAG,CAACM,IAAI,CAACL,KAAK,CAACE,GAAG,CAAC;EACpB;EAEA,OAAOH,GAAG;AACX,CAAC,EAAE,EAAE,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","AnimatedHeaderHeightContext","createContext","undefined","useAnimatedHeaderHeight","animatedValue","useContext","Error"],"sourceRoot":"../../../../src","sources":["native-stack/utils/useAnimatedHeaderHeight.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,OAAO,MAAMC,2BAA2B,gBAAGD,KAAK,CAACE,aAAa,CAE5DC,SAAS,CAAC;AAEZ,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACzC,MAAMC,aAAa,GAAGL,KAAK,CAACM,UAAU,CAACL,2BAA2B,CAAC;EAEnE,IAAII,aAAa,KAAKF,SAAS,EAAE;IAChC,MAAM,IAAII,KAAK,CACd,uFACD,CAAC;EACF;EAEA,OAAOF,aAAa;AACrB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useDismissedRouteError","state","nextDismissedKey","setNextDismissedKey","useState","dismissedRouteName","routes","find","route","key","name","useEffect","message","console","error"],"sourceRoot":"../../../../src","sources":["native-stack/utils/useDismissedRouteError.tsx"],"mappings":";;AAIA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAO,SAASC,sBAAsBA,CACrCC,KAA0C,EACzC;EACD,MAAM,CAACC,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGJ,KAAK,CAACK,QAAQ,CAC7D,IACD,CAAC;EAED,MAAMC,kBAAkB,GAAGH,gBAAgB,GACxCD,KAAK,CAACK,MAAM,CAACC,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKP,gBAAgB,CAAC,EAAEQ,IAAI,GAClE,IAAI;EAEPX,KAAK,CAACY,SAAS,CAAC,MAAM;IACrB,IAAIN,kBAAkB,EAAE;MACvB,MAAMO,OAAO,GACZ,eAAeP,kBAAkB,+DAA+D,GAChG,6HAA6H,GAC7H,gJAAgJ;MAEjJQ,OAAO,CAACC,KAAK,CAACF,OAAO,CAAC;IACvB;EACD,CAAC,EAAE,CAACP,kBAAkB,CAAC,CAAC;EAExB,OAAO;IAAEF;EAAoB,CAAC;AAC/B","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["usePreventRemoveContext","React","useInvalidPreventRemoveError","descriptors","preventedRoutes","preventedRouteKey","Object","keys","preventedDescriptor","isHeaderBackButtonMenuEnabledOnPreventedScreen","options","headerBackButtonMenuEnabled","preventedRouteName","route","name","useEffect","message","console","error"],"sourceRoot":"../../../../src","sources":["native-stack/utils/useInvalidPreventRemoveError.tsx"],"mappings":";;AAAA,SAASA,uBAAuB,QAAQ,0BAA0B;AAClE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAI9B,OAAO,SAASC,4BAA4BA,CAC3CC,WAAqC,EACpC;EACD,MAAM;IAAEC;EAAgB,CAAC,GAAGJ,uBAAuB,CAAC,CAAC;EACrD,MAAMK,iBAAiB,GAAGC,MAAM,CAACC,IAAI,CAACH,eAAe,CAAC,CAAC,CAAC,CAAC;EACzD,MAAMI,mBAAmB,GAAGL,WAAW,CAACE,iBAAiB,CAAC;EAC1D,MAAMI,8CAA8C,GACnDD,mBAAmB,EAAEE,OAAO,EAAEC,2BAA2B;EAC1D,MAAMC,kBAAkB,GAAGJ,mBAAmB,EAAEK,KAAK,EAAEC,IAAI;EAE3Db,KAAK,CAACc,SAAS,CAAC,MAAM;IACrB,IACCV,iBAAiB,IAAI,IAAI,IACzBI,8CAA8C,EAC7C;MACD,MAAMO,OAAO,GACZ,cAAcJ,kBAAkB,2GAA2G,GAC3I,8DAA8DA,kBAAkB,mCAAmC;MACpHK,OAAO,CAACC,KAAK,CAACF,OAAO,CAAC;IACvB;EACD,CAAC,EAAE,CACFX,iBAAiB,EACjBI,8CAA8C,EAC9CG,kBAAkB,CAClB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["processFonts","_","Error"],"sourceRoot":"../../../../src","sources":["native-stack/views/FontProcessor.tsx"],"mappings":";;AAAA,OAAO,SAASA,YAAYA,CAC3BC,CAAyB,EACA;EACzB,MAAM,IAAIC,KAAK,CAAC,sBAAsB,CAAC;AACxC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ReactNativeStyleAttributes","processFonts","fontFamilies","fontFamilyProcessor","fontFamily","process","map"],"sourceRoot":"../../../../src","sources":["native-stack/views/FontProcessor.native.tsx"],"mappings":";;AAAA;AACA,OAAOA,0BAA0B,MAAM,mEAAmE;AAE1G,OAAO,SAASC,YAAYA,CAC3BC,YAAoC,EACX;EACzB,MAAMC,mBAAmB,GAAGH,0BAA0B,CAACI,UAAU,EAAEC,OAAO;EAC1E,IAAI,OAAOF,mBAAmB,KAAK,UAAU,EAAE;IAC9C,OAAOD,YAAY,CAACI,GAAG,CAACH,mBAAmB,CAAC;EAC7C;EACA,OAAOD,YAAY;AACpB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenFooter","jsx","_jsx","FooterComponent","children","collapsable"],"sourceRoot":"../../../../src","sources":["native-stack/views/FooterComponent.tsx"],"mappings":";;AACA,SAASA,YAAY,QAAQ,sBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMpD,OAAO,SAASC,eAAeA,CAAC;EAAEC;AAAsB,CAAC,EAAE;EAC1D,oBAAOF,IAAA,CAACF,YAAY;IAACK,WAAW,EAAE,KAAM;IAAAD,QAAA,EAAEA;EAAQ,CAAe,CAAC;AACnE","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getHeaderTitle","Header","HeaderBackButton","HeaderBackContext","SafeAreaProviderCompat","Screen","useHeaderHeight","useLinkBuilder","React","Animated","Image","StyleSheet","View","AnimatedHeaderHeightContext","jsx","_jsx","TRANSPARENT_PRESENTATIONS","NativeStackView","state","descriptors","describe","parentHeaderBack","useContext","buildHref","preloadedDescriptors","preloadedRoutes","reduce","acc","route","key","children","routes","concat","map","i","isFocused","index","previousKey","nextKey","previousDescriptor","undefined","nextDescriptor","options","navigation","render","headerBack","title","name","href","params","canGoBack","header","headerShown","headerBackImageSource","headerLeft","headerTransparent","headerBackTitle","presentation","contentStyle","rest","nextPresentation","isPreloaded","focused","back","label","tintColor","backImage","source","resizeMode","style","styles","onPress","goBack","absoluteFill","display","includes","backgroundColor","Provider","value","AnimatedHeaderHeightProvider","contentContainer","headerHeight","animatedHeaderHeight","useState","Value","useEffect","setValue","create","flex","height","width","margin"],"sourceRoot":"../../../../src","sources":["native-stack/views/NativeStackView.tsx"],"mappings":";;AAAA,SACCA,cAAc,EACdC,MAAM,EACNC,gBAAgB,EAChBC,iBAAiB,EACjBC,sBAAsB,EACtBC,MAAM,EACNC,eAAe,QACT,4BAA4B;AACnC,SAICC,cAAc,QACR,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAOhE,SAASC,2BAA2B,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAa/E,MAAMC,yBAAyB,GAAG,CACjC,kBAAkB,EAClB,2BAA2B,CAC3B;AAED,OAAO,SAASC,eAAeA,CAAC;EAAEC,KAAK;EAAEC,WAAW;EAAEC;AAAgB,CAAC,EAAE;EACxE,MAAMC,gBAAgB,GAAGb,KAAK,CAACc,UAAU,CAACnB,iBAAiB,CAAC;EAC5D,MAAM;IAAEoB;EAAU,CAAC,GAAGhB,cAAc,CAAC,CAAC;EAEtC,MAAMiB,oBAAoB,GACzBN,KAAK,CAACO,eAAe,CAACC,MAAM,CAA2B,CAACC,GAAG,EAAEC,KAAK,KAAK;IACtED,GAAG,CAACC,KAAK,CAACC,GAAG,CAAC,GAAGF,GAAG,CAACC,KAAK,CAACC,GAAG,CAAC,IAAIT,QAAQ,CAACQ,KAAK,EAAE,IAAI,CAAC;IACxD,OAAOD,GAAG;EACX,CAAC,EAAE,CAAC,CAAC,CAAC;EAEP,oBACCZ,IAAA,CAACX,sBAAsB;IAAA0B,QAAA,EACrBZ,KAAK,CAACa,MAAM,CAACC,MAAM,CAACd,KAAK,CAACO,eAAe,CAAC,CAACQ,GAAG,CAAC,CAACL,KAAK,EAAEM,CAAC,KAAK;MAC7D,MAAMC,SAAS,GAAGjB,KAAK,CAACkB,KAAK,KAAKF,CAAC;MACnC,MAAMG,WAAW,GAAGnB,KAAK,CAACa,MAAM,CAACG,CAAC,GAAG,CAAC,CAAC,EAAEL,GAAG;MAC5C,MAAMS,OAAO,GAAGpB,KAAK,CAACa,MAAM,CAACG,CAAC,GAAG,CAAC,CAAC,EAAEL,GAAG;MACxC,MAAMU,kBAAkB,GAAGF,WAAW,GACnClB,WAAW,CAACkB,WAAW,CAAC,GACxBG,SAAS;MACZ,MAAMC,cAAc,GAAGH,OAAO,GAAGnB,WAAW,CAACmB,OAAO,CAAC,GAAGE,SAAS;MACjE,MAAM;QAAEE,OAAO;QAAEC,UAAU;QAAEC;MAAO,CAAC,GACpCzB,WAAW,CAACS,KAAK,CAACC,GAAG,CAAC,IAAIL,oBAAoB,CAACI,KAAK,CAACC,GAAG,CAAC;MAE1D,MAAMgB,UAAU,GAAGN,kBAAkB,GAClC;QACAO,KAAK,EAAE9C,cAAc,CACpBuC,kBAAkB,CAACG,OAAO,EAC1BH,kBAAkB,CAACX,KAAK,CAACmB,IAC1B,CAAC;QACDC,IAAI,EAAEzB,SAAS,CACdgB,kBAAkB,CAACX,KAAK,CAACmB,IAAI,EAC7BR,kBAAkB,CAACX,KAAK,CAACqB,MAC1B;MACD,CAAC,GACA5B,gBAAgB;MAEnB,MAAM6B,SAAS,GAAGL,UAAU,IAAI,IAAI;MAEpC,MAAM;QACLM,MAAM;QACNC,WAAW;QACXC,qBAAqB;QACrBC,UAAU;QACVC,iBAAiB;QACjBC,eAAe;QACfC,YAAY;QACZC,YAAY;QACZ,GAAGC;MACJ,CAAC,GAAGjB,OAAO;MAEX,MAAMkB,gBAAgB,GAAGnB,cAAc,EAAEC,OAAO,CAACe,YAAY;MAE7D,MAAMI,WAAW,GAChBrC,oBAAoB,CAACI,KAAK,CAACC,GAAG,CAAC,KAAKW,SAAS,IAC7CrB,WAAW,CAACS,KAAK,CAACC,GAAG,CAAC,KAAKW,SAAS;MAErC,oBACCzB,IAAA,CAACV,MAAM;QAENyD,OAAO,EAAE3B,SAAU;QACnBP,KAAK,EAAEA,KAAM;QACbe,UAAU,EAAEA,UAAW;QACvBS,WAAW,EAAEA,WAAY;QACzBG,iBAAiB,EAAEA,iBAAkB;QACrCJ,MAAM,EACLA,MAAM,KAAKX,SAAS,GACnBW,MAAM,CAAC;UACNY,IAAI,EAAElB,UAAU;UAChBH,OAAO;UACPd,KAAK;UACLe;QACD,CAAC,CAAC,gBAEF5B,IAAA,CAACd,MAAM;UAAA,GACF0D,IAAI;UACRI,IAAI,EAAElB,UAAW;UACjBC,KAAK,EAAE9C,cAAc,CAAC0C,OAAO,EAAEd,KAAK,CAACmB,IAAI,CAAE;UAC3CO,UAAU,EACT,OAAOA,UAAU,KAAK,UAAU,GAC7B,CAAC;YAAEU,KAAK;YAAE,GAAGL;UAAK,CAAC,KACnBL,UAAU,CAAC;YACV,GAAGK,IAAI;YACPK,KAAK,EAAER,eAAe,IAAIQ;UAC3B,CAAC,CAAC,GACFV,UAAU,KAAKd,SAAS,IAAIU,SAAS,GACpC,CAAC;YAAEe,SAAS;YAAED,KAAK;YAAE,GAAGL;UAAK,CAAC,kBAC9B5C,IAAA,CAACb,gBAAgB;YAAA,GACZyD,IAAI;YACRK,KAAK,EAAER,eAAe,IAAIQ,KAAM;YAChCC,SAAS,EAAEA,SAAU;YACrBC,SAAS,EACRb,qBAAqB,KAAKb,SAAS,GAChC,mBACAzB,IAAA,CAACL,KAAK;cACLyD,MAAM,EAAEd,qBAAsB;cAC9Be,UAAU,EAAC,SAAS;cACpBH,SAAS,EAAEA,SAAU;cACrBI,KAAK,EAAEC,MAAM,CAACJ;YAAU,CACxB,CACD,GACA1B,SACH;YACD+B,OAAO,EAAE5B,UAAU,CAAC6B;UAAO,CAC3B,CACD,GACAlB,UACJ;UACDC,iBAAiB,EAAEA;QAAkB,CACrC,CAEF;QACDc,KAAK,EAAE,CACN1D,UAAU,CAAC8D,YAAY,EACvB;UACCC,OAAO,EACN,CAACvC,SAAS,IACRyB,gBAAgB,IAAI,IAAI,IACxB5C,yBAAyB,CAAC2D,QAAQ,CAACf,gBAAgB,CAAE,KACvD,CAACC,WAAW,GACT,MAAM,GACN;QACL,CAAC,EACDJ,YAAY,IAAI,IAAI,IACpBzC,yBAAyB,CAAC2D,QAAQ,CAAClB,YAAY,CAAC,GAC7C;UAAEmB,eAAe,EAAE;QAAc,CAAC,GAClC,IAAI,CACN;QAAA9C,QAAA,eAEFf,IAAA,CAACZ,iBAAiB,CAAC0E,QAAQ;UAACC,KAAK,EAAEjC,UAAW;UAAAf,QAAA,eAC7Cf,IAAA,CAACgE,4BAA4B;YAAAjD,QAAA,eAC5Bf,IAAA,CAACH,IAAI;cAACyD,KAAK,EAAE,CAACC,MAAM,CAACU,gBAAgB,EAAEtB,YAAY,CAAE;cAAA5B,QAAA,EACnDc,MAAM,CAAC;YAAC,CACJ;UAAC,CACsB;QAAC,CACJ;MAAC,GA5ExBhB,KAAK,CAACC,GA6EJ,CAAC;IAEX,CAAC;EAAC,CACqB,CAAC;AAE3B;AAEA,MAAMkD,4BAA4B,GAAGA,CAAC;EACrCjD;AAGD,CAAC,KAAK;EACL,MAAMmD,YAAY,GAAG3E,eAAe,CAAC,CAAC;EACtC,MAAM,CAAC4E,oBAAoB,CAAC,GAAG1E,KAAK,CAAC2E,QAAQ,CAC5C,MAAM,IAAI1E,QAAQ,CAAC2E,KAAK,CAACH,YAAY,CACtC,CAAC;EAEDzE,KAAK,CAAC6E,SAAS,CAAC,MAAM;IACrBH,oBAAoB,CAACI,QAAQ,CAACL,YAAY,CAAC;EAC5C,CAAC,EAAE,CAACC,oBAAoB,EAAED,YAAY,CAAC,CAAC;EAExC,oBACClE,IAAA,CAACF,2BAA2B,CAACgE,QAAQ;IAACC,KAAK,EAAEI,oBAAqB;IAAApD,QAAA,EAChEA;EAAQ,CAC4B,CAAC;AAEzC,CAAC;AAED,MAAMwC,MAAM,GAAG3D,UAAU,CAAC4E,MAAM,CAAC;EAChCP,gBAAgB,EAAE;IACjBQ,IAAI,EAAE;EACP,CAAC;EACDtB,SAAS,EAAE;IACVuB,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,488 @@
1
+ "use strict";
2
+
3
+ import { getDefaultHeaderHeight, getHeaderTitle, HeaderBackContext, HeaderHeightContext, HeaderShownContext, SafeAreaProviderCompat, useFrameSize } from "@react-navigation/elements";
4
+ import { NavigationContext, NavigationRouteContext, StackActions, usePreventRemoveContext, useTheme } from "@react-navigation/native";
5
+ import * as React from "react";
6
+ import { Animated, Platform, StatusBar, StyleSheet, useAnimatedValue, View } from "react-native";
7
+ import { GestureHandlerRootView } from "react-native-gesture-handler";
8
+ import { useSafeAreaInsets } from "react-native-safe-area-context";
9
+ import { ScreenStack, ScreenStackItem } from "react-native-screens";
10
+ import { NativeStackScreenLifecycleController } from "../../shared/components/controllers/screen-lifecycle";
11
+ import { ScreenTransitionProvider } from "../../shared/providers/screen-transition-provider";
12
+ import { debounce } from "../utils/debounce";
13
+ import { getModalRouteKeys } from "../utils/getModalRoutesKeys";
14
+ import { AnimatedHeaderHeightContext } from "../utils/useAnimatedHeaderHeight";
15
+ import { useDismissedRouteError } from "../utils/useDismissedRouteError";
16
+ import { useInvalidPreventRemoveError } from "../utils/useInvalidPreventRemoveError";
17
+ import { useHeaderConfigProps } from "./useHeaderConfigProps";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
+ const ANDROID_DEFAULT_HEADER_HEIGHT = 56;
20
+ function isFabric() {
21
+ return "nativeFabricUIManager" in global;
22
+ }
23
+ const useNativeDriver = Platform.OS !== "web";
24
+ const SceneView = ({
25
+ index,
26
+ focused,
27
+ shouldFreeze,
28
+ descriptor,
29
+ previousDescriptor,
30
+ nextDescriptor,
31
+ isPresentationModal,
32
+ isPreloaded,
33
+ onWillDisappear,
34
+ onWillAppear,
35
+ onAppear,
36
+ onDisappear,
37
+ onDismissed,
38
+ onHeaderBackButtonClicked,
39
+ onNativeDismissCancelled,
40
+ onGestureCancel,
41
+ onSheetDetentChanged
42
+ }) => {
43
+ const {
44
+ route,
45
+ navigation,
46
+ options,
47
+ render
48
+ } = descriptor;
49
+ let {
50
+ animation,
51
+ animationMatchesGesture,
52
+ presentation = isPresentationModal ? "modal" : "card",
53
+ fullScreenGestureEnabled
54
+ } = options;
55
+ const {
56
+ animationDuration,
57
+ animationTypeForReplace = "push",
58
+ fullScreenGestureShadowEnabled = true,
59
+ nativeGestureEnabled,
60
+ nativeGestureDirection = presentation === "card" ? "horizontal" : "vertical",
61
+ nativeGestureResponseDistance,
62
+ header,
63
+ headerBackButtonMenuEnabled,
64
+ headerShown,
65
+ headerBackground,
66
+ headerTransparent,
67
+ autoHideHomeIndicator,
68
+ keyboardHandlingEnabled,
69
+ navigationBarColor,
70
+ navigationBarTranslucent,
71
+ navigationBarHidden,
72
+ orientation,
73
+ sheetAllowedDetents = [1.0],
74
+ sheetLargestUndimmedDetentIndex = -1,
75
+ sheetGrabberVisible = false,
76
+ sheetCornerRadius = -1.0,
77
+ sheetElevation = 24,
78
+ sheetExpandsWhenScrolledToEdge = true,
79
+ sheetInitialDetentIndex = 0,
80
+ statusBarAnimation,
81
+ statusBarHidden,
82
+ statusBarStyle,
83
+ statusBarTranslucent,
84
+ statusBarBackgroundColor,
85
+ unstable_sheetFooter,
86
+ freezeOnBlur,
87
+ contentStyle,
88
+ enableTransitions
89
+ } = options;
90
+ if (nativeGestureDirection === "vertical" && Platform.OS === "ios") {
91
+ // for `vertical` direction to work, we need to set `fullScreenGestureEnabled` to `true`
92
+ // so the screen can be dismissed from any point on screen.
93
+ // `animationMatchesGesture` needs to be set to `true` so the `animation` set by user can be used,
94
+ // otherwise `simple_push` will be used.
95
+ // Also, the default animation for this direction seems to be `slide_from_bottom`.
96
+ if (fullScreenGestureEnabled === undefined) {
97
+ fullScreenGestureEnabled = true;
98
+ }
99
+ if (animationMatchesGesture === undefined) {
100
+ animationMatchesGesture = true;
101
+ }
102
+ if (animation === undefined) {
103
+ animation = "slide_from_bottom";
104
+ }
105
+ }
106
+
107
+ // workaround for rn-screens where gestureDirection has to be set on both
108
+ // current and previous screen - software-mansion/react-native-screens/pull/1509
109
+ const nextGestureDirection = nextDescriptor?.options.nativeGestureDirection;
110
+ const gestureDirectionOverride = nextGestureDirection != null ? nextGestureDirection : nativeGestureDirection;
111
+ if (index === 0) {
112
+ // first screen should always be treated as `card`, it resolves problems with no header animation
113
+ // for navigator with first screen as `modal` and the next as `card`
114
+ presentation = "card";
115
+ }
116
+ const {
117
+ colors
118
+ } = useTheme();
119
+ const insets = useSafeAreaInsets();
120
+
121
+ // `modal` and `formSheet` presentations do not take whole screen, so should not take the inset.
122
+ const isModal = presentation === "modal" || presentation === "formSheet";
123
+
124
+ // Modals are fullscreen in landscape only on iPhone
125
+ const isIPhone = Platform.OS === "ios" && !(Platform.isPad || Platform.isTV);
126
+ const isParentHeaderShown = React.useContext(HeaderShownContext);
127
+ const parentHeaderHeight = React.useContext(HeaderHeightContext);
128
+ const parentHeaderBack = React.useContext(HeaderBackContext);
129
+ const isLandscape = useFrameSize(frame => frame.width > frame.height);
130
+ const topInset = isParentHeaderShown || Platform.OS === "ios" && isModal || isIPhone && isLandscape ? 0 : insets.top;
131
+ const defaultHeaderHeight = useFrameSize(frame => Platform.select({
132
+ // FIXME: Currently screens isn't using Material 3
133
+ // So our `getDefaultHeaderHeight` doesn't return the correct value
134
+ // So we hardcode the value here for now until screens is updated
135
+ android: ANDROID_DEFAULT_HEADER_HEIGHT + topInset,
136
+ default: getDefaultHeaderHeight(frame, isModal, topInset)
137
+ }));
138
+ const {
139
+ preventedRoutes
140
+ } = usePreventRemoveContext();
141
+ const [headerHeight, setHeaderHeight] = React.useState(defaultHeaderHeight);
142
+
143
+ // eslint-disable-next-line react-hooks/exhaustive-deps
144
+ const setHeaderHeightDebounced = React.useCallback(
145
+ // Debounce the header height updates to avoid excessive re-renders
146
+ debounce(setHeaderHeight, 100), []);
147
+ const hasCustomHeader = header != null;
148
+ let headerHeightCorrectionOffset = 0;
149
+ if (Platform.OS === "android" && !hasCustomHeader) {
150
+ const statusBarHeight = StatusBar.currentHeight ?? 0;
151
+
152
+ // FIXME: On Android, the native header height is not correctly calculated
153
+ // It includes status bar height even if statusbar is not translucent
154
+ // And the statusbar value itself doesn't match the actual status bar height
155
+ // So we subtract the bogus status bar height and add the actual top inset
156
+ headerHeightCorrectionOffset = -statusBarHeight + topInset;
157
+ }
158
+ const rawAnimatedHeaderHeight = useAnimatedValue(defaultHeaderHeight);
159
+ const animatedHeaderHeight = React.useMemo(() => Animated.add(rawAnimatedHeaderHeight, headerHeightCorrectionOffset), [headerHeightCorrectionOffset, rawAnimatedHeaderHeight]);
160
+
161
+ // During the very first render topInset is > 0 when running
162
+ // in non edge-to-edge mode on Android, while on every consecutive render
163
+ // topInset === 0, causing header content to jump, as we add padding on the first frame,
164
+ // just to remove it in next one. To prevent this, when statusBarTranslucent is set,
165
+ // we apply additional padding in header only if its true.
166
+ // For more details see: https://github.com/react-navigation/react-navigation/pull/12014
167
+ const headerTopInsetEnabled = typeof statusBarTranslucent === "boolean" ? statusBarTranslucent : topInset !== 0;
168
+ const canGoBack = previousDescriptor != null || parentHeaderBack != null;
169
+ const backTitle = previousDescriptor ? getHeaderTitle(previousDescriptor.options, previousDescriptor.route.name) : parentHeaderBack?.title;
170
+ const headerBack = React.useMemo(() => {
171
+ if (canGoBack) {
172
+ return {
173
+ href: undefined,
174
+ // No href needed for native
175
+ title: backTitle
176
+ };
177
+ }
178
+ return undefined;
179
+ }, [canGoBack, backTitle]);
180
+ const isRemovePrevented = preventedRoutes[route.key]?.preventRemove;
181
+ const modifiedPresentation = enableTransitions ? "containedTransparentModal" : presentation === "card" ? "push" : presentation;
182
+ const modifiedAnimation = enableTransitions ? "none" : animation;
183
+ const modifiedHeaderShown = enableTransitions || header !== undefined ? false : headerShown;
184
+ const headerConfig = useHeaderConfigProps({
185
+ ...options,
186
+ route,
187
+ headerBackButtonMenuEnabled: isRemovePrevented !== undefined ? !isRemovePrevented : headerBackButtonMenuEnabled,
188
+ headerBackTitle: options.headerBackTitle !== undefined ? options.headerBackTitle : undefined,
189
+ headerHeight,
190
+ headerShown: modifiedHeaderShown,
191
+ headerTopInsetEnabled,
192
+ headerBack
193
+ });
194
+ return /*#__PURE__*/_jsx(NavigationContext.Provider, {
195
+ value: navigation,
196
+ children: /*#__PURE__*/_jsx(NavigationRouteContext.Provider, {
197
+ value: route,
198
+ children: /*#__PURE__*/_jsx(ScreenStackItem, {
199
+ screenId: route.key,
200
+ activityState: isPreloaded ? 0 : 2,
201
+ style: StyleSheet.absoluteFill,
202
+ "aria-hidden": !focused,
203
+ customAnimationOnSwipe: animationMatchesGesture,
204
+ fullScreenSwipeEnabled: fullScreenGestureEnabled,
205
+ fullScreenSwipeShadowEnabled: fullScreenGestureShadowEnabled,
206
+ freezeOnBlur: freezeOnBlur,
207
+ gestureEnabled: Platform.OS === "android" ?
208
+ // This prop enables handling of system back gestures on Android
209
+ // Since we handle them in JS side, we disable this
210
+ false : nativeGestureEnabled,
211
+ homeIndicatorHidden: autoHideHomeIndicator,
212
+ hideKeyboardOnSwipe: keyboardHandlingEnabled,
213
+ navigationBarColor: navigationBarColor,
214
+ navigationBarTranslucent: navigationBarTranslucent,
215
+ navigationBarHidden: navigationBarHidden,
216
+ replaceAnimation: animationTypeForReplace,
217
+ stackPresentation: modifiedPresentation,
218
+ stackAnimation: modifiedAnimation,
219
+ screenOrientation: orientation,
220
+ sheetAllowedDetents: sheetAllowedDetents,
221
+ sheetLargestUndimmedDetentIndex: sheetLargestUndimmedDetentIndex,
222
+ sheetGrabberVisible: sheetGrabberVisible,
223
+ sheetInitialDetentIndex: sheetInitialDetentIndex,
224
+ sheetCornerRadius: sheetCornerRadius,
225
+ sheetElevation: sheetElevation,
226
+ sheetExpandsWhenScrolledToEdge: sheetExpandsWhenScrolledToEdge,
227
+ statusBarAnimation: statusBarAnimation,
228
+ statusBarHidden: statusBarHidden,
229
+ statusBarStyle: statusBarStyle,
230
+ statusBarColor: statusBarBackgroundColor,
231
+ statusBarTranslucent: statusBarTranslucent,
232
+ swipeDirection: gestureDirectionOverride,
233
+ transitionDuration: animationDuration,
234
+ onWillAppear: onWillAppear,
235
+ onWillDisappear: onWillDisappear,
236
+ onAppear: onAppear,
237
+ onDisappear: onDisappear,
238
+ onDismissed: onDismissed,
239
+ onGestureCancel: onGestureCancel,
240
+ onSheetDetentChanged: onSheetDetentChanged,
241
+ gestureResponseDistance: nativeGestureResponseDistance,
242
+ nativeBackButtonDismissalEnabled: false // on Android
243
+ ,
244
+ onHeaderBackButtonClicked: onHeaderBackButtonClicked,
245
+ preventNativeDismiss: isRemovePrevented // on iOS
246
+ ,
247
+ onNativeDismissCancelled: onNativeDismissCancelled
248
+ // Unfortunately, because of the bug that exists on Fabric, where native event drivers
249
+ // for Animated objects are being created after the first notifications about the header height
250
+ // from the native side, `onHeaderHeightChange` event does not notify
251
+ // `animatedHeaderHeight` about initial values on appearing screens at the moment.
252
+ ,
253
+ onHeaderHeightChange: Animated.event([{
254
+ nativeEvent: {
255
+ headerHeight: rawAnimatedHeaderHeight
256
+ }
257
+ }], {
258
+ useNativeDriver,
259
+ listener: e => {
260
+ if (hasCustomHeader) {
261
+ // If we have a custom header, don't use native header height
262
+ return;
263
+ }
264
+ if (Platform.OS === "android" && (options.headerBackground != null || options.headerTransparent)) {
265
+ // FIXME: On Android, we get 0 if the header is translucent
266
+ // So we set a default height in that case
267
+ setHeaderHeight(ANDROID_DEFAULT_HEADER_HEIGHT + topInset);
268
+ return;
269
+ }
270
+ if (e.nativeEvent && typeof e.nativeEvent === "object" && "headerHeight" in e.nativeEvent && typeof e.nativeEvent.headerHeight === "number") {
271
+ const headerHeight = e.nativeEvent.headerHeight + headerHeightCorrectionOffset;
272
+
273
+ // Only debounce if header has large title or search bar
274
+ // As it's the only case where the header height can change frequently
275
+ const doesHeaderAnimate = Platform.OS === "ios" && (options.headerLargeTitle || options.headerSearchBarOptions);
276
+ if (doesHeaderAnimate) {
277
+ setHeaderHeightDebounced(headerHeight);
278
+ } else {
279
+ setHeaderHeight(headerHeight);
280
+ }
281
+ }
282
+ }
283
+ }),
284
+ contentStyle: [modifiedPresentation !== "transparentModal" && modifiedPresentation !== "containedTransparentModal" && {
285
+ backgroundColor: colors.background
286
+ }, contentStyle],
287
+ headerConfig: headerConfig,
288
+ unstable_sheetFooter: unstable_sheetFooter
289
+ // When ts-expect-error is added, it affects all the props below it
290
+ // So we keep any props that need it at the end
291
+ // Otherwise invalid props may not be caught by TypeScript
292
+ ,
293
+ shouldFreeze: shouldFreeze,
294
+ children: /*#__PURE__*/_jsx(AnimatedHeaderHeightContext.Provider, {
295
+ value: animatedHeaderHeight,
296
+ children: /*#__PURE__*/_jsxs(HeaderHeightContext.Provider, {
297
+ value: headerShown !== false ? headerHeight : parentHeaderHeight ?? 0,
298
+ children: [headerBackground != null ?
299
+ /*#__PURE__*/
300
+ /**
301
+ * To show a custom header background, we render it at the top of the screen below the header
302
+ * The header also needs to be positioned absolutely (with `translucent` style)
303
+ */
304
+ _jsx(View, {
305
+ style: [styles.background, headerTransparent ? styles.translucent : null, {
306
+ height: headerHeight
307
+ }],
308
+ children: headerBackground()
309
+ }) : null, header != null && headerShown !== false ? /*#__PURE__*/_jsx(View, {
310
+ onLayout: e => {
311
+ const headerHeight = e.nativeEvent.layout.height;
312
+ setHeaderHeight(headerHeight);
313
+ rawAnimatedHeaderHeight.setValue(headerHeight);
314
+ },
315
+ style: [styles.header, headerTransparent ? styles.absolute : null],
316
+ children: header({
317
+ back: headerBack,
318
+ options,
319
+ route,
320
+ navigation
321
+ })
322
+ }) : null, /*#__PURE__*/_jsx(HeaderShownContext.Provider, {
323
+ value: isParentHeaderShown || headerShown !== false,
324
+ children: /*#__PURE__*/_jsx(HeaderBackContext.Provider, {
325
+ value: headerBack,
326
+ children: /*#__PURE__*/_jsx(ScreenTransitionProvider, {
327
+ previous: previousDescriptor,
328
+ current: descriptor,
329
+ next: nextDescriptor,
330
+ LifecycleController: NativeStackScreenLifecycleController,
331
+ children: render()
332
+ })
333
+ })
334
+ })]
335
+ })
336
+ })
337
+ }, route.key)
338
+ })
339
+ });
340
+ };
341
+ export function NativeStackView({
342
+ state,
343
+ navigation,
344
+ descriptors,
345
+ describe
346
+ }) {
347
+ const {
348
+ setNextDismissedKey
349
+ } = useDismissedRouteError(state);
350
+ useInvalidPreventRemoveError(descriptors);
351
+ const modalRouteKeys = getModalRouteKeys(state.routes, descriptors);
352
+ const preloadedDescriptors = state.preloadedRoutes.reduce((acc, route) => {
353
+ acc[route.key] = acc[route.key] || describe(route, true);
354
+ return acc;
355
+ }, {});
356
+ return /*#__PURE__*/_jsx(GestureHandlerRootView, {
357
+ children: /*#__PURE__*/_jsx(SafeAreaProviderCompat, {
358
+ children: /*#__PURE__*/_jsx(ScreenStack, {
359
+ style: styles.container,
360
+ children: state.routes.concat(state.preloadedRoutes).map((route, index) => {
361
+ const descriptor = descriptors[route.key] ?? preloadedDescriptors[route.key];
362
+ const isFocused = state.index === index;
363
+ const isBelowFocused = state.index - 1 === index;
364
+ const previousKey = state.routes[index - 1]?.key;
365
+ const nextKey = state.routes[index + 1]?.key;
366
+ const previousDescriptor = previousKey ? descriptors[previousKey] : undefined;
367
+ const nextDescriptor = nextKey ? descriptors[nextKey] : undefined;
368
+ const isModal = modalRouteKeys.includes(route.key);
369
+ const isPreloaded = preloadedDescriptors[route.key] !== undefined && descriptors[route.key] === undefined;
370
+
371
+ // On Fabric, when screen is frozen, animated and reanimated values are not updated
372
+ // due to component being unmounted. To avoid this, we don't freeze the previous screen there
373
+ const shouldFreeze = isFabric() ? !isPreloaded && !isFocused && !isBelowFocused : !isPreloaded && !isFocused;
374
+ return /*#__PURE__*/_jsx(SceneView, {
375
+ index: index,
376
+ focused: isFocused,
377
+ shouldFreeze: shouldFreeze,
378
+ descriptor: descriptor,
379
+ previousDescriptor: previousDescriptor,
380
+ nextDescriptor: nextDescriptor,
381
+ isPresentationModal: isModal,
382
+ isPreloaded: isPreloaded,
383
+ onWillDisappear: () => {
384
+ navigation.emit({
385
+ type: "transitionStart",
386
+ data: {
387
+ closing: true
388
+ },
389
+ target: route.key
390
+ });
391
+ },
392
+ onWillAppear: () => {
393
+ navigation.emit({
394
+ type: "transitionStart",
395
+ data: {
396
+ closing: false
397
+ },
398
+ target: route.key
399
+ });
400
+ },
401
+ onAppear: () => {
402
+ navigation.emit({
403
+ type: "transitionEnd",
404
+ data: {
405
+ closing: false
406
+ },
407
+ target: route.key
408
+ });
409
+ },
410
+ onDisappear: () => {
411
+ navigation.emit({
412
+ type: "transitionEnd",
413
+ data: {
414
+ closing: true
415
+ },
416
+ target: route.key
417
+ });
418
+ },
419
+ onDismissed: event => {
420
+ navigation.dispatch({
421
+ ...StackActions.pop(event.nativeEvent.dismissCount),
422
+ source: route.key,
423
+ target: state.key
424
+ });
425
+ setNextDismissedKey(route.key);
426
+ },
427
+ onHeaderBackButtonClicked: () => {
428
+ navigation.dispatch({
429
+ ...StackActions.pop(),
430
+ source: route.key,
431
+ target: state.key
432
+ });
433
+ },
434
+ onNativeDismissCancelled: event => {
435
+ navigation.dispatch({
436
+ ...StackActions.pop(event.nativeEvent.dismissCount),
437
+ source: route.key,
438
+ target: state.key
439
+ });
440
+ },
441
+ onGestureCancel: () => {
442
+ navigation.emit({
443
+ type: "gestureCancel",
444
+ target: route.key
445
+ });
446
+ },
447
+ onSheetDetentChanged: event => {
448
+ navigation.emit({
449
+ type: "sheetDetentChange",
450
+ target: route.key,
451
+ data: {
452
+ index: event.nativeEvent.index,
453
+ stable: event.nativeEvent.isStable
454
+ }
455
+ });
456
+ }
457
+ }, route.key);
458
+ })
459
+ })
460
+ })
461
+ });
462
+ }
463
+ const styles = StyleSheet.create({
464
+ container: {
465
+ flex: 1
466
+ },
467
+ header: {
468
+ zIndex: 1
469
+ },
470
+ absolute: {
471
+ position: "absolute",
472
+ top: 0,
473
+ start: 0,
474
+ end: 0
475
+ },
476
+ translucent: {
477
+ position: "absolute",
478
+ top: 0,
479
+ start: 0,
480
+ end: 0,
481
+ zIndex: 1,
482
+ elevation: 1
483
+ },
484
+ background: {
485
+ overflow: "hidden"
486
+ }
487
+ });
488
+ //# sourceMappingURL=NativeStackView.native.js.map