react-native-screen-transitions 3.2.0-beta.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 (273) 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} +31 -11
  5. package/lib/commonjs/blank-stack/components/adjusted-screen.js.map +1 -0
  6. package/lib/commonjs/blank-stack/components/stack-view.js +33 -41
  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 +3 -10
  17. package/lib/commonjs/component-stack/index.js.map +1 -1
  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/native-stack/views/NativeStackView.native.js +103 -105
  21. package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
  22. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +0 -25
  23. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  24. package/lib/commonjs/shared/components/overlay/index.js +1 -3
  25. package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
  26. package/lib/commonjs/shared/constants.js +3 -1
  27. package/lib/commonjs/shared/constants.js.map +1 -1
  28. package/lib/commonjs/{blank-stack/controllers/blank-stack-lifecycle.js → shared/controller/managed-lifecycle.js} +16 -19
  29. package/lib/commonjs/shared/controller/managed-lifecycle.js.map +1 -0
  30. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js +7 -1
  31. package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +1 -1
  32. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +2 -2
  33. package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
  34. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +3 -1
  35. package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  36. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  37. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +5 -0
  38. package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  39. package/lib/commonjs/shared/providers/layout-anchor.provider.js +73 -0
  40. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -0
  41. package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -4
  42. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  43. package/lib/commonjs/shared/providers/screen/keys.provider.js +2 -2
  44. package/lib/commonjs/shared/providers/screen/styles.provider.js +38 -4
  45. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
  46. package/lib/commonjs/shared/providers/stack/core.provider.js +35 -12
  47. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
  48. package/lib/commonjs/shared/providers/stack/direct.provider.js +6 -4
  49. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  50. package/lib/commonjs/shared/providers/stack/managed.provider.js +7 -5
  51. package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
  52. package/lib/commonjs/shared/types/index.js.map +1 -1
  53. package/lib/commonjs/shared/types/stack.types.js +26 -0
  54. package/lib/commonjs/shared/types/stack.types.js.map +1 -1
  55. package/lib/commonjs/shared/utils/bounds/index.js +13 -1
  56. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  57. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js +20 -45
  58. package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  59. package/lib/module/blank-stack/components/adjusted-screen-container.js +31 -0
  60. package/lib/module/blank-stack/components/adjusted-screen-container.js.map +1 -0
  61. package/lib/module/blank-stack/components/{screens.js → adjusted-screen.js} +30 -10
  62. package/lib/module/blank-stack/components/adjusted-screen.js.map +1 -0
  63. package/lib/module/blank-stack/components/stack-view.js +33 -41
  64. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  65. package/lib/module/blank-stack/components/stack-view.native.js +76 -0
  66. package/lib/module/blank-stack/components/stack-view.native.js.map +1 -0
  67. package/lib/module/component-stack/components/component-screen-container.js +18 -0
  68. package/lib/module/component-stack/components/component-screen-container.js.map +1 -0
  69. package/lib/module/component-stack/components/component-screen.js +30 -0
  70. package/lib/module/component-stack/components/component-screen.js.map +1 -0
  71. package/lib/module/component-stack/components/stack-view.js +59 -0
  72. package/lib/module/component-stack/components/stack-view.js.map +1 -0
  73. package/lib/module/component-stack/index.js +1 -2
  74. package/lib/module/component-stack/index.js.map +1 -1
  75. package/lib/module/component-stack/navigators/create-component-stack-navigator.js +48 -0
  76. package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -0
  77. package/lib/module/native-stack/views/NativeStackView.native.js +103 -105
  78. package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
  79. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +0 -24
  80. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  81. package/lib/module/shared/components/overlay/index.js +1 -3
  82. package/lib/module/shared/components/overlay/index.js.map +1 -1
  83. package/lib/module/shared/constants.js +2 -0
  84. package/lib/module/shared/constants.js.map +1 -1
  85. package/lib/module/{blank-stack/controllers/blank-stack-lifecycle.js → shared/controller/managed-lifecycle.js} +14 -17
  86. package/lib/module/shared/controller/managed-lifecycle.js.map +1 -0
  87. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js +8 -1
  88. package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +1 -1
  89. package/lib/module/shared/hooks/animation/use-screen-animation.js +2 -2
  90. package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
  91. package/lib/module/shared/hooks/gestures/use-build-gestures.js +4 -2
  92. package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
  93. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  94. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +5 -0
  95. package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
  96. package/lib/module/shared/providers/layout-anchor.provider.js +67 -0
  97. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -0
  98. package/lib/module/shared/providers/register-bounds.provider.js +9 -4
  99. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  100. package/lib/module/shared/providers/screen/keys.provider.js +2 -2
  101. package/lib/module/shared/providers/screen/styles.provider.js +39 -5
  102. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
  103. package/lib/module/shared/providers/stack/core.provider.js +34 -11
  104. package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
  105. package/lib/module/shared/providers/stack/direct.provider.js +6 -4
  106. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  107. package/lib/module/shared/providers/stack/managed.provider.js +7 -5
  108. package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
  109. package/lib/module/shared/types/index.js.map +1 -1
  110. package/lib/module/shared/types/stack.types.js +30 -1
  111. package/lib/module/shared/types/stack.types.js.map +1 -1
  112. package/lib/module/shared/utils/bounds/index.js +13 -1
  113. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  114. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js +20 -45
  115. package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
  116. package/lib/typescript/blank-stack/components/adjusted-screen-container.d.ts +6 -0
  117. package/lib/typescript/blank-stack/components/adjusted-screen-container.d.ts.map +1 -0
  118. package/lib/typescript/blank-stack/components/{screens.d.ts → adjusted-screen.d.ts} +2 -2
  119. package/lib/typescript/blank-stack/components/adjusted-screen.d.ts.map +1 -0
  120. package/lib/typescript/blank-stack/components/stack-view.d.ts +1 -1
  121. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  122. package/lib/typescript/blank-stack/components/stack-view.native.d.ts +4 -0
  123. package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -0
  124. package/lib/typescript/blank-stack/types.d.ts +3 -1
  125. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  126. package/lib/typescript/component-stack/components/component-screen-container.d.ts +6 -0
  127. package/lib/typescript/component-stack/components/component-screen-container.d.ts.map +1 -0
  128. package/lib/typescript/component-stack/components/component-screen.d.ts +8 -0
  129. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -0
  130. package/lib/typescript/component-stack/components/stack-view.d.ts +4 -0
  131. package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -0
  132. package/lib/typescript/component-stack/index.d.ts +2 -3
  133. package/lib/typescript/component-stack/index.d.ts.map +1 -1
  134. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +16 -0
  135. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -0
  136. package/lib/typescript/component-stack/types.d.ts +24 -191
  137. package/lib/typescript/component-stack/types.d.ts.map +1 -1
  138. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +1 -1
  139. package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  140. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +0 -9
  141. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
  142. package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
  143. package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
  144. package/lib/typescript/shared/constants.d.ts +1 -0
  145. package/lib/typescript/shared/constants.d.ts.map +1 -1
  146. package/lib/typescript/shared/controller/managed-lifecycle.d.ts +9 -0
  147. package/lib/typescript/shared/controller/managed-lifecycle.d.ts.map +1 -0
  148. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts +7 -0
  149. package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +1 -1
  150. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +2 -1
  151. package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
  152. package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  153. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +4 -9
  154. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  155. package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
  156. package/lib/typescript/shared/index.d.ts +13 -13
  157. package/lib/typescript/shared/index.d.ts.map +1 -1
  158. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +34 -0
  159. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -0
  160. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  161. package/lib/typescript/shared/providers/screen/keys.provider.d.ts +2 -2
  162. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
  163. package/lib/typescript/shared/providers/stack/core.provider.d.ts +15 -4
  164. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
  165. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  166. package/lib/typescript/shared/providers/stack/managed.provider.d.ts +1 -1
  167. package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
  168. package/lib/typescript/shared/types/bounds.types.d.ts +1 -0
  169. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  170. package/lib/typescript/shared/types/index.d.ts +1 -1
  171. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  172. package/lib/typescript/shared/types/overlay.types.d.ts +1 -12
  173. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  174. package/lib/typescript/shared/types/screen.types.d.ts +2 -2
  175. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  176. package/lib/typescript/shared/types/stack.types.d.ts +5 -2
  177. package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
  178. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  179. package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
  180. package/package.json +1 -1
  181. package/src/blank-stack/components/adjusted-screen-container.tsx +25 -0
  182. package/src/blank-stack/components/{screens.tsx → adjusted-screen.tsx} +33 -12
  183. package/src/blank-stack/components/stack-view.native.tsx +94 -0
  184. package/src/blank-stack/components/stack-view.tsx +41 -47
  185. package/src/blank-stack/types.ts +3 -2
  186. package/src/component-stack/components/component-screen-container.tsx +15 -0
  187. package/src/component-stack/components/component-screen.tsx +40 -0
  188. package/src/component-stack/components/stack-view.tsx +74 -0
  189. package/src/component-stack/index.ts +6 -12
  190. package/src/component-stack/navigators/create-component-stack-navigator.tsx +88 -0
  191. package/src/component-stack/types.ts +80 -188
  192. package/src/native-stack/views/NativeStackView.native.tsx +104 -106
  193. package/src/shared/__tests__/sync-routes-with-removed.test.ts +0 -146
  194. package/src/shared/components/overlay/helpers/get-active-overlay.ts +0 -26
  195. package/src/shared/components/overlay/index.ts +0 -2
  196. package/src/shared/constants.ts +3 -0
  197. package/src/{blank-stack/controllers/blank-stack-lifecycle.tsx → shared/controller/managed-lifecycle.tsx} +14 -18
  198. package/src/shared/hooks/animation/use-high-refresh-rate.tsx +7 -1
  199. package/src/shared/hooks/animation/use-screen-animation.tsx +5 -3
  200. package/src/shared/hooks/gestures/use-build-gestures.tsx +9 -1
  201. package/src/shared/hooks/navigation/use-stack.tsx +4 -15
  202. package/src/shared/hooks/reanimated/use-shared-value-state.ts +5 -0
  203. package/src/shared/index.ts +2 -1
  204. package/src/shared/providers/layout-anchor.provider.tsx +81 -0
  205. package/src/shared/providers/register-bounds.provider.tsx +11 -4
  206. package/src/shared/providers/screen/keys.provider.tsx +2 -2
  207. package/src/shared/providers/screen/styles.provider.tsx +50 -5
  208. package/src/shared/providers/stack/core.provider.tsx +51 -28
  209. package/src/shared/providers/stack/direct.provider.tsx +4 -1
  210. package/src/shared/providers/stack/managed.provider.tsx +5 -2
  211. package/src/shared/types/bounds.types.ts +5 -0
  212. package/src/shared/types/index.ts +0 -1
  213. package/src/shared/types/overlay.types.ts +1 -14
  214. package/src/shared/types/screen.types.ts +2 -8
  215. package/src/shared/types/stack.types.ts +6 -2
  216. package/src/shared/utils/bounds/index.ts +18 -1
  217. package/src/shared/utils/navigation/sync-routes-with-removed.ts +28 -58
  218. package/lib/commonjs/blank-stack/components/screens.js.map +0 -1
  219. package/lib/commonjs/blank-stack/controllers/blank-stack-lifecycle.js.map +0 -1
  220. package/lib/commonjs/component-stack/components/component-view.js +0 -63
  221. package/lib/commonjs/component-stack/components/component-view.js.map +0 -1
  222. package/lib/commonjs/component-stack/components/screens.js +0 -64
  223. package/lib/commonjs/component-stack/components/screens.js.map +0 -1
  224. package/lib/commonjs/component-stack/controllers/component-stack-lifecycle.js +0 -82
  225. package/lib/commonjs/component-stack/controllers/component-stack-lifecycle.js.map +0 -1
  226. package/lib/commonjs/component-stack/hooks/use-component-navigation-builder.js +0 -321
  227. package/lib/commonjs/component-stack/hooks/use-component-navigation-builder.js.map +0 -1
  228. package/lib/commonjs/component-stack/hooks/use-component-navigation.js +0 -28
  229. package/lib/commonjs/component-stack/hooks/use-component-navigation.js.map +0 -1
  230. package/lib/commonjs/component-stack/navigators/create-component-navigator.js +0 -97
  231. package/lib/commonjs/component-stack/navigators/create-component-navigator.js.map +0 -1
  232. package/lib/commonjs/shared/components/overlay/variations/container-overlay.js +0 -99
  233. package/lib/commonjs/shared/components/overlay/variations/container-overlay.js.map +0 -1
  234. package/lib/module/blank-stack/components/screens.js.map +0 -1
  235. package/lib/module/blank-stack/controllers/blank-stack-lifecycle.js.map +0 -1
  236. package/lib/module/component-stack/components/component-view.js +0 -58
  237. package/lib/module/component-stack/components/component-view.js.map +0 -1
  238. package/lib/module/component-stack/components/screens.js +0 -58
  239. package/lib/module/component-stack/components/screens.js.map +0 -1
  240. package/lib/module/component-stack/controllers/component-stack-lifecycle.js +0 -76
  241. package/lib/module/component-stack/controllers/component-stack-lifecycle.js.map +0 -1
  242. package/lib/module/component-stack/hooks/use-component-navigation-builder.js +0 -316
  243. package/lib/module/component-stack/hooks/use-component-navigation-builder.js.map +0 -1
  244. package/lib/module/component-stack/hooks/use-component-navigation.js +0 -25
  245. package/lib/module/component-stack/hooks/use-component-navigation.js.map +0 -1
  246. package/lib/module/component-stack/navigators/create-component-navigator.js +0 -91
  247. package/lib/module/component-stack/navigators/create-component-navigator.js.map +0 -1
  248. package/lib/module/shared/components/overlay/variations/container-overlay.js +0 -97
  249. package/lib/module/shared/components/overlay/variations/container-overlay.js.map +0 -1
  250. package/lib/typescript/blank-stack/components/screens.d.ts.map +0 -1
  251. package/lib/typescript/blank-stack/controllers/blank-stack-lifecycle.d.ts +0 -9
  252. package/lib/typescript/blank-stack/controllers/blank-stack-lifecycle.d.ts.map +0 -1
  253. package/lib/typescript/component-stack/components/component-view.d.ts +0 -4
  254. package/lib/typescript/component-stack/components/component-view.d.ts.map +0 -1
  255. package/lib/typescript/component-stack/components/screens.d.ts +0 -9
  256. package/lib/typescript/component-stack/components/screens.d.ts.map +0 -1
  257. package/lib/typescript/component-stack/controllers/component-stack-lifecycle.d.ts +0 -10
  258. package/lib/typescript/component-stack/controllers/component-stack-lifecycle.d.ts.map +0 -1
  259. package/lib/typescript/component-stack/hooks/use-component-navigation-builder.d.ts +0 -19
  260. package/lib/typescript/component-stack/hooks/use-component-navigation-builder.d.ts.map +0 -1
  261. package/lib/typescript/component-stack/hooks/use-component-navigation.d.ts +0 -19
  262. package/lib/typescript/component-stack/hooks/use-component-navigation.d.ts.map +0 -1
  263. package/lib/typescript/component-stack/navigators/create-component-navigator.d.ts +0 -35
  264. package/lib/typescript/component-stack/navigators/create-component-navigator.d.ts.map +0 -1
  265. package/lib/typescript/shared/components/overlay/variations/container-overlay.d.ts +0 -8
  266. package/lib/typescript/shared/components/overlay/variations/container-overlay.d.ts.map +0 -1
  267. package/src/component-stack/components/component-view.tsx +0 -72
  268. package/src/component-stack/components/screens.tsx +0 -86
  269. package/src/component-stack/controllers/component-stack-lifecycle.tsx +0 -80
  270. package/src/component-stack/hooks/use-component-navigation-builder.tsx +0 -388
  271. package/src/component-stack/hooks/use-component-navigation.tsx +0 -22
  272. package/src/component-stack/navigators/create-component-navigator.tsx +0 -104
  273. package/src/shared/components/overlay/variations/container-overlay.tsx +0 -98
@@ -7,6 +7,6 @@ interface ScreenProps {
7
7
  freezeOnBlur?: boolean;
8
8
  shouldFreeze?: boolean;
9
9
  }
10
- export declare const Screen: ({ routeKey, index, isPreloaded, children, freezeOnBlur, shouldFreeze, }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const AdjustedScreen: ({ routeKey, index, isPreloaded, children, freezeOnBlur, shouldFreeze, }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
12
- //# sourceMappingURL=screens.d.ts.map
12
+ //# sourceMappingURL=adjusted-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adjusted-screen.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/adjusted-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAgBpC,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;AAaD,eAAO,MAAM,cAAc,GAAI,yEAO5B,WAAW,4CA6Eb,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { BlankStackDescriptor, BlankStackNavigationHelpers } from "../types";
3
- export declare const StackView: React.FC<import("../../shared/providers/stack/managed.provider").ManagedStackProps<BlankStackDescriptor, BlankStackNavigationHelpers>>;
3
+ export declare const StackView: React.FC<import("../../shared/providers/stack/managed.provider").ManagedStackProps<BlankStackDescriptor, BlankStackNavigationHelpers> & import("../../shared/providers/stack/core.provider").StackCoreConfig>;
4
4
  //# sourceMappingURL=stack-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/stack-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AA0BlB,eAAO,MAAM,SAAS,wIAqDrB,CAAC"}
1
+ {"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/stack-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AA2BlB,eAAO,MAAM,SAAS,+MAoDrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { BlankStackDescriptor, BlankStackNavigationHelpers } from "../types";
3
+ export declare const StackView: React.FC<import("../../shared/providers/stack/managed.provider").ManagedStackProps<BlankStackDescriptor, BlankStackNavigationHelpers> & import("../../shared/providers/stack/core.provider").StackCoreConfig>;
4
+ //# sourceMappingURL=stack-view.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-view.native.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/stack-view.native.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AA2BlB,eAAO,MAAM,SAAS,+MAoDrB,CAAC"}
@@ -15,7 +15,9 @@ export type BlankStackScene = {
15
15
  route: Route<string>;
16
16
  descriptor: BlankStackDescriptor;
17
17
  };
18
- type BlankStackNavigationConfig = {};
18
+ type BlankStackNavigationConfig = {
19
+ DISABLE_NATIVE_SCREENS?: boolean;
20
+ };
19
21
  /**
20
22
  * Props passed to overlay components in blank-stack.
21
23
  * Uses the shared OverlayProps type with blank-stack's navigation type.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/blank-stack/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,wBAAwB,CACnC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,EAC1C,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAC/C,cAAc,CACjB,SAAS,EACT,SAAS,EACT,WAAW,EACX,oBAAoB,CAAC,SAAS,CAAC,EAC/B,2BAA2B,EAC3B,4BAA4B,CAC5B,GACA,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAE/B,MAAM,MAAM,qBAAqB,CAChC,SA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aAAa,CAAC,CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;CACpC,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ }
4
+ export declare const ComponentScreenContainer: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=component-screen-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-screen-container.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/component-screen-container.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,wBAAwB,GAAI,cAAc,KAAK,4CAE3D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type * as React from "react";
2
+ interface ScreenProps {
3
+ routeKey: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const ComponentScreen: ({ routeKey, children }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=component-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-screen.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/component-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AASpC,UAAU,WAAW;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,GAAI,wBAAwB,WAAW,4CAyBlE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { ComponentStackDescriptor, ComponentStackNavigationHelpers } from "../types";
3
+ export declare const StackView: React.FC<import("../../shared/providers/stack/managed.provider").ManagedStackProps<ComponentStackDescriptor, ComponentStackNavigationHelpers> & import("../../shared/providers/stack/core.provider").StackCoreConfig>;
4
+ //# sourceMappingURL=stack-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/stack-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,UAAU,CAAC;AAuBlB,eAAO,MAAM,SAAS,uNAoCrB,CAAC"}
@@ -1,4 +1,3 @@
1
- export { useComponentNavigation } from "./hooks/use-component-navigation";
2
- export { createComponentNavigator } from "./navigators/create-component-navigator";
3
- export type { ComponentNavigation, ComponentNavigatorProps, ComponentRoute, ComponentScreenConfig, ComponentScreenProps, ComponentStackDescriptor, ComponentStackNavigationOptions, ComponentStackOverlayProps, ComponentStackScene, ComponentStackScreenProps, ComponentStackScreenTransitionConfig, ComponentStackState, } from "./types";
1
+ export { createComponentStackNavigator } from "../component-stack/navigators/create-component-stack-navigator";
2
+ export type { ComponentStackNavigationEventMap, ComponentStackNavigationOptions, ComponentStackNavigationProp, ComponentStackNavigatorProps, ComponentStackOptionsArgs, ComponentStackOverlayProps, ComponentStackScreenProps, } from "../component-stack/types";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component-stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,YAAY,EACX,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,oCAAoC,EACpC,mBAAmB,GACnB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component-stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAC/G,YAAY,EACX,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,GACzB,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type NavigatorTypeBagBase, type ParamListBase, type StackNavigationState, type StaticConfig, type TypedNavigator } from "@react-navigation/native";
2
+ import type { ComponentStackNavigationEventMap, ComponentStackNavigationOptions, ComponentStackNavigationProp, ComponentStackNavigatorProps } from "../types";
3
+ declare function ComponentStackNavigator({ id, initialRouteName, children, layout, screenListeners, screenOptions, screenLayout, ...rest }: ComponentStackNavigatorProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function createComponentStackNavigator<const ParamList extends ParamListBase, const NavigatorID extends string | undefined = undefined, const TypeBag extends NavigatorTypeBagBase = {
5
+ ParamList: ParamList;
6
+ NavigatorID: NavigatorID;
7
+ State: StackNavigationState<ParamList>;
8
+ ScreenOptions: ComponentStackNavigationOptions;
9
+ EventMap: ComponentStackNavigationEventMap;
10
+ NavigationList: {
11
+ [RouteName in keyof ParamList]: ComponentStackNavigationProp<ParamList, RouteName, NavigatorID>;
12
+ };
13
+ Navigator: typeof ComponentStackNavigator;
14
+ }, const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>>(config?: Config): TypedNavigator<TypeBag, Config>;
15
+ export {};
16
+ //# sourceMappingURL=create-component-stack-navigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-component-stack-navigator.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/navigators/create-component-stack-navigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAGzB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACX,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,MAAM,UAAU,CAAC;AAElB,iBAAS,uBAAuB,CAAC,EAChC,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,GAAG,IAAI,EACP,EAAE,4BAA4B,2CAiC9B;AAED,wBAAgB,6BAA6B,CAC5C,KAAK,CAAC,SAAS,SAAS,aAAa,EACrC,KAAK,CAAC,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EACxD,KAAK,CAAC,OAAO,SAAS,oBAAoB,GAAG;IAC5C,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACvC,aAAa,EAAE,+BAA+B,CAAC;IAC/C,QAAQ,EAAE,gCAAgC,CAAC;IAC3C,cAAc,EAAE;SACd,SAAS,IAAI,MAAM,SAAS,GAAG,4BAA4B,CAC3D,SAAS,EACT,SAAS,EACT,WAAW,CACX;KACD,CAAC;IACF,SAAS,EAAE,OAAO,uBAAuB,CAAC;CAC1C,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,EACjE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAElD"}
@@ -1,206 +1,39 @@
1
- import type { DerivedValue } from "react-native-reanimated";
1
+ import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, ParamListBase, Route, RouteProp, StackActionHelpers, StackNavigationState, StackRouterOptions, Theme } from "@react-navigation/native";
2
2
  import type { ScreenTransitionConfig } from "../shared";
3
- import type { OverlayInterpolationProps, ScreenInterpolationProps } from "../shared/types/animation.types";
4
- import type { OverlayMode } from "../shared/types/overlay.types";
5
- /**
6
- * A synthetic route object for component navigation.
7
- * Mimics React Navigation's Route type but without the navigation dependency.
8
- */
9
- export interface ComponentRoute<Params = Record<string, unknown>> {
10
- /** Unique identifier for this route instance */
11
- key: string;
12
- /** Name identifier for the screen */
13
- name: string;
14
- /** Optional parameters passed to the screen */
15
- params?: Params;
16
- }
17
- /**
18
- * Navigation action for dispatch method.
19
- */
20
- type ComponentNavigationAction = {
21
- type: "PUSH";
22
- name: string;
23
- params?: Record<string, unknown>;
24
- } | {
25
- type: "POP";
26
- } | {
27
- type: "POP_BY_KEY";
28
- key: string;
29
- } | {
30
- type: "NAVIGATE";
31
- name: string;
32
- params?: Record<string, unknown>;
33
- } | {
34
- type: "RESET";
35
- name?: string;
36
- params?: Record<string, unknown>;
37
- } | {
38
- type: string;
39
- source?: string;
40
- target?: string;
41
- payload?: unknown;
3
+ import type { OverlayProps } from "../shared/types/overlay.types";
4
+ export type ComponentStackNavigationEventMap = {};
5
+ export type ComponentStackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = NavigationProp<ParamList, RouteName, NavigatorID, StackNavigationState<ParamList>, ComponentStackNavigationOptions, ComponentStackNavigationEventMap> & StackActionHelpers<ParamList>;
6
+ export type ComponentStackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = {
7
+ navigation: ComponentStackNavigationProp<ParamList, RouteName, NavigatorID>;
8
+ route: RouteProp<ParamList, RouteName>;
42
9
  };
10
+ export type ComponentStackOptionsArgs<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = ComponentStackScreenProps<ParamList, RouteName, NavigatorID> & {
11
+ theme: Theme;
12
+ };
13
+ export type ComponentStackNavigationHelpers = NavigationHelpers<ParamListBase, ComponentStackNavigationEventMap>;
14
+ export type ComponentStackScene = {
15
+ route: Route<string>;
16
+ descriptor: ComponentStackDescriptor;
17
+ };
18
+ type ComponentStackNavigationConfig = {};
43
19
  /**
44
- * Navigation object provided to screens and available via useComponentNavigation hook.
45
- */
46
- export interface ComponentNavigation {
47
- /** Push a new screen by name */
48
- push: (name: string, params?: Record<string, unknown>) => void;
49
- /** Pop the current screen */
50
- pop: () => void;
51
- /** Navigate back (alias for pop) */
52
- goBack: () => void;
53
- /** Navigate to a specific screen by name, reusing existing if present */
54
- navigate: (name: string, params?: Record<string, unknown>) => void;
55
- /** Check if we can go back */
56
- canGoBack: () => boolean;
57
- /** Reset to a specific screen or initial state */
58
- reset: (name?: string, params?: Record<string, unknown>) => void;
59
- /** Dispatch a navigation action (compatible with React Navigation's StackActions) */
60
- dispatch: (action: ComponentNavigationAction) => void;
61
- /** Get current navigation state (for gesture handling compatibility) */
62
- getState: () => ComponentStackState;
63
- /** Current index in the stack */
64
- index: number;
65
- }
66
- /**
67
- * Screen options for component stack, extending the base transition config.
20
+ * Props passed to overlay components in component-stack.
21
+ * Uses the shared OverlayProps type with component-stack's navigation type.
68
22
  */
69
- export type ComponentStackScreenTransitionConfig = ScreenTransitionConfig & {
23
+ export type ComponentStackOverlayProps = OverlayProps<ComponentStackNavigationProp<ParamListBase>>;
24
+ type ComponentStackScreenTransitionConfig = ScreenTransitionConfig & {
70
25
  /**
71
26
  * Whether to detach the previous screen from the view hierarchy to save memory.
72
27
  * Set it to `false` if you need the previous screen to be seen through the active screen.
28
+ * Only applicable if `detachInactiveScreens` isn't set to `false`.
73
29
  */
74
30
  detachPreviousScreen?: boolean;
75
31
  };
76
- /**
77
- * Props passed to overlay components.
78
- */
79
- export type ComponentStackOverlayProps = {
80
- /** Route of the currently focused screen in the stack. */
81
- focusedRoute: ComponentRoute;
82
- /** Index of the focused route in the stack. */
83
- focusedIndex: number;
84
- /** All routes currently in the stack. */
85
- routes: ComponentRoute[];
86
- /** Custom metadata from the focused screen's options. */
87
- meta?: Record<string, unknown>;
88
- /** Navigation object for the overlay. */
89
- navigation: ComponentNavigation;
90
- /** Animation values for the overlay. */
91
- overlayAnimation: DerivedValue<OverlayInterpolationProps>;
92
- /** Animation values for the screen. */
93
- screenAnimation: DerivedValue<ScreenInterpolationProps>;
94
- };
95
- /**
96
- * Props passed to container overlay components.
97
- * Extends overlay props with children to wrap screen content.
98
- */
99
- export type ComponentStackContainerOverlayProps = ComponentStackOverlayProps & {
100
- /** The screen content to be wrapped by the container overlay. */
101
- children: React.ReactNode;
102
- };
103
- /**
104
- * Full navigation options for a component stack screen.
105
- */
106
- export type ComponentStackNavigationOptions = ComponentStackScreenTransitionConfig & {
107
- /** Function that returns a React Element to display as overlay. */
108
- overlay?: ((props: ComponentStackOverlayProps) => React.ReactNode) | ((props: ComponentStackContainerOverlayProps) => React.ReactNode);
109
- /**
110
- * Layout: How the Overlay is positioned
111
- * - 'float': Single persistent overlay above all screens (like iOS)
112
- * - 'screen': Per-screen overlay that transitions with content
113
- * - 'container': Wraps all screen content (for MaskedView, custom containers)
114
- * @default 'screen'
115
- */
116
- overlayMode?: OverlayMode;
117
- /** Whether to show the overlay. Defaults to true when overlay is provided. */
118
- overlayShown?: boolean;
119
- /**
120
- * Whether inactive screens should be suspended from re-rendering.
121
- * Defaults to `true` when `enableFreeze()` is run at the top of the application.
122
- */
123
- freezeOnBlur?: boolean;
124
- };
125
- /**
126
- * Descriptor for a component stack screen.
127
- * Similar to React Navigation's Descriptor but simplified.
128
- */
129
- export interface ComponentStackDescriptor {
130
- /** The route object for this screen */
131
- route: ComponentRoute;
132
- /** Navigation object */
133
- navigation: ComponentNavigation;
134
- /** Render function for the screen content */
135
- render: () => React.JSX.Element | null;
136
- /** Screen options/configuration */
137
- options: ComponentStackNavigationOptions;
138
- }
139
- /**
140
- * A scene in the component stack (route + descriptor pair).
141
- */
142
- export interface ComponentStackScene {
143
- route: ComponentRoute;
144
- descriptor: ComponentStackDescriptor;
145
- }
146
- /**
147
- * Map of route keys to descriptors.
148
- */
32
+ export type ComponentStackNavigationOptions = ComponentStackScreenTransitionConfig & {};
33
+ export type ComponentStackNavigatorProps = DefaultNavigatorOptions<ParamListBase, string | undefined, StackNavigationState<ParamListBase>, ComponentStackNavigationOptions, ComponentStackNavigationEventMap, ComponentStackNavigationProp<ParamListBase>> & StackRouterOptions & ComponentStackNavigationConfig;
34
+ export type ComponentStackDescriptor = Descriptor<ComponentStackNavigationOptions, ComponentStackNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
149
35
  export type ComponentStackDescriptorMap = {
150
36
  [key: string]: ComponentStackDescriptor;
151
37
  };
152
- /**
153
- * Props passed to screen components.
154
- */
155
- export interface ComponentStackScreenProps<Params = Record<string, unknown>> {
156
- /** Navigation object for controlling the stack */
157
- navigation: ComponentNavigation;
158
- /** Route object with params */
159
- route: ComponentRoute<Params>;
160
- }
161
- /**
162
- * State of the component navigation stack.
163
- */
164
- export interface ComponentStackState {
165
- /** All routes in the stack */
166
- routes: ComponentRoute[];
167
- /** Index of the currently focused route */
168
- index: number;
169
- /** Unique key for this stack instance */
170
- key: string;
171
- }
172
- /**
173
- * Screen definition for the component navigator.
174
- */
175
- export interface ComponentScreenConfig {
176
- /** Unique name for this screen */
177
- name: string;
178
- /** Component to render for this screen */
179
- component: React.ComponentType<ComponentStackScreenProps<any>>;
180
- /** Screen-specific options */
181
- options?: ComponentStackNavigationOptions;
182
- }
183
- /**
184
- * Props for the ComponentNavigator component.
185
- */
186
- export interface ComponentNavigatorProps {
187
- /** Screen definitions */
188
- children: React.ReactNode;
189
- /** Initial screen name to display */
190
- initialRouteName?: string;
191
- /** Default options applied to all screens */
192
- screenOptions?: ComponentStackNavigationOptions;
193
- }
194
- /**
195
- * Props for the ComponentScreen component.
196
- */
197
- export interface ComponentScreenProps {
198
- /** Unique name for this screen */
199
- name: string;
200
- /** Component to render */
201
- component: React.ComponentType<ComponentStackScreenProps<any>>;
202
- /** Screen-specific options */
203
- options?: ComponentStackNavigationOptions;
204
- }
205
38
  export {};
206
39
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../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CAAC;CACrC,CAAC;AAEF,KAAK,8BAA8B,GAAG,EAAE,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACpD,4BAA4B,CAAC,aAAa,CAAC,CAC3C,CAAC;AAEF,KAAK,oCAAoC,GAAG,sBAAsB,GAAG;IACpE;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAC1C,oCAAoC,GAAG,EAAE,CAAC;AAE3C,MAAM,MAAM,4BAA4B,GAAG,uBAAuB,CACjE,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,+BAA+B,EAC/B,gCAAgC,EAChC,4BAA4B,CAAC,aAAa,CAAC,CAC3C,GACA,kBAAkB,GAClB,8BAA8B,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAChD,+BAA+B,EAC/B,4BAA4B,CAAC,aAAa,CAAC,EAC3C,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAC;CACxC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
- export declare const NativeStackView: React.FC<import("../../shared/providers/stack/direct.provider").DirectStackProps>;
2
+ export declare const NativeStackView: React.FC<import("../../shared/providers/stack/direct.provider").DirectStackProps & import("../../shared/providers/stack/core.provider").StackCoreConfig>;
3
3
  //# sourceMappingURL=NativeStackView.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../src/native-stack/views/NativeStackView.native.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqd/B,eAAO,MAAM,eAAe,mFAgI3B,CAAC"}
1
+ {"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../src/native-stack/views/NativeStackView.native.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqd/B,eAAO,MAAM,eAAe,0JA8H3B,CAAC"}
@@ -8,13 +8,4 @@ export declare function getActiveFloatOverlay(scenes: StackScene[], index: numbe
8
8
  scene: StackScene;
9
9
  overlayIndex: number;
10
10
  } | null;
11
- /**
12
- * Find the active container overlay from scenes.
13
- * Scans from the bottom of the stack upward to find the first screen
14
- * with overlayMode="container" and overlayShown=true.
15
- */
16
- export declare function getActiveContainerOverlay(scenes: StackScene[], transitionsAlwaysOn: boolean): {
17
- scene: StackScene;
18
- overlayIndex: number;
19
- } | null;
20
11
  //# sourceMappingURL=get-active-overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-overlay.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/overlay/helpers/get-active-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,mBAAmB,EAAE,OAAO,GAC1B;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA0BpD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,UAAU,EAAE,EACpB,mBAAmB,EAAE,OAAO,GAC1B;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBpD"}
1
+ {"version":3,"file":"get-active-overlay.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/overlay/helpers/get-active-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,mBAAmB,EAAE,OAAO,GAC1B;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA0BpD"}
@@ -1,9 +1,7 @@
1
- import { ContainerOverlay } from "./variations/container-overlay";
2
1
  import { FloatOverlay } from "./variations/float-overlay";
3
2
  import { ScreenOverlay } from "./variations/screen-overlay";
4
3
  export declare const Overlay: {
5
4
  Float: typeof FloatOverlay;
6
5
  Screen: typeof ScreenOverlay;
7
- Container: typeof ContainerOverlay;
8
6
  };
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
@@ -39,4 +39,5 @@ export declare const DEFAULT_GESTURE_DIRECTION = "horizontal";
39
39
  export declare const DEFAULT_GESTURE_ENABLED = false;
40
40
  export declare const DEFAULT_GESTURE_DRIVES_PROGRESS = true;
41
41
  export declare const DEFAULT_GESTURE_ACTIVATION_AREA: ActivationArea;
42
+ export declare const IS_WEB: boolean;
42
43
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,SAAS,cAAoB,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAe3C,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,yBAAyB,cAAoB,CAAC;AAC3D,eAAO,MAAM,6BAA6B;;;;;;;;EAQxC,CAAC;AACH,eAAO,MAAM,WAAW,iBAAkB,CAAC;AAC3C,eAAO,MAAM,UAAU,iBAAkB,CAAC;AAE1C,eAAO,MAAM,qBAAqB,GACjC,YAAY,MAAM,KAChB,kBAUF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAC7C,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,+BAA+B,EAAE,cAAyB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,SAAS,cAAoB,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAe3C,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,yBAAyB,cAAoB,CAAC;AAC3D,eAAO,MAAM,6BAA6B;;;;;;;;EAQxC,CAAC;AACH,eAAO,MAAM,WAAW,iBAAkB,CAAC;AAC3C,eAAO,MAAM,UAAU,iBAAkB,CAAC;AAE1C,eAAO,MAAM,qBAAqB,GACjC,YAAY,MAAM,KAChB,kBAUF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAC7C,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,+BAA+B,EAAE,cAAyB,CAAC;AAExE,eAAO,MAAM,MAAM,SAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ }
4
+ /**
5
+ * Lifecycle controller built out for Blank Stack implementation.
6
+ */
7
+ export declare const ManagedLifecycle: ({ children }: Props) => import("react").ReactNode;
8
+ export {};
9
+ //# sourceMappingURL=managed-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managed-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/shared/controller/managed-lifecycle.tsx"],"names":[],"mappings":"AAWA,UAAU,KAAK;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,cAAc,KAAK,8BAsDnD,CAAC"}
@@ -1,4 +1,11 @@
1
1
  import type { BaseDescriptor } from "../../providers/screen/keys.provider";
2
+ /**
3
+ * Maintainer Notes:
4
+ * Marking as experimental for now since, I'll be honest, I'm not sure if this does much. This was taken
5
+ * right from this https://github.com/software-mansion/react-native-reanimated/issues/4738
6
+ *
7
+ * Not noticing much of a difference in prod.
8
+ */
2
9
  export declare const useHighRefreshRate: (current: BaseDescriptor) => {
3
10
  activateHighRefreshRate: () => void;
4
11
  deactivateHighRefreshRate: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-high-refresh-rate.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/animation/use-high-refresh-rate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,eAAO,MAAM,kBAAkB,GAAI,SAAS,cAAc;;;CAuBzD,CAAC"}
1
+ {"version":3,"file":"use-high-refresh-rate.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/animation/use-high-refresh-rate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,cAAc;;;CAsBzD,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import type { ScreenInterpolationProps } from "../../types/animation.types";
2
2
  export declare function _useScreenAnimation(): {
3
3
  screenInterpolatorProps: import("react-native-reanimated").DerivedValue<Omit<ScreenInterpolationProps, "bounds">>;
4
- screenStyleInterpolator: import("../../types/animation.types").ScreenStyleInterpolator | undefined;
4
+ nextInterpolator: import("../../types/animation.types").ScreenStyleInterpolator | undefined;
5
+ currentInterpolator: import("../../types/animation.types").ScreenStyleInterpolator | undefined;
5
6
  };
6
7
  export declare function useScreenAnimation(): import("react-native-reanimated").DerivedValue<ScreenInterpolationProps>;
7
8
  //# sourceMappingURL=use-screen-animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/animation/use-screen-animation.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,6BAA6B,CAAC;AAoFrC,wBAAgB,mBAAmB;;;EAqElC;AAED,wBAAgB,kBAAkB,6EAUjC"}
1
+ {"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/animation/use-screen-animation.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,6BAA6B,CAAC;AAoFrC,wBAAgB,mBAAmB;;;;EAuElC;AAED,wBAAgB,kBAAkB,6EAUjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAQ3E,OAAO,KAAK,EACX,kBAAkB,EAClB,YAAY,EACZ,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAahF,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAG9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC/D,aAAa,EAAE,WAAW,CAAC;IAC3B,sBAAsB,EAAE,eAAe,CAAC;CA+UxC,CAAC"}
1
+ {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAQ3E,OAAO,KAAK,EACX,kBAAkB,EAClB,YAAY,EACZ,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAchF,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAG9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC/D,aAAa,EAAE,WAAW,CAAC;IAC3B,sBAAsB,EAAE,eAAe,CAAC;CAsVxC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { Route } from "@react-navigation/native";
2
2
  import type { DerivedValue } from "react-native-reanimated";
3
- import type { ContainerOverlayProps, OverlayMode, OverlayProps } from "../../types/overlay.types";
3
+ import type { StackCoreContextValue } from "../../providers/stack/core.provider";
4
+ import type { OverlayMode, OverlayProps } from "../../types/overlay.types";
4
5
  import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene } from "../../types/stack.types";
5
6
  /**
6
7
  * Stack descriptor with overlay options.
@@ -8,7 +9,7 @@ import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStac
8
9
  */
9
10
  export interface StackDescriptor<TRoute extends BaseStackRoute = Route<string>, TNavigation extends BaseStackNavigation = BaseStackNavigation> extends BaseStackDescriptor<TRoute, TNavigation> {
10
11
  options: BaseStackDescriptor["options"] & {
11
- overlay?: ((props: OverlayProps) => React.ReactNode) | ((props: ContainerOverlayProps) => React.ReactNode);
12
+ overlay?: (props: OverlayProps) => React.ReactNode;
12
13
  overlayMode?: OverlayMode;
13
14
  overlayShown?: boolean;
14
15
  meta?: Record<string, unknown>;
@@ -23,13 +24,7 @@ export type StackScene<TDescriptor extends StackDescriptor = StackDescriptor> =
23
24
  * Common stack context value that both managed and direct stack providers populate.
24
25
  * Used by overlays and shared components that need stack progress info.
25
26
  */
26
- export interface StackContextValue {
27
- /**
28
- * Stack flags.
29
- */
30
- flags: {
31
- TRANSITIONS_ALWAYS_ON: boolean;
32
- };
27
+ export interface StackContextValue extends StackCoreContextValue {
33
28
  /**
34
29
  * Route keys for all routes in the stack.
35
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"use-stack.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/navigation/use-stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACX,qBAAqB,EACrB,WAAW,EACX,YAAY,EACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAC/B,MAAM,SAAS,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,EAC7C,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,CAC5D,SAAQ,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC;IACjD,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,GAAG;QACzC,OAAO,CAAC,EACL,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC,GAC1C,CAAC,CAAC,KAAK,EAAE,qBAAqB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;QACvD,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;Q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AGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,KAAK,CAAC,CAQ7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-shared-value-state.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/reanimated/use-shared-value-state.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAerE"}
1
+ {"version":3,"file":"use-shared-value-state.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/reanimated/use-shared-value-state.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAGjC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAmBrE"}