react-native-screen-transitions 3.1.0 → 3.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (586) hide show
  1. package/README.md +103 -8
  2. package/lib/commonjs/blank-stack/components/adjusted-screen-container.js +36 -0
  3. package/lib/commonjs/blank-stack/components/adjusted-screen-container.js.map +1 -0
  4. package/lib/commonjs/blank-stack/components/{screens.js → adjusted-screen.js} +33 -13
  5. package/lib/commonjs/blank-stack/components/adjusted-screen.js.map +1 -0
  6. package/lib/commonjs/blank-stack/components/stack-view.js +44 -61
  7. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  8. package/lib/commonjs/blank-stack/components/stack-view.native.js +81 -0
  9. package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -0
  10. package/lib/commonjs/component-stack/components/component-screen-container.js +23 -0
  11. package/lib/commonjs/component-stack/components/component-screen-container.js.map +1 -0
  12. package/lib/commonjs/component-stack/components/component-screen.js +36 -0
  13. package/lib/commonjs/component-stack/components/component-screen.js.map +1 -0
  14. package/lib/commonjs/component-stack/components/stack-view.js +64 -0
  15. package/lib/commonjs/component-stack/components/stack-view.js.map +1 -0
  16. package/lib/commonjs/component-stack/index.js +13 -0
  17. package/lib/commonjs/component-stack/index.js.map +1 -0
  18. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +52 -0
  19. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -0
  20. package/lib/commonjs/component-stack/types.js.map +1 -0
  21. package/lib/commonjs/{shared/components → native-stack}/controllers/native-stack-lifecycle.js +18 -9
  22. package/lib/commonjs/native-stack/controllers/native-stack-lifecycle.js.map +1 -0
  23. package/lib/commonjs/native-stack/views/NativeStackView.native.js +114 -117
  24. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  25. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  26. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +39 -0
  27. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -0
  28. package/lib/commonjs/shared/components/overlay/index.js +13 -0
  29. package/lib/commonjs/shared/components/overlay/index.js.map +1 -0
  30. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +51 -0
  31. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -0
  32. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +124 -0
  33. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -0
  34. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +47 -0
  35. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -0
  36. package/lib/commonjs/shared/components/root-transition-aware.js +2 -2
  37. package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -1
  38. package/lib/commonjs/shared/constants.js +4 -31
  39. package/lib/commonjs/shared/constants.js.map +1 -1
  40. package/lib/commonjs/shared/{components/controllers/blank-stack-lifecycle.js → controller/managed-lifecycle.js} +25 -19
  41. package/lib/commonjs/shared/controller/managed-lifecycle.js.map +1 -0
  42. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +2 -2
  43. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  44. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js +36 -0
  45. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +1 -0
  46. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +18 -11
  47. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  48. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +4 -2
  49. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  50. package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  51. package/lib/commonjs/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.js +1 -1
  52. package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -0
  53. package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -0
  54. package/lib/commonjs/shared/hooks/navigation/use-stack.js +37 -0
  55. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -0
  56. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +5 -0
  57. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  58. package/lib/commonjs/shared/providers/gestures.provider.js +1 -1
  59. package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -1
  60. package/lib/commonjs/shared/providers/layout-anchor.provider.js +73 -0
  61. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -0
  62. package/lib/commonjs/shared/providers/register-bounds.provider.js +19 -8
  63. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  64. package/lib/commonjs/shared/providers/{keys.provider.js → screen/keys.provider.js} +12 -0
  65. package/lib/commonjs/shared/providers/screen/keys.provider.js.map +1 -0
  66. package/lib/commonjs/shared/providers/{screen-transition.provider.js → screen/screen-composer.js} +7 -7
  67. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -0
  68. package/lib/commonjs/shared/providers/screen/styles.provider.js +95 -0
  69. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -0
  70. package/lib/commonjs/shared/providers/stack/core.provider.js +84 -0
  71. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -0
  72. package/lib/commonjs/shared/providers/stack/direct.provider.js +160 -0
  73. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -0
  74. package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js → shared/providers/stack/helpers/active-screens-limit.js} +1 -1
  75. package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +1 -0
  76. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +93 -0
  77. package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +1 -0
  78. package/lib/commonjs/shared/providers/stack/managed.provider.js +157 -0
  79. package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -0
  80. package/lib/commonjs/shared/stores/bounds.store.js.map +1 -1
  81. package/lib/commonjs/shared/types/index.js +19 -0
  82. package/lib/commonjs/shared/types/index.js.map +1 -0
  83. package/lib/commonjs/shared/types/overlay.types.js +6 -0
  84. package/lib/commonjs/shared/types/overlay.types.js.map +1 -0
  85. package/lib/commonjs/shared/types/{core.types.js → screen.types.js} +1 -1
  86. package/lib/commonjs/shared/types/screen.types.js.map +1 -0
  87. package/lib/commonjs/shared/types/stack.types.js +32 -0
  88. package/lib/commonjs/shared/types/stack.types.js.map +1 -0
  89. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -1
  90. package/lib/commonjs/shared/utils/bounds/index.js +13 -1
  91. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  92. package/lib/commonjs/shared/utils/create-provider.js +16 -13
  93. package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
  94. package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  95. package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js +51 -0
  96. package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +1 -0
  97. package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +1 -0
  98. package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -0
  99. package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +1 -0
  100. package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +1 -0
  101. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js +70 -0
  102. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -0
  103. package/lib/commonjs/shared/utils/read-shared-value.js +17 -0
  104. package/lib/commonjs/shared/utils/read-shared-value.js.map +1 -0
  105. package/lib/commonjs/shared/utils/reset-stores-for-screen.js +2 -1
  106. package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -1
  107. package/lib/module/blank-stack/components/adjusted-screen-container.js +31 -0
  108. package/lib/module/blank-stack/components/adjusted-screen-container.js.map +1 -0
  109. package/lib/module/blank-stack/components/{screens.js → adjusted-screen.js} +32 -12
  110. package/lib/module/blank-stack/components/adjusted-screen.js.map +1 -0
  111. package/lib/module/blank-stack/components/stack-view.js +43 -60
  112. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  113. package/lib/module/blank-stack/components/stack-view.native.js +76 -0
  114. package/lib/module/blank-stack/components/stack-view.native.js.map +1 -0
  115. package/lib/module/component-stack/components/component-screen-container.js +18 -0
  116. package/lib/module/component-stack/components/component-screen-container.js.map +1 -0
  117. package/lib/module/component-stack/components/component-screen.js +30 -0
  118. package/lib/module/component-stack/components/component-screen.js.map +1 -0
  119. package/lib/module/component-stack/components/stack-view.js +59 -0
  120. package/lib/module/component-stack/components/stack-view.js.map +1 -0
  121. package/lib/module/component-stack/index.js +4 -0
  122. package/lib/module/component-stack/index.js.map +1 -0
  123. package/lib/module/component-stack/navigators/create-component-stack-navigator.js +48 -0
  124. package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -0
  125. package/lib/module/component-stack/types.js.map +1 -0
  126. package/lib/module/{shared/components → native-stack}/controllers/native-stack-lifecycle.js +18 -9
  127. package/lib/module/native-stack/controllers/native-stack-lifecycle.js.map +1 -0
  128. package/lib/module/native-stack/views/NativeStackView.native.js +115 -118
  129. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  130. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  131. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +35 -0
  132. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -0
  133. package/lib/module/shared/components/overlay/index.js +9 -0
  134. package/lib/module/shared/components/overlay/index.js.map +1 -0
  135. package/lib/module/shared/components/overlay/variations/float-overlay.js +48 -0
  136. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -0
  137. package/lib/module/shared/components/overlay/variations/overlay-host.js +120 -0
  138. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -0
  139. package/lib/module/shared/components/overlay/variations/screen-overlay.js +44 -0
  140. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -0
  141. package/lib/module/shared/components/root-transition-aware.js +2 -2
  142. package/lib/module/shared/components/root-transition-aware.js.map +1 -1
  143. package/lib/module/shared/constants.js +2 -29
  144. package/lib/module/shared/constants.js.map +1 -1
  145. package/lib/module/shared/controller/managed-lifecycle.js +72 -0
  146. package/lib/module/shared/controller/managed-lifecycle.js.map +1 -0
  147. package/lib/module/shared/hooks/animation/use-associated-style.js +2 -2
  148. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  149. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js +31 -0
  150. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +1 -0
  151. package/lib/module/shared/hooks/animation/use-screen-animation.js +18 -11
  152. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  153. package/lib/module/shared/hooks/gestures/use-build-gestures.js +5 -3
  154. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  155. package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
  156. package/lib/module/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.js +1 -1
  157. package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -0
  158. package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -0
  159. package/lib/module/shared/hooks/navigation/use-stack.js +33 -0
  160. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -0
  161. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +5 -0
  162. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  163. package/lib/module/shared/providers/gestures.provider.js +1 -1
  164. package/lib/module/shared/providers/gestures.provider.js.map +1 -1
  165. package/lib/module/shared/providers/layout-anchor.provider.js +67 -0
  166. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -0
  167. package/lib/module/shared/providers/register-bounds.provider.js +19 -8
  168. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  169. package/lib/module/shared/providers/{keys.provider.js → screen/keys.provider.js} +12 -0
  170. package/lib/module/shared/providers/screen/keys.provider.js.map +1 -0
  171. package/lib/module/shared/providers/{screen-transition.provider.js → screen/screen-composer.js} +6 -6
  172. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -0
  173. package/lib/module/shared/providers/screen/styles.provider.js +90 -0
  174. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -0
  175. package/lib/module/shared/providers/stack/core.provider.js +78 -0
  176. package/lib/module/shared/providers/stack/core.provider.js.map +1 -0
  177. package/lib/module/shared/providers/stack/direct.provider.js +155 -0
  178. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -0
  179. package/lib/module/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js → shared/providers/stack/helpers/active-screens-limit.js} +1 -1
  180. package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +1 -0
  181. package/lib/module/shared/providers/stack/helpers/use-local-routes.js +87 -0
  182. package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +1 -0
  183. package/lib/module/shared/providers/stack/managed.provider.js +152 -0
  184. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -0
  185. package/lib/module/shared/stores/bounds.store.js.map +1 -1
  186. package/lib/module/shared/types/index.js +4 -0
  187. package/lib/module/shared/types/index.js.map +1 -0
  188. package/lib/module/shared/types/overlay.types.js +4 -0
  189. package/lib/module/shared/types/overlay.types.js.map +1 -0
  190. package/lib/module/shared/types/screen.types.js +4 -0
  191. package/lib/module/shared/types/screen.types.js.map +1 -0
  192. package/lib/module/shared/types/stack.types.js +33 -0
  193. package/lib/module/shared/types/stack.types.js.map +1 -0
  194. package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -1
  195. package/lib/module/shared/utils/bounds/index.js +13 -1
  196. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  197. package/lib/module/shared/utils/create-provider.js +16 -13
  198. package/lib/module/shared/utils/create-provider.js.map +1 -1
  199. package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
  200. package/lib/module/shared/utils/navigation/align-routes-with-latest.js +46 -0
  201. package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +1 -0
  202. package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +1 -0
  203. package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -0
  204. package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +1 -0
  205. package/lib/module/shared/utils/navigation/routes-are-identical.js.map +1 -0
  206. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js +65 -0
  207. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -0
  208. package/lib/module/shared/utils/read-shared-value.js +14 -0
  209. package/lib/module/shared/utils/read-shared-value.js.map +1 -0
  210. package/lib/module/shared/utils/reset-stores-for-screen.js +2 -2
  211. package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -1
  212. package/lib/typescript/blank-stack/components/adjusted-screen-container.d.ts +6 -0
  213. package/lib/typescript/blank-stack/components/adjusted-screen-container.d.ts.map +1 -0
  214. package/lib/typescript/blank-stack/components/{screens.d.ts → adjusted-screen.d.ts} +2 -2
  215. package/lib/typescript/blank-stack/components/adjusted-screen.d.ts.map +1 -0
  216. package/lib/typescript/blank-stack/components/stack-view.d.ts +2 -1
  217. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  218. package/lib/typescript/blank-stack/components/stack-view.native.d.ts +4 -0
  219. package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -0
  220. package/lib/typescript/blank-stack/types.d.ts +10 -49
  221. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  222. package/lib/typescript/component-stack/components/component-screen-container.d.ts +6 -0
  223. package/lib/typescript/component-stack/components/component-screen-container.d.ts.map +1 -0
  224. package/lib/typescript/component-stack/components/component-screen.d.ts +8 -0
  225. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -0
  226. package/lib/typescript/component-stack/components/stack-view.d.ts +4 -0
  227. package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -0
  228. package/lib/typescript/component-stack/index.d.ts +3 -0
  229. package/lib/typescript/component-stack/index.d.ts.map +1 -0
  230. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +16 -0
  231. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -0
  232. package/lib/typescript/component-stack/types.d.ts +39 -0
  233. package/lib/typescript/component-stack/types.d.ts.map +1 -0
  234. package/lib/typescript/native-stack/controllers/native-stack-lifecycle.d.ts.map +1 -0
  235. package/lib/typescript/native-stack/index.d.ts +1 -1
  236. package/lib/typescript/native-stack/index.d.ts.map +1 -1
  237. package/lib/typescript/native-stack/types.d.ts +9 -6
  238. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  239. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +2 -10
  240. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  241. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  242. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +11 -0
  243. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -0
  244. package/lib/typescript/shared/components/overlay/index.d.ts +7 -0
  245. package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -0
  246. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +6 -0
  247. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -0
  248. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +12 -0
  249. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -0
  250. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +6 -0
  251. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -0
  252. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  253. package/lib/typescript/shared/configs/presets.d.ts +1 -1
  254. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  255. package/lib/typescript/shared/constants.d.ts +2 -16
  256. package/lib/typescript/shared/constants.d.ts.map +1 -1
  257. package/lib/typescript/shared/controller/managed-lifecycle.d.ts +9 -0
  258. package/lib/typescript/shared/controller/managed-lifecycle.d.ts.map +1 -0
  259. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts +13 -0
  260. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +1 -0
  261. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -1
  262. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  263. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  264. package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -1
  265. package/lib/typescript/shared/hooks/navigation/use-closing-route-keys.d.ts.map +1 -0
  266. package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -0
  267. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +66 -0
  268. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -0
  269. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
  270. package/lib/typescript/shared/index.d.ts +41 -43
  271. package/lib/typescript/shared/index.d.ts.map +1 -1
  272. package/lib/typescript/shared/providers/gestures.provider.d.ts +4 -2
  273. package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -1
  274. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +34 -0
  275. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -0
  276. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  277. package/lib/typescript/shared/providers/screen/keys.provider.d.ts +29 -0
  278. package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +1 -0
  279. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +13 -0
  280. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -0
  281. package/lib/typescript/shared/providers/screen/styles.provider.d.ts +13 -0
  282. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -0
  283. package/lib/typescript/shared/providers/stack/core.provider.d.ts +22 -0
  284. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -0
  285. package/lib/typescript/shared/providers/stack/direct.provider.d.ts +34 -0
  286. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -0
  287. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +9 -0
  288. package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +1 -0
  289. package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts +19 -0
  290. package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +1 -0
  291. package/lib/typescript/shared/providers/stack/managed.provider.d.ts +39 -0
  292. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -0
  293. package/lib/typescript/shared/stores/animation.store.d.ts +1 -1
  294. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  295. package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -1
  296. package/lib/typescript/shared/stores/gesture.store.d.ts +2 -2
  297. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  298. package/lib/typescript/shared/types/animation.types.d.ts +3 -3
  299. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  300. package/lib/typescript/shared/types/bounds.types.d.ts +1 -0
  301. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  302. package/lib/typescript/shared/types/gesture.types.d.ts +0 -1
  303. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  304. package/lib/typescript/shared/types/index.d.ts +8 -0
  305. package/lib/typescript/shared/types/index.d.ts.map +1 -0
  306. package/lib/typescript/shared/types/overlay.types.d.ts +39 -0
  307. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -0
  308. package/lib/typescript/shared/types/{core.types.d.ts → screen.types.d.ts} +31 -6
  309. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -0
  310. package/lib/typescript/shared/types/stack.types.d.ts +55 -0
  311. package/lib/typescript/shared/types/stack.types.d.ts.map +1 -0
  312. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +1 -1
  313. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
  314. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +2 -1
  315. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  316. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts +1 -2
  317. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -1
  318. package/lib/typescript/shared/utils/bounds/index.d.ts +1 -9
  319. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  320. package/lib/typescript/shared/utils/bounds/types/builder.d.ts +9 -8
  321. package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -1
  322. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts +2 -1
  323. package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -1
  324. package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
  325. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +1 -1
  326. package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  327. package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts +13 -0
  328. package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +1 -0
  329. package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts +2 -0
  330. package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +1 -0
  331. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +6 -0
  332. package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -0
  333. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +6 -0
  334. package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +1 -0
  335. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +6 -0
  336. package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +1 -0
  337. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +21 -0
  338. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -0
  339. package/lib/typescript/shared/utils/read-shared-value.d.ts +7 -0
  340. package/lib/typescript/shared/utils/read-shared-value.d.ts.map +1 -0
  341. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +4 -3
  342. package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -1
  343. package/package.json +7 -2
  344. package/src/blank-stack/components/adjusted-screen-container.tsx +25 -0
  345. package/src/blank-stack/components/{screens.tsx → adjusted-screen.tsx} +35 -14
  346. package/src/blank-stack/components/stack-view.native.tsx +94 -0
  347. package/src/blank-stack/components/stack-view.tsx +60 -74
  348. package/src/blank-stack/types.ts +12 -63
  349. package/src/component-stack/components/component-screen-container.tsx +15 -0
  350. package/src/component-stack/components/component-screen.tsx +40 -0
  351. package/src/component-stack/components/stack-view.tsx +74 -0
  352. package/src/component-stack/index.ts +10 -0
  353. package/src/component-stack/navigators/create-component-stack-navigator.tsx +88 -0
  354. package/src/component-stack/types.ts +101 -0
  355. package/src/{shared/components → native-stack}/controllers/native-stack-lifecycle.tsx +18 -11
  356. package/src/native-stack/index.ts +1 -0
  357. package/src/native-stack/types.ts +11 -7
  358. package/src/native-stack/views/NativeStackView.native.tsx +138 -167
  359. package/src/shared/__tests__/sync-routes-with-removed.test.ts +137 -0
  360. package/src/shared/components/create-transition-aware-component.tsx +5 -6
  361. package/src/shared/components/overlay/helpers/get-active-overlay.ts +38 -0
  362. package/src/shared/components/overlay/index.ts +7 -0
  363. package/src/shared/components/overlay/variations/float-overlay.tsx +44 -0
  364. package/src/shared/components/overlay/variations/overlay-host.tsx +148 -0
  365. package/src/shared/components/overlay/variations/screen-overlay.tsx +51 -0
  366. package/src/shared/components/root-transition-aware.tsx +2 -2
  367. package/src/shared/configs/presets.ts +1 -1
  368. package/src/shared/constants.ts +3 -32
  369. package/src/shared/controller/managed-lifecycle.tsx +73 -0
  370. package/src/shared/hooks/animation/use-associated-style.tsx +2 -2
  371. package/src/shared/hooks/animation/use-high-refresh-rate.tsx +34 -0
  372. package/src/shared/hooks/animation/use-screen-animation.tsx +24 -18
  373. package/src/shared/hooks/gestures/use-build-gestures.tsx +10 -3
  374. package/src/shared/hooks/gestures/use-scroll-registry.tsx +3 -4
  375. package/src/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.tsx +1 -1
  376. package/src/shared/hooks/navigation/use-stack.tsx +89 -0
  377. package/src/shared/hooks/reanimated/use-shared-value-state.ts +5 -0
  378. package/src/shared/index.ts +8 -3
  379. package/src/shared/providers/gestures.provider.tsx +6 -2
  380. package/src/shared/providers/layout-anchor.provider.tsx +81 -0
  381. package/src/shared/providers/register-bounds.provider.tsx +23 -9
  382. package/src/shared/providers/{keys.provider.tsx → screen/keys.provider.tsx} +25 -10
  383. package/src/shared/providers/screen/screen-composer.tsx +38 -0
  384. package/src/shared/providers/screen/styles.provider.tsx +120 -0
  385. package/src/shared/providers/stack/core.provider.tsx +87 -0
  386. package/src/shared/providers/stack/direct.provider.tsx +231 -0
  387. package/src/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.ts → shared/providers/stack/helpers/active-screens-limit.ts} +10 -4
  388. package/src/shared/providers/stack/helpers/use-local-routes.tsx +133 -0
  389. package/src/shared/providers/stack/managed.provider.tsx +229 -0
  390. package/src/shared/stores/animation.store.ts +1 -1
  391. package/src/shared/stores/bounds.store.ts +4 -5
  392. package/src/shared/stores/gesture.store.ts +2 -2
  393. package/src/shared/types/animation.types.ts +3 -3
  394. package/src/shared/types/bounds.types.ts +5 -0
  395. package/src/shared/types/gesture.types.ts +0 -2
  396. package/src/shared/types/index.ts +46 -0
  397. package/src/shared/types/overlay.types.ts +49 -0
  398. package/src/shared/types/{core.types.ts → screen.types.ts} +34 -7
  399. package/src/shared/types/stack.types.ts +63 -0
  400. package/src/shared/utils/bounds/helpers/geometry.ts +1 -1
  401. package/src/shared/utils/bounds/helpers/style-composers.ts +1 -1
  402. package/src/shared/utils/bounds/helpers/styles.ts +1 -2
  403. package/src/shared/utils/bounds/index.ts +19 -10
  404. package/src/shared/utils/bounds/types/builder.ts +8 -8
  405. package/src/shared/utils/bounds/types/geometry.ts +1 -1
  406. package/src/shared/utils/create-provider.tsx +14 -16
  407. package/src/shared/utils/gesture/check-gesture-activation.ts +1 -1
  408. package/src/shared/utils/navigation/align-routes-with-latest.ts +68 -0
  409. package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.ts +5 -5
  410. package/src/shared/utils/navigation/compose-descriptors.ts +21 -0
  411. package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.ts +6 -4
  412. package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.ts +6 -4
  413. package/src/shared/utils/navigation/sync-routes-with-removed.ts +102 -0
  414. package/src/shared/utils/read-shared-value.ts +15 -0
  415. package/src/shared/utils/reset-stores-for-screen.ts +4 -3
  416. package/lib/commonjs/blank-stack/components/overlay.js +0 -156
  417. package/lib/commonjs/blank-stack/components/overlay.js.map +0 -1
  418. package/lib/commonjs/blank-stack/components/screens.js.map +0 -1
  419. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +0 -72
  420. package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +0 -1
  421. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +0 -1
  422. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js.map +0 -1
  423. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +0 -1
  424. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +0 -1
  425. package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +0 -1
  426. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +0 -1
  427. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +0 -1
  428. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js +0 -196
  429. package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +0 -1
  430. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js +0 -61
  431. package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
  432. package/lib/commonjs/blank-stack/utils/with-stack-navigation/types.js.map +0 -1
  433. package/lib/commonjs/native-stack/views/FooterComponent.js +0 -17
  434. package/lib/commonjs/native-stack/views/FooterComponent.js.map +0 -1
  435. package/lib/commonjs/shared/components/controllers/blank-stack-lifecycle.js.map +0 -1
  436. package/lib/commonjs/shared/components/controllers/native-stack-lifecycle.js.map +0 -1
  437. package/lib/commonjs/shared/providers/flags.provider.js +0 -25
  438. package/lib/commonjs/shared/providers/flags.provider.js.map +0 -1
  439. package/lib/commonjs/shared/providers/keys.provider.js.map +0 -1
  440. package/lib/commonjs/shared/providers/routes.provider.js +0 -48
  441. package/lib/commonjs/shared/providers/routes.provider.js.map +0 -1
  442. package/lib/commonjs/shared/providers/screen-transition.provider.js.map +0 -1
  443. package/lib/commonjs/shared/providers/transition-styles.provider.js +0 -62
  444. package/lib/commonjs/shared/providers/transition-styles.provider.js.map +0 -1
  445. package/lib/commonjs/shared/types/core.types.js.map +0 -1
  446. package/lib/commonjs/shared/types/utils.types.js +0 -2
  447. package/lib/commonjs/shared/types/utils.types.js.map +0 -1
  448. package/lib/commonjs/shared/utils/animation/compute-stack-progress.js +0 -20
  449. package/lib/commonjs/shared/utils/animation/compute-stack-progress.js.map +0 -1
  450. package/lib/commonjs/shared/utils/bounds/constants.js +0 -42
  451. package/lib/commonjs/shared/utils/bounds/constants.js.map +0 -1
  452. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +0 -19
  453. package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +0 -1
  454. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +0 -224
  455. package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js.map +0 -1
  456. package/lib/commonjs/shared/utils/reanimated/version.js +0 -12
  457. package/lib/commonjs/shared/utils/reanimated/version.js.map +0 -1
  458. package/lib/module/blank-stack/components/overlay.js +0 -152
  459. package/lib/module/blank-stack/components/overlay.js.map +0 -1
  460. package/lib/module/blank-stack/components/screens.js.map +0 -1
  461. package/lib/module/blank-stack/hooks/use-overlay-animation.js +0 -68
  462. package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +0 -1
  463. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +0 -1
  464. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js.map +0 -1
  465. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +0 -1
  466. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +0 -1
  467. package/lib/module/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +0 -1
  468. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +0 -1
  469. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +0 -1
  470. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js +0 -190
  471. package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +0 -1
  472. package/lib/module/blank-stack/utils/with-stack-navigation/index.js +0 -55
  473. package/lib/module/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
  474. package/lib/module/blank-stack/utils/with-stack-navigation/types.js.map +0 -1
  475. package/lib/module/native-stack/views/FooterComponent.js +0 -13
  476. package/lib/module/native-stack/views/FooterComponent.js.map +0 -1
  477. package/lib/module/shared/components/controllers/blank-stack-lifecycle.js +0 -66
  478. package/lib/module/shared/components/controllers/blank-stack-lifecycle.js.map +0 -1
  479. package/lib/module/shared/components/controllers/native-stack-lifecycle.js.map +0 -1
  480. package/lib/module/shared/providers/flags.provider.js +0 -19
  481. package/lib/module/shared/providers/flags.provider.js.map +0 -1
  482. package/lib/module/shared/providers/keys.provider.js.map +0 -1
  483. package/lib/module/shared/providers/routes.provider.js +0 -42
  484. package/lib/module/shared/providers/routes.provider.js.map +0 -1
  485. package/lib/module/shared/providers/screen-transition.provider.js.map +0 -1
  486. package/lib/module/shared/providers/transition-styles.provider.js +0 -56
  487. package/lib/module/shared/providers/transition-styles.provider.js.map +0 -1
  488. package/lib/module/shared/types/core.types.js +0 -4
  489. package/lib/module/shared/types/core.types.js.map +0 -1
  490. package/lib/module/shared/types/utils.types.js +0 -2
  491. package/lib/module/shared/types/utils.types.js.map +0 -1
  492. package/lib/module/shared/utils/animation/compute-stack-progress.js +0 -15
  493. package/lib/module/shared/utils/animation/compute-stack-progress.js.map +0 -1
  494. package/lib/module/shared/utils/bounds/constants.js +0 -37
  495. package/lib/module/shared/utils/bounds/constants.js.map +0 -1
  496. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +0 -14
  497. package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +0 -1
  498. package/lib/module/shared/utils/gesture/apply-offset-rules.js +0 -219
  499. package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +0 -1
  500. package/lib/module/shared/utils/reanimated/version.js +0 -7
  501. package/lib/module/shared/utils/reanimated/version.js.map +0 -1
  502. package/lib/typescript/blank-stack/components/overlay.d.ts +0 -5
  503. package/lib/typescript/blank-stack/components/overlay.d.ts.map +0 -1
  504. package/lib/typescript/blank-stack/components/screens.d.ts.map +0 -1
  505. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +0 -12
  506. package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +0 -1
  507. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.d.ts +0 -3
  508. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.d.ts.map +0 -1
  509. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.d.ts +0 -4
  510. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.d.ts.map +0 -1
  511. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.d.ts +0 -4
  512. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.d.ts.map +0 -1
  513. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.d.ts +0 -3
  514. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.d.ts.map +0 -1
  515. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.d.ts +0 -3
  516. package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.d.ts.map +0 -1
  517. package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.d.ts.map +0 -1
  518. package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-previous.d.ts.map +0 -1
  519. package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.d.ts +0 -20
  520. package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.d.ts.map +0 -1
  521. package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts +0 -4
  522. package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts.map +0 -1
  523. package/lib/typescript/blank-stack/utils/with-stack-navigation/types.d.ts +0 -22
  524. package/lib/typescript/blank-stack/utils/with-stack-navigation/types.d.ts.map +0 -1
  525. package/lib/typescript/native-stack/views/FooterComponent.d.ts +0 -7
  526. package/lib/typescript/native-stack/views/FooterComponent.d.ts.map +0 -1
  527. package/lib/typescript/shared/components/controllers/blank-stack-lifecycle.d.ts +0 -8
  528. package/lib/typescript/shared/components/controllers/blank-stack-lifecycle.d.ts.map +0 -1
  529. package/lib/typescript/shared/components/controllers/native-stack-lifecycle.d.ts.map +0 -1
  530. package/lib/typescript/shared/providers/flags.provider.d.ts +0 -10
  531. package/lib/typescript/shared/providers/flags.provider.d.ts.map +0 -1
  532. package/lib/typescript/shared/providers/keys.provider.d.ts +0 -18
  533. package/lib/typescript/shared/providers/keys.provider.d.ts.map +0 -1
  534. package/lib/typescript/shared/providers/routes.provider.d.ts +0 -19
  535. package/lib/typescript/shared/providers/routes.provider.d.ts.map +0 -1
  536. package/lib/typescript/shared/providers/screen-transition.provider.d.ts +0 -14
  537. package/lib/typescript/shared/providers/screen-transition.provider.d.ts.map +0 -1
  538. package/lib/typescript/shared/providers/transition-styles.provider.d.ts +0 -14
  539. package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +0 -1
  540. package/lib/typescript/shared/types/core.types.d.ts.map +0 -1
  541. package/lib/typescript/shared/types/utils.types.d.ts +0 -5
  542. package/lib/typescript/shared/types/utils.types.d.ts.map +0 -1
  543. package/lib/typescript/shared/utils/animation/compute-stack-progress.d.ts +0 -3
  544. package/lib/typescript/shared/utils/animation/compute-stack-progress.d.ts.map +0 -1
  545. package/lib/typescript/shared/utils/bounds/constants.d.ts +0 -7
  546. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +0 -1
  547. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts +0 -7
  548. package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +0 -1
  549. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +0 -38
  550. package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +0 -1
  551. package/lib/typescript/shared/utils/reanimated/version.d.ts +0 -2
  552. package/lib/typescript/shared/utils/reanimated/version.d.ts.map +0 -1
  553. package/src/blank-stack/components/overlay.tsx +0 -169
  554. package/src/blank-stack/hooks/use-overlay-animation.tsx +0 -86
  555. package/src/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.ts +0 -17
  556. package/src/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.tsx +0 -267
  557. package/src/blank-stack/utils/with-stack-navigation/index.tsx +0 -74
  558. package/src/blank-stack/utils/with-stack-navigation/types.ts +0 -35
  559. package/src/native-stack/views/FooterComponent.tsx +0 -10
  560. package/src/shared/components/controllers/blank-stack-lifecycle.tsx +0 -70
  561. package/src/shared/providers/flags.provider.tsx +0 -21
  562. package/src/shared/providers/routes.provider.tsx +0 -54
  563. package/src/shared/providers/screen-transition.provider.tsx +0 -41
  564. package/src/shared/providers/transition-styles.provider.tsx +0 -74
  565. package/src/shared/types/utils.types.ts +0 -4
  566. package/src/shared/utils/animation/compute-stack-progress.ts +0 -16
  567. package/src/shared/utils/bounds/constants.ts +0 -40
  568. package/src/shared/utils/bounds/helpers/is-bounds-equal.ts +0 -24
  569. package/src/shared/utils/gesture/apply-offset-rules.ts +0 -312
  570. package/src/shared/utils/reanimated/version.ts +0 -5
  571. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation → component-stack}/types.js +0 -0
  572. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.js +0 -0
  573. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.js +0 -0
  574. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/compose-descriptors.js +0 -0
  575. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.js +0 -0
  576. /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.js +0 -0
  577. /package/lib/module/{blank-stack/utils/with-stack-navigation → component-stack}/types.js +0 -0
  578. /package/lib/module/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.js +0 -0
  579. /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.js +0 -0
  580. /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/compose-descriptors.js +0 -0
  581. /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.js +0 -0
  582. /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.js +0 -0
  583. /package/lib/typescript/{shared/components → native-stack}/controllers/native-stack-lifecycle.d.ts +0 -0
  584. /package/lib/typescript/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.d.ts +0 -0
  585. /package/lib/typescript/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.d.ts +0 -0
  586. /package/src/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.tsx +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["useEffect","useLayoutEffect","useDerivedValue","useSharedValueState","useStableCallback","useGestureContext","useKeys","AnimationStore","TRUE","startScreenTransition","resetStoresForScreen","NativeStackScreenLifecycleController","children","current","ancestorContext","isAncestorDismissingViaGesture","gestureAnimationValues","isDismissing","value","animations","getAll","route","key","handleBeforeRemove","e","isEnabled","options","enableTransitions","isFirstScreen","navigation","getState","index","closing","set","preventDefault","onAnimationFinish","finished","dispatch","data","action","requestAnimationFrame","target","spec","transitionSpec","handleInitialize","unsubscribe","addListener"],"sourceRoot":"../../../../../src","sources":["shared/components/controllers/native-stack-lifecycle.tsx"],"mappings":";;AAAA;AACA,SAASA,SAAS,EAAEC,eAAe,QAAQ,OAAO;AAClD,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASC,mBAAmB,QAAQ,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,UAAU,CAACQ,QAAQ,CAACb,CAAC,CAACc,IAAI,CAACC,MAAM,CAAC;;QAE1C;QACAC,qBAAqB,CAAC,MAAM;UAC3B9B,oBAAoB,CAACG,OAAO,CAAC;QAC9B,CAAC,CAAC;MACH;IACD,CAAC;IAEDJ,qBAAqB,CAAC;MACrBgC,MAAM,EAAE,OAAO;MACfC,IAAI,EAAE7B,OAAO,CAACa,OAAO,CAACiB,cAAc;MACpCR,iBAAiB;MACjBhB;IACD,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,MAAMyB,gBAAgB,GAAGxC,iBAAiB,CAAC,MAAM;IAChDK,qBAAqB,CAAC;MACrBgC,MAAM,EAAE,MAAM;MACdC,IAAI,EAAE7B,OAAO,CAACa,OAAO,CAACiB,cAAc;MACpCxB;IACD,CAAC,CAAC;EACH,CAAC,CAAC;EAEFnB,SAAS,CAAC,MAAM;IACf,MAAM6C,WAAW,GAAGhC,OAAO,CAACgB,UAAU,CAACiB,WAAW,CACjD,cAAc,EACdvB,kBACD,CAAC;IAED,OAAOsB,WAAW;EACnB,CAAC,EAAE,CAAChC,OAAO,CAACgB,UAAU,EAAEN,kBAAkB,CAAC,CAAC;EAE5CtB,eAAe,CAAC2C,gBAAgB,EAAE,EAAE,CAAC;EAErC,OAAOhC,QAAQ;AAChB,CAAC","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- import createProvider from "../utils/create-provider";
4
- const {
5
- FlagsProvider,
6
- useFlagsContext
7
- } = createProvider("Flags", {
8
- guarded: false
9
- })(({
10
- TRANSITIONS_ALWAYS_ON = false,
11
- children
12
- }) => ({
13
- value: {
14
- TRANSITIONS_ALWAYS_ON
15
- },
16
- children
17
- }));
18
- export { FlagsProvider, useFlagsContext };
19
- //# sourceMappingURL=flags.provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createProvider","FlagsProvider","useFlagsContext","guarded","TRANSITIONS_ALWAYS_ON","children","value"],"sourceRoot":"../../../../src","sources":["shared/providers/flags.provider.tsx"],"mappings":";;AAAA,OAAOA,cAAc,MAAM,0BAA0B;AAWrD,MAAM;EAAEC,aAAa;EAAEC;AAAgB,CAAC,GAAGF,cAAc,CAAC,OAAO,EAAE;EAClEG,OAAO,EAAE;AACV,CAAC,CAAC,CACD,CAAC;EAAEC,qBAAqB,GAAG,KAAK;EAAEC;AAAS,CAAC,MAAM;EACjDC,KAAK,EAAE;IAAEF;EAAsB,CAAC;EAChCC;AACD,CAAC,CACF,CAAC;AAED,SAASJ,aAAa,EAAEC,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["createContext","useContext","useMemo","jsx","_jsx","KeysContext","undefined","KeysProvider","children","previous","current","next","value","Provider","useKeys","context","Error"],"sourceRoot":"../../../../src","sources":["shared/providers/keys.provider.tsx"],"mappings":";;AAMA,SAASA,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAiB3D,MAAMC,WAAW,gBAAGL,aAAa,CAE/BM,SAAS,CAAC;AASZ,OAAO,SAASC,YAAYA,CAA2C;EACtEC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC;AAC+B,CAAC,EAAE;EAClC,MAAMC,KAAK,GAAGV,OAAO,CACpB,OAAO;IAAEO,QAAQ;IAAEC,OAAO;IAAEC;EAAK,CAAC,CAAC,EACnC,CAACF,QAAQ,EAAEC,OAAO,EAAEC,IAAI,CACzB,CAAC;EAED,oBAAOP,IAAA,CAACC,WAAW,CAACQ,QAAQ;IAACD,KAAK,EAAEA,KAAM;IAAAJ,QAAA,EAAEA;EAAQ,CAAuB,CAAC;AAC7E;AAEA,OAAO,SAASM,OAAOA,CAAA,EAEW;EACjC,MAAMC,OAAO,GAAGd,UAAU,CAACI,WAAW,CAAC;EACvC,IAAIU,OAAO,KAAKT,SAAS,EAAE;IAC1B,MAAM,IAAIU,KAAK,CAAC,4CAA4C,CAAC;EAC9D;EACA,OAAOD,OAAO;AACf","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- import { useMemo } from "react";
4
- import { AnimationStore } from "../stores/animation.store";
5
- import createProvider from "../utils/create-provider";
6
- const {
7
- RoutesProvider,
8
- useRoutesContext
9
- } = createProvider("Routes", {
10
- guarded: false
11
- })(({
12
- routeKeys
13
- }) => ({
14
- value: {
15
- routeKeys
16
- }
17
- }));
18
- export { RoutesProvider, useRoutesContext };
19
-
20
- /**
21
- * Hook to get animation values for all screens from a given index onwards.
22
- * Useful for computing accumulated progress across multiple screens.
23
- */
24
- export function useStackAnimationValues(currentRouteKey) {
25
- const routesContext = useRoutesContext();
26
- return useMemo(() => {
27
- if (!currentRouteKey || !routesContext) {
28
- return [];
29
- }
30
- const {
31
- routeKeys
32
- } = routesContext;
33
- const currentIndex = routeKeys.indexOf(currentRouteKey);
34
- if (currentIndex === -1) {
35
- return [];
36
- }
37
-
38
- // Get animation values for all screens from current index onwards
39
- return routeKeys.slice(currentIndex).map(key => AnimationStore.getAll(key));
40
- }, [currentRouteKey, routesContext]);
41
- }
42
- //# sourceMappingURL=routes.provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useMemo","AnimationStore","createProvider","RoutesProvider","useRoutesContext","guarded","routeKeys","value","useStackAnimationValues","currentRouteKey","routesContext","currentIndex","indexOf","slice","map","key","getAll"],"sourceRoot":"../../../../src","sources":["shared/providers/routes.provider.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SACCC,cAAc,QAER,2BAA2B;AAClC,OAAOC,cAAc,MAAM,0BAA0B;AAcrD,MAAM;EAAEC,cAAc;EAAEC;AAAiB,CAAC,GAAGF,cAAc,CAAC,QAAQ,EAAE;EACrEG,OAAO,EAAE;AACV,CAAC,CAAC,CAA0C,CAAC;EAAEC;AAAU,CAAC,MAAM;EAC/DC,KAAK,EAAE;IAAED;EAAU;AACpB,CAAC,CAAC,CAAC;AAEH,SAASH,cAAc,EAAEC,gBAAgB;;AAEzC;AACA;AACA;AACA;AACA,OAAO,SAASI,uBAAuBA,CACtCC,eAAmC,EACb;EACtB,MAAMC,aAAa,GAAGN,gBAAgB,CAAC,CAAC;EAExC,OAAOJ,OAAO,CAAC,MAAM;IACpB,IAAI,CAACS,eAAe,IAAI,CAACC,aAAa,EAAE;MACvC,OAAO,EAAE;IACV;IAEA,MAAM;MAAEJ;IAAU,CAAC,GAAGI,aAAa;IACnC,MAAMC,YAAY,GAAGL,SAAS,CAACM,OAAO,CAACH,eAAe,CAAC;IAEvD,IAAIE,YAAY,KAAK,CAAC,CAAC,EAAE;MACxB,OAAO,EAAE;IACV;;IAEA;IACA,OAAOL,SAAS,CACdO,KAAK,CAACF,YAAY,CAAC,CACnBG,GAAG,CAAEC,GAAG,IAAKd,cAAc,CAACe,MAAM,CAACD,GAAG,CAAC,CAAC;EAC3C,CAAC,EAAE,CAACN,eAAe,EAAEC,aAAa,CAAC,CAAC;AACrC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["RootTransitionAware","ScreenGestureProvider","KeysProvider","TransitionStylesProvider","jsx","_jsx","ScreenTransitionProvider","previous","current","next","children","LifecycleController"],"sourceRoot":"../../../../src","sources":["shared/providers/screen-transition.provider.tsx"],"mappings":";;AAEA,SAASA,mBAAmB,QAAQ,qCAAqC;AAEzE,SAASC,qBAAqB,QAAQ,qBAAqB;AAC3D,SAASC,YAAY,QAAmC,iBAAiB;AACzE,SAASC,wBAAwB,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUxE,OAAO,SAASC,wBAAwBA,CAEtC;EACDC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC;AACmB,CAAC,EAAE;EACtB,oBACCN,IAAA,CAACH,YAAY;IACZK,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,IAAI,EAAEA,IAAK;IAAAC,QAAA,eAEXL,IAAA,CAACJ,qBAAqB;MAAAS,QAAA,eACrBL,IAAA,CAACM,mBAAmB;QAAAD,QAAA,eACnBL,IAAA,CAACF,wBAAwB;UAAAO,QAAA,eACxBL,IAAA,CAACL,mBAAmB;YAAAU,QAAA,EAAEA;UAAQ,CAAsB;QAAC,CAC5B;MAAC,CACP;IAAC,CACA;EAAC,CACX,CAAC;AAEjB","ignoreList":[]}
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- import { createContext, useContext, useMemo } from "react";
4
- import { useDerivedValue } from "react-native-reanimated";
5
- import { NO_STYLES } from "../constants";
6
- import { _useScreenAnimation } from "../hooks/animation/use-screen-animation";
7
- import { createBounds } from "../utils/bounds";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- export const TransitionStylesContext = /*#__PURE__*/createContext(null);
10
- export function TransitionStylesProvider({
11
- children
12
- }) {
13
- const parentCtx = useContext(TransitionStylesContext);
14
- const {
15
- screenInterpolatorProps,
16
- screenStyleInterpolator
17
- } = _useScreenAnimation();
18
- const stylesMap = useDerivedValue(() => {
19
- "worklet";
20
-
21
- const props = screenInterpolatorProps.value;
22
- const bounds = createBounds(props);
23
- try {
24
- if (!screenStyleInterpolator) return NO_STYLES;
25
- return screenStyleInterpolator({
26
- ...props,
27
- bounds
28
- });
29
- } catch (err) {
30
- if (__DEV__) {
31
- console.warn("[react-native-screen-transitions] screenStyleInterpolator must be a worklet", err);
32
- }
33
- return NO_STYLES;
34
- }
35
- });
36
- const value = useMemo(() => {
37
- // Build ancestor chain: [parent, grandparent, great-grandparent, ...]
38
- const ancestorStylesMaps = parentCtx ? [parentCtx.stylesMap, ...parentCtx.ancestorStylesMaps] : [];
39
- return {
40
- stylesMap,
41
- ancestorStylesMaps
42
- };
43
- }, [stylesMap, parentCtx]);
44
- return /*#__PURE__*/_jsx(TransitionStylesContext.Provider, {
45
- value: value,
46
- children: children
47
- });
48
- }
49
- export function useTransitionStyles() {
50
- const ctx = useContext(TransitionStylesContext);
51
- if (!ctx) {
52
- throw new Error("useTransitionStyles must be used within a TransitionStylesProvider");
53
- }
54
- return ctx;
55
- }
56
- //# sourceMappingURL=transition-styles.provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createContext","useContext","useMemo","useDerivedValue","NO_STYLES","_useScreenAnimation","createBounds","jsx","_jsx","TransitionStylesContext","TransitionStylesProvider","children","parentCtx","screenInterpolatorProps","screenStyleInterpolator","stylesMap","props","value","bounds","err","__DEV__","console","warn","ancestorStylesMaps","Provider","useTransitionStyles","ctx","Error"],"sourceRoot":"../../../../src","sources":["shared/providers/transition-styles.provider.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC1D,SAA2BC,eAAe,QAAQ,yBAAyB;AAC3E,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,mBAAmB,QAAQ,yCAAyC;AAE7E,SAASC,YAAY,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW/C,OAAO,MAAMC,uBAAuB,gBACnCT,aAAa,CAAsC,IAAI,CAAC;AAEzD,OAAO,SAASU,wBAAwBA,CAAC;EAAEC;AAAgB,CAAC,EAAE;EAC7D,MAAMC,SAAS,GAAGX,UAAU,CAACQ,uBAAuB,CAAC;EAErD,MAAM;IAAEI,uBAAuB;IAAEC;EAAwB,CAAC,GACzDT,mBAAmB,CAAC,CAAC;EAEtB,MAAMU,SAAS,GAAGZ,eAAe,CAA8B,MAAM;IACpE,SAAS;;IACT,MAAMa,KAAK,GAAGH,uBAAuB,CAACI,KAAK;IAC3C,MAAMC,MAAM,GAAGZ,YAAY,CAACU,KAAK,CAAC;IAClC,IAAI;MACH,IAAI,CAACF,uBAAuB,EAAE,OAAOV,SAAS;MAC9C,OAAOU,uBAAuB,CAAC;QAC9B,GAAGE,KAAK;QACRE;MACD,CAAC,CAAC;IACH,CAAC,CAAC,OAAOC,GAAG,EAAE;MACb,IAAIC,OAAO,EAAE;QACZC,OAAO,CAACC,IAAI,CACX,6EAA6E,EAC7EH,GACD,CAAC;MACF;MACA,OAAOf,SAAS;IACjB;EACD,CAAC,CAAC;EAEF,MAAMa,KAAK,GAAGf,OAAO,CAAC,MAAM;IAC3B;IACA,MAAMqB,kBAAkB,GAAGX,SAAS,GACjC,CAACA,SAAS,CAACG,SAAS,EAAE,GAAGH,SAAS,CAACW,kBAAkB,CAAC,GACtD,EAAE;IAEL,OAAO;MACNR,SAAS;MACTQ;IACD,CAAC;EACF,CAAC,EAAE,CAACR,SAAS,EAAEH,SAAS,CAAC,CAAC;EAE1B,oBACCJ,IAAA,CAACC,uBAAuB,CAACe,QAAQ;IAACP,KAAK,EAAEA,KAAM;IAAAN,QAAA,EAC7CA;EAAQ,CACwB,CAAC;AAErC;AAEA,OAAO,SAASc,mBAAmBA,CAAA,EAAG;EACrC,MAAMC,GAAG,GAAGzB,UAAU,CAACQ,uBAAuB,CAAC;EAC/C,IAAI,CAACiB,GAAG,EAAE;IACT,MAAM,IAAIC,KAAK,CACd,oEACD,CAAC;EACF;EACA,OAAOD,GAAG;AACX","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export {};
4
- //# sourceMappingURL=core.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/core.types.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=utils.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/types/utils.types.ts"],"mappings":"","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- export const computeStackProgress = (stackAnimationValues, fallback = 0) => {
4
- "worklet";
5
-
6
- let computedStackProgress;
7
- if (stackAnimationValues.length > 0) {
8
- computedStackProgress = 0;
9
- for (let i = 0; i < stackAnimationValues.length; i += 1) {
10
- computedStackProgress += stackAnimationValues[i].progress.value;
11
- }
12
- }
13
- return computedStackProgress ?? fallback;
14
- };
15
- //# sourceMappingURL=compute-stack-progress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["computeStackProgress","stackAnimationValues","fallback","computedStackProgress","length","i","progress","value"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/compute-stack-progress.ts"],"mappings":";;AAEA,OAAO,MAAMA,oBAAoB,GAAGA,CACnCC,oBAAyC,EACzCC,QAAgB,GAAG,CAAC,KAChB;EACJ,SAAS;;EACT,IAAIC,qBAAyC;EAC7C,IAAIF,oBAAoB,CAACG,MAAM,GAAG,CAAC,EAAE;IACpCD,qBAAqB,GAAG,CAAC;IACzB,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,oBAAoB,CAACG,MAAM,EAAEC,CAAC,IAAI,CAAC,EAAE;MACxDF,qBAAqB,IAAIF,oBAAoB,CAACI,CAAC,CAAC,CAACC,QAAQ,CAACC,KAAK;IAChE;EACD;EACA,OAAOJ,qBAAqB,IAAID,QAAQ;AACzC,CAAC","ignoreList":[]}
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- export const FULLSCREEN_DIMENSIONS = dimensions => {
4
- "worklet";
5
-
6
- return {
7
- x: 0,
8
- y: 0,
9
- pageX: 0,
10
- pageY: 0,
11
- width: dimensions.width,
12
- height: dimensions.height
13
- };
14
- };
15
- export const DEFAULT_BUILDER_OPTIONS = Object.freeze({
16
- gestures: {
17
- x: 0,
18
- y: 0
19
- },
20
- toFullscreen: false,
21
- absolute: false,
22
- relative: true,
23
- method: "transform",
24
- contentScaleMode: "auto",
25
- space: "relative",
26
- target: "bound",
27
- /**
28
- * Controls how elements scale during transitions
29
- * - "match": Scale to match destination bounds (default for center anchor)
30
- * - "none": No scaling, maintain original size (default for non-center anchors)
31
- * - "uniform": Scale uniformly (maintain aspect ratio)
32
- */
33
- scaleMode: "match",
34
- anchor: "center",
35
- raw: false
36
- });
37
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["FULLSCREEN_DIMENSIONS","dimensions","x","y","pageX","pageY","width","height","DEFAULT_BUILDER_OPTIONS","Object","freeze","gestures","toFullscreen","absolute","relative","method","contentScaleMode","space","target","scaleMode","anchor","raw"],"sourceRoot":"../../../../../src","sources":["shared/utils/bounds/constants.ts"],"mappings":";;AAKA,OAAO,MAAMA,qBAAqB,GACjCC,UAAkB,IACM;EACxB,SAAS;;EACT,OAAO;IACNC,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJC,KAAK,EAAE,CAAC;IACRC,KAAK,EAAE,CAAC;IACRC,KAAK,EAAEL,UAAU,CAACK,KAAK;IACvBC,MAAM,EAAEN,UAAU,CAACM;EACpB,CAAC;AACF,CAAC;AAED,OAAO,MAAMC,uBAEZ,GAAGC,MAAM,CAACC,MAAM,CAAC;EACjBC,QAAQ,EAAE;IAAET,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE;EAAE,CAAC;EACxBS,YAAY,EAAE,KAAK;EACnBC,QAAQ,EAAE,KAAK;EACfC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,WAAW;EACnBC,gBAAgB,EAAE,MAAM;EACxBC,KAAK,EAAE,UAAU;EACjBC,MAAM,EAAE,OAAO;EACf;AACD;AACA;AACA;AACA;AACA;EACCC,SAAS,EAAE,OAAO;EAClBC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE;AACN,CAAU,CAAC","ignoreList":[]}
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- import { BoundStore } from "../../../stores/bounds.store";
4
- export const isBoundsEqual = ({
5
- measured,
6
- key,
7
- sharedBoundTag
8
- }) => {
9
- "worklet";
10
-
11
- const existing = BoundStore.getSnapshot(sharedBoundTag, key)?.bounds;
12
- return !!existing && existing.width === measured.width && existing.height === measured.height && existing.pageX === measured.pageX && existing.pageY === measured.pageY && existing.x === measured.x && existing.y === measured.y;
13
- };
14
- //# sourceMappingURL=is-bounds-equal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["BoundStore","isBoundsEqual","measured","key","sharedBoundTag","existing","getSnapshot","bounds","width","height","pageX","pageY","x","y"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/is-bounds-equal.ts"],"mappings":";;AACA,SAASA,UAAU,QAAQ,8BAA8B;AAEzD,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC7BC,QAAQ;EACRC,GAAG;EACHC;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMC,QAAQ,GAAGL,UAAU,CAACM,WAAW,CAACF,cAAc,EAAED,GAAG,CAAC,EAAEI,MAAM;EACpE,OACC,CAAC,CAACF,QAAQ,IACVA,QAAQ,CAACG,KAAK,KAAKN,QAAQ,CAACM,KAAK,IACjCH,QAAQ,CAACI,MAAM,KAAKP,QAAQ,CAACO,MAAM,IACnCJ,QAAQ,CAACK,KAAK,KAAKR,QAAQ,CAACQ,KAAK,IACjCL,QAAQ,CAACM,KAAK,KAAKT,QAAQ,CAACS,KAAK,IACjCN,QAAQ,CAACO,CAAC,KAAKV,QAAQ,CAACU,CAAC,IACzBP,QAAQ,CAACQ,CAAC,KAAKX,QAAQ,CAACW,CAAC;AAE3B,CAAC","ignoreList":[]}
@@ -1,219 +0,0 @@
1
- "use strict";
2
-
3
- import { DEFAULT_ACTIVATION_AREA, DEFAULT_EDGE_DISTANCE_HORIZONTAL, DEFAULT_EDGE_DISTANCE_VERTICAL, GESTURE_ACTIVATION_THRESHOLD_X, GESTURE_ACTIVATION_THRESHOLD_Y, GESTURE_FAIL_TOLERANCE_X, GESTURE_FAIL_TOLERANCE_Y } from "../../constants";
4
- import { GestureOffsetState } from "../../types/gesture.types";
5
- function normalizeSides(area) {
6
- "worklet";
7
-
8
- if (!area || typeof area === "string") {
9
- const mode = area ?? DEFAULT_ACTIVATION_AREA;
10
- return {
11
- left: mode,
12
- right: mode,
13
- top: mode,
14
- bottom: mode
15
- };
16
- }
17
- const s = area;
18
- return {
19
- left: s.left ?? DEFAULT_ACTIVATION_AREA,
20
- right: s.right ?? DEFAULT_ACTIVATION_AREA,
21
- top: s.top ?? DEFAULT_ACTIVATION_AREA,
22
- bottom: s.bottom ?? DEFAULT_ACTIVATION_AREA
23
- };
24
- }
25
- function computeEdgeConstraints(initialTouch, dimensions, sides, responseDistance) {
26
- "worklet";
27
-
28
- const xDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_HORIZONTAL;
29
- const yDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_VERTICAL;
30
- const horizontalRight = sides.left === "screen" || initialTouch.x <= xDist; // right swipe checks left edge
31
- const horizontalLeft = sides.right === "screen" || initialTouch.x >= dimensions.width - xDist; // left swipe checks right edge
32
- const verticalDown = sides.top === "screen" || initialTouch.y <= yDist; // down swipe checks top edge
33
- const verticalUp = sides.bottom === "screen" || initialTouch.y >= dimensions.height - yDist; // up swipe checks bottom edge
34
-
35
- return {
36
- horizontalRight,
37
- horizontalLeft,
38
- verticalDown,
39
- verticalUp
40
- };
41
- }
42
- function calculateSwipeDirs(deltaX, deltaY) {
43
- "worklet";
44
-
45
- const isVerticalSwipe = Math.abs(deltaY) > Math.abs(deltaX);
46
- const isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
47
- const isSwipingDown = isVerticalSwipe && deltaY > 0;
48
- const isSwipingUp = isVerticalSwipe && deltaY < 0;
49
- const isSwipingRight = isHorizontalSwipe && deltaX > 0;
50
- const isSwipingLeft = isHorizontalSwipe && deltaX < 0;
51
- return {
52
- isSwipingDown,
53
- isSwipingUp,
54
- isSwipingRight,
55
- isSwipingLeft,
56
- isVerticalSwipe,
57
- isHorizontalSwipe
58
- };
59
- }
60
- function shouldActivateOrFail(params) {
61
- "worklet";
62
-
63
- const {
64
- deltaX,
65
- deltaY,
66
- hasHorizontal,
67
- hasVertical,
68
- isHorizontalSwipe,
69
- isVerticalSwipe,
70
- allowedRight,
71
- allowedLeft,
72
- allowedUp,
73
- allowedDown,
74
- horizontalGateRight,
75
- horizontalGateLeft,
76
- verticalGateUp,
77
- verticalGateDown,
78
- isSwipingRight,
79
- isSwipingLeft,
80
- isSwipingUp,
81
- isSwipingDown
82
- } = params;
83
- let shouldActivate = false;
84
- let shouldFail = false;
85
- if (hasHorizontal && isHorizontalSwipe) {
86
- const hasEnoughHorizontalMovement = Math.abs(deltaX) >= GESTURE_ACTIVATION_THRESHOLD_X;
87
- const hasAcceptableVerticalDeviation = Math.abs(deltaY) <= GESTURE_FAIL_TOLERANCE_X;
88
- if (hasEnoughHorizontalMovement && hasAcceptableVerticalDeviation) {
89
- const rightOk = isSwipingRight && allowedRight && horizontalGateRight;
90
- const leftOk = isSwipingLeft && allowedLeft && horizontalGateLeft;
91
- if (rightOk || leftOk) {
92
- shouldActivate = true;
93
- }
94
- } else if (!hasAcceptableVerticalDeviation) {
95
- shouldFail = true;
96
- }
97
- }
98
- if (hasVertical && isVerticalSwipe) {
99
- const hasEnoughVerticalMovement = Math.abs(deltaY) >= GESTURE_ACTIVATION_THRESHOLD_Y;
100
- const hasAcceptableHorizontalDeviation = Math.abs(deltaX) <= GESTURE_FAIL_TOLERANCE_Y;
101
- if (hasEnoughVerticalMovement && hasAcceptableHorizontalDeviation) {
102
- const upOk = isSwipingUp && allowedUp && verticalGateUp;
103
- const downOk = isSwipingDown && allowedDown && verticalGateDown;
104
- if (upOk || downOk) {
105
- shouldActivate = true;
106
- }
107
- } else if (!hasAcceptableHorizontalDeviation) {
108
- shouldFail = true;
109
- }
110
- }
111
- if (hasHorizontal && isHorizontalSwipe) {
112
- if (isSwipingLeft && !allowedLeft || isSwipingRight && !allowedRight) {
113
- shouldFail = true;
114
- }
115
- // If gating prohibits the dominant horizontal swipe, fail early
116
- if (isSwipingRight && allowedRight && !horizontalGateRight || isSwipingLeft && allowedLeft && !horizontalGateLeft) {
117
- shouldFail = true;
118
- }
119
- }
120
- if (hasVertical && isVerticalSwipe) {
121
- if (isSwipingUp && !allowedUp || isSwipingDown && !allowedDown) {
122
- shouldFail = true;
123
- }
124
- // If gating prohibits the dominant vertical swipe, fail early
125
- if (isSwipingUp && allowedUp && !verticalGateUp || isSwipingDown && allowedDown && !verticalGateDown) {
126
- shouldFail = true;
127
- }
128
- }
129
- return {
130
- shouldActivate,
131
- shouldFail
132
- };
133
- }
134
-
135
- /**
136
- * Since we're using onTouchesMove to activate our pan, faillOffset and activateOffset don't actually work. In that case we'll create this function to use in onTouchesMove which acts simarly to the original functionality.
137
- */
138
- export const applyOffsetRules = ({
139
- initialTouch,
140
- touch,
141
- directions,
142
- manager,
143
- gestureOffsetState,
144
- activationArea,
145
- dimensions,
146
- responseDistance
147
- }) => {
148
- "worklet";
149
-
150
- const deltaX = touch.x - initialTouch.x;
151
- const deltaY = touch.y - initialTouch.y;
152
- const allowedDown = directions.vertical;
153
- const allowedUp = directions.verticalInverted;
154
- const allowedRight = directions.horizontal;
155
- const allowedLeft = directions.horizontalInverted;
156
- const hasHorizontal = allowedLeft || allowedRight;
157
- const hasVertical = allowedUp || allowedDown;
158
- const {
159
- isSwipingDown,
160
- isSwipingUp,
161
- isSwipingRight,
162
- isSwipingLeft,
163
- isVerticalSwipe,
164
- isHorizontalSwipe
165
- } = calculateSwipeDirs(deltaX, deltaY);
166
-
167
- // avoid re-running the function if the activation state is already set
168
- if (gestureOffsetState.value === GestureOffsetState.PASSED || gestureOffsetState.value === GestureOffsetState.FAILED) {
169
- return {
170
- isSwipingDown,
171
- isSwipingUp,
172
- isSwipingRight,
173
- isSwipingLeft
174
- };
175
- }
176
- const sides = normalizeSides(activationArea);
177
- const {
178
- horizontalRight: horizontalGateRight,
179
- horizontalLeft: horizontalGateLeft,
180
- verticalDown: verticalGateDown,
181
- verticalUp: verticalGateUp
182
- } = computeEdgeConstraints(initialTouch, dimensions, sides, responseDistance);
183
- const {
184
- shouldActivate,
185
- shouldFail
186
- } = shouldActivateOrFail({
187
- deltaX,
188
- deltaY,
189
- hasHorizontal,
190
- hasVertical,
191
- isHorizontalSwipe,
192
- isVerticalSwipe,
193
- allowedRight,
194
- allowedLeft,
195
- allowedUp,
196
- allowedDown,
197
- horizontalGateRight,
198
- horizontalGateLeft,
199
- verticalGateUp,
200
- verticalGateDown,
201
- isSwipingRight,
202
- isSwipingLeft,
203
- isSwipingUp,
204
- isSwipingDown
205
- });
206
- if (shouldActivate) {
207
- gestureOffsetState.value = GestureOffsetState.PASSED;
208
- } else if (shouldFail) {
209
- gestureOffsetState.value = GestureOffsetState.FAILED;
210
- manager?.fail();
211
- }
212
- return {
213
- isSwipingDown,
214
- isSwipingUp,
215
- isSwipingRight,
216
- isSwipingLeft
217
- };
218
- };
219
- //# sourceMappingURL=apply-offset-rules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["DEFAULT_ACTIVATION_AREA","DEFAULT_EDGE_DISTANCE_HORIZONTAL","DEFAULT_EDGE_DISTANCE_VERTICAL","GESTURE_ACTIVATION_THRESHOLD_X","GESTURE_ACTIVATION_THRESHOLD_Y","GESTURE_FAIL_TOLERANCE_X","GESTURE_FAIL_TOLERANCE_Y","GestureOffsetState","normalizeSides","area","mode","left","right","top","bottom","s","computeEdgeConstraints","initialTouch","dimensions","sides","responseDistance","xDist","yDist","horizontalRight","x","horizontalLeft","width","verticalDown","y","verticalUp","height","calculateSwipeDirs","deltaX","deltaY","isVerticalSwipe","Math","abs","isHorizontalSwipe","isSwipingDown","isSwipingUp","isSwipingRight","isSwipingLeft","shouldActivateOrFail","params","hasHorizontal","hasVertical","allowedRight","allowedLeft","allowedUp","allowedDown","horizontalGateRight","horizontalGateLeft","verticalGateUp","verticalGateDown","shouldActivate","shouldFail","hasEnoughHorizontalMovement","hasAcceptableVerticalDeviation","rightOk","leftOk","hasEnoughVerticalMovement","hasAcceptableHorizontalDeviation","upOk","downOk","applyOffsetRules","touch","directions","manager","gestureOffsetState","activationArea","vertical","verticalInverted","horizontal","horizontalInverted","value","PASSED","FAILED","fail"],"sourceRoot":"../../../../../src","sources":["shared/utils/gesture/apply-offset-rules.ts"],"mappings":";;AAEA,SACCA,uBAAuB,EACvBC,gCAAgC,EACh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BAAkB,CAACM,KAAK,KAAKnE,kBAAkB,CAACoE,MAAM,IACtDP,kBAAkB,CAACM,KAAK,KAAKnE,kBAAkB,CAACqE,MAAM,EACrD;IACD,OAAO;MACNtC,aAAa;MACbC,WAAW;MACXC,cAAc;MACdC;IACD,CAAC;EACF;EAEA,MAAMtB,KAAK,GAAGX,cAAc,CAAC6D,cAAc,CAAC;EAE5C,MAAM;IACL9C,eAAe,EAAE2B,mBAAmB;IACpCzB,cAAc,EAAE0B,kBAAkB;IAClCxB,YAAY,EAAE0B,gBAAgB;IAC9BxB,UAAU,EAAEuB;EACb,CAAC,GAAGpC,sBAAsB,CAACC,YAAY,EAAEC,UAAU,EAAEC,KAAK,EAAEC,gBAAgB,CAAC;EAE7E,MAAM;IAAEkC,cAAc;IAAEC;EAAW,CAAC,GAAGb,oBAAoB,CAAC;IAC3DV,MAAM;IACNC,MAAM;IACNW,aAAa;IACbC,WAAW;IACXR,iBAAiB;IACjBH,eAAe;IACfY,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,mBAAmB;IACnBC,kBAAkB;IAClBC,cAAc;IACdC,gBAAgB;IAChBb,cAAc;IACdC,aAAa;IACbF,WAAW;IACXD;EACD,CAAC,CAAC;EAEF,IAAIgB,cAAc,EAAE;IACnBc,kBAAkB,CAACM,KAAK,GAAGnE,kBAAkB,CAACoE,MAAM;EACrD,CAAC,MAAM,IAAIpB,UAAU,EAAE;IACtBa,kBAAkB,CAACM,KAAK,GAAGnE,kBAAkB,CAACqE,MAAM;IACpDT,OAAO,EAAEU,IAAI,CAAC,CAAC;EAChB;EAEA,OAAO;IACNvC,aAAa;IACbC,WAAW;IACXC,cAAc;IACdC;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- import { reanimatedVersion } from "react-native-reanimated";
4
- export const isReanimated4 = () => {
5
- return reanimatedVersion.split(".")[0] === "4";
6
- };
7
- //# sourceMappingURL=version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["reanimatedVersion","isReanimated4","split"],"sourceRoot":"../../../../../src","sources":["shared/utils/reanimated/version.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAClC,OAAOD,iBAAiB,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG;AAC/C,CAAC","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- export declare const Overlay: {
2
- Float: () => import("react/jsx-runtime").JSX.Element | null;
3
- Screen: () => import("react/jsx-runtime").JSX.Element | null;
4
- };
5
- //# sourceMappingURL=overlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/overlay.tsx"],"names":[],"mappings":"AAuJA,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/screens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAYpC,UAAU,WAAW;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,eAAO,MAAM,MAAM,GAAI,yEAOpB,WAAW,4CA8Db,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type DerivedValue } from "react-native-reanimated";
2
- import type { OverlayInterpolationProps } from "../../shared/types/animation.types";
3
- /**
4
- * Aggregates progress values for the overlay owner and every scene that sits
5
- * above it in the stack. The result can be consumed by floating overlays to
6
- * drive animations that span multiple screens.
7
- */
8
- export declare const useOverlayAnimation: () => {
9
- overlayAnimation: DerivedValue<OverlayInterpolationProps>;
10
- optimisticActiveIndex: number;
11
- };
12
- //# sourceMappingURL=use-overlay-animation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-overlay-animation.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/hooks/use-overlay-animation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,yBAAyB,CAAC;AAK7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAGpF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO;IACtC,gBAAgB,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC1D,qBAAqB,EAAE,MAAM,CAAC;CAoE9B,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { BlankStackDescriptorMap } from "../../../types";
2
- export declare const areDescriptorsEqual: (a: BlankStackDescriptorMap, b: BlankStackDescriptorMap) => boolean;
3
- //# sourceMappingURL=are-descriptors-equal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"are-descriptors-equal.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,eAAO,MAAM,mBAAmB,GAC/B,GAAG,uBAAuB,EAC1B,GAAG,uBAAuB,KACxB,OASF,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { NavigationRoute, ParamListBase } from "@react-navigation/native";
2
- import type { BlankStackDescriptorMap } from "../../../types";
3
- export declare function calculateActiveScreensLimit(routes: NavigationRoute<ParamListBase, string>[], descriptors: BlankStackDescriptorMap): number;
4
- //# sourceMappingURL=calculate-active-screens-limit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calculate-active-screens-limit.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,wBAAgB,2BAA2B,CAC1C,MAAM,EAAE,eAAe,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAChD,WAAW,EAAE,uBAAuB,GAClC,MAAM,CAsBR"}
@@ -1,4 +0,0 @@
1
- import type { Route } from "@react-navigation/native";
2
- import type { BlankStackDescriptorMap } from "../../../types";
3
- export declare const composeDescriptors: (routes: Route<string>[], nextDescriptors: BlankStackDescriptorMap, currentDescriptors: BlankStackDescriptorMap) => BlankStackDescriptorMap;
4
- //# sourceMappingURL=compose-descriptors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compose-descriptors.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,eAAO,MAAM,kBAAkB,GAC9B,QAAQ,KAAK,CAAC,MAAM,CAAC,EAAE,EACvB,iBAAiB,uBAAuB,EACxC,oBAAoB,uBAAuB,KACzC,uBASF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Route } from "@react-navigation/native";
2
- export declare const haveSameRouteKeys: (previous: Route<string>[], next: Route<string>[]) => boolean;
3
- //# sourceMappingURL=have-same-route-keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"have-same-route-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,iBAAiB,GAC7B,UAAU,KAAK,CAAC,MAAM,CAAC,EAAE,EACzB,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,KACnB,OAMF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Route } from "@react-navigation/native";
2
- export declare const routesAreIdentical: (a: Route<string>[], b: Route<string>[]) => boolean;
3
- //# sourceMappingURL=routes-are-identical.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes-are-identical.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,kBAAkB,GAC9B,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,EAClB,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAChB,OAKF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-closing-route-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;CAuD/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-previous.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/hooks/use-previous.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAG,OAAO,CAAC,KAAG,CAAC,GAAG,IAQ9C,CAAC"}
@@ -1,20 +0,0 @@
1
- import { type Route } from "@react-navigation/native";
2
- import type { BlankStackDescriptorMap } from "../../../types";
3
- import type { StackNavigationContextProps } from "../types";
4
- export declare const useStackNavigationState: (props: StackNavigationContextProps) => {
5
- state: {
6
- routes: import("@react-navigation/native").NavigationRoute<import("@react-navigation/native").ParamListBase, string>[];
7
- descriptors: BlankStackDescriptorMap;
8
- };
9
- handleCloseRoute: (args_0: {
10
- route: Route<string>;
11
- }) => void;
12
- closingRouteKeys: {
13
- ref: import("react").RefObject<Set<string>>;
14
- shared: import("react-native-reanimated").SharedValue<string[]>;
15
- add: (key: string) => void;
16
- remove: (key: string) => void;
17
- clear: () => void;
18
- };
19
- };
20
- //# sourceMappingURL=use-stack-navigation-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-stack-navigation-state.d.ts","sourceRoot":"","sources":["../../../../../../src/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAgB,MAAM,0BAA0B,CAAC;AAGpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAK9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAuJ5D,eAAO,MAAM,uBAAuB,GAAI,OAAO,2BAA2B;;;;;;eAsEnD,KAAK,CAAC,MAAM,CAAC;;;;;;;;;CAqCnC,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { StackNavigationContextProps, StackNavigationContextValue } from "./types";
2
- declare const withStackNavigationProvider: (Component: import("react").ComponentType<StackNavigationContextValue>) => import("react").FC<StackNavigationContextProps>, useStackNavigationContext: () => StackNavigationContextValue;
3
- export { useStackNavigationContext, withStackNavigationProvider };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blank-stack/utils/with-stack-navigation/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,2BAA2B,EAC3B,2BAA2B,EAC3B,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAQ,2BAA2B,8HAAE,yBAAyB,mCA6D3D,CAAC;AAEJ,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,CAAC"}