@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/navigator
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ccf2f1a: Organize Navigator implementation by slot, stack, tabs, drawer, split-view, and custom features with explicit domain, application, and adapter ownership. Preserve the published package subpaths and symbols through named entrypoints, remove legacy source directories, and verify inward dependencies and public exports.
8
+
9
+ ## 1.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 1147bbf: Update Ankhorage dependencies: `@ankhorage/surface`.
14
+
3
15
  ## 1.6.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # NAVIGATOR
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v1.5.1](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v1.6.1](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Standalone Navigator capability with topology configured independently from platform implementation and visual presentation. Adaptive tabs provide native and responsive web adapters; experimental Stack and Split View stay testing-only with validated upstream fallbacks.
9
9
 
@@ -1,6 +1,7 @@
1
1
  import type { CustomNavigatorNode } from '@ankhorage/contracts/navigator';
2
- import type { CustomNavigatorRegistry } from '../custom/CustomNavigatorRegistry';
3
- import type { NavigatorAdapterPlan, NavigatorRuntimePlatform } from '../definitions/NavigatorPlan';
2
+ import type { NavigatorAdapterPlan } from '../../../utils/NavigatorAdapterPlan';
3
+ import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
4
+ import type { CustomNavigatorRegistry } from '../domain/CustomNavigatorRegistry';
4
5
  /*** Resolve a registered standard-router integration without materializing executable manifest data. */
5
6
  export declare function resolveCustomNavigatorAdapterPlan(node: CustomNavigatorNode, platform: NavigatorRuntimePlatform, routerMajor: number | undefined, registry: CustomNavigatorRegistry | undefined): NavigatorAdapterPlan;
6
- //# sourceMappingURL=resolveCustomNavigatorPlan.d.ts.map
7
+ //# sourceMappingURL=resolveCustomNavigatorAdapterPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveCustomNavigatorAdapterPlan.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/application/resolveCustomNavigatorAdapterPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,wGAAwG;AACxG,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,wBAAwB,EAClC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,QAAQ,EAAE,uBAAuB,GAAG,SAAS,GAC5C,oBAAoB,CAmBtB"}
@@ -18,4 +18,4 @@ export function resolveCustomNavigatorAdapterPlan(node, platform, routerMajor, r
18
18
  ],
19
19
  };
20
20
  }
21
- //# sourceMappingURL=resolveCustomNavigatorPlan.js.map
21
+ //# sourceMappingURL=resolveCustomNavigatorAdapterPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveCustomNavigatorAdapterPlan.js","sourceRoot":"","sources":["../../../../src/features/custom/application/resolveCustomNavigatorAdapterPlan.ts"],"names":[],"mappings":"AAMA,wGAAwG;AACxG,MAAM,UAAU,iCAAiC,CAC/C,IAAyB,EACzB,QAAkC,EAClC,WAA+B,EAC/B,QAA6C;IAE7C,MAAM,YAAY,GAAG,QAAQ,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,MAAM,SAAS,GACb,YAAY,KAAK,SAAS;QAC1B,YAAY,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACzC,WAAW,KAAK,SAAS;QACzB,WAAW,IAAI,EAAE,CAAC;IACpB,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,GAAG,CAAC,YAAY,KAAK,SAAS;YAC5B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,UAAU,EAAE,CAAC;QACzE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa;QAChD,SAAS,EAAE,YAAY,EAAE,SAAS,IAAI,OAAO;QAC7C,WAAW,EAAE;YACX,oEAAoE;YACpE,gFAAgF;SACjF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface CustomNavigatorConfigIssue {
2
+ code: string;
3
+ message: string;
4
+ path?: string;
5
+ }
6
+ //# sourceMappingURL=CustomNavigatorConfigIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorConfigIssue.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorConfigIssue.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CustomNavigatorConfigIssue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorConfigIssue.js","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorConfigIssue.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { CustomNavigatorNode } from '@ankhorage/contracts/navigator';
2
+ import type { NavigatorApiStability } from '../../../utils/NavigatorApiStability';
3
+ import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
4
+ import type { CustomNavigatorConfigIssue } from './CustomNavigatorConfigIssue';
5
+ export interface CustomNavigatorRegistration {
6
+ readonly id: string;
7
+ readonly platforms: readonly NavigatorRuntimePlatform[];
8
+ readonly stability: NavigatorApiStability;
9
+ readonly integration: 'expo-router-standard';
10
+ readonly router: 'stack' | 'tab';
11
+ readonly module: string;
12
+ readonly exportName: string;
13
+ readonly validateConfig: (config: CustomNavigatorNode['config']) => readonly CustomNavigatorConfigIssue[];
14
+ }
15
+ //# sourceMappingURL=CustomNavigatorRegistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorRegistration.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACxD,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,sBAAsB,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,CACvB,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,KAClC,SAAS,0BAA0B,EAAE,CAAC;CAC5C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CustomNavigatorRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorRegistration.js","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorRegistration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { CustomNavigatorRegistration } from './CustomNavigatorRegistration';
2
+ export type CustomNavigatorRegistry = Readonly<Record<string, CustomNavigatorRegistration>> & {
3
+ readonly [CUSTOM_NAVIGATOR_REGISTRY]: true;
4
+ };
5
+ declare const CUSTOM_NAVIGATOR_REGISTRY: unique symbol;
6
+ export {};
7
+ //# sourceMappingURL=CustomNavigatorRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorRegistry.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC,GAAG;IAC5F,QAAQ,CAAC,CAAC,yBAAyB,CAAC,EAAE,IAAI,CAAC;CAC5C,CAAC;AAEF,OAAO,CAAC,MAAM,yBAAyB,EAAE,OAAO,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CustomNavigatorRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomNavigatorRegistry.js","sourceRoot":"","sources":["../../../../src/features/custom/domain/CustomNavigatorRegistry.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import type { AppNavigatorManifest } from '@ankhorage/contracts/navigator';
2
- import type { CustomNavigatorRegistry } from '../custom/CustomNavigatorRegistry';
3
- import type { NavigatorDiagnostic, NavigatorValidationContext } from '../definitions/NavigatorPlan';
2
+ import type { NavigatorDiagnostic } from '../../../utils/NavigatorDiagnostic';
3
+ import type { NavigatorValidationContext } from '../../../utils/NavigatorValidationContext';
4
+ import type { CustomNavigatorRegistry } from './CustomNavigatorRegistry';
4
5
  /*** Validate all deliberately registered custom navigator extension nodes. */
5
6
  export declare function addCustomNavigatorDiagnostics(diagnostics: NavigatorDiagnostic[], manifest: AppNavigatorManifest, context: NavigatorValidationContext, routerMajor: number | undefined, registry: CustomNavigatorRegistry | undefined): void;
6
- //# sourceMappingURL=validateCustomNavigator.d.ts.map
7
+ //# sourceMappingURL=addCustomNavigatorDiagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addCustomNavigatorDiagnostics.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/domain/addCustomNavigatorDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAiB,MAAM,gCAAgC,CAAC;AAE1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,8EAA8E;AAC9E,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,mBAAmB,EAAE,EAClC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,0BAA0B,EACnC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,QAAQ,EAAE,uBAAuB,GAAG,SAAS,GAC5C,IAAI,CAEN"}
@@ -1,28 +1,32 @@
1
- /*** Validate finite JSON manifest data without accepting functions, symbols, cycles, or prototypes. */
2
- function isPortableConfig(value, ancestors) {
3
- if (value === null || typeof value === 'string' || typeof value === 'boolean')
4
- return true;
5
- if (typeof value === 'number')
6
- return Number.isFinite(value);
7
- if (typeof value !== 'object' || ancestors.has(value))
8
- return false;
9
- if (Array.isArray(value)) {
10
- if (Object.keys(value).length !== value.length ||
11
- Object.getOwnPropertySymbols(value).length > 0) {
12
- return false;
1
+ /*** Validate all deliberately registered custom navigator extension nodes. */
2
+ export function addCustomNavigatorDiagnostics(diagnostics, manifest, context, routerMajor, registry) {
3
+ validateCustomTree(diagnostics, manifest, '', context, routerMajor, registry);
4
+ }
5
+ /*** Traverse custom navigator extensions independently from built-in navigator option policy. */
6
+ function validateCustomTree(diagnostics, node, pointer, context, routerMajor, registry) {
7
+ if (node.type === 'custom') {
8
+ addCustomNodeDiagnostics(diagnostics, node, pointer, context, routerMajor, registry);
9
+ }
10
+ for (const [index, route] of node.routes.entries()) {
11
+ if (route.navigator !== undefined) {
12
+ validateCustomTree(diagnostics, route.navigator, `${pointer}/routes/${index}/navigator`, context, routerMajor, registry);
13
13
  }
14
14
  }
15
- else {
16
- const prototype = Object.getPrototypeOf(value);
17
- if (prototype !== Object.prototype && prototype !== null)
18
- return false;
19
- if (Reflect.ownKeys(value).some((key) => typeof key !== 'string'))
20
- return false;
15
+ }
16
+ /*** Add registry, platform, version, and schema diagnostics for one custom navigator node. */
17
+ function addCustomNodeDiagnostics(diagnostics, node, pointer, context, routerMajor, registry) {
18
+ const registration = registry?.[node.navigatorId];
19
+ if (registration === undefined) {
20
+ diagnostics.push({
21
+ code: 'unregistered-custom-navigator',
22
+ severity: 'error',
23
+ path: `${pointer}/navigatorId`,
24
+ message: `Custom navigator ${JSON.stringify(node.navigatorId)} is not registered.`,
25
+ });
26
+ return;
21
27
  }
22
- ancestors.add(value);
23
- const valid = Object.values(value).every((entry) => isPortableConfig(entry, ancestors));
24
- ancestors.delete(value);
25
- return valid;
28
+ addCompatibilityDiagnostics(diagnostics, node, pointer, context, routerMajor, registration);
29
+ addConfigDiagnostics(diagnostics, node, pointer, registration);
26
30
  }
27
31
  /*** Add platform and Expo Router compatibility diagnostics for one registered extension. */
28
32
  function addCompatibilityDiagnostics(diagnostics, node, pointer, context, routerMajor, registration) {
@@ -73,34 +77,30 @@ function addConfigDiagnostics(diagnostics, node, pointer, registration) {
73
77
  });
74
78
  }
75
79
  }
76
- /*** Add registry, platform, version, and schema diagnostics for one custom navigator node. */
77
- function addCustomNodeDiagnostics(diagnostics, node, pointer, context, routerMajor, registry) {
78
- const registration = registry?.[node.navigatorId];
79
- if (registration === undefined) {
80
- diagnostics.push({
81
- code: 'unregistered-custom-navigator',
82
- severity: 'error',
83
- path: `${pointer}/navigatorId`,
84
- message: `Custom navigator ${JSON.stringify(node.navigatorId)} is not registered.`,
85
- });
86
- return;
87
- }
88
- addCompatibilityDiagnostics(diagnostics, node, pointer, context, routerMajor, registration);
89
- addConfigDiagnostics(diagnostics, node, pointer, registration);
90
- }
91
- /*** Traverse custom navigator extensions independently from built-in navigator option policy. */
92
- function validateCustomTree(diagnostics, node, pointer, context, routerMajor, registry) {
93
- if (node.type === 'custom') {
94
- addCustomNodeDiagnostics(diagnostics, node, pointer, context, routerMajor, registry);
95
- }
96
- for (const [index, route] of node.routes.entries()) {
97
- if (route.navigator !== undefined) {
98
- validateCustomTree(diagnostics, route.navigator, `${pointer}/routes/${index}/navigator`, context, routerMajor, registry);
80
+ /*** Validate finite JSON manifest data without accepting functions, symbols, cycles, or prototypes. */
81
+ function isPortableConfig(value, ancestors) {
82
+ if (value === null || typeof value === 'string' || typeof value === 'boolean')
83
+ return true;
84
+ if (typeof value === 'number')
85
+ return Number.isFinite(value);
86
+ if (typeof value !== 'object' || ancestors.has(value))
87
+ return false;
88
+ if (Array.isArray(value)) {
89
+ if (Object.keys(value).length !== value.length ||
90
+ Object.getOwnPropertySymbols(value).length > 0) {
91
+ return false;
99
92
  }
100
93
  }
94
+ else {
95
+ const prototype = Object.getPrototypeOf(value);
96
+ if (prototype !== Object.prototype && prototype !== null)
97
+ return false;
98
+ if (Reflect.ownKeys(value).some((key) => typeof key !== 'string'))
99
+ return false;
100
+ }
101
+ ancestors.add(value);
102
+ const valid = Object.values(value).every((entry) => isPortableConfig(entry, ancestors));
103
+ ancestors.delete(value);
104
+ return valid;
101
105
  }
102
- /*** Validate all deliberately registered custom navigator extension nodes. */
103
- export function addCustomNavigatorDiagnostics(diagnostics, manifest, context, routerMajor, registry) {
104
- validateCustomTree(diagnostics, manifest, '', context, routerMajor, registry);
105
- }
106
- //# sourceMappingURL=validateCustomNavigator.js.map
106
+ //# sourceMappingURL=addCustomNavigatorDiagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addCustomNavigatorDiagnostics.js","sourceRoot":"","sources":["../../../../src/features/custom/domain/addCustomNavigatorDiagnostics.ts"],"names":[],"mappings":"AAMA,8EAA8E;AAC9E,MAAM,UAAU,6BAA6B,CAC3C,WAAkC,EAClC,QAA8B,EAC9B,OAAmC,EACnC,WAA+B,EAC/B,QAA6C;IAE7C,kBAAkB,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AAChF,CAAC;AAED,iGAAiG;AACjG,SAAS,kBAAkB,CACzB,WAAkC,EAClC,IAAmB,EACnB,OAAe,EACf,OAAmC,EACnC,WAA+B,EAC/B,QAA6C;IAE7C,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,wBAAwB,CAAC,WAAW,EAA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AC,GAAG,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;YAAE,OAAO,KAAK,CAAC;IAClF,CAAC;IACD,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IACxF,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxB,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { CustomNavigatorRegistration } from './CustomNavigatorRegistration';
2
+ import type { CustomNavigatorRegistry } from './CustomNavigatorRegistry';
3
+ /*** Define an immutable, duplicate-free custom navigator registry for one composition boundary. */
4
+ export declare function defineCustomNavigatorRegistry(registrations: readonly CustomNavigatorRegistration[]): CustomNavigatorRegistry;
5
+ //# sourceMappingURL=defineCustomNavigatorRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineCustomNavigatorRegistry.d.ts","sourceRoot":"","sources":["../../../../src/features/custom/domain/defineCustomNavigatorRegistry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,mGAAmG;AACnG,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,SAAS,2BAA2B,EAAE,GACpD,uBAAuB,CAkCzB"}
@@ -1,6 +1,4 @@
1
- import { assertModuleBinding } from '../generation/generationSafety';
2
- const REGISTRATION_ID = /^[A-Za-z][A-Za-z0-9._-]*$/u;
3
- const RUNTIME_PLATFORMS = new Set(['android', 'ios', 'web']);
1
+ import { assertModuleBinding } from '../../../utils/assertModuleBinding';
4
2
  /*** Define an immutable, duplicate-free custom navigator registry for one composition boundary. */
5
3
  export function defineCustomNavigatorRegistry(registrations) {
6
4
  const registry = Object.create(null);
@@ -27,4 +25,6 @@ export function defineCustomNavigatorRegistry(registrations) {
27
25
  }
28
26
  return Object.freeze(registry);
29
27
  }
30
- //# sourceMappingURL=CustomNavigatorRegistry.js.map
28
+ const REGISTRATION_ID = /^[A-Za-z][A-Za-z0-9._-]*$/u;
29
+ const RUNTIME_PLATFORMS = new Set(['android', 'ios', 'web']);
30
+ //# sourceMappingURL=defineCustomNavigatorRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineCustomNavigatorRegistry.js","sourceRoot":"","sources":["../../../../src/features/custom/domain/defineCustomNavigatorRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAKzE,mGAAmG;AACnG,MAAM,UAAU,6BAA6B,CAC3C,aAAqD;IAErD,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAgD,CAAC;IACpF,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CACb,4CAA4C,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,CAC/E,CAAC;QACJ,CAAC;QACD,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CACb,8CAA8C,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,CACjF,CAAC;QACJ,CAAC;QACD,IACE,YAAY,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;YACnC,IAAI,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,SAAS,CAAC,MAAM;YACtE,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAC3E,CAAC;YACD,MAAM,IAAI,KAAK,CACb,oBAAoB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,2CAA2C,CAC/F,CAAC;QACJ,CAAC;QACD,IAAI,OAAO,YAAY,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;YACtD,MAAM,IAAI,KAAK,CACb,oBAAoB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,mCAAmC,CACvF,CAAC;QACJ,CAAC;QACD,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACzF,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;YACxC,GAAG,YAAY;YACf,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAA4B,CAAC;AAC5D,CAAC;AAED,MAAM,eAAe,GAAG,4BAA4B,CAAC;AAErD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAA2B,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorRoutePlan } from '../../../../utils/NavigatorRoutePlan';
2
+ /*** Translate a route label and primary-navigation visibility into Drawer screen options. */
3
+ export declare function resolveDrawerRouteOptions(route: NavigatorRoutePlan): Record<string, unknown>;
4
+ //# sourceMappingURL=resolveDrawerRouteOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveDrawerRouteOptions.d.ts","sourceRoot":"","sources":["../../../../../src/features/drawer/adapters/outbound/resolveDrawerRouteOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,6FAA6F;AAC7F,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAK5F"}
@@ -0,0 +1,8 @@
1
+ /*** Translate a route label and primary-navigation visibility into Drawer screen options. */
2
+ export function resolveDrawerRouteOptions(route) {
3
+ return {
4
+ ...(route.label === undefined ? {} : { drawerLabel: route.label }),
5
+ ...(route.showInPrimaryNavigation === false ? { drawerItemStyle: { display: 'none' } } : {}),
6
+ };
7
+ }
8
+ //# sourceMappingURL=resolveDrawerRouteOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveDrawerRouteOptions.js","sourceRoot":"","sources":["../../../../../src/features/drawer/adapters/outbound/resolveDrawerRouteOptions.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,MAAM,UAAU,yBAAyB,CAAC,KAAyB;IACjE,OAAO;QACL,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAClE,GAAG,CAAC,KAAK,CAAC,uBAAuB,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7F,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorAdapterPlan } from '../../../utils/NavigatorAdapterPlan';
2
+ /*** Describe the standard Expo Router Drawer adapter. */
3
+ export declare function createDrawerAdapter(): NavigatorAdapterPlan;
4
+ //# sourceMappingURL=createDrawerAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDrawerAdapter.d.ts","sourceRoot":"","sources":["../../../../src/features/drawer/application/createDrawerAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,yDAAyD;AACzD,wBAAgB,mBAAmB,IAAI,oBAAoB,CAS1D"}
@@ -0,0 +1,12 @@
1
+ /*** Describe the standard Expo Router Drawer adapter. */
2
+ export function createDrawerAdapter() {
3
+ return {
4
+ id: 'drawer',
5
+ module: 'expo-router/drawer',
6
+ exportName: 'Drawer',
7
+ support: 'supported',
8
+ stability: 'stable',
9
+ limitations: [],
10
+ };
11
+ }
12
+ //# sourceMappingURL=createDrawerAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDrawerAdapter.js","sourceRoot":"","sources":["../../../../src/features/drawer/application/createDrawerAdapter.ts"],"names":[],"mappings":"AAEA,yDAAyD;AACzD,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,MAAM,EAAE,oBAAoB;QAC5B,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,EAAE;KAChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorGeneratedFile } from '../../../../utils/NavigatorGeneratedFile';
2
+ /*** Render a stateless Slot layout using the validated adapter import. */
3
+ export declare function generateSlotLayoutFile(directory: string, componentName: string, imports: string): NavigatorGeneratedFile;
4
+ //# sourceMappingURL=generateSlotLayoutFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateSlotLayoutFile.d.ts","sourceRoot":"","sources":["../../../../../src/features/slot/adapters/outbound/generateSlotLayoutFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,0EAA0E;AAC1E,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,GACd,sBAAsB,CAKxB"}
@@ -0,0 +1,8 @@
1
+ /*** Render a stateless Slot layout using the validated adapter import. */
2
+ export function generateSlotLayoutFile(directory, componentName, imports) {
3
+ return {
4
+ path: `${directory}/_layout.tsx`,
5
+ contents: `${imports}\n\nexport default function NavigatorLayout() {\n return <${componentName} />;\n}\n`,
6
+ };
7
+ }
8
+ //# sourceMappingURL=generateSlotLayoutFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateSlotLayoutFile.js","sourceRoot":"","sources":["../../../../../src/features/slot/adapters/outbound/generateSlotLayoutFile.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,MAAM,UAAU,sBAAsB,CACpC,SAAiB,EACjB,aAAqB,EACrB,OAAe;IAEf,OAAO;QACL,IAAI,EAAE,GAAG,SAAS,cAAc;QAChC,QAAQ,EAAE,GAAG,OAAO,8DAA8D,aAAa,WAAW;KAC3G,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorAdapterPlan } from '../../../utils/NavigatorAdapterPlan';
2
+ /*** Describe the stateless Expo Router Slot adapter. */
3
+ export declare function createSlotAdapter(): NavigatorAdapterPlan;
4
+ //# sourceMappingURL=createSlotAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSlotAdapter.d.ts","sourceRoot":"","sources":["../../../../src/features/slot/application/createSlotAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,wDAAwD;AACxD,wBAAgB,iBAAiB,IAAI,oBAAoB,CASxD"}
@@ -0,0 +1,12 @@
1
+ /*** Describe the stateless Expo Router Slot adapter. */
2
+ export function createSlotAdapter() {
3
+ return {
4
+ id: 'slot',
5
+ module: 'expo-router',
6
+ exportName: 'Slot',
7
+ support: 'supported',
8
+ stability: 'stable',
9
+ limitations: [],
10
+ };
11
+ }
12
+ //# sourceMappingURL=createSlotAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSlotAdapter.js","sourceRoot":"","sources":["../../../../src/features/slot/application/createSlotAdapter.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,EAAE,EAAE,MAAM;QACV,MAAM,EAAE,aAAa;QACrB,UAAU,EAAE,MAAM;QAClB,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,EAAE;KAChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { NavigatorNode } from '@ankhorage/contracts/navigator';
2
+ import type { NavigatorDiagnostic } from '../../../utils/NavigatorDiagnostic';
3
+ /*** Reject stateful initial routes and protected screen registrations on a stateless Slot. */
4
+ export declare function addSlotDiagnostics(diagnostics: NavigatorDiagnostic[], node: NavigatorNode, pointer: string): void;
5
+ //# sourceMappingURL=addSlotDiagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addSlotDiagnostics.d.ts","sourceRoot":"","sources":["../../../../src/features/slot/domain/addSlotDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,8FAA8F;AAC9F,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,mBAAmB,EAAE,EAClC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GACd,IAAI,CAmBN"}
@@ -0,0 +1,24 @@
1
+ /*** Reject stateful initial routes and protected screen registrations on a stateless Slot. */
2
+ export function addSlotDiagnostics(diagnostics, node, pointer) {
3
+ if (node.type !== 'slot')
4
+ return;
5
+ if (node.initialRouteName !== undefined) {
6
+ diagnostics.push({
7
+ code: 'unsupported-slot-initial-route',
8
+ severity: 'error',
9
+ path: `${pointer}/initialRouteName`,
10
+ message: 'Slot cannot declare an initial route because it has no navigator state of its own.',
11
+ });
12
+ }
13
+ for (const [index, route] of node.routes.entries()) {
14
+ if ((route.guards ?? []).length === 0)
15
+ continue;
16
+ diagnostics.push({
17
+ code: 'unsupported-slot-guard',
18
+ severity: 'error',
19
+ path: `${pointer}/routes/${index}/guards`,
20
+ message: 'Slot cannot declare route guards because it has no Screen registration API.',
21
+ });
22
+ }
23
+ }
24
+ //# sourceMappingURL=addSlotDiagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addSlotDiagnostics.js","sourceRoot":"","sources":["../../../../src/features/slot/domain/addSlotDiagnostics.ts"],"names":[],"mappings":"AAIA,8FAA8F;AAC9F,MAAM,UAAU,kBAAkB,CAChC,WAAkC,EAClC,IAAmB,EACnB,OAAe;IAEf,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO;IACjC,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACxC,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,GAAG,OAAO,mBAAmB;YACnC,OAAO,EAAE,oFAAoF;SAC9F,CAAC,CAAC;IACL,CAAC;IACD,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAChD,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,wBAAwB;YAC9B,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,GAAG,OAAO,WAAW,KAAK,SAAS;YACzC,OAAO,EAAE,6EAA6E;SACvF,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { NavigatorGeneratedFile } from '../../../../utils/NavigatorGeneratedFile';
2
+ import type { NavigatorGenerationBindings } from '../../../../utils/NavigatorGenerationBindings';
3
+ import type { NavigatorNodePlan } from '../../../../utils/NavigatorNodePlan';
4
+ /*** Generate a Split View layout while leaving the routed main column to Expo Router's Slot. */
5
+ export declare function generateSplitViewLayoutFile(node: NavigatorNodePlan, directory: string, bindings: NavigatorGenerationBindings): NavigatorGeneratedFile | undefined;
6
+ //# sourceMappingURL=generateSplitViewLayoutFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateSplitViewLayoutFile.d.ts","sourceRoot":"","sources":["../../../../../src/features/split-view/adapters/outbound/generateSplitViewLayoutFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAK7E,gGAAgG;AAChG,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,2BAA2B,GACpC,sBAAsB,GAAG,SAAS,CAmBpC"}
@@ -1,38 +1,6 @@
1
- import { assertModuleBinding, quote, quoteJsxAttribute } from './generationSafety';
2
- /*** Resolve one Split View screen reference through the narrow generated-screen binding port. */
3
- function resolveSplitViewBinding(bindings, screenId, role, element) {
4
- const module = Reflect.get(bindings.screens, screenId);
5
- if (module === undefined) {
6
- throw new Error(`Missing Split View ${role} screen binding for ${JSON.stringify(screenId)}.`);
7
- }
8
- assertModuleBinding(module, `Split View ${role} screen ${JSON.stringify(screenId)}`);
9
- const alias = `Navigator${role[0]?.toUpperCase()}${role.slice(1)}Screen`;
10
- return { alias, element, module };
11
- }
12
- /*** Render deterministic imports for referenced Split View column and inspector screens. */
13
- function renderSplitViewImports(bindings) {
14
- return bindings
15
- .map(({ alias, module }) => `import { ${module.exportName} as ${alias} } from ${quote(module.module)};`)
16
- .join('\n');
17
- }
18
- /*** Render one referenced screen as an upstream Split View child. */
19
- function renderSplitViewChild(binding) {
20
- return ` <SplitView.${binding.element}>\n <${binding.alias} />\n </SplitView.${binding.element}>`;
21
- }
22
- /*** Resolve the ordered primary, supplementary, and inspector bindings for one Split View. */
23
- function collectSplitViewBindings(splitView, bindings) {
24
- return [
25
- resolveSplitViewBinding(bindings, splitView.columns.primary, 'primary', 'Column'),
26
- ...(splitView.columns.supplementary === undefined
27
- ? []
28
- : [
29
- resolveSplitViewBinding(bindings, splitView.columns.supplementary, 'supplementary', 'Column'),
30
- ]),
31
- ...(splitView.inspector === undefined
32
- ? []
33
- : [resolveSplitViewBinding(bindings, splitView.inspector, 'inspector', 'Inspector')]),
34
- ];
35
- }
1
+ import { assertModuleBinding } from '../../../../utils/assertModuleBinding';
2
+ import { quote } from '../../../../utils/quote';
3
+ import { quoteJsxAttribute } from '../../../../utils/quoteJsxAttribute';
36
4
  /*** Generate a Split View layout while leaving the routed main column to Expo Router's Slot. */
37
5
  export function generateSplitViewLayoutFile(node, directory, bindings) {
38
6
  if (node.type !== 'split-view' || node.splitView === undefined)
@@ -55,4 +23,38 @@ export function generateSplitViewLayoutFile(node, directory, bindings) {
55
23
  contents: `${imports}\n\nexport default function NavigatorLayout() {\n return (\n ${openingTag}\n${children}\n </SplitView>\n );\n}\n`,
56
24
  };
57
25
  }
26
+ /*** Resolve the ordered primary, supplementary, and inspector bindings for one Split View. */
27
+ function collectSplitViewBindings(splitView, bindings) {
28
+ return [
29
+ resolveSplitViewBinding(bindings, splitView.columns.primary, 'primary', 'Column'),
30
+ ...(splitView.columns.supplementary === undefined
31
+ ? []
32
+ : [
33
+ resolveSplitViewBinding(bindings, splitView.columns.supplementary, 'supplementary', 'Column'),
34
+ ]),
35
+ ...(splitView.inspector === undefined
36
+ ? []
37
+ : [resolveSplitViewBinding(bindings, splitView.inspector, 'inspector', 'Inspector')]),
38
+ ];
39
+ }
40
+ /*** Resolve one Split View screen reference through the narrow generated-screen binding port. */
41
+ function resolveSplitViewBinding(bindings, screenId, role, element) {
42
+ const module = Reflect.get(bindings.screens, screenId);
43
+ if (module === undefined) {
44
+ throw new Error(`Missing Split View ${role} screen binding for ${JSON.stringify(screenId)}.`);
45
+ }
46
+ assertModuleBinding(module, `Split View ${role} screen ${JSON.stringify(screenId)}`);
47
+ const alias = `Navigator${role[0]?.toUpperCase()}${role.slice(1)}Screen`;
48
+ return { alias, element, module };
49
+ }
50
+ /*** Render deterministic imports for referenced Split View column and inspector screens. */
51
+ function renderSplitViewImports(bindings) {
52
+ return bindings
53
+ .map(({ alias, module }) => `import { ${module.exportName} as ${alias} } from ${quote(module.module)};`)
54
+ .join('\n');
55
+ }
56
+ /*** Render one referenced screen as an upstream Split View child. */
57
+ function renderSplitViewChild(binding) {
58
+ return ` <SplitView.${binding.element}>\n <${binding.alias} />\n </SplitView.${binding.element}>`;
59
+ }
58
60
  //# sourceMappingURL=generateSplitViewLayoutFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateSplitViewLayoutFile.js","sourceRoot":"","sources":["../../../../../src/features/split-view/adapters/outbound/generateSplitViewLayoutFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAK5E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,gGAAgG;AAChG,MAAM,UAAU,2BAA2B,CACzC,IAAuB,EACvB,SAAiB,EACjB,QAAqC;IAErC,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACjF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7E,MAAM,KAAK,GAAG;QACZ,IAAI,CAAC,SAAS,CAAC,sBAAsB,KAAK,SAAS;YACjD,CAAC,CAAC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"}
@@ -1,4 +1,5 @@
1
- import type { NavigatorAdapterPlan, NavigatorRuntimePlatform } from '../definitions/NavigatorPlan';
1
+ import type { NavigatorAdapterPlan } from '../../../utils/NavigatorAdapterPlan';
2
+ import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
2
3
  /*** Resolve the upstream iOS Split View adapter and its honest cross-platform Slot fallback. */
3
4
  export declare function resolveSplitViewAdapterPlan(platform: NavigatorRuntimePlatform, routerMajor: number | undefined): NavigatorAdapterPlan;
4
- //# sourceMappingURL=resolveSplitViewNavigatorPlan.d.ts.map
5
+ //# sourceMappingURL=resolveSplitViewAdapterPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveSplitViewAdapterPlan.d.ts","sourceRoot":"","sources":["../../../../src/features/split-view/application/resolveSplitViewAdapterPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAExF,gGAAgG;AAChG,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,wBAAwB,EAClC,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,oBAAoB,CAiBtB"}
@@ -16,4 +16,4 @@ export function resolveSplitViewAdapterPlan(platform, routerMajor) {
16
16
  ],
17
17
  };
18
18
  }
19
- //# sourceMappingURL=resolveSplitViewNavigatorPlan.js.map
19
+ //# sourceMappingURL=resolveSplitViewAdapterPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveSplitViewAdapterPlan.js","sourceRoot":"","sources":["../../../../src/features/split-view/application/resolveSplitViewAdapterPlan.ts"],"names":[],"mappings":"AAGA,gGAAgG;AAChG,MAAM,UAAU,2BAA2B,CACzC,QAAkC,EAClC,WAA+B;IAE/B,OAAO;QACL,EAAE,EAAE,YAAY;QAChB,MAAM,EAAE,iCAAiC;QACzC,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,WAAW,KAAK,SAAS,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa;QACrF,SAAS,EAAE,OAAO;QAClB,WAAW,EACT,QAAQ,KAAK,KAAK;YAChB,CAAC,CAAC;gBACE,mFAAmF;gBACnF,qCAAqC;aACtC;YACH,CAAC,CAAC;gBACE,+FAA+F;aAChG;KACR,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { AppNavigatorManifest } from '@ankhorage/contracts/navigator';
2
- import type { NavigatorDiagnostic, NavigatorValidationContext } from '../definitions/NavigatorPlan';
2
+ import type { NavigatorDiagnostic } from '../../../utils/NavigatorDiagnostic';
3
+ import type { NavigatorValidationContext } from '../../../utils/NavigatorValidationContext';
3
4
  /*** Add constrained placement, binding, flow, version, and fallback diagnostics for Split View. */
4
5
  export declare function addSplitViewDiagnostics(diagnostics: NavigatorDiagnostic[], manifest: AppNavigatorManifest, context: NavigatorValidationContext, routerMajor: number | undefined): void;
5
- //# sourceMappingURL=validateSplitView.d.ts.map
6
+ //# sourceMappingURL=addSplitViewDiagnostics.d.ts.map