@ankhorage/navigator 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{expo-router/resolveCustomNavigatorPlan.d.ts → features/custom/application/resolveCustomNavigatorAdapterPlan.d.ts} +4 -3
  4. package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.d.ts.map +1 -0
  5. package/dist/{expo-router/resolveCustomNavigatorPlan.js → features/custom/application/resolveCustomNavigatorAdapterPlan.js} +1 -1
  6. package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.js.map +1 -0
  7. package/dist/features/custom/domain/CustomNavigatorConfigIssue.d.ts +6 -0
  8. package/dist/features/custom/domain/CustomNavigatorConfigIssue.d.ts.map +1 -0
  9. package/dist/features/custom/domain/CustomNavigatorConfigIssue.js +2 -0
  10. package/dist/features/custom/domain/CustomNavigatorConfigIssue.js.map +1 -0
  11. package/dist/features/custom/domain/CustomNavigatorRegistration.d.ts +15 -0
  12. package/dist/features/custom/domain/CustomNavigatorRegistration.d.ts.map +1 -0
  13. package/dist/features/custom/domain/CustomNavigatorRegistration.js +2 -0
  14. package/dist/features/custom/domain/CustomNavigatorRegistration.js.map +1 -0
  15. package/dist/features/custom/domain/CustomNavigatorRegistry.d.ts +7 -0
  16. package/dist/features/custom/domain/CustomNavigatorRegistry.d.ts.map +1 -0
  17. package/dist/features/custom/domain/CustomNavigatorRegistry.js +2 -0
  18. package/dist/features/custom/domain/CustomNavigatorRegistry.js.map +1 -0
  19. package/dist/{validation/validateCustomNavigator.d.ts → features/custom/domain/addCustomNavigatorDiagnostics.d.ts} +4 -3
  20. package/dist/features/custom/domain/addCustomNavigatorDiagnostics.d.ts.map +1 -0
  21. package/dist/{validation/validateCustomNavigator.js → features/custom/domain/addCustomNavigatorDiagnostics.js} +50 -50
  22. package/dist/features/custom/domain/addCustomNavigatorDiagnostics.js.map +1 -0
  23. package/dist/features/custom/domain/defineCustomNavigatorRegistry.d.ts +5 -0
  24. package/dist/features/custom/domain/defineCustomNavigatorRegistry.d.ts.map +1 -0
  25. package/dist/{custom/CustomNavigatorRegistry.js → features/custom/domain/defineCustomNavigatorRegistry.js} +4 -4
  26. package/dist/features/custom/domain/defineCustomNavigatorRegistry.js.map +1 -0
  27. package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.d.ts +4 -0
  28. package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.d.ts.map +1 -0
  29. package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.js +8 -0
  30. package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.js.map +1 -0
  31. package/dist/features/drawer/application/createDrawerAdapter.d.ts +4 -0
  32. package/dist/features/drawer/application/createDrawerAdapter.d.ts.map +1 -0
  33. package/dist/features/drawer/application/createDrawerAdapter.js +12 -0
  34. package/dist/features/drawer/application/createDrawerAdapter.js.map +1 -0
  35. package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.d.ts +4 -0
  36. package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.d.ts.map +1 -0
  37. package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.js +8 -0
  38. package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.js.map +1 -0
  39. package/dist/features/slot/application/createSlotAdapter.d.ts +4 -0
  40. package/dist/features/slot/application/createSlotAdapter.d.ts.map +1 -0
  41. package/dist/features/slot/application/createSlotAdapter.js +12 -0
  42. package/dist/features/slot/application/createSlotAdapter.js.map +1 -0
  43. package/dist/features/slot/domain/addSlotDiagnostics.d.ts +5 -0
  44. package/dist/features/slot/domain/addSlotDiagnostics.d.ts.map +1 -0
  45. package/dist/features/slot/domain/addSlotDiagnostics.js +24 -0
  46. package/dist/features/slot/domain/addSlotDiagnostics.js.map +1 -0
  47. package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.d.ts +6 -0
  48. package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.d.ts.map +1 -0
  49. package/dist/{generation → features/split-view/adapters/outbound}/generateSplitViewLayoutFile.js +37 -35
  50. package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.js.map +1 -0
  51. package/dist/{expo-router/resolveSplitViewNavigatorPlan.d.ts → features/split-view/application/resolveSplitViewAdapterPlan.d.ts} +3 -2
  52. package/dist/features/split-view/application/resolveSplitViewAdapterPlan.d.ts.map +1 -0
  53. package/dist/{expo-router/resolveSplitViewNavigatorPlan.js → features/split-view/application/resolveSplitViewAdapterPlan.js} +1 -1
  54. package/dist/features/split-view/application/resolveSplitViewAdapterPlan.js.map +1 -0
  55. package/dist/{validation/validateSplitView.d.ts → features/split-view/domain/addSplitViewDiagnostics.d.ts} +3 -2
  56. package/dist/features/split-view/domain/addSplitViewDiagnostics.d.ts.map +1 -0
  57. package/dist/{validation/validateSplitView.js → features/split-view/domain/addSplitViewDiagnostics.js} +76 -76
  58. package/dist/features/split-view/domain/addSplitViewDiagnostics.js.map +1 -0
  59. package/dist/features/stack/application/createStackAdapter.d.ts +6 -0
  60. package/dist/features/stack/application/createStackAdapter.d.ts.map +1 -0
  61. package/dist/features/stack/application/createStackAdapter.js +43 -0
  62. package/dist/features/stack/application/createStackAdapter.js.map +1 -0
  63. package/dist/features/stack/domain/ResolvedStackConfigSource.d.ts +6 -0
  64. package/dist/features/stack/domain/ResolvedStackConfigSource.d.ts.map +1 -0
  65. package/dist/features/stack/domain/ResolvedStackConfigSource.js +2 -0
  66. package/dist/features/stack/domain/ResolvedStackConfigSource.js.map +1 -0
  67. package/dist/{validation/validateExperimentalStack.d.ts → features/stack/domain/addExperimentalStackDiagnostics.d.ts} +3 -2
  68. package/dist/features/stack/domain/addExperimentalStackDiagnostics.d.ts.map +1 -0
  69. package/dist/{validation/validateExperimentalStack.js → features/stack/domain/addExperimentalStackDiagnostics.js} +49 -49
  70. package/dist/features/stack/domain/addExperimentalStackDiagnostics.js.map +1 -0
  71. package/dist/features/stack/domain/addStackAdapterDiagnostics.d.ts +6 -0
  72. package/dist/features/stack/domain/addStackAdapterDiagnostics.d.ts.map +1 -0
  73. package/dist/features/stack/domain/addStackAdapterDiagnostics.js +15 -0
  74. package/dist/features/stack/domain/addStackAdapterDiagnostics.js.map +1 -0
  75. package/dist/features/stack/domain/resolveEffectiveStackConfig.d.ts +5 -0
  76. package/dist/features/stack/domain/resolveEffectiveStackConfig.d.ts.map +1 -0
  77. package/dist/features/stack/domain/resolveEffectiveStackConfig.js +6 -0
  78. package/dist/features/stack/domain/resolveEffectiveStackConfig.js.map +1 -0
  79. package/dist/features/stack/domain/resolveEffectiveStackConfigSource.d.ts +6 -0
  80. package/dist/features/stack/domain/resolveEffectiveStackConfigSource.d.ts.map +1 -0
  81. package/dist/{expo-router/resolveNavigatorConfig.js → features/stack/domain/resolveEffectiveStackConfigSource.js} +20 -46
  82. package/dist/features/stack/domain/resolveEffectiveStackConfigSource.js.map +1 -0
  83. package/dist/features/stack/domain/validateStackRouteOptions.d.ts +5 -0
  84. package/dist/features/stack/domain/validateStackRouteOptions.d.ts.map +1 -0
  85. package/dist/features/stack/domain/validateStackRouteOptions.js +25 -0
  86. package/dist/features/stack/domain/validateStackRouteOptions.js.map +1 -0
  87. package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.d.ts +11 -0
  88. package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.d.ts.map +1 -0
  89. package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.js +2 -0
  90. package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.js.map +1 -0
  91. package/dist/features/tabs/adapters/inbound/CustomTabsLayout.d.ts +4 -0
  92. package/dist/features/tabs/adapters/inbound/CustomTabsLayout.d.ts.map +1 -0
  93. package/dist/{tabs → features/tabs/adapters/inbound}/CustomTabsLayout.js +62 -61
  94. package/dist/features/tabs/adapters/inbound/CustomTabsLayout.js.map +1 -0
  95. package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.d.ts +18 -0
  96. package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.d.ts.map +1 -0
  97. package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.js +2 -0
  98. package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.js.map +1 -0
  99. package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.d.ts +7 -0
  100. package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.d.ts.map +1 -0
  101. package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.js +2 -0
  102. package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.js.map +1 -0
  103. package/dist/features/tabs/adapters/inbound/CustomTabsRoute.d.ts +12 -0
  104. package/dist/features/tabs/adapters/inbound/CustomTabsRoute.d.ts.map +1 -0
  105. package/dist/features/tabs/adapters/inbound/CustomTabsRoute.js +2 -0
  106. package/dist/features/tabs/adapters/inbound/CustomTabsRoute.js.map +1 -0
  107. package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.d.ts +4 -0
  108. package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.d.ts.map +1 -0
  109. package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.js +9 -0
  110. package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.js.map +1 -0
  111. package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.d.ts +4 -0
  112. package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.d.ts.map +1 -0
  113. package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.js +9 -0
  114. package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.js.map +1 -0
  115. package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.d.ts +4 -0
  116. package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.d.ts.map +1 -0
  117. package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.js +4 -0
  118. package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.js.map +1 -0
  119. package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.d.ts +4 -0
  120. package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.d.ts.map +1 -0
  121. package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.js +4 -0
  122. package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.js.map +1 -0
  123. package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.d.ts +4 -0
  124. package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.d.ts.map +1 -0
  125. package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.js +4 -0
  126. package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.js.map +1 -0
  127. package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.d.ts +5 -0
  128. package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.d.ts.map +1 -0
  129. package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.js +2 -0
  130. package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.js.map +1 -0
  131. package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.d.ts +6 -0
  132. package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.d.ts.map +1 -0
  133. package/dist/{generation → features/tabs/adapters/outbound}/generateTabsLayoutFile.js +86 -83
  134. package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.js.map +1 -0
  135. package/dist/features/tabs/application/createTabsAdapter.d.ts +6 -0
  136. package/dist/features/tabs/application/createTabsAdapter.d.ts.map +1 -0
  137. package/dist/features/tabs/application/createTabsAdapter.js +18 -0
  138. package/dist/features/tabs/application/createTabsAdapter.js.map +1 -0
  139. package/dist/{expo-router → features/tabs/application}/resolveTabsNavigatorPlan.d.ts +3 -1
  140. package/dist/features/tabs/application/resolveTabsNavigatorPlan.d.ts.map +1 -0
  141. package/dist/{expo-router → features/tabs/application}/resolveTabsNavigatorPlan.js +41 -41
  142. package/dist/features/tabs/application/resolveTabsNavigatorPlan.js.map +1 -0
  143. package/dist/features/tabs/application/resolveTabsPlan.d.ts +7 -0
  144. package/dist/features/tabs/application/resolveTabsPlan.d.ts.map +1 -0
  145. package/dist/features/tabs/application/resolveTabsPlan.js +14 -0
  146. package/dist/features/tabs/application/resolveTabsPlan.js.map +1 -0
  147. package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.d.ts +6 -0
  148. package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.d.ts.map +1 -0
  149. package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.js +2 -0
  150. package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.js.map +1 -0
  151. package/dist/features/tabs/domain/ResolvedTabsImplementation.d.ts +2 -0
  152. package/dist/features/tabs/domain/ResolvedTabsImplementation.d.ts.map +1 -0
  153. package/dist/features/tabs/domain/ResolvedTabsImplementation.js +2 -0
  154. package/dist/features/tabs/domain/ResolvedTabsImplementation.js.map +1 -0
  155. package/dist/features/tabs/domain/ResolvedTabsPresentation.d.ts +2 -0
  156. package/dist/features/tabs/domain/ResolvedTabsPresentation.d.ts.map +1 -0
  157. package/dist/features/tabs/domain/ResolvedTabsPresentation.js +2 -0
  158. package/dist/features/tabs/domain/ResolvedTabsPresentation.js.map +1 -0
  159. package/dist/features/tabs/domain/TabsNavigatorPlan.d.ts +23 -0
  160. package/dist/features/tabs/domain/TabsNavigatorPlan.d.ts.map +1 -0
  161. package/dist/features/tabs/domain/TabsNavigatorPlan.js +2 -0
  162. package/dist/features/tabs/domain/TabsNavigatorPlan.js.map +1 -0
  163. package/dist/{validation/validateTabsNavigator.d.ts → features/tabs/domain/addTabsAdapterDiagnostics.d.ts} +3 -2
  164. package/dist/features/tabs/domain/addTabsAdapterDiagnostics.d.ts.map +1 -0
  165. package/dist/{validation/validateTabsNavigator.js → features/tabs/domain/addTabsAdapterDiagnostics.js} +47 -47
  166. package/dist/features/tabs/domain/addTabsAdapterDiagnostics.js.map +1 -0
  167. package/dist/{presentation → features/tabs/domain}/resolveCustomTabsPresentation.d.ts +2 -5
  168. package/dist/features/tabs/domain/resolveCustomTabsPresentation.d.ts.map +1 -0
  169. package/dist/{presentation → features/tabs/domain}/resolveCustomTabsPresentation.js +16 -16
  170. package/dist/features/tabs/domain/resolveCustomTabsPresentation.js.map +1 -0
  171. package/dist/features/tabs/domain/resolveEffectiveTabsConfig.d.ts +5 -0
  172. package/dist/features/tabs/domain/resolveEffectiveTabsConfig.d.ts.map +1 -0
  173. package/dist/features/tabs/domain/resolveEffectiveTabsConfig.js +24 -0
  174. package/dist/features/tabs/domain/resolveEffectiveTabsConfig.js.map +1 -0
  175. package/dist/features/tabs/nativeIcons.d.ts +6 -0
  176. package/dist/features/tabs/nativeIcons.d.ts.map +1 -0
  177. package/dist/features/tabs/nativeIcons.js +6 -0
  178. package/dist/features/tabs/nativeIcons.js.map +1 -0
  179. package/dist/features/tabs/tabs.d.ts +7 -0
  180. package/dist/features/tabs/tabs.d.ts.map +1 -0
  181. package/dist/features/tabs/tabs.js +2 -0
  182. package/dist/features/tabs/tabs.js.map +1 -0
  183. package/dist/navigator.d.ts +33 -0
  184. package/dist/navigator.d.ts.map +1 -0
  185. package/dist/navigator.js +8 -0
  186. package/dist/navigator.js.map +1 -0
  187. package/dist/utils/CreateNavigatorPlanOptions.d.ts +10 -0
  188. package/dist/utils/CreateNavigatorPlanOptions.d.ts.map +1 -0
  189. package/dist/utils/CreateNavigatorPlanOptions.js +2 -0
  190. package/dist/utils/CreateNavigatorPlanOptions.js.map +1 -0
  191. package/dist/utils/ExpoRouterNavigatorModule.d.ts +2 -0
  192. package/dist/utils/ExpoRouterNavigatorModule.d.ts.map +1 -0
  193. package/dist/utils/ExpoRouterNavigatorModule.js +2 -0
  194. package/dist/utils/ExpoRouterNavigatorModule.js.map +1 -0
  195. package/dist/{metadata/index.d.ts → utils/NAVIGATOR_PACKAGE_METADATA.d.ts} +1 -1
  196. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.d.ts.map +1 -0
  197. package/dist/{metadata/index.js → utils/NAVIGATOR_PACKAGE_METADATA.js} +1 -1
  198. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.js.map +1 -0
  199. package/dist/utils/NavigatorAdapterId.d.ts +2 -0
  200. package/dist/utils/NavigatorAdapterId.d.ts.map +1 -0
  201. package/dist/utils/NavigatorAdapterId.js +2 -0
  202. package/dist/utils/NavigatorAdapterId.js.map +1 -0
  203. package/dist/utils/NavigatorAdapterPlan.d.ts +13 -0
  204. package/dist/utils/NavigatorAdapterPlan.d.ts.map +1 -0
  205. package/dist/utils/NavigatorAdapterPlan.js +2 -0
  206. package/dist/utils/NavigatorAdapterPlan.js.map +1 -0
  207. package/dist/utils/NavigatorApiStability.d.ts +2 -0
  208. package/dist/utils/NavigatorApiStability.d.ts.map +1 -0
  209. package/dist/utils/NavigatorApiStability.js +2 -0
  210. package/dist/utils/NavigatorApiStability.js.map +1 -0
  211. package/dist/utils/NavigatorDiagnostic.d.ts +7 -0
  212. package/dist/utils/NavigatorDiagnostic.d.ts.map +1 -0
  213. package/dist/utils/NavigatorDiagnostic.js +2 -0
  214. package/dist/utils/NavigatorDiagnostic.js.map +1 -0
  215. package/dist/utils/NavigatorGeneratedFile.d.ts +5 -0
  216. package/dist/utils/NavigatorGeneratedFile.d.ts.map +1 -0
  217. package/dist/utils/NavigatorGeneratedFile.js +2 -0
  218. package/dist/utils/NavigatorGeneratedFile.js.map +1 -0
  219. package/dist/utils/NavigatorGenerationBindings.d.ts +12 -0
  220. package/dist/utils/NavigatorGenerationBindings.d.ts.map +1 -0
  221. package/dist/utils/NavigatorGenerationBindings.js +2 -0
  222. package/dist/utils/NavigatorGenerationBindings.js.map +1 -0
  223. package/dist/utils/NavigatorGenerationOptions.d.ts +8 -0
  224. package/dist/utils/NavigatorGenerationOptions.d.ts.map +1 -0
  225. package/dist/utils/NavigatorGenerationOptions.js +2 -0
  226. package/dist/utils/NavigatorGenerationOptions.js.map +1 -0
  227. package/dist/utils/NavigatorNodePlan.d.ts +32 -0
  228. package/dist/utils/NavigatorNodePlan.d.ts.map +1 -0
  229. package/dist/utils/NavigatorNodePlan.js +2 -0
  230. package/dist/utils/NavigatorNodePlan.js.map +1 -0
  231. package/dist/utils/NavigatorPlan.d.ts +14 -0
  232. package/dist/utils/NavigatorPlan.d.ts.map +1 -0
  233. package/dist/utils/NavigatorPlan.js.map +1 -0
  234. package/dist/utils/NavigatorResponsiveSize.d.ts +2 -0
  235. package/dist/utils/NavigatorResponsiveSize.d.ts.map +1 -0
  236. package/dist/utils/NavigatorResponsiveSize.js +2 -0
  237. package/dist/utils/NavigatorResponsiveSize.js.map +1 -0
  238. package/dist/utils/NavigatorRoutePlan.d.ts +14 -0
  239. package/dist/utils/NavigatorRoutePlan.d.ts.map +1 -0
  240. package/dist/utils/NavigatorRoutePlan.js +2 -0
  241. package/dist/utils/NavigatorRoutePlan.js.map +1 -0
  242. package/dist/utils/NavigatorRuntimePlatform.d.ts +2 -0
  243. package/dist/utils/NavigatorRuntimePlatform.d.ts.map +1 -0
  244. package/dist/utils/NavigatorRuntimePlatform.js +2 -0
  245. package/dist/utils/NavigatorRuntimePlatform.js.map +1 -0
  246. package/dist/utils/NavigatorScreenModule.d.ts +5 -0
  247. package/dist/utils/NavigatorScreenModule.d.ts.map +1 -0
  248. package/dist/utils/NavigatorScreenModule.js +2 -0
  249. package/dist/utils/NavigatorScreenModule.js.map +1 -0
  250. package/dist/utils/NavigatorSupportStatus.d.ts +2 -0
  251. package/dist/utils/NavigatorSupportStatus.d.ts.map +1 -0
  252. package/dist/utils/NavigatorSupportStatus.js +2 -0
  253. package/dist/utils/NavigatorSupportStatus.js.map +1 -0
  254. package/dist/utils/NavigatorValidationContext.d.ts +6 -0
  255. package/dist/utils/NavigatorValidationContext.d.ts.map +1 -0
  256. package/dist/utils/NavigatorValidationContext.js +2 -0
  257. package/dist/utils/NavigatorValidationContext.js.map +1 -0
  258. package/dist/utils/assertModuleBinding.d.ts +4 -0
  259. package/dist/utils/assertModuleBinding.d.ts.map +1 -0
  260. package/dist/utils/assertModuleBinding.js +14 -0
  261. package/dist/utils/assertModuleBinding.js.map +1 -0
  262. package/dist/utils/createNavigatorPlan.d.ts +6 -0
  263. package/dist/utils/createNavigatorPlan.d.ts.map +1 -0
  264. package/dist/{expo-router → utils}/createNavigatorPlan.js +67 -140
  265. package/dist/utils/createNavigatorPlan.js.map +1 -0
  266. package/dist/utils/generateNavigatorFiles.d.ts +7 -0
  267. package/dist/utils/generateNavigatorFiles.d.ts.map +1 -0
  268. package/dist/{generation → utils}/generateNavigatorFiles.js +155 -147
  269. package/dist/utils/generateNavigatorFiles.js.map +1 -0
  270. package/dist/utils/parseExpoRouterMajor.d.ts +3 -0
  271. package/dist/utils/parseExpoRouterMajor.d.ts.map +1 -0
  272. package/dist/utils/parseExpoRouterMajor.js +6 -0
  273. package/dist/utils/parseExpoRouterMajor.js.map +1 -0
  274. package/dist/utils/quote.d.ts +3 -0
  275. package/dist/utils/quote.d.ts.map +1 -0
  276. package/dist/utils/quote.js +18 -0
  277. package/dist/utils/quote.js.map +1 -0
  278. package/dist/utils/quoteJsxAttribute.d.ts +3 -0
  279. package/dist/utils/quoteJsxAttribute.d.ts.map +1 -0
  280. package/dist/utils/quoteJsxAttribute.js +5 -0
  281. package/dist/utils/quoteJsxAttribute.js.map +1 -0
  282. package/dist/utils/resolveNavigatorPreset.d.ts.map +1 -0
  283. package/dist/utils/resolveNavigatorPreset.js.map +1 -0
  284. package/dist/utils/sourceLiteral.d.ts +3 -0
  285. package/dist/utils/sourceLiteral.d.ts.map +1 -0
  286. package/dist/utils/sourceLiteral.js +21 -0
  287. package/dist/utils/sourceLiteral.js.map +1 -0
  288. package/dist/{validation → utils}/validateNavigatorManifest.d.ts +3 -2
  289. package/dist/utils/validateNavigatorManifest.d.ts.map +1 -0
  290. package/dist/{validation → utils}/validateNavigatorManifest.js +53 -92
  291. package/dist/utils/validateNavigatorManifest.js.map +1 -0
  292. package/dist/{validation → utils}/validatePresetTopology.d.ts +1 -1
  293. package/dist/utils/validatePresetTopology.d.ts.map +1 -0
  294. package/dist/{validation → utils}/validatePresetTopology.js +1 -1
  295. package/dist/utils/validatePresetTopology.js.map +1 -0
  296. package/package.json +15 -15
  297. package/dist/custom/CustomNavigatorRegistry.d.ts +0 -25
  298. package/dist/custom/CustomNavigatorRegistry.d.ts.map +0 -1
  299. package/dist/custom/CustomNavigatorRegistry.js.map +0 -1
  300. package/dist/definitions/NavigatorPlan.d.ts +0 -119
  301. package/dist/definitions/NavigatorPlan.d.ts.map +0 -1
  302. package/dist/definitions/NavigatorPlan.js.map +0 -1
  303. package/dist/expo-router/createNavigatorPlan.d.ts +0 -12
  304. package/dist/expo-router/createNavigatorPlan.d.ts.map +0 -1
  305. package/dist/expo-router/createNavigatorPlan.js.map +0 -1
  306. package/dist/expo-router/resolveCustomNavigatorPlan.d.ts.map +0 -1
  307. package/dist/expo-router/resolveCustomNavigatorPlan.js.map +0 -1
  308. package/dist/expo-router/resolveNavigatorConfig.d.ts +0 -13
  309. package/dist/expo-router/resolveNavigatorConfig.d.ts.map +0 -1
  310. package/dist/expo-router/resolveNavigatorConfig.js.map +0 -1
  311. package/dist/expo-router/resolveSplitViewNavigatorPlan.d.ts.map +0 -1
  312. package/dist/expo-router/resolveSplitViewNavigatorPlan.js.map +0 -1
  313. package/dist/expo-router/resolveTabsNavigatorPlan.d.ts.map +0 -1
  314. package/dist/expo-router/resolveTabsNavigatorPlan.js.map +0 -1
  315. package/dist/generation/generateNavigatorFiles.d.ts +0 -4
  316. package/dist/generation/generateNavigatorFiles.d.ts.map +0 -1
  317. package/dist/generation/generateNavigatorFiles.js.map +0 -1
  318. package/dist/generation/generateSplitViewLayoutFile.d.ts +0 -4
  319. package/dist/generation/generateSplitViewLayoutFile.d.ts.map +0 -1
  320. package/dist/generation/generateSplitViewLayoutFile.js.map +0 -1
  321. package/dist/generation/generateTabsLayoutFile.d.ts +0 -4
  322. package/dist/generation/generateTabsLayoutFile.d.ts.map +0 -1
  323. package/dist/generation/generateTabsLayoutFile.js.map +0 -1
  324. package/dist/generation/generationSafety.d.ts +0 -10
  325. package/dist/generation/generationSafety.d.ts.map +0 -1
  326. package/dist/generation/generationSafety.js +0 -54
  327. package/dist/generation/generationSafety.js.map +0 -1
  328. package/dist/index.d.ts +0 -12
  329. package/dist/index.d.ts.map +0 -1
  330. package/dist/index.js +0 -8
  331. package/dist/index.js.map +0 -1
  332. package/dist/metadata/index.d.ts.map +0 -1
  333. package/dist/metadata/index.js.map +0 -1
  334. package/dist/presentation/resolveCustomTabsPresentation.d.ts.map +0 -1
  335. package/dist/presentation/resolveCustomTabsPresentation.js.map +0 -1
  336. package/dist/tabs/CustomTabsLayout.d.ts +0 -39
  337. package/dist/tabs/CustomTabsLayout.d.ts.map +0 -1
  338. package/dist/tabs/CustomTabsLayout.js.map +0 -1
  339. package/dist/tabs/index.d.ts +0 -3
  340. package/dist/tabs/index.d.ts.map +0 -1
  341. package/dist/tabs/index.js +0 -2
  342. package/dist/tabs/index.js.map +0 -1
  343. package/dist/tabs/nativeIconFamilies.d.ts +0 -16
  344. package/dist/tabs/nativeIconFamilies.d.ts.map +0 -1
  345. package/dist/tabs/nativeIconFamilies.js +0 -24
  346. package/dist/tabs/nativeIconFamilies.js.map +0 -1
  347. package/dist/topology/resolveNavigatorPreset.d.ts.map +0 -1
  348. package/dist/topology/resolveNavigatorPreset.js.map +0 -1
  349. package/dist/validation/validateCustomNavigator.d.ts.map +0 -1
  350. package/dist/validation/validateCustomNavigator.js.map +0 -1
  351. package/dist/validation/validateExperimentalStack.d.ts.map +0 -1
  352. package/dist/validation/validateExperimentalStack.js.map +0 -1
  353. package/dist/validation/validateNavigatorManifest.d.ts.map +0 -1
  354. package/dist/validation/validateNavigatorManifest.js.map +0 -1
  355. package/dist/validation/validatePresetTopology.d.ts.map +0 -1
  356. package/dist/validation/validatePresetTopology.js.map +0 -1
  357. package/dist/validation/validateSplitView.d.ts.map +0 -1
  358. package/dist/validation/validateSplitView.js.map +0 -1
  359. package/dist/validation/validateTabsNavigator.d.ts.map +0 -1
  360. package/dist/validation/validateTabsNavigator.js.map +0 -1
  361. /package/dist/{definitions → utils}/NavigatorPlan.js +0 -0
  362. /package/dist/{topology → utils}/resolveNavigatorPreset.d.ts +0 -0
  363. /package/dist/{topology → utils}/resolveNavigatorPreset.js +0 -0
@@ -0,0 +1,14 @@
1
+ import type { NavigatorDiagnostic } from './NavigatorDiagnostic';
2
+ import type { NavigatorNodePlan } from './NavigatorNodePlan';
3
+ import type { NavigatorValidationContext } from './NavigatorValidationContext';
4
+ export interface NavigatorPlan {
5
+ context: NavigatorValidationContext;
6
+ root: NavigatorNodePlan;
7
+ diagnostics: readonly NavigatorDiagnostic[];
8
+ supported: boolean;
9
+ flows: {
10
+ onboarding: boolean;
11
+ authentication: boolean;
12
+ };
13
+ }
14
+ //# sourceMappingURL=NavigatorPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorPlan.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,0BAA0B,CAAC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,WAAW,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;CACH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorPlan.js","sourceRoot":"","sources":["../../src/utils/NavigatorPlan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type NavigatorResponsiveSize = 'compact' | 'medium' | 'expanded';
2
+ //# sourceMappingURL=NavigatorResponsiveSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorResponsiveSize.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorResponsiveSize.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorResponsiveSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorResponsiveSize.js","sourceRoot":"","sources":["../../src/utils/NavigatorResponsiveSize.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { RouteDefinition, StackScreenOptions } from '@ankhorage/contracts/navigator';
2
+ import type { NavigatorNodePlan } from './NavigatorNodePlan';
3
+ export interface NavigatorRoutePlan {
4
+ name: string;
5
+ path?: string;
6
+ label?: string;
7
+ icon?: RouteDefinition['icon'];
8
+ showInPrimaryNavigation?: boolean;
9
+ guards: readonly string[];
10
+ screenId?: string;
11
+ stackOptions?: StackScreenOptions;
12
+ navigator?: NavigatorNodePlan;
13
+ }
14
+ //# sourceMappingURL=NavigatorRoutePlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorRoutePlan.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorRoutePlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAE1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorRoutePlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorRoutePlan.js","sourceRoot":"","sources":["../../src/utils/NavigatorRoutePlan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type NavigatorRuntimePlatform = 'android' | 'ios' | 'web';
2
+ //# sourceMappingURL=NavigatorRuntimePlatform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorRuntimePlatform.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorRuntimePlatform.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorRuntimePlatform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorRuntimePlatform.js","sourceRoot":"","sources":["../../src/utils/NavigatorRuntimePlatform.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface NavigatorScreenModule {
2
+ module: string;
3
+ exportName: string;
4
+ }
5
+ //# sourceMappingURL=NavigatorScreenModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorScreenModule.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorScreenModule.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorScreenModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorScreenModule.js","sourceRoot":"","sources":["../../src/utils/NavigatorScreenModule.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type NavigatorSupportStatus = 'supported' | 'unavailable';
2
+ //# sourceMappingURL=NavigatorSupportStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorSupportStatus.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorSupportStatus.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,WAAW,GAAG,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorSupportStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorSupportStatus.js","sourceRoot":"","sources":["../../src/utils/NavigatorSupportStatus.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { NavigatorRuntimePlatform } from './NavigatorRuntimePlatform';
2
+ export interface NavigatorValidationContext {
3
+ platform: NavigatorRuntimePlatform;
4
+ expoRouterVersion: string;
5
+ }
6
+ //# sourceMappingURL=NavigatorValidationContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorValidationContext.d.ts","sourceRoot":"","sources":["../../src/utils/NavigatorValidationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NavigatorValidationContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigatorValidationContext.js","sourceRoot":"","sources":["../../src/utils/NavigatorValidationContext.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorScreenModule } from './NavigatorScreenModule';
2
+ /*** Reject module and export bindings that cannot be emitted as safe static imports. */
3
+ export declare function assertModuleBinding(binding: NavigatorScreenModule, description: string): void;
4
+ //# sourceMappingURL=assertModuleBinding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertModuleBinding.d.ts","sourceRoot":"","sources":["../../src/utils/assertModuleBinding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAW7F"}
@@ -0,0 +1,14 @@
1
+ /*** Reject module and export bindings that cannot be emitted as safe static imports. */
2
+ export function assertModuleBinding(binding, description) {
3
+ if (!SAFE_MODULE.test(binding.module) ||
4
+ binding.module.includes('\\') ||
5
+ binding.module.split('/').slice(1).includes('..')) {
6
+ throw new Error(`${description} has an unsafe module specifier.`);
7
+ }
8
+ if (!SAFE_EXPORT_NAME.test(binding.exportName)) {
9
+ throw new Error(`${description} has an invalid exported symbol.`);
10
+ }
11
+ }
12
+ const SAFE_MODULE = /^(?:@\/[A-Za-z0-9_./-]+|\.{1,2}\/[A-Za-z0-9_./-]+|@?[A-Za-z0-9][A-Za-z0-9._-]*(?:\/[A-Za-z0-9._-]+)*)$/u;
13
+ const SAFE_EXPORT_NAME = /^[A-Za-z_$][A-Za-z0-9_$]*$/u;
14
+ //# sourceMappingURL=assertModuleBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertModuleBinding.js","sourceRoot":"","sources":["../../src/utils/assertModuleBinding.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,MAAM,UAAU,mBAAmB,CAAC,OAA8B,EAAE,WAAmB;IACrF,IACE,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACjC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EACjD,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,GAAG,WAAW,kCAAkC,CAAC,CAAC;IACpE,CAAC;IACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,GAAG,WAAW,kCAAkC,CAAC,CAAC;IACpE,CAAC;AACH,CAAC;AAED,MAAM,WAAW,GACf,yGAAyG,CAAC;AAE5G,MAAM,gBAAgB,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { AppNavigatorManifest } from '@ankhorage/contracts/navigator';
2
+ import type { CreateNavigatorPlanOptions } from './CreateNavigatorPlanOptions';
3
+ import type { NavigatorPlan } from './NavigatorPlan';
4
+ /*** Create a disposable, provider-aware plan from only the navigator desired-state slice. */
5
+ export declare function createNavigatorPlan(manifest: AppNavigatorManifest, options: CreateNavigatorPlanOptions): NavigatorPlan;
6
+ //# sourceMappingURL=createNavigatorPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNavigatorPlan.d.ts","sourceRoot":"","sources":["../../src/utils/createNavigatorPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,gCAAgC,CAAC;AAaxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,6FAA6F;AAC7F,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,0BAA0B,GAClC,aAAa,CAmBf"}
@@ -1,88 +1,81 @@
1
- import { validateNavigatorManifest } from '../validation/validateNavigatorManifest';
2
- import { resolveCustomNavigatorAdapterPlan } from './resolveCustomNavigatorPlan';
3
- import { parseExpoRouterMajor, resolveEffectiveStackConfig, resolveEffectiveTabsConfig, } from './resolveNavigatorConfig';
4
- import { resolveSplitViewAdapterPlan } from './resolveSplitViewNavigatorPlan';
5
- import { resolveTabsNavigatorPlan } from './resolveTabsNavigatorPlan';
6
- /*** Resolve a Stack implementation to its version- and platform-aware Expo Router adapter. */
7
- function createStackAdapter(stack, platform, routerMajor) {
8
- const implementation = stack?.implementation ?? 'native';
9
- if (implementation === 'javascript') {
10
- return {
11
- id: 'stack.javascript',
12
- module: 'expo-router/js-stack',
13
- exportName: 'Stack',
14
- support: routerMajor !== undefined && routerMajor >= 56 ? 'supported' : 'unavailable',
15
- stability: 'stable',
16
- limitations: ['Requires Expo Router 56.0.0 or newer.'],
17
- };
18
- }
19
- if (implementation === 'experimental') {
20
- return {
21
- id: 'stack.experimental',
22
- module: 'expo-router',
23
- exportName: 'ExperimentalStack',
24
- support: routerMajor !== undefined && routerMajor >= 56 ? 'supported' : 'unavailable',
25
- stability: 'alpha',
26
- limitations: platform === 'web'
27
- ? ['Testing-only API; Expo Router falls back to the standard Stack on web.']
28
- : [
29
- 'Testing-only API; supports only title and header visibility options.',
30
- ...(platform === 'android'
31
- ? [
32
- 'Cannot coexist with the standard native Stack on Android.',
33
- 'Requires android.predictiveBackGestureEnabled in app config.',
34
- ]
35
- : []),
36
- ],
37
- };
38
- }
1
+ import { resolveCustomNavigatorAdapterPlan } from '../features/custom/application/resolveCustomNavigatorAdapterPlan';
2
+ import { createDrawerAdapter } from '../features/drawer/application/createDrawerAdapter';
3
+ import { createSlotAdapter } from '../features/slot/application/createSlotAdapter';
4
+ import { resolveSplitViewAdapterPlan } from '../features/split-view/application/resolveSplitViewAdapterPlan';
5
+ import { createStackAdapter } from '../features/stack/application/createStackAdapter';
6
+ import { resolveEffectiveStackConfig } from '../features/stack/domain/resolveEffectiveStackConfig';
7
+ import { createTabsAdapter } from '../features/tabs/application/createTabsAdapter';
8
+ import { resolveTabsPlan } from '../features/tabs/application/resolveTabsPlan';
9
+ import { resolveEffectiveTabsConfig } from '../features/tabs/domain/resolveEffectiveTabsConfig';
10
+ import { parseExpoRouterMajor } from './parseExpoRouterMajor';
11
+ import { validateNavigatorManifest } from './validateNavigatorManifest';
12
+ /*** Create a disposable, provider-aware plan from only the navigator desired-state slice. */
13
+ export function createNavigatorPlan(manifest, options) {
14
+ const context = {
15
+ platform: options.platform,
16
+ expoRouterVersion: options.expoRouterVersion,
17
+ };
18
+ const diagnostics = validateNavigatorManifest(manifest, context, options.customNavigators);
19
+ const root = createNodePlan(manifest, manifest, '', options, options.responsiveSize ?? 'compact');
39
20
  return {
40
- id: 'stack.native',
41
- module: 'expo-router',
42
- exportName: 'Stack',
43
- support: 'supported',
44
- stability: 'stable',
45
- limitations: [],
21
+ context,
22
+ root,
23
+ diagnostics,
24
+ supported: diagnostics.every((diagnostic) => diagnostic.severity !== 'error') &&
25
+ root.adapter.support === 'supported',
26
+ flows: {
27
+ onboarding: manifest.flows?.onboarding ?? false,
28
+ authentication: manifest.flows?.authentication ?? false,
29
+ },
46
30
  };
47
31
  }
48
- function createTabsAdapter(tabs, platform, routerMajor) {
49
- const nativeUnavailable = tabs.implementation === 'native' &&
50
- (platform === 'web' || routerMajor === undefined || routerMajor < 54);
32
+ /*** Resolve a node and its descendants using one platform and responsive-size context. */
33
+ function createNodePlan(manifest, node, pointer, options, responsiveSize) {
34
+ const stack = node.type === 'stack'
35
+ ? resolveEffectiveStackConfig(manifest, node, options.platform)
36
+ : undefined;
37
+ const tabs = node.type === 'tabs'
38
+ ? resolveTabsPlan(resolveEffectiveTabsConfig(manifest, node, options.platform), options.platform, responsiveSize)
39
+ : undefined;
40
+ const routes = node.routes.map((route, index) => createRoutePlan(manifest, route, `${pointer}/routes/${index}`, options, responsiveSize));
51
41
  return {
52
- id: `tabs.${tabs.implementation}`,
53
- module: tabs.module,
54
- exportName: tabs.exportName,
55
- support: nativeUnavailable ? 'unavailable' : 'supported',
56
- stability: tabs.stability,
57
- limitations: tabs.implementation === 'native'
58
- ? ['Alpha API; unavailable on web and requires Expo Router 54.0.0 or newer.']
59
- : tabs.implementation === 'custom'
60
- ? ['Surface presentation over Expo Router headless tabs.']
61
- : [],
42
+ type: node.type,
43
+ pointer,
44
+ adapter: createAdapter(node, stack, tabs, options.platform, parseExpoRouterMajor(options.expoRouterVersion), options.customNavigators),
45
+ ...(node.initialRouteName === undefined ? {} : { initialRouteName: node.initialRouteName }),
46
+ routes,
47
+ ...createNodeDetails(node, stack, tabs),
48
+ };
49
+ }
50
+ /*** Preserve portable route metadata and recursively plan a nested navigator when present. */
51
+ function createRoutePlan(manifest, route, pointer, options, responsiveSize) {
52
+ return {
53
+ name: route.name,
54
+ ...(route.path === undefined ? {} : { path: route.path }),
55
+ ...(route.label === undefined ? {} : { label: route.label }),
56
+ ...(route.icon === undefined ? {} : { icon: route.icon }),
57
+ ...(route.showInPrimaryNavigation === undefined
58
+ ? {}
59
+ : { showInPrimaryNavigation: route.showInPrimaryNavigation }),
60
+ guards: route.guards ?? [],
61
+ ...(route.screenId === undefined ? {} : { screenId: route.screenId }),
62
+ ...(route.stackOptions === undefined ? {} : { stackOptions: route.stackOptions }),
63
+ ...(route.navigator === undefined
64
+ ? {}
65
+ : {
66
+ navigator: createNodePlan(manifest, route.navigator, `${pointer}/navigator`, options, responsiveSize),
67
+ }),
62
68
  };
63
69
  }
70
+ /*** Dispatch adapter planning to the feature that owns the authored navigator type. */
64
71
  function createAdapter(node, stack, tabs, platform, routerMajor, customNavigators) {
65
72
  switch (node.type) {
66
73
  case 'slot':
67
- return {
68
- id: 'slot',
69
- module: 'expo-router',
70
- exportName: 'Slot',
71
- support: 'supported',
72
- stability: 'stable',
73
- limitations: [],
74
- };
74
+ return createSlotAdapter();
75
75
  case 'stack':
76
76
  return createStackAdapter(stack, platform, routerMajor);
77
77
  case 'drawer':
78
- return {
79
- id: 'drawer',
80
- module: 'expo-router/drawer',
81
- exportName: 'Drawer',
82
- support: 'supported',
83
- stability: 'stable',
84
- limitations: [],
85
- };
78
+ return createDrawerAdapter();
86
79
  case 'tabs':
87
80
  if (tabs === undefined)
88
81
  throw new Error('Tabs planning did not resolve an adapter.');
@@ -93,17 +86,7 @@ function createAdapter(node, stack, tabs, platform, routerMajor, customNavigator
93
86
  return resolveCustomNavigatorAdapterPlan(node, platform, routerMajor, customNavigators);
94
87
  }
95
88
  }
96
- function resolveTabsPlan(config, platform, responsiveSize) {
97
- if (config?.implementation === 'native' && platform === 'web') {
98
- return {
99
- implementation: 'native',
100
- module: 'expo-router/unstable-native-tabs',
101
- exportName: 'NativeTabs',
102
- stability: 'alpha',
103
- };
104
- }
105
- return resolveTabsNavigatorPlan(config, platform, responsiveSize);
106
- }
89
+ /*** Project each navigator's resolved configuration onto the shared recursive plan. */
107
90
  function createNodeDetails(node, stack, tabs) {
108
91
  switch (node.type) {
109
92
  case 'stack':
@@ -143,60 +126,4 @@ function createNodeDetails(node, stack, tabs) {
143
126
  return {};
144
127
  }
145
128
  }
146
- function createRoutePlan(manifest, route, pointer, options, responsiveSize) {
147
- return {
148
- name: route.name,
149
- ...(route.path === undefined ? {} : { path: route.path }),
150
- ...(route.label === undefined ? {} : { label: route.label }),
151
- ...(route.icon === undefined ? {} : { icon: route.icon }),
152
- ...(route.showInPrimaryNavigation === undefined
153
- ? {}
154
- : { showInPrimaryNavigation: route.showInPrimaryNavigation }),
155
- guards: route.guards ?? [],
156
- ...(route.screenId === undefined ? {} : { screenId: route.screenId }),
157
- ...(route.stackOptions === undefined ? {} : { stackOptions: route.stackOptions }),
158
- ...(route.navigator === undefined
159
- ? {}
160
- : {
161
- navigator: createNodePlan(manifest, route.navigator, `${pointer}/navigator`, options, responsiveSize),
162
- }),
163
- };
164
- }
165
- function createNodePlan(manifest, node, pointer, options, responsiveSize) {
166
- const stack = node.type === 'stack'
167
- ? resolveEffectiveStackConfig(manifest, node, options.platform)
168
- : undefined;
169
- const tabs = node.type === 'tabs'
170
- ? resolveTabsPlan(resolveEffectiveTabsConfig(manifest, node, options.platform), options.platform, responsiveSize)
171
- : undefined;
172
- const routes = node.routes.map((route, index) => createRoutePlan(manifest, route, `${pointer}/routes/${index}`, options, responsiveSize));
173
- return {
174
- type: node.type,
175
- pointer,
176
- adapter: createAdapter(node, stack, tabs, options.platform, parseExpoRouterMajor(options.expoRouterVersion), options.customNavigators),
177
- ...(node.initialRouteName === undefined ? {} : { initialRouteName: node.initialRouteName }),
178
- routes,
179
- ...createNodeDetails(node, stack, tabs),
180
- };
181
- }
182
- /*** Create a disposable, provider-aware plan from only the navigator desired-state slice. */
183
- export function createNavigatorPlan(manifest, options) {
184
- const context = {
185
- platform: options.platform,
186
- expoRouterVersion: options.expoRouterVersion,
187
- };
188
- const diagnostics = validateNavigatorManifest(manifest, context, options.customNavigators);
189
- const root = createNodePlan(manifest, manifest, '', options, options.responsiveSize ?? 'compact');
190
- return {
191
- context,
192
- root,
193
- diagnostics,
194
- supported: diagnostics.every((diagnostic) => diagnostic.severity !== 'error') &&
195
- root.adapter.support === 'supported',
196
- flows: {
197
- onboarding: manifest.flows?.onboarding ?? false,
198
- authentication: manifest.flows?.authentication ?? false,
199
- },
200
- };
201
- }
202
129
  //# sourceMappingURL=createNavigatorPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNavigatorPlan.js","sourceRoot":"","sources":["../../src/utils/createNavigatorPlan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iCAAiC,EAAE,MAAM,kEAAkE,CAAC;AAErH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAA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P,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ;wBACtC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS;4BAC1C,CAAC,CAAC,EAAE;4BACJ,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;qBAC5D;oBACD,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;oBAC/E,GAAG,CAAC,IAAI,CAAC,sBAAsB,KAAK,SAAS;wBAC3C,CAAC,CAAC,EAAE;wBACJ,CAAC,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EAAE,CAAC;iBAC7D;aACF,CAAC;QACJ,KAAK,QAAQ;YACX,OAAO;gBACL,MAAM,EAAE;oBACN,WAAW,EAAE,IAAI,CAAC,WAAW;oBAC7B,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;iBAC9D;aACF,CAAC;QACJ,KAAK,MAAM;YACT,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { NavigatorGeneratedFile } from './NavigatorGeneratedFile';
2
+ import type { NavigatorGenerationBindings } from './NavigatorGenerationBindings';
3
+ import type { NavigatorGenerationOptions } from './NavigatorGenerationOptions';
4
+ import type { NavigatorPlan } from './NavigatorPlan';
5
+ /*** Generate deterministic Expo Router files from a validated disposable plan and narrow bindings. */
6
+ export declare function generateNavigatorFiles(plan: NavigatorPlan, bindings: NavigatorGenerationBindings, options?: NavigatorGenerationOptions): readonly NavigatorGeneratedFile[];
7
+ //# sourceMappingURL=generateNavigatorFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateNavigatorFiles.d.ts","sourceRoot":"","sources":["../../src/utils/generateNavigatorFiles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,sGAAsG;AACtG,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,2BAA2B,EACrC,OAAO,GAAE,0BAA+B,GACvC,SAAS,sBAAsB,EAAE,CAsBnC"}