react-native-screen-transitions 3.2.0-beta.2 → 3.2.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 (239) hide show
  1. package/README.md +346 -620
  2. package/lib/commonjs/blank-stack/components/stack-view.js +0 -2
  3. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  4. package/lib/commonjs/blank-stack/components/stack-view.native.js +0 -2
  5. package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -1
  6. package/lib/commonjs/component-stack/components/stack-view.js +16 -20
  7. package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
  8. package/lib/commonjs/native-stack/views/NativeStackView.native.js +3 -3
  9. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  10. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -6
  11. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
  12. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +16 -64
  13. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  14. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +5 -8
  15. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -1
  16. package/lib/commonjs/shared/components/screen-lifecycle.js +29 -0
  17. package/lib/commonjs/shared/components/screen-lifecycle.js.map +1 -0
  18. package/lib/commonjs/shared/constants.js +4 -2
  19. package/lib/commonjs/shared/constants.js.map +1 -1
  20. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +3 -0
  21. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  22. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  23. package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js +127 -0
  24. package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js.map +1 -0
  25. package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js +35 -0
  26. package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js.map +1 -0
  27. package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js +58 -0
  28. package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js.map +1 -0
  29. package/lib/commonjs/shared/hooks/navigation/use-history.js +24 -0
  30. package/lib/commonjs/shared/hooks/navigation/use-history.js.map +1 -0
  31. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js +45 -0
  32. package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -0
  33. package/lib/commonjs/shared/hooks/use-stable-callback-value.js +0 -2
  34. package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
  35. package/lib/commonjs/shared/index.js +14 -0
  36. package/lib/commonjs/shared/index.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/keys.provider.js +0 -6
  38. package/lib/commonjs/shared/providers/screen/keys.provider.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -7
  40. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/styles.provider.js +1 -1
  42. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
  43. package/lib/commonjs/shared/providers/stack/direct.provider.js +9 -0
  44. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  45. package/lib/commonjs/shared/providers/stack/managed.provider.js +9 -0
  46. package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
  47. package/lib/commonjs/shared/stores/animation.store.js +3 -13
  48. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  49. package/lib/commonjs/shared/stores/history.store.js +185 -0
  50. package/lib/commonjs/shared/stores/history.store.js.map +1 -0
  51. package/lib/commonjs/shared/types/index.js +3 -3
  52. package/lib/commonjs/shared/types/index.js.map +1 -1
  53. package/lib/commonjs/shared/types/stack.types.js +4 -0
  54. package/lib/commonjs/shared/types/stack.types.js.map +1 -1
  55. package/lib/commonjs/shared/utils/animation/start-screen-transition.js +10 -6
  56. package/lib/commonjs/shared/utils/animation/start-screen-transition.js.map +1 -1
  57. package/lib/commonjs/shared/utils/bounds/index.js +19 -4
  58. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  59. package/lib/module/blank-stack/components/stack-view.js +0 -2
  60. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  61. package/lib/module/blank-stack/components/stack-view.native.js +0 -2
  62. package/lib/module/blank-stack/components/stack-view.native.js.map +1 -1
  63. package/lib/module/component-stack/components/stack-view.js +16 -20
  64. package/lib/module/component-stack/components/stack-view.js.map +1 -1
  65. package/lib/module/native-stack/views/NativeStackView.native.js +3 -3
  66. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  67. package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -6
  68. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  69. package/lib/module/shared/components/overlay/variations/overlay-host.js +16 -64
  70. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  71. package/lib/module/shared/components/overlay/variations/screen-overlay.js +5 -8
  72. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -1
  73. package/lib/module/shared/components/screen-lifecycle.js +24 -0
  74. package/lib/module/shared/components/screen-lifecycle.js.map +1 -0
  75. package/lib/module/shared/constants.js +3 -1
  76. package/lib/module/shared/constants.js.map +1 -1
  77. package/lib/module/shared/hooks/animation/use-screen-animation.js +3 -0
  78. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  79. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  80. package/lib/module/shared/hooks/lifecycle/use-close-transition.js +122 -0
  81. package/lib/module/shared/hooks/lifecycle/use-close-transition.js.map +1 -0
  82. package/lib/module/shared/hooks/lifecycle/use-open-transition.js +32 -0
  83. package/lib/module/shared/hooks/lifecycle/use-open-transition.js.map +1 -0
  84. package/lib/module/shared/hooks/lifecycle/use-screen-events.js +54 -0
  85. package/lib/module/shared/hooks/lifecycle/use-screen-events.js.map +1 -0
  86. package/lib/module/shared/hooks/navigation/use-history.js +20 -0
  87. package/lib/module/shared/hooks/navigation/use-history.js.map +1 -0
  88. package/lib/module/shared/hooks/navigation/use-screen-state.js +41 -0
  89. package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -0
  90. package/lib/module/shared/hooks/use-stable-callback-value.js +0 -3
  91. package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
  92. package/lib/module/shared/index.js +2 -0
  93. package/lib/module/shared/index.js.map +1 -1
  94. package/lib/module/shared/providers/screen/keys.provider.js +0 -6
  95. package/lib/module/shared/providers/screen/keys.provider.js.map +1 -1
  96. package/lib/module/shared/providers/screen/screen-composer.js +9 -7
  97. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  98. package/lib/module/shared/providers/screen/styles.provider.js +1 -1
  99. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
  100. package/lib/module/shared/providers/stack/direct.provider.js +10 -1
  101. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  102. package/lib/module/shared/providers/stack/managed.provider.js +10 -1
  103. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
  104. package/lib/module/shared/stores/animation.store.js +4 -14
  105. package/lib/module/shared/stores/animation.store.js.map +1 -1
  106. package/lib/module/shared/stores/history.store.js +181 -0
  107. package/lib/module/shared/stores/history.store.js.map +1 -0
  108. package/lib/module/shared/types/index.js +1 -1
  109. package/lib/module/shared/types/index.js.map +1 -1
  110. package/lib/module/shared/types/stack.types.js +5 -0
  111. package/lib/module/shared/types/stack.types.js.map +1 -1
  112. package/lib/module/shared/utils/animation/start-screen-transition.js +6 -2
  113. package/lib/module/shared/utils/animation/start-screen-transition.js.map +1 -1
  114. package/lib/module/shared/utils/bounds/index.js +19 -4
  115. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  116. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  117. package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -1
  118. package/lib/typescript/blank-stack/types.d.ts +1 -8
  119. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  120. package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
  121. package/lib/typescript/component-stack/types.d.ts +1 -8
  122. package/lib/typescript/component-stack/types.d.ts.map +1 -1
  123. package/lib/typescript/native-stack/types.d.ts +2 -3
  124. package/lib/typescript/native-stack/types.d.ts.map +1 -1
  125. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  126. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
  127. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -6
  128. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  129. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +4 -0
  130. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -1
  131. package/lib/typescript/shared/components/screen-lifecycle.d.ts +12 -0
  132. package/lib/typescript/shared/components/screen-lifecycle.d.ts.map +1 -0
  133. package/lib/typescript/shared/constants.d.ts +2 -1
  134. package/lib/typescript/shared/constants.d.ts.map +1 -1
  135. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  136. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  137. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts +13 -0
  138. package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts.map +1 -0
  139. package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts +11 -0
  140. package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts.map +1 -0
  141. package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts +7 -0
  142. package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts.map +1 -0
  143. package/lib/typescript/shared/hooks/navigation/use-history.d.ts +37 -0
  144. package/lib/typescript/shared/hooks/navigation/use-history.d.ts.map +1 -0
  145. package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts +40 -0
  146. package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -0
  147. package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -1
  148. package/lib/typescript/shared/index.d.ts +22 -20
  149. package/lib/typescript/shared/index.d.ts.map +1 -1
  150. package/lib/typescript/shared/providers/screen/keys.provider.d.ts +2 -9
  151. package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +1 -1
  152. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -3
  153. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  154. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  155. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
  156. package/lib/typescript/shared/stores/animation.store.d.ts +3 -4
  157. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  158. package/lib/typescript/shared/stores/history.store.d.ts +82 -0
  159. package/lib/typescript/shared/stores/history.store.d.ts.map +1 -0
  160. package/lib/typescript/shared/types/animation.types.d.ts +10 -6
  161. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  162. package/lib/typescript/shared/types/bounds.types.d.ts +1 -1
  163. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  164. package/lib/typescript/shared/types/index.d.ts +2 -2
  165. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  166. package/lib/typescript/shared/types/overlay.types.d.ts +21 -0
  167. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  168. package/lib/typescript/shared/types/screen.types.d.ts +5 -4
  169. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  170. package/lib/typescript/shared/types/stack.types.d.ts +10 -0
  171. package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
  172. package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -1
  173. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  174. package/package.json +1 -1
  175. package/src/blank-stack/components/stack-view.native.tsx +0 -2
  176. package/src/blank-stack/components/stack-view.tsx +0 -2
  177. package/src/blank-stack/types.ts +0 -10
  178. package/src/component-stack/components/stack-view.tsx +19 -23
  179. package/src/component-stack/types.ts +0 -10
  180. package/src/native-stack/types.ts +2 -3
  181. package/src/native-stack/views/NativeStackView.native.tsx +2 -3
  182. package/src/shared/__tests__/history.store.test.ts +550 -0
  183. package/src/shared/components/overlay/variations/float-overlay.tsx +2 -8
  184. package/src/shared/components/overlay/variations/overlay-host.tsx +18 -84
  185. package/src/shared/components/overlay/variations/screen-overlay.tsx +6 -15
  186. package/src/shared/components/screen-lifecycle.tsx +32 -0
  187. package/src/shared/constants.ts +4 -1
  188. package/src/shared/hooks/animation/use-screen-animation.tsx +7 -3
  189. package/src/shared/hooks/gestures/use-build-gestures.tsx +0 -2
  190. package/src/shared/hooks/lifecycle/use-close-transition.ts +147 -0
  191. package/src/shared/hooks/lifecycle/use-open-transition.ts +30 -0
  192. package/src/shared/hooks/lifecycle/use-screen-events.ts +62 -0
  193. package/src/shared/hooks/navigation/use-history.ts +63 -0
  194. package/src/shared/hooks/navigation/use-screen-state.tsx +99 -0
  195. package/src/shared/hooks/use-stable-callback-value.ts +0 -1
  196. package/src/shared/index.ts +5 -0
  197. package/src/shared/providers/screen/keys.provider.tsx +1 -25
  198. package/src/shared/providers/screen/screen-composer.tsx +7 -13
  199. package/src/shared/providers/screen/styles.provider.tsx +1 -1
  200. package/src/shared/providers/stack/direct.provider.tsx +11 -1
  201. package/src/shared/providers/stack/managed.provider.tsx +11 -1
  202. package/src/shared/stores/animation.store.ts +6 -20
  203. package/src/shared/stores/history.store.ts +201 -0
  204. package/src/shared/types/animation.types.ts +11 -6
  205. package/src/shared/types/bounds.types.ts +1 -0
  206. package/src/shared/types/index.ts +2 -7
  207. package/src/shared/types/overlay.types.ts +23 -0
  208. package/src/shared/types/screen.types.ts +5 -4
  209. package/src/shared/types/stack.types.ts +17 -1
  210. package/src/shared/utils/animation/start-screen-transition.ts +5 -2
  211. package/src/shared/utils/bounds/index.ts +35 -4
  212. package/lib/commonjs/native-stack/controllers/native-stack-lifecycle.js +0 -90
  213. package/lib/commonjs/native-stack/controllers/native-stack-lifecycle.js.map +0 -1
  214. package/lib/commonjs/shared/controller/managed-lifecycle.js +0 -78
  215. package/lib/commonjs/shared/controller/managed-lifecycle.js.map +0 -1
  216. package/lib/commonjs/shared/types/state.types.js +0 -9
  217. package/lib/commonjs/shared/types/state.types.js.map +0 -1
  218. package/lib/commonjs/shared/utils/read-shared-value.js +0 -17
  219. package/lib/commonjs/shared/utils/read-shared-value.js.map +0 -1
  220. package/lib/module/native-stack/controllers/native-stack-lifecycle.js +0 -83
  221. package/lib/module/native-stack/controllers/native-stack-lifecycle.js.map +0 -1
  222. package/lib/module/shared/controller/managed-lifecycle.js +0 -72
  223. package/lib/module/shared/controller/managed-lifecycle.js.map +0 -1
  224. package/lib/module/shared/types/state.types.js +0 -5
  225. package/lib/module/shared/types/state.types.js.map +0 -1
  226. package/lib/module/shared/utils/read-shared-value.js +0 -14
  227. package/lib/module/shared/utils/read-shared-value.js.map +0 -1
  228. package/lib/typescript/native-stack/controllers/native-stack-lifecycle.d.ts +0 -8
  229. package/lib/typescript/native-stack/controllers/native-stack-lifecycle.d.ts.map +0 -1
  230. package/lib/typescript/shared/controller/managed-lifecycle.d.ts +0 -9
  231. package/lib/typescript/shared/controller/managed-lifecycle.d.ts.map +0 -1
  232. package/lib/typescript/shared/types/state.types.d.ts +0 -3
  233. package/lib/typescript/shared/types/state.types.d.ts.map +0 -1
  234. package/lib/typescript/shared/utils/read-shared-value.d.ts +0 -7
  235. package/lib/typescript/shared/utils/read-shared-value.d.ts.map +0 -1
  236. package/src/native-stack/controllers/native-stack-lifecycle.tsx +0 -96
  237. package/src/shared/controller/managed-lifecycle.tsx +0 -73
  238. package/src/shared/types/state.types.ts +0 -2
  239. package/src/shared/utils/read-shared-value.ts +0 -15
@@ -0,0 +1,7 @@
1
+ import type { BaseDescriptor } from "../../providers/screen/keys.provider";
2
+ import type { AnimationStoreMap } from "../../stores/animation.store";
3
+ /**
4
+ * Updates the HistoryStore for navigation history tracking.
5
+ */
6
+ export declare function useScreenEvents(current: BaseDescriptor, previous: BaseDescriptor | undefined, animations: AnimationStoreMap): void;
7
+ //# sourceMappingURL=use-screen-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-screen-events.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/lifecycle/use-screen-events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AActE;;GAEG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,cAAc,GAAG,SAAS,EACpC,UAAU,EAAE,iBAAiB,QAsC7B"}
@@ -0,0 +1,37 @@
1
+ import { type HistoryEntry } from "../../stores/history.store";
2
+ import type { ScreenKey } from "../../types/screen.types";
3
+ export interface UseHistoryReturn {
4
+ /**
5
+ * The full history map.
6
+ */
7
+ history: ReadonlyMap<ScreenKey, HistoryEntry>;
8
+ /**
9
+ * Get N most recent history entries.
10
+ * Most recent first.
11
+ */
12
+ getRecent: (n: number) => HistoryEntry[];
13
+ /**
14
+ * Get history entries for a specific navigator.
15
+ * Most recent first.
16
+ */
17
+ getByNavigator: (navigatorKey: string) => HistoryEntry[];
18
+ /**
19
+ * Get the path between two screens (for multi-waypoint interpolation).
20
+ * Returns screen keys in order from 'from' to 'to'.
21
+ */
22
+ getPath: (fromKey: ScreenKey, toKey: ScreenKey) => ScreenKey[];
23
+ /**
24
+ * Get a specific history entry by screen key.
25
+ */
26
+ get: (screenKey: ScreenKey) => HistoryEntry | undefined;
27
+ /**
28
+ * Get the most recent history entry (for forward navigation).
29
+ */
30
+ getMostRecent: () => HistoryEntry | undefined;
31
+ }
32
+ /**
33
+ * Subscribe to history store changes.
34
+ * Returns the full history map and helper methods.
35
+ */
36
+ export declare function useHistory(): UseHistoryReturn;
37
+ //# sourceMappingURL=use-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-history.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/navigation/use-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAE9C;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,YAAY,EAAE,CAAC;IAEzC;;;OAGG;IACH,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,YAAY,EAAE,CAAC;IAEzD;;;OAGG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,SAAS,EAAE,CAAC;IAE/D;;OAEG;IACH,GAAG,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,YAAY,GAAG,SAAS,CAAC;IAExD;;OAEG;IACH,aAAa,EAAE,MAAM,YAAY,GAAG,SAAS,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,gBAAgB,CAmB7C"}
@@ -0,0 +1,40 @@
1
+ import type { Route } from "@react-navigation/native";
2
+ import type { ScreenTransitionConfig } from "../../types/screen.types";
3
+ import type { BaseStackNavigation } from "../../types/stack.types";
4
+ export interface ScreenState<TNavigation extends BaseStackNavigation = BaseStackNavigation> {
5
+ /**
6
+ * The index of this screen in the stack.
7
+ */
8
+ index: number;
9
+ /**
10
+ * Screen options for the currently focused screen.
11
+ */
12
+ options: ScreenTransitionConfig;
13
+ /**
14
+ * All routes currently in the stack.
15
+ */
16
+ routes: Route<string>[];
17
+ /**
18
+ * Route of the currently focused screen in the stack.
19
+ */
20
+ focusedRoute: Route<string>;
21
+ /**
22
+ * Index of the focused route in the stack.
23
+ */
24
+ focusedIndex: number;
25
+ /**
26
+ * Custom metadata from the focused screen's options.
27
+ */
28
+ meta?: Record<string, unknown>;
29
+ /**
30
+ * Navigation object for this screen.
31
+ */
32
+ navigation: TNavigation;
33
+ }
34
+ /**
35
+ * Hook to access screen state information.
36
+ *
37
+ * Use this hook to get navigation state and screen information.
38
+ */
39
+ export declare function useScreenState<TNavigation extends BaseStackNavigation = BaseStackNavigation>(): ScreenState<TNavigation>;
40
+ //# sourceMappingURL=use-screen-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-screen-state.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/navigation/use-screen-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAOtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,MAAM,WAAW,WAAW,CAC3B,WAAW,SAAS,mBAAmB,GAAG,mBAAmB;IAE7D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,sBAAsB,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAExB;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC7B,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,KACzD,WAAW,CAAC,WAAW,CAAC,CAwC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-stable-callback-value.d.ts","sourceRoot":"","sources":["../../../../src/shared/hooks/use-stable-callback-value.ts"],"names":[],"mappings":"AAaA,KAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;AAkChD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,CAAC,SAAS,WAAW,EACnE,QAAQ,CAAC,EAAE,CAAC,aAaD,UAAU,CAAC,CAAC,CAAC,UAMxB"}
1
+ {"version":3,"file":"use-stable-callback-value.d.ts","sourceRoot":"","sources":["../../../../src/shared/hooks/use-stable-callback-value.ts"],"names":[],"mappings":"AAYA,KAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;AAkChD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,CAAC,SAAS,WAAW,EACnE,QAAQ,CAAC,EAAE,CAAC,aAaD,UAAU,CAAC,CAAC,CAAC,UAMxB"}
@@ -4,9 +4,9 @@ import MaskedView from "./components/integrations/masked-view";
4
4
  declare const _default: {
5
5
  createTransitionAwareComponent: typeof createTransitionAwareComponent;
6
6
  View: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
7
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
8
7
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
9
8
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
9
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
10
10
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
11
11
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
12
12
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -107,9 +107,9 @@ declare const _default: {
107
107
  exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
108
108
  } & {
109
109
  animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{
110
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
111
110
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
112
111
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
112
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
113
113
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
114
114
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
115
115
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -214,11 +214,11 @@ declare const _default: {
214
214
  sharedBoundTag?: string;
215
215
  } & import("react").RefAttributes<never>>>;
216
216
  Pressable: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
217
- key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
218
- children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
219
- ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
220
217
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
221
218
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
219
+ children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
220
+ ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
221
+ key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
222
222
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
223
223
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
224
224
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -335,11 +335,11 @@ declare const _default: {
335
335
  exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
336
336
  } & {
337
337
  animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{
338
- key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
339
- children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
340
- ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
341
338
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
342
339
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
340
+ children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
341
+ ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
342
+ key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
343
343
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
344
344
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
345
345
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -460,10 +460,10 @@ declare const _default: {
460
460
  sharedBoundTag?: string;
461
461
  } & import("react").RefAttributes<View | import("react").Component<import("react-native").PressableProps & import("react").RefAttributes<View>, any, any>>>>;
462
462
  ScrollView: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
463
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
464
463
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
465
464
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
466
465
  horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
466
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
467
467
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
468
468
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
469
469
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -635,10 +635,10 @@ declare const _default: {
635
635
  exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
636
636
  } & {
637
637
  animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{
638
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
639
638
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
640
639
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
641
640
  horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
641
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
642
642
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
643
643
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
644
644
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -814,12 +814,12 @@ declare const _default: {
814
814
  sharedBoundTag?: string;
815
815
  } & import("react").RefAttributes<never>>>;
816
816
  FlatList: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
817
- data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
818
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
819
817
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
820
818
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
821
819
  horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
820
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
822
821
  inverted?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
822
+ data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
823
823
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
824
824
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
825
825
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -1008,9 +1008,9 @@ declare const _default: {
1008
1008
  renderItem: import("react-native").ListRenderItem<unknown> | import("react-native-reanimated").SharedValue<import("react-native").ListRenderItem<unknown> | null | undefined> | null | undefined;
1009
1009
  viewabilityConfig?: import("react-native").ViewabilityConfig | import("react-native-reanimated").SharedValue<import("react-native").ViewabilityConfig | undefined> | undefined;
1010
1010
  ItemSeparatorComponent?: import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | null | undefined> | null | undefined;
1011
- ListEmptyComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1012
- ListFooterComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1013
- ListHeaderComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1011
+ ListEmptyComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1012
+ ListFooterComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1013
+ ListHeaderComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1014
1014
  debug?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
1015
1015
  disableVirtualization?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
1016
1016
  getItem?: ((data: any, index: number) => unknown) | import("react-native-reanimated").SharedValue<((data: any, index: number) => unknown) | undefined> | undefined;
@@ -1056,12 +1056,12 @@ declare const _default: {
1056
1056
  exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
1057
1057
  } & {
1058
1058
  animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{
1059
- data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
1060
- children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
1061
1059
  id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
1062
1060
  pointerEvents?: "none" | "box-none" | "box-only" | "auto" | import("react-native-reanimated").SharedValue<"none" | "box-none" | "box-only" | "auto" | undefined> | undefined;
1063
1061
  horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
1062
+ children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
1064
1063
  inverted?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
1064
+ data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
1065
1065
  hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
1066
1066
  needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
1067
1067
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
@@ -1250,9 +1250,9 @@ declare const _default: {
1250
1250
  renderItem: import("react-native").ListRenderItem<unknown> | import("react-native-reanimated").SharedValue<import("react-native").ListRenderItem<unknown> | null | undefined> | null | undefined;
1251
1251
  viewabilityConfig?: import("react-native").ViewabilityConfig | import("react-native-reanimated").SharedValue<import("react-native").ViewabilityConfig | undefined> | undefined;
1252
1252
  ItemSeparatorComponent?: import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | null | undefined> | null | undefined;
1253
- ListEmptyComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1254
- ListFooterComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1255
- ListHeaderComponent?: import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react-native-reanimated").SharedValue<import("react").ComponentType<any> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined> | null | undefined;
1253
+ ListEmptyComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1254
+ ListFooterComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1255
+ ListHeaderComponent?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | import("react-native-reanimated").SharedValue<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType<any> | null | undefined> | null | undefined;
1256
1256
  debug?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
1257
1257
  disableVirtualization?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
1258
1258
  getItem?: ((data: any, index: number) => unknown) | import("react-native-reanimated").SharedValue<((data: any, index: number) => unknown) | undefined> | undefined;
@@ -1327,5 +1327,7 @@ declare const _default: {
1327
1327
  export default _default;
1328
1328
  export { useScreenAnimation } from "./hooks/animation/use-screen-animation";
1329
1329
  export { useScreenGesture } from "./hooks/gestures/use-screen-gesture";
1330
+ export { useHistory } from "./hooks/navigation/use-history";
1331
+ export { type ScreenState, useScreenState, } from "./hooks/navigation/use-screen-state";
1330
1332
  export type { AnimationConfig, BoundEntry, BoundsLink, OverlayInterpolationProps, OverlayMode, OverlayProps, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionConfig, TransitionInterpolatedStyle, TransitionSpec, } from "./types";
1331
1333
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAuCs+D,CAAC;;;;;;;;;;;;;;;;AApCtiE,wBAaE;AAEF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EACN,KAAK,WAAW,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,YAAY,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,yBAAyB,EACzB,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,cAAc,GACd,MAAM,SAAS,CAAC"}
@@ -1,18 +1,10 @@
1
- import type { Descriptor, NavigationProp, ParamListBase, RouteProp } from "@react-navigation/native";
2
- import type { ScreenTransitionConfig } from "../../types/screen.types";
3
- import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute } from "../../types/stack.types";
4
- export type { BaseStackNavigation as BaseNavigation };
5
- export type { BaseStackRoute as BaseRoute };
1
+ import type { BaseStackDescriptor } from "../../types/stack.types";
6
2
  /**
7
3
  * Base descriptor interface - minimal contract for all stack types.
8
4
  * This allows blank-stack and native-stack to work with the shared
9
5
  * providers without tight coupling to React Navigation.
10
6
  */
11
7
  export type BaseDescriptor = BaseStackDescriptor;
12
- /**
13
- * React Navigation specific descriptor - extends base with full typing
14
- */
15
- export type TransitionDescriptor = Descriptor<ScreenTransitionConfig, NavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
16
8
  interface KeysContextType<TDescriptor extends BaseDescriptor = BaseDescriptor> {
17
9
  previous?: TDescriptor;
18
10
  current: TDescriptor;
@@ -26,4 +18,5 @@ interface KeysProviderProps<TDescriptor extends BaseDescriptor> {
26
18
  }
27
19
  export declare function KeysProvider<TDescriptor extends BaseDescriptor>({ children, previous, current, next, }: KeysProviderProps<TDescriptor>): import("react/jsx-runtime").JSX.Element;
28
20
  export declare function useKeys<TDescriptor extends BaseDescriptor = BaseDescriptor>(): KeysContextType<TDescriptor>;
21
+ export {};
29
22
  //# sourceMappingURL=keys.provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/keys.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,SAAS,EACT,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,mBAAmB,IAAI,cAAc,EAAE,CAAC;AACtD,YAAY,EAAE,cAAc,IAAI,SAAS,EAAE,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC5C,sBAAsB,EACtB,cAAc,CAAC,aAAa,CAAC,EAC7B,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC;AAEF,UAAU,eAAe,CAAC,WAAW,SAAS,cAAc,GAAG,cAAc;IAC5E,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAID,UAAU,iBAAiB,CAAC,WAAW,SAAS,cAAc;IAC7D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,WAAW,SAAS,cAAc,EAAE,EAChE,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,GACJ,EAAE,iBAAiB,CAAC,WAAW,CAAC,2CAOhC;AAED,wBAAgB,OAAO,CACtB,WAAW,SAAS,cAAc,GAAG,cAAc,KAC/C,eAAe,CAAC,WAAW,CAAC,CAMhC"}
1
+ {"version":3,"file":"keys.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/keys.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,UAAU,eAAe,CAAC,WAAW,SAAS,cAAc,GAAG,cAAc;IAC5E,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAID,UAAU,iBAAiB,CAAC,WAAW,SAAS,cAAc;IAC7D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,WAAW,SAAS,cAAc,EAAE,EAChE,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,GACJ,EAAE,iBAAiB,CAAC,WAAW,CAAC,2CAOhC;AAED,wBAAgB,OAAO,CACtB,WAAW,SAAS,cAAc,GAAG,cAAc,KAC/C,eAAe,CAAC,WAAW,CAAC,CAMhC"}
@@ -1,13 +1,11 @@
1
1
  import type React from "react";
2
- import type { ComponentType } from "react";
3
2
  import { type BaseDescriptor } from "./keys.provider";
4
3
  type Props<TDescriptor extends BaseDescriptor> = {
5
4
  previous?: TDescriptor;
6
5
  current: TDescriptor;
7
6
  next?: TDescriptor;
8
7
  children: React.ReactNode;
9
- LifecycleController: ComponentType<any>;
10
8
  };
11
- export declare function ScreenComposer<TDescriptor extends BaseDescriptor>({ previous, current, next, children, LifecycleController, }: Props<TDescriptor>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function ScreenComposer<TDescriptor extends BaseDescriptor>({ previous, current, next, children, }: Props<TDescriptor>): import("react/jsx-runtime").JSX.Element;
12
10
  export {};
13
11
  //# sourceMappingURL=screen-composer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen-composer.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/screen-composer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAGpE,KAAK,KAAK,CAAC,WAAW,SAAS,cAAc,IAAI;IAChD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mBAAmB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CACxC,CAAC;AAEF,wBAAgB,cAAc,CAAC,WAAW,SAAS,cAAc,EAAE,EAClE,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,mBAAmB,GACnB,EAAE,KAAK,CAAC,WAAW,CAAC,2CAgBpB"}
1
+ {"version":3,"file":"screen-composer.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/screen-composer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAGpE,KAAK,KAAK,CAAC,WAAW,SAAS,cAAc,IAAI;IAChD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,wBAAgB,cAAc,CAAC,WAAW,SAAS,cAAc,EAAE,EAClE,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,GACR,EAAE,KAAK,CAAC,WAAW,CAAC,2CAYpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,MAAM,6BAA6B,CAAC;AAQrC,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7D,UAAU,EAAE,qBAAqB,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KAChB,qBAAqB,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACvC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,oBAAoB,EAAE,wBAAwB,CAAC;IAC/C,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,sBAAsB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC7C;AAOD,iBAAS,qBAAqB,IAAI,uBAAuB,CAQxD;AAqJD;;;GAGG;AACH,iBAAS,eAAe,CAAC,MAAM,SAAS,gBAAgB,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,GACrD,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAYlB;AAED,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,MAAM,6BAA6B,CAAC;AASrC,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7D,UAAU,EAAE,qBAAqB,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KAChB,qBAAqB,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACvC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,oBAAoB,EAAE,wBAAwB,CAAC;IAC/C,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,sBAAsB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC7C;AAOD,iBAAS,qBAAqB,IAAI,uBAAuB,CAQxD;AAqJD;;;GAGG;AACH,iBAAS,eAAe,CAAC,MAAM,SAAS,gBAAgB,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,GACrD,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAqBlB;AAED,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"managed.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/managed.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,MAAM,yBAAyB,CAAC;AAKjC;;;GAGG;AACH,MAAM,WAAW,iBAAiB,CACjC,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAC7D,WAAW,SAAS,mBAAmB,GAAG,mBAAmB;IAE7D,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW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,CAAC,MAAM,CAAC,CAAC;CAC7C;AAMD,iBAAS,sBAAsB,CAC9B,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,KACzD,wBAAwB,CAAC,WAAW,CAAC,CAQzC;AAiID;;;;GAIG;AACH,iBAAS,gBAAgB,CACxB,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAC7D,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAE7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,GACnE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CA0BvD;AAED,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAC"}
@@ -2,18 +2,17 @@ import { type SharedValue } from "react-native-reanimated";
2
2
  import type { ScreenKey } from "../types/screen.types";
3
3
  export type AnimationStoreMap = {
4
4
  progress: SharedValue<number>;
5
- closing: SharedValue<number>;
6
5
  animating: SharedValue<number>;
6
+ closing: SharedValue<number>;
7
+ entering: SharedValue<number>;
7
8
  };
8
- declare function getAnimation(key: ScreenKey, type: "progress" | "closing" | "animating"): SharedValue<number>;
9
+ declare function getAnimation(key: ScreenKey, type: keyof AnimationStoreMap): SharedValue<number>;
9
10
  declare function getAll(key: ScreenKey): AnimationStoreMap;
10
11
  declare function clear(routeKey: ScreenKey): void;
11
- declare function debugStoreSize(): void;
12
12
  export declare const AnimationStore: {
13
13
  getAnimation: typeof getAnimation;
14
14
  clear: typeof clear;
15
15
  getAll: typeof getAll;
16
- debugStoreSize: typeof debugStoreSize;
17
16
  };
18
17
  export {};
19
18
  //# sourceMappingURL=animation.store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.store.d.ts","sourceRoot":"","sources":["../../../../src/shared/stores/animation.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS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82 @@
1
+ import type { ScreenKey } from "../types/screen.types";
2
+ import type { BaseStackDescriptor } from "../types/stack.types";
3
+ interface HistoryEntry {
4
+ descriptor: BaseStackDescriptor;
5
+ navigatorKey: string;
6
+ timestamp: number;
7
+ }
8
+ /**
9
+ * Subscribe for useSyncExternalStore compatibility
10
+ */
11
+ declare function subscribe(listener: () => void): () => void;
12
+ /**
13
+ * Get current snapshot for useSyncExternalStore
14
+ */
15
+ declare function getSnapshot(): ReadonlyMap<ScreenKey, HistoryEntry>;
16
+ /**
17
+ * Add or move screen to top (most recent).
18
+ * LRU behavior: if exists, delete and re-add to move to end.
19
+ * @param descriptor - The screen descriptor
20
+ * @param navigatorKey - The navigator's key (for cleanup on unmount)
21
+ * @param historyKey - Optional custom key (defaults to navigatorKey:routeName)
22
+ */
23
+ declare function focus(descriptor: BaseStackDescriptor, navigatorKey: string, historyKey?: ScreenKey): void;
24
+ /**
25
+ * Get most recent entry (for forward nav).
26
+ */
27
+ declare function getMostRecent(): HistoryEntry | undefined;
28
+ /**
29
+ * Get N most recent entries (most recent first).
30
+ */
31
+ declare function getRecent(n: number): HistoryEntry[];
32
+ /**
33
+ * Get entry by key.
34
+ */
35
+ declare function get(key: ScreenKey): HistoryEntry | undefined;
36
+ /**
37
+ * Check if key exists.
38
+ */
39
+ declare function has(key: ScreenKey): boolean;
40
+ /**
41
+ * Get all entries for a navigator (in recency order, most recent first).
42
+ */
43
+ declare function getByNavigator(navigatorKey: string): HistoryEntry[];
44
+ /**
45
+ * Get path between two screens (for multi-waypoint interpolation).
46
+ * Returns keys in order from 'from' to 'to'.
47
+ */
48
+ declare function getPath(fromKey: ScreenKey, toKey: ScreenKey): ScreenKey[];
49
+ /**
50
+ * Clear all entries for a navigator (on unmount).
51
+ */
52
+ declare function clearNavigator(navigatorKey: string): void;
53
+ /**
54
+ * Get current size of history.
55
+ */
56
+ declare function size(): number;
57
+ /**
58
+ * Convert to array (in recency order, oldest first).
59
+ */
60
+ declare function toArray(): HistoryEntry[];
61
+ /**
62
+ * Clear all history entries (for testing).
63
+ * @internal
64
+ */
65
+ declare function _reset(): void;
66
+ export declare const HistoryStore: {
67
+ focus: typeof focus;
68
+ getMostRecent: typeof getMostRecent;
69
+ getRecent: typeof getRecent;
70
+ get: typeof get;
71
+ has: typeof has;
72
+ getByNavigator: typeof getByNavigator;
73
+ getPath: typeof getPath;
74
+ clearNavigator: typeof clearNavigator;
75
+ size: typeof size;
76
+ toArray: typeof toArray;
77
+ subscribe: typeof subscribe;
78
+ getSnapshot: typeof getSnapshot;
79
+ _reset: typeof _reset;
80
+ };
81
+ export type { HistoryEntry };
82
+ //# sourceMappingURL=history.store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.store.d.ts","sourceRoot":"","sources":["../../../../src/shared/stores/history.store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE,UAAU,YAAY;IACrB,UAAU,EAAE,mBAAmB,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CAClB;AAoBD;;GAEG;AACH,iBAAS,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAGnD;AAED;;GAEG;AACH,iBAAS,WAAW,IAAI,WAAW,CAAC,SAAS,EAAE,YAAY,CAAC,CAE3D;AAED;;;;;;GAMG;AACH,iBAAS,KAAK,CACb,UAAU,EAAE,mBAAmB,EAC/B,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,SAAS,GACpB,IAAI,CAsBN;AAED;;GAEG;AACH,iBAAS,aAAa,IAAI,YAAY,GAAG,SAAS,CAGjD;AAED;;GAEG;AACH,iBAAS,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,EAAE,CAG5C;AAED;;GAEG;AACH,iBAAS,GAAG,CAAC,GAAG,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,CAErD;AAED;;GAEG;AACH,iBAAS,GAAG,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAEpC;AAED;;GAEG;AACH,iBAAS,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,EAAE,CAQ5D;AAED;;;GAGG;AACH,iBAAS,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAalE;AAED;;GAEG;AACH,iBAAS,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAclD;AAED;;GAEG;AACH,iBAAS,IAAI,IAAI,MAAM,CAEtB;AAED;;GAEG;AACH,iBAAS,OAAO,IAAI,YAAY,EAAE,CAEjC;AAED;;;GAGG;AACH,iBAAS,MAAM,IAAI,IAAI,CAItB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type { StyleProps, WithSpringConfig, WithTimingConfig } from "react-native-reanimated";
2
2
  import type { EdgeInsets } from "react-native-safe-area-context";
3
- import type { BaseRoute } from "../providers/screen/keys.provider";
4
3
  import type { BoundsAccessor } from "./bounds.types";
5
4
  import type { GestureValues } from "./gesture.types";
6
5
  import type { Layout } from "./screen.types";
6
+ import type { BaseStackRoute } from "./stack.types";
7
7
  export interface OverlayInterpolationProps {
8
8
  progress: number;
9
9
  layouts: {
@@ -32,6 +32,14 @@ export type ScreenTransitionState = {
32
32
  * Use this to trigger different animations when navigating back vs forward.
33
33
  */
34
34
  closing: number;
35
+ /**
36
+ * Whether this screen is in the process of entering.
37
+ * - `0`: Screen is closing or inactive
38
+ * - `1`: Screen is opening/entering
39
+ *
40
+ * Use this to trigger different animations when navigating back vs forward.
41
+ */
42
+ entering: number;
35
43
  /**
36
44
  * Whether this screen is currently animating.
37
45
  * - `0`: No animation in progress
@@ -58,12 +66,8 @@ export type ScreenTransitionState = {
58
66
  meta?: Record<string, unknown>;
59
67
  /**
60
68
  * The route object for this screen.
61
- *
62
- * @deprecated Use `meta` instead for conditional animation logic.
63
- * Pass route params via options: `options={({ route }) => ({ meta: { id: route.params.id } })}`
64
- * This field may be removed in a future version.
65
69
  */
66
- route: BaseRoute;
70
+ route: BaseStackRoute;
67
71
  };
68
72
  export interface ScreenInterpolationProps {
69
73
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/animation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QACR;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;IAEvB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;;;;;OAMG;IACH,KAAK,EAAE,SA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AE,eAAe,CAAC;CACxB"}
1
+ {"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/animation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QACR;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;IAEvB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,QAAQ,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,OAAO,EAAE,qBAAqB,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAExC;;OAEG;IACH,OAAO,EAAE;QACR;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IAEF;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;OAUG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;;OAGG;IACH,QAAQ,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAE5C;;;OAGG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,uBAAuB,GAAG,CACrC,KAAK,EAAE,wBAAwB,KAC3B,2BAA2B,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAE1B;;OAEG;IACH,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC;CACxB"}
@@ -22,6 +22,6 @@ export type BoundsAccessor = {
22
22
  getSnapshot: (id: string, key?: string) => Snapshot | null;
23
23
  getLink: (id: string) => BoundsLink | null;
24
24
  interpolateStyle: (id: string, property: keyof StyleProps, fallback?: number) => number;
25
- interpolateBounds: (id: string, property: keyof MeasuredDimensions, fallback?: number) => number;
25
+ interpolateBounds: (id: string, property: keyof MeasuredDimensions, fallbackOrTargetKey?: number | string, fallback?: number) => number;
26
26
  };
27
27
  //# sourceMappingURL=bounds.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EACX,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,CAAC,CAAC,SAAS,oBAAoB,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAClE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC3D,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,UAAU,GAAG,IAAI,CAAC;IAC3C,gBAAgB,EAAE,CACjB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,UAAU,EAC1B,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;IACZ,iBAAiB,EAAE,CAClB,EAAE,EAAE,MAAM,EACV,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M,GAAG,MAAM,EACrC,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;CACZ,CAAC"}
@@ -1,8 +1,8 @@
1
+ export { FALSE, TRUE } from "../constants";
1
2
  export type { AnimationConfig, OverlayInterpolationProps, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionState, TransitionInterpolatedStyle, TransitionSpec, } from "./animation.types";
2
3
  export type { BoundEntry, BoundsAccessor, BoundsLink, BoundsMethod, } from "./bounds.types";
3
4
  export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, SideActivation, } from "./gesture.types";
4
5
  export type { OverlayMode, OverlayProps, } from "./overlay.types";
5
6
  export type { Layout, ScreenKey, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
6
- export type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, } from "./stack.types";
7
- export { FALSE, TRUE } from "./state.types";
7
+ export type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, DescriptorMap, } from "./stack.types";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,cAAc,GACd,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,GACZ,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACd,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACX,WAAW,EACX,YAAY,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,GACZ,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACX,WAAW,EACX,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
@@ -1,6 +1,12 @@
1
1
  import type { Route } from "@react-navigation/native";
2
2
  import type { DerivedValue } from "react-native-reanimated";
3
3
  import type { OverlayInterpolationProps, ScreenInterpolationProps } from "./animation.types";
4
+ import type { ScreenTransitionConfig } from "./screen.types";
5
+ /**
6
+ * @deprecated Overlay mode is no longer needed. Overlays now always render as "float" mode.
7
+ * For per-screen overlays, render an absolute-positioned view directly in your screen component
8
+ * and use `useScreenAnimation()` to access animation values.
9
+ */
4
10
  export type OverlayMode = "float" | "screen";
5
11
  /**
6
12
  * Props passed to overlay components.
@@ -27,12 +33,27 @@ export type OverlayProps<TNavigation = unknown> = {
27
33
  * Navigation prop for the overlay.
28
34
  */
29
35
  navigation: TNavigation;
36
+ /**
37
+ * Screen options for the currently focused screen.
38
+ */
39
+ options: ScreenTransitionConfig;
40
+ /**
41
+ * Stack progress relative to the overlay's position.
42
+ * This is equivalent to `useScreenAnimation().stackProgress`.
43
+ */
44
+ progress: DerivedValue<number>;
30
45
  /**
31
46
  * Animation values for the overlay.
47
+ *
48
+ * @deprecated Use `progress` prop or `useScreenAnimation()` instead.
49
+ * This prop will be removed in a future version.
32
50
  */
33
51
  overlayAnimation: DerivedValue<OverlayInterpolationProps>;
34
52
  /**
35
53
  * Animation values for the screen.
54
+ *
55
+ * @deprecated Use `useScreenAnimation()` hook directly instead.
56
+ * This prop will be removed in a future version.
36
57
  */
37
58
  screenAnimation: DerivedValue<ScreenInterpolationProps>;
38
59
  };