@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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{expo-router/resolveCustomNavigatorPlan.d.ts → features/custom/application/resolveCustomNavigatorAdapterPlan.d.ts} +4 -3
- package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.d.ts.map +1 -0
- package/dist/{expo-router/resolveCustomNavigatorPlan.js → features/custom/application/resolveCustomNavigatorAdapterPlan.js} +1 -1
- package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.js.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorConfigIssue.d.ts +6 -0
- package/dist/features/custom/domain/CustomNavigatorConfigIssue.d.ts.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorConfigIssue.js +2 -0
- package/dist/features/custom/domain/CustomNavigatorConfigIssue.js.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorRegistration.d.ts +15 -0
- package/dist/features/custom/domain/CustomNavigatorRegistration.d.ts.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorRegistration.js +2 -0
- package/dist/features/custom/domain/CustomNavigatorRegistration.js.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorRegistry.d.ts +7 -0
- package/dist/features/custom/domain/CustomNavigatorRegistry.d.ts.map +1 -0
- package/dist/features/custom/domain/CustomNavigatorRegistry.js +2 -0
- package/dist/features/custom/domain/CustomNavigatorRegistry.js.map +1 -0
- package/dist/{validation/validateCustomNavigator.d.ts → features/custom/domain/addCustomNavigatorDiagnostics.d.ts} +4 -3
- package/dist/features/custom/domain/addCustomNavigatorDiagnostics.d.ts.map +1 -0
- package/dist/{validation/validateCustomNavigator.js → features/custom/domain/addCustomNavigatorDiagnostics.js} +50 -50
- package/dist/features/custom/domain/addCustomNavigatorDiagnostics.js.map +1 -0
- package/dist/features/custom/domain/defineCustomNavigatorRegistry.d.ts +5 -0
- package/dist/features/custom/domain/defineCustomNavigatorRegistry.d.ts.map +1 -0
- package/dist/{custom/CustomNavigatorRegistry.js → features/custom/domain/defineCustomNavigatorRegistry.js} +4 -4
- package/dist/features/custom/domain/defineCustomNavigatorRegistry.js.map +1 -0
- package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.d.ts +4 -0
- package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.d.ts.map +1 -0
- package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.js +8 -0
- package/dist/features/drawer/adapters/outbound/resolveDrawerRouteOptions.js.map +1 -0
- package/dist/features/drawer/application/createDrawerAdapter.d.ts +4 -0
- package/dist/features/drawer/application/createDrawerAdapter.d.ts.map +1 -0
- package/dist/features/drawer/application/createDrawerAdapter.js +12 -0
- package/dist/features/drawer/application/createDrawerAdapter.js.map +1 -0
- package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.d.ts +4 -0
- package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.d.ts.map +1 -0
- package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.js +8 -0
- package/dist/features/slot/adapters/outbound/generateSlotLayoutFile.js.map +1 -0
- package/dist/features/slot/application/createSlotAdapter.d.ts +4 -0
- package/dist/features/slot/application/createSlotAdapter.d.ts.map +1 -0
- package/dist/features/slot/application/createSlotAdapter.js +12 -0
- package/dist/features/slot/application/createSlotAdapter.js.map +1 -0
- package/dist/features/slot/domain/addSlotDiagnostics.d.ts +5 -0
- package/dist/features/slot/domain/addSlotDiagnostics.d.ts.map +1 -0
- package/dist/features/slot/domain/addSlotDiagnostics.js +24 -0
- package/dist/features/slot/domain/addSlotDiagnostics.js.map +1 -0
- package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.d.ts +6 -0
- package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.d.ts.map +1 -0
- package/dist/{generation → features/split-view/adapters/outbound}/generateSplitViewLayoutFile.js +37 -35
- package/dist/features/split-view/adapters/outbound/generateSplitViewLayoutFile.js.map +1 -0
- package/dist/{expo-router/resolveSplitViewNavigatorPlan.d.ts → features/split-view/application/resolveSplitViewAdapterPlan.d.ts} +3 -2
- package/dist/features/split-view/application/resolveSplitViewAdapterPlan.d.ts.map +1 -0
- package/dist/{expo-router/resolveSplitViewNavigatorPlan.js → features/split-view/application/resolveSplitViewAdapterPlan.js} +1 -1
- package/dist/features/split-view/application/resolveSplitViewAdapterPlan.js.map +1 -0
- package/dist/{validation/validateSplitView.d.ts → features/split-view/domain/addSplitViewDiagnostics.d.ts} +3 -2
- package/dist/features/split-view/domain/addSplitViewDiagnostics.d.ts.map +1 -0
- package/dist/{validation/validateSplitView.js → features/split-view/domain/addSplitViewDiagnostics.js} +76 -76
- package/dist/features/split-view/domain/addSplitViewDiagnostics.js.map +1 -0
- package/dist/features/stack/application/createStackAdapter.d.ts +6 -0
- package/dist/features/stack/application/createStackAdapter.d.ts.map +1 -0
- package/dist/features/stack/application/createStackAdapter.js +43 -0
- package/dist/features/stack/application/createStackAdapter.js.map +1 -0
- package/dist/features/stack/domain/ResolvedStackConfigSource.d.ts +6 -0
- package/dist/features/stack/domain/ResolvedStackConfigSource.d.ts.map +1 -0
- package/dist/features/stack/domain/ResolvedStackConfigSource.js +2 -0
- package/dist/features/stack/domain/ResolvedStackConfigSource.js.map +1 -0
- package/dist/{validation/validateExperimentalStack.d.ts → features/stack/domain/addExperimentalStackDiagnostics.d.ts} +3 -2
- package/dist/features/stack/domain/addExperimentalStackDiagnostics.d.ts.map +1 -0
- package/dist/{validation/validateExperimentalStack.js → features/stack/domain/addExperimentalStackDiagnostics.js} +49 -49
- package/dist/features/stack/domain/addExperimentalStackDiagnostics.js.map +1 -0
- package/dist/features/stack/domain/addStackAdapterDiagnostics.d.ts +6 -0
- package/dist/features/stack/domain/addStackAdapterDiagnostics.d.ts.map +1 -0
- package/dist/features/stack/domain/addStackAdapterDiagnostics.js +15 -0
- package/dist/features/stack/domain/addStackAdapterDiagnostics.js.map +1 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfig.d.ts +5 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfig.d.ts.map +1 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfig.js +6 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfig.js.map +1 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfigSource.d.ts +6 -0
- package/dist/features/stack/domain/resolveEffectiveStackConfigSource.d.ts.map +1 -0
- package/dist/{expo-router/resolveNavigatorConfig.js → features/stack/domain/resolveEffectiveStackConfigSource.js} +20 -46
- package/dist/features/stack/domain/resolveEffectiveStackConfigSource.js.map +1 -0
- package/dist/features/stack/domain/validateStackRouteOptions.d.ts +5 -0
- package/dist/features/stack/domain/validateStackRouteOptions.d.ts.map +1 -0
- package/dist/features/stack/domain/validateStackRouteOptions.js +25 -0
- package/dist/features/stack/domain/validateStackRouteOptions.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.d.ts +11 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.js +2 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsIconSourceResolver.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayout.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayout.d.ts.map +1 -0
- package/dist/{tabs → features/tabs/adapters/inbound}/CustomTabsLayout.js +62 -61
- package/dist/features/tabs/adapters/inbound/CustomTabsLayout.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.d.ts +18 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.js +2 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsLayoutProps.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.d.ts +7 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.js +2 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsPresentationProps.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsRoute.d.ts +12 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsRoute.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsRoute.js +2 -0
- package/dist/features/tabs/adapters/inbound/CustomTabsRoute.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.js +9 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome5Family.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.js +9 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesome6Family.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.js +4 -0
- package/dist/features/tabs/adapters/inbound/NativeFontAwesomeFamily.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.js +4 -0
- package/dist/features/tabs/adapters/inbound/NativeIoniconsFamily.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.js +4 -0
- package/dist/features/tabs/adapters/inbound/NativeMaterialDesignIconsFamily.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.d.ts +5 -0
- package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.js +2 -0
- package/dist/features/tabs/adapters/inbound/NativeVectorIconFamily.js.map +1 -0
- package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.d.ts +6 -0
- package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.d.ts.map +1 -0
- package/dist/{generation → features/tabs/adapters/outbound}/generateTabsLayoutFile.js +86 -83
- package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.js.map +1 -0
- package/dist/features/tabs/application/createTabsAdapter.d.ts +6 -0
- package/dist/features/tabs/application/createTabsAdapter.d.ts.map +1 -0
- package/dist/features/tabs/application/createTabsAdapter.js +18 -0
- package/dist/features/tabs/application/createTabsAdapter.js.map +1 -0
- package/dist/{expo-router → features/tabs/application}/resolveTabsNavigatorPlan.d.ts +3 -1
- package/dist/features/tabs/application/resolveTabsNavigatorPlan.d.ts.map +1 -0
- package/dist/{expo-router → features/tabs/application}/resolveTabsNavigatorPlan.js +41 -41
- package/dist/features/tabs/application/resolveTabsNavigatorPlan.js.map +1 -0
- package/dist/features/tabs/application/resolveTabsPlan.d.ts +7 -0
- package/dist/features/tabs/application/resolveTabsPlan.d.ts.map +1 -0
- package/dist/features/tabs/application/resolveTabsPlan.js +14 -0
- package/dist/features/tabs/application/resolveTabsPlan.js.map +1 -0
- package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.d.ts +6 -0
- package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.d.ts.map +1 -0
- package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.js +2 -0
- package/dist/features/tabs/domain/ResolvedCustomTabsPresentation.js.map +1 -0
- package/dist/features/tabs/domain/ResolvedTabsImplementation.d.ts +2 -0
- package/dist/features/tabs/domain/ResolvedTabsImplementation.d.ts.map +1 -0
- package/dist/features/tabs/domain/ResolvedTabsImplementation.js +2 -0
- package/dist/features/tabs/domain/ResolvedTabsImplementation.js.map +1 -0
- package/dist/features/tabs/domain/ResolvedTabsPresentation.d.ts +2 -0
- package/dist/features/tabs/domain/ResolvedTabsPresentation.d.ts.map +1 -0
- package/dist/features/tabs/domain/ResolvedTabsPresentation.js +2 -0
- package/dist/features/tabs/domain/ResolvedTabsPresentation.js.map +1 -0
- package/dist/features/tabs/domain/TabsNavigatorPlan.d.ts +23 -0
- package/dist/features/tabs/domain/TabsNavigatorPlan.d.ts.map +1 -0
- package/dist/features/tabs/domain/TabsNavigatorPlan.js +2 -0
- package/dist/features/tabs/domain/TabsNavigatorPlan.js.map +1 -0
- package/dist/{validation/validateTabsNavigator.d.ts → features/tabs/domain/addTabsAdapterDiagnostics.d.ts} +3 -2
- package/dist/features/tabs/domain/addTabsAdapterDiagnostics.d.ts.map +1 -0
- package/dist/{validation/validateTabsNavigator.js → features/tabs/domain/addTabsAdapterDiagnostics.js} +47 -47
- package/dist/features/tabs/domain/addTabsAdapterDiagnostics.js.map +1 -0
- package/dist/{presentation → features/tabs/domain}/resolveCustomTabsPresentation.d.ts +2 -5
- package/dist/features/tabs/domain/resolveCustomTabsPresentation.d.ts.map +1 -0
- package/dist/{presentation → features/tabs/domain}/resolveCustomTabsPresentation.js +16 -16
- package/dist/features/tabs/domain/resolveCustomTabsPresentation.js.map +1 -0
- package/dist/features/tabs/domain/resolveEffectiveTabsConfig.d.ts +5 -0
- package/dist/features/tabs/domain/resolveEffectiveTabsConfig.d.ts.map +1 -0
- package/dist/features/tabs/domain/resolveEffectiveTabsConfig.js +24 -0
- package/dist/features/tabs/domain/resolveEffectiveTabsConfig.js.map +1 -0
- package/dist/features/tabs/nativeIcons.d.ts +6 -0
- package/dist/features/tabs/nativeIcons.d.ts.map +1 -0
- package/dist/features/tabs/nativeIcons.js +6 -0
- package/dist/features/tabs/nativeIcons.js.map +1 -0
- package/dist/features/tabs/tabs.d.ts +7 -0
- package/dist/features/tabs/tabs.d.ts.map +1 -0
- package/dist/features/tabs/tabs.js +2 -0
- package/dist/features/tabs/tabs.js.map +1 -0
- package/dist/navigator.d.ts +33 -0
- package/dist/navigator.d.ts.map +1 -0
- package/dist/navigator.js +8 -0
- package/dist/navigator.js.map +1 -0
- package/dist/utils/CreateNavigatorPlanOptions.d.ts +10 -0
- package/dist/utils/CreateNavigatorPlanOptions.d.ts.map +1 -0
- package/dist/utils/CreateNavigatorPlanOptions.js +2 -0
- package/dist/utils/CreateNavigatorPlanOptions.js.map +1 -0
- package/dist/utils/ExpoRouterNavigatorModule.d.ts +2 -0
- package/dist/utils/ExpoRouterNavigatorModule.d.ts.map +1 -0
- package/dist/utils/ExpoRouterNavigatorModule.js +2 -0
- package/dist/utils/ExpoRouterNavigatorModule.js.map +1 -0
- package/dist/{metadata/index.d.ts → utils/NAVIGATOR_PACKAGE_METADATA.d.ts} +1 -1
- package/dist/utils/NAVIGATOR_PACKAGE_METADATA.d.ts.map +1 -0
- package/dist/{metadata/index.js → utils/NAVIGATOR_PACKAGE_METADATA.js} +1 -1
- package/dist/utils/NAVIGATOR_PACKAGE_METADATA.js.map +1 -0
- package/dist/utils/NavigatorAdapterId.d.ts +2 -0
- package/dist/utils/NavigatorAdapterId.d.ts.map +1 -0
- package/dist/utils/NavigatorAdapterId.js +2 -0
- package/dist/utils/NavigatorAdapterId.js.map +1 -0
- package/dist/utils/NavigatorAdapterPlan.d.ts +13 -0
- package/dist/utils/NavigatorAdapterPlan.d.ts.map +1 -0
- package/dist/utils/NavigatorAdapterPlan.js +2 -0
- package/dist/utils/NavigatorAdapterPlan.js.map +1 -0
- package/dist/utils/NavigatorApiStability.d.ts +2 -0
- package/dist/utils/NavigatorApiStability.d.ts.map +1 -0
- package/dist/utils/NavigatorApiStability.js +2 -0
- package/dist/utils/NavigatorApiStability.js.map +1 -0
- package/dist/utils/NavigatorDiagnostic.d.ts +7 -0
- package/dist/utils/NavigatorDiagnostic.d.ts.map +1 -0
- package/dist/utils/NavigatorDiagnostic.js +2 -0
- package/dist/utils/NavigatorDiagnostic.js.map +1 -0
- package/dist/utils/NavigatorGeneratedFile.d.ts +5 -0
- package/dist/utils/NavigatorGeneratedFile.d.ts.map +1 -0
- package/dist/utils/NavigatorGeneratedFile.js +2 -0
- package/dist/utils/NavigatorGeneratedFile.js.map +1 -0
- package/dist/utils/NavigatorGenerationBindings.d.ts +12 -0
- package/dist/utils/NavigatorGenerationBindings.d.ts.map +1 -0
- package/dist/utils/NavigatorGenerationBindings.js +2 -0
- package/dist/utils/NavigatorGenerationBindings.js.map +1 -0
- package/dist/utils/NavigatorGenerationOptions.d.ts +8 -0
- package/dist/utils/NavigatorGenerationOptions.d.ts.map +1 -0
- package/dist/utils/NavigatorGenerationOptions.js +2 -0
- package/dist/utils/NavigatorGenerationOptions.js.map +1 -0
- package/dist/utils/NavigatorNodePlan.d.ts +32 -0
- package/dist/utils/NavigatorNodePlan.d.ts.map +1 -0
- package/dist/utils/NavigatorNodePlan.js +2 -0
- package/dist/utils/NavigatorNodePlan.js.map +1 -0
- package/dist/utils/NavigatorPlan.d.ts +14 -0
- package/dist/utils/NavigatorPlan.d.ts.map +1 -0
- package/dist/utils/NavigatorPlan.js.map +1 -0
- package/dist/utils/NavigatorResponsiveSize.d.ts +2 -0
- package/dist/utils/NavigatorResponsiveSize.d.ts.map +1 -0
- package/dist/utils/NavigatorResponsiveSize.js +2 -0
- package/dist/utils/NavigatorResponsiveSize.js.map +1 -0
- package/dist/utils/NavigatorRoutePlan.d.ts +14 -0
- package/dist/utils/NavigatorRoutePlan.d.ts.map +1 -0
- package/dist/utils/NavigatorRoutePlan.js +2 -0
- package/dist/utils/NavigatorRoutePlan.js.map +1 -0
- package/dist/utils/NavigatorRuntimePlatform.d.ts +2 -0
- package/dist/utils/NavigatorRuntimePlatform.d.ts.map +1 -0
- package/dist/utils/NavigatorRuntimePlatform.js +2 -0
- package/dist/utils/NavigatorRuntimePlatform.js.map +1 -0
- package/dist/utils/NavigatorScreenModule.d.ts +5 -0
- package/dist/utils/NavigatorScreenModule.d.ts.map +1 -0
- package/dist/utils/NavigatorScreenModule.js +2 -0
- package/dist/utils/NavigatorScreenModule.js.map +1 -0
- package/dist/utils/NavigatorSupportStatus.d.ts +2 -0
- package/dist/utils/NavigatorSupportStatus.d.ts.map +1 -0
- package/dist/utils/NavigatorSupportStatus.js +2 -0
- package/dist/utils/NavigatorSupportStatus.js.map +1 -0
- package/dist/utils/NavigatorValidationContext.d.ts +6 -0
- package/dist/utils/NavigatorValidationContext.d.ts.map +1 -0
- package/dist/utils/NavigatorValidationContext.js +2 -0
- package/dist/utils/NavigatorValidationContext.js.map +1 -0
- package/dist/utils/assertModuleBinding.d.ts +4 -0
- package/dist/utils/assertModuleBinding.d.ts.map +1 -0
- package/dist/utils/assertModuleBinding.js +14 -0
- package/dist/utils/assertModuleBinding.js.map +1 -0
- package/dist/utils/createNavigatorPlan.d.ts +6 -0
- package/dist/utils/createNavigatorPlan.d.ts.map +1 -0
- package/dist/{expo-router → utils}/createNavigatorPlan.js +67 -140
- package/dist/utils/createNavigatorPlan.js.map +1 -0
- package/dist/utils/generateNavigatorFiles.d.ts +7 -0
- package/dist/utils/generateNavigatorFiles.d.ts.map +1 -0
- package/dist/{generation → utils}/generateNavigatorFiles.js +155 -147
- package/dist/utils/generateNavigatorFiles.js.map +1 -0
- package/dist/utils/parseExpoRouterMajor.d.ts +3 -0
- package/dist/utils/parseExpoRouterMajor.d.ts.map +1 -0
- package/dist/utils/parseExpoRouterMajor.js +6 -0
- package/dist/utils/parseExpoRouterMajor.js.map +1 -0
- package/dist/utils/quote.d.ts +3 -0
- package/dist/utils/quote.d.ts.map +1 -0
- package/dist/utils/quote.js +18 -0
- package/dist/utils/quote.js.map +1 -0
- package/dist/utils/quoteJsxAttribute.d.ts +3 -0
- package/dist/utils/quoteJsxAttribute.d.ts.map +1 -0
- package/dist/utils/quoteJsxAttribute.js +5 -0
- package/dist/utils/quoteJsxAttribute.js.map +1 -0
- package/dist/utils/resolveNavigatorPreset.d.ts.map +1 -0
- package/dist/utils/resolveNavigatorPreset.js.map +1 -0
- package/dist/utils/sourceLiteral.d.ts +3 -0
- package/dist/utils/sourceLiteral.d.ts.map +1 -0
- package/dist/utils/sourceLiteral.js +21 -0
- package/dist/utils/sourceLiteral.js.map +1 -0
- package/dist/{validation → utils}/validateNavigatorManifest.d.ts +3 -2
- package/dist/utils/validateNavigatorManifest.d.ts.map +1 -0
- package/dist/{validation → utils}/validateNavigatorManifest.js +53 -92
- package/dist/utils/validateNavigatorManifest.js.map +1 -0
- package/dist/{validation → utils}/validatePresetTopology.d.ts +1 -1
- package/dist/utils/validatePresetTopology.d.ts.map +1 -0
- package/dist/{validation → utils}/validatePresetTopology.js +1 -1
- package/dist/utils/validatePresetTopology.js.map +1 -0
- package/package.json +15 -15
- package/dist/custom/CustomNavigatorRegistry.d.ts +0 -25
- package/dist/custom/CustomNavigatorRegistry.d.ts.map +0 -1
- package/dist/custom/CustomNavigatorRegistry.js.map +0 -1
- package/dist/definitions/NavigatorPlan.d.ts +0 -119
- package/dist/definitions/NavigatorPlan.d.ts.map +0 -1
- package/dist/definitions/NavigatorPlan.js.map +0 -1
- package/dist/expo-router/createNavigatorPlan.d.ts +0 -12
- package/dist/expo-router/createNavigatorPlan.d.ts.map +0 -1
- package/dist/expo-router/createNavigatorPlan.js.map +0 -1
- package/dist/expo-router/resolveCustomNavigatorPlan.d.ts.map +0 -1
- package/dist/expo-router/resolveCustomNavigatorPlan.js.map +0 -1
- package/dist/expo-router/resolveNavigatorConfig.d.ts +0 -13
- package/dist/expo-router/resolveNavigatorConfig.d.ts.map +0 -1
- package/dist/expo-router/resolveNavigatorConfig.js.map +0 -1
- package/dist/expo-router/resolveSplitViewNavigatorPlan.d.ts.map +0 -1
- package/dist/expo-router/resolveSplitViewNavigatorPlan.js.map +0 -1
- package/dist/expo-router/resolveTabsNavigatorPlan.d.ts.map +0 -1
- package/dist/expo-router/resolveTabsNavigatorPlan.js.map +0 -1
- package/dist/generation/generateNavigatorFiles.d.ts +0 -4
- package/dist/generation/generateNavigatorFiles.d.ts.map +0 -1
- package/dist/generation/generateNavigatorFiles.js.map +0 -1
- package/dist/generation/generateSplitViewLayoutFile.d.ts +0 -4
- package/dist/generation/generateSplitViewLayoutFile.d.ts.map +0 -1
- package/dist/generation/generateSplitViewLayoutFile.js.map +0 -1
- package/dist/generation/generateTabsLayoutFile.d.ts +0 -4
- package/dist/generation/generateTabsLayoutFile.d.ts.map +0 -1
- package/dist/generation/generateTabsLayoutFile.js.map +0 -1
- package/dist/generation/generationSafety.d.ts +0 -10
- package/dist/generation/generationSafety.d.ts.map +0 -1
- package/dist/generation/generationSafety.js +0 -54
- package/dist/generation/generationSafety.js.map +0 -1
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/metadata/index.d.ts.map +0 -1
- package/dist/metadata/index.js.map +0 -1
- package/dist/presentation/resolveCustomTabsPresentation.d.ts.map +0 -1
- package/dist/presentation/resolveCustomTabsPresentation.js.map +0 -1
- package/dist/tabs/CustomTabsLayout.d.ts +0 -39
- package/dist/tabs/CustomTabsLayout.d.ts.map +0 -1
- package/dist/tabs/CustomTabsLayout.js.map +0 -1
- package/dist/tabs/index.d.ts +0 -3
- package/dist/tabs/index.d.ts.map +0 -1
- package/dist/tabs/index.js +0 -2
- package/dist/tabs/index.js.map +0 -1
- package/dist/tabs/nativeIconFamilies.d.ts +0 -16
- package/dist/tabs/nativeIconFamilies.d.ts.map +0 -1
- package/dist/tabs/nativeIconFamilies.js +0 -24
- package/dist/tabs/nativeIconFamilies.js.map +0 -1
- package/dist/topology/resolveNavigatorPreset.d.ts.map +0 -1
- package/dist/topology/resolveNavigatorPreset.js.map +0 -1
- package/dist/validation/validateCustomNavigator.d.ts.map +0 -1
- package/dist/validation/validateCustomNavigator.js.map +0 -1
- package/dist/validation/validateExperimentalStack.d.ts.map +0 -1
- package/dist/validation/validateExperimentalStack.js.map +0 -1
- package/dist/validation/validateNavigatorManifest.d.ts.map +0 -1
- package/dist/validation/validateNavigatorManifest.js.map +0 -1
- package/dist/validation/validatePresetTopology.d.ts.map +0 -1
- package/dist/validation/validatePresetTopology.js.map +0 -1
- package/dist/validation/validateSplitView.d.ts.map +0 -1
- package/dist/validation/validateSplitView.js.map +0 -1
- package/dist/validation/validateTabsNavigator.d.ts.map +0 -1
- package/dist/validation/validateTabsNavigator.js.map +0 -1
- /package/dist/{definitions → utils}/NavigatorPlan.js +0 -0
- /package/dist/{topology → utils}/resolveNavigatorPreset.d.ts +0 -0
- /package/dist/{topology → utils}/resolveNavigatorPreset.js +0 -0
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
import { assertModuleBinding
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { assertModuleBinding } from '../../../../utils/assertModuleBinding';
|
|
2
|
+
import { quote } from '../../../../utils/quote';
|
|
3
|
+
import { quoteJsxAttribute } from '../../../../utils/quoteJsxAttribute';
|
|
4
|
+
import { sourceLiteral } from '../../../../utils/sourceLiteral';
|
|
5
|
+
/*** Generate the specialized layout file for a supported tabs implementation. */
|
|
6
|
+
export function generateTabsLayoutFile(node, directory, bindings) {
|
|
7
|
+
if (node.type !== 'tabs')
|
|
8
|
+
return undefined;
|
|
9
|
+
if (node.tabs?.implementation === 'native') {
|
|
10
|
+
return createNativeTabsFile(node, directory, bindings);
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
case 'FontAwesome':
|
|
10
|
-
case 'FontAwesome5':
|
|
11
|
-
case 'FontAwesome6':
|
|
12
|
-
case 'Ionicons':
|
|
13
|
-
case 'MaterialDesignIcons':
|
|
14
|
-
return provider;
|
|
15
|
-
default:
|
|
16
|
-
throw new Error(`Native Tabs icon provider ${JSON.stringify(provider)} is unsupported.`);
|
|
12
|
+
if (node.tabs?.implementation === 'custom') {
|
|
13
|
+
return createCustomTabsFile(node, directory, bindings);
|
|
17
14
|
}
|
|
15
|
+
return undefined;
|
|
18
16
|
}
|
|
19
|
-
/***
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/*** Create the generated Native Tabs layout file and its narrow runtime imports. */
|
|
18
|
+
function createNativeTabsFile(node, directory, bindings) {
|
|
19
|
+
const componentName = node.adapter.exportName ?? 'NativeTabs';
|
|
20
|
+
const imports = [`import { ${componentName} } from ${quote(node.adapter.module ?? '')};`];
|
|
21
|
+
const iconFamilies = [
|
|
22
|
+
...new Set(node.routes.flatMap((route) => route.icon === undefined ? [] : [nativeIconFamily(nativeIconProvider(route.icon))])),
|
|
23
|
+
].sort();
|
|
24
|
+
if (iconFamilies.length > 0) {
|
|
25
|
+
imports.push(`import { ${iconFamilies.join(', ')} } from '@ankhorage/navigator/tabs/native-icons';`);
|
|
23
26
|
}
|
|
24
|
-
|
|
27
|
+
let accessoryName;
|
|
28
|
+
if (node.tabs?.bottomAccessoryScreenId !== undefined) {
|
|
29
|
+
const binding = Reflect.get(bindings.screens, node.tabs.bottomAccessoryScreenId);
|
|
30
|
+
if (binding === undefined)
|
|
31
|
+
throw new Error('Missing Native Tabs bottom-accessory binding.');
|
|
32
|
+
assertModuleBinding(binding, 'Native Tabs bottom accessory');
|
|
33
|
+
accessoryName = 'NavigatorBottomAccessory';
|
|
34
|
+
imports.push(`import { ${binding.exportName} as ${accessoryName} } from ${quote(binding.module)};`);
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
path: `${directory}/_layout.tsx`,
|
|
38
|
+
contents: createNativeTabsContents(node, componentName, imports.sort().join('\n'), accessoryName),
|
|
39
|
+
};
|
|
25
40
|
}
|
|
26
41
|
/*** Map a supported provider to the Navigator-owned Native Tabs family export. */
|
|
27
42
|
function nativeIconFamily(provider) {
|
|
@@ -38,18 +53,22 @@ function nativeIconFamily(provider) {
|
|
|
38
53
|
return 'NativeMaterialDesignIconsFamily';
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
|
-
/***
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
/*** Resolve and validate the native vector-icon provider for one planned route icon. */
|
|
57
|
+
function nativeIconProvider(icon) {
|
|
58
|
+
if (icon === undefined || 'source' in icon) {
|
|
59
|
+
throw new Error('Native Tabs require a supported named icon.');
|
|
60
|
+
}
|
|
61
|
+
const provider = icon.provider ?? 'Ionicons';
|
|
62
|
+
switch (provider) {
|
|
63
|
+
case 'FontAwesome':
|
|
64
|
+
case 'FontAwesome5':
|
|
65
|
+
case 'FontAwesome6':
|
|
66
|
+
case 'Ionicons':
|
|
67
|
+
case 'MaterialDesignIcons':
|
|
68
|
+
return provider;
|
|
69
|
+
default:
|
|
70
|
+
throw new Error(`Native Tabs icon provider ${JSON.stringify(provider)} is unsupported.`);
|
|
71
|
+
}
|
|
53
72
|
}
|
|
54
73
|
/*** Render a complete Native Tabs layout module from one validated node plan. */
|
|
55
74
|
function createNativeTabsContents(node, componentName, imports, accessoryName) {
|
|
@@ -75,47 +94,25 @@ ${nativeIconSource(componentName, nativeIconFamily(nativeIconProvider(route.icon
|
|
|
75
94
|
: `\n <${componentName}.BottomAccessory>\n <${accessoryName} />\n </${componentName}.BottomAccessory>`;
|
|
76
95
|
return `${imports}${initialRoute}\n\nexport default function NavigatorLayout() {\n return (\n <${componentName}${minimize}>\n${triggers}${accessory}\n </${componentName}>\n );\n}\n`;
|
|
77
96
|
}
|
|
78
|
-
/***
|
|
79
|
-
function
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const binding = Reflect.get(bindings.screens, node.tabs.bottomAccessoryScreenId);
|
|
91
|
-
if (binding === undefined)
|
|
92
|
-
throw new Error('Missing Native Tabs bottom-accessory binding.');
|
|
93
|
-
assertModuleBinding(binding, 'Native Tabs bottom accessory');
|
|
94
|
-
accessoryName = 'NavigatorBottomAccessory';
|
|
95
|
-
imports.push(`import { ${binding.exportName} as ${accessoryName} } from ${quote(binding.module)};`);
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
path: `${directory}/_layout.tsx`,
|
|
99
|
-
contents: createNativeTabsContents(node, componentName, imports.sort().join('\n'), accessoryName),
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
/*** Render custom-tab route records as stable multiline source objects. */
|
|
103
|
-
function renderCustomTabRoutes(routes) {
|
|
104
|
-
return `[
|
|
105
|
-
${routes
|
|
106
|
-
.map((route) => ` {
|
|
107
|
-
${Object.entries(route)
|
|
108
|
-
.filter(([, value]) => value !== undefined)
|
|
109
|
-
.map(([key, value]) => ` ${key}: ${sourceLiteral(value)},`)
|
|
110
|
-
.join('\n')}
|
|
111
|
-
},`)
|
|
112
|
-
.join('\n')}
|
|
113
|
-
]`;
|
|
97
|
+
/*** Render a Native Tabs vector icon source within the canonical generated-code print width. */
|
|
98
|
+
function nativeIconSource(componentName, family, name) {
|
|
99
|
+
const vectorIcon = `<${componentName}.Trigger.VectorIcon family={${family}} name=${quoteJsxAttribute(name)} />`;
|
|
100
|
+
const inlineSource = ` src={${vectorIcon}}`;
|
|
101
|
+
if (inlineSource.length <= 100)
|
|
102
|
+
return inlineSource;
|
|
103
|
+
return ` src={
|
|
104
|
+
<${componentName}.Trigger.VectorIcon
|
|
105
|
+
family={${family}}
|
|
106
|
+
name=${quoteJsxAttribute(name)}
|
|
107
|
+
/>
|
|
108
|
+
}`;
|
|
114
109
|
}
|
|
115
|
-
/***
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
/*** Read the required native vector-icon name from one planned route icon. */
|
|
111
|
+
function nativeIconName(icon) {
|
|
112
|
+
if (icon === undefined || 'source' in icon) {
|
|
113
|
+
throw new Error('Native Tabs require a supported named icon.');
|
|
114
|
+
}
|
|
115
|
+
return icon.name;
|
|
119
116
|
}
|
|
120
117
|
/*** Create the generated cross-platform custom-tabs layout and registered integration imports. */
|
|
121
118
|
function createCustomTabsFile(node, directory, bindings) {
|
|
@@ -159,16 +156,22 @@ function createCustomTabsFile(node, directory, bindings) {
|
|
|
159
156
|
contents: `${imports.sort().join('\n')}\n\nconst routes = ${routeSource} as const;\nconst presentations = ${sourceLiteral(tabs.presentations)} as const;\n\nexport default function NavigatorLayout() {\n${renderCustomTabsReturn(component)}\n}\n`,
|
|
160
157
|
};
|
|
161
158
|
}
|
|
162
|
-
/***
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
159
|
+
/*** Render custom-tab route records as stable multiline source objects. */
|
|
160
|
+
function renderCustomTabRoutes(routes) {
|
|
161
|
+
return `[
|
|
162
|
+
${routes
|
|
163
|
+
.map((route) => ` {
|
|
164
|
+
${Object.entries(route)
|
|
165
|
+
.filter(([, value]) => value !== undefined)
|
|
166
|
+
.map(([key, value]) => ` ${key}: ${sourceLiteral(value)},`)
|
|
167
|
+
.join('\n')}
|
|
168
|
+
},`)
|
|
169
|
+
.join('\n')}
|
|
170
|
+
]`;
|
|
171
|
+
}
|
|
172
|
+
/*** Render the custom Tabs return statement without exceeding the canonical print width. */
|
|
173
|
+
function renderCustomTabsReturn(component) {
|
|
174
|
+
const directReturn = ` return ${component};`;
|
|
175
|
+
return directReturn.length <= 100 ? directReturn : ` return (\n ${component}\n );`;
|
|
173
176
|
}
|
|
174
177
|
//# sourceMappingURL=generateTabsLayoutFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateTabsLayoutFile.js","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/outbound/generateTabsLayoutFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAM5E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,iFAAiF;AACjF,MAAM,UAAU,sBAAsB,CACpC,IAAuB,EACvB,SAAiB,EACjB,QAAqC;IAErC,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,IAAI,CAAC,IAAI,EAAE,cAAc,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,EAAE,cAAc,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,oFAAoF;AACpF,SAAS,oBAAoB,CAC3B,IAAuB,EACvB,SAAiB,EACjB,QAAqC;IAErC,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IAC9D,MAAM,OAAO,GAAG,CAAC,YAAY,aAAa,WAAW,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IAC1F,MAAM,YAAY,GAAG;QACnB,GAAG,IAAI,GAAG,CACR,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAC5B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AC,SAAS,CAAC,OAAO;KACpP,CAAC;AACJ,CAAC;AAED,2EAA2E;AAC3E,SAAS,qBAAqB,CAAC,MAAoD;IACjF,OAAO;EACP,MAAM;SACL,GAAG,CACF,CAAC,KAAK,EAAE,EAAE,CAAC;EACb,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SACpB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC;SAC1C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC;SAC7D,IAAI,CAAC,IAAI,CAAC;KACR,CACF;SACA,IAAI,CAAC,IAAI,CAAC;EACX,CAAC;AACH,CAAC;AAED,4FAA4F;AAC5F,SAAS,sBAAsB,CAAC,SAAiB;IAC/C,MAAM,YAAY,GAAG,YAAY,SAAS,GAAG,CAAC;IAC9C,OAAO,YAAY,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,SAAS,QAAQ,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NavigatorAdapterPlan } from '../../../utils/NavigatorAdapterPlan';
|
|
2
|
+
import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
|
|
3
|
+
import type { TabsNavigatorPlan } from '../domain/TabsNavigatorPlan';
|
|
4
|
+
/*** Describe Tabs adapter support, stability, and limitations for the target platform and version. */
|
|
5
|
+
export declare function createTabsAdapter(tabs: TabsNavigatorPlan, platform: NavigatorRuntimePlatform, routerMajor: number | undefined): NavigatorAdapterPlan;
|
|
6
|
+
//# sourceMappingURL=createTabsAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTabsAdapter.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/application/createTabsAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,sGAAsG;AACtG,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,wBAAwB,EAClC,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,oBAAoB,CAiBtB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*** Describe Tabs adapter support, stability, and limitations for the target platform and version. */
|
|
2
|
+
export function createTabsAdapter(tabs, platform, routerMajor) {
|
|
3
|
+
const nativeUnavailable = tabs.implementation === 'native' &&
|
|
4
|
+
(platform === 'web' || routerMajor === undefined || routerMajor < 54);
|
|
5
|
+
return {
|
|
6
|
+
id: `tabs.${tabs.implementation}`,
|
|
7
|
+
module: tabs.module,
|
|
8
|
+
exportName: tabs.exportName,
|
|
9
|
+
support: nativeUnavailable ? 'unavailable' : 'supported',
|
|
10
|
+
stability: tabs.stability,
|
|
11
|
+
limitations: tabs.implementation === 'native'
|
|
12
|
+
? ['Alpha API; unavailable on web and requires Expo Router 54.0.0 or newer.']
|
|
13
|
+
: tabs.implementation === 'custom'
|
|
14
|
+
? ['Surface presentation over Expo Router headless tabs.']
|
|
15
|
+
: [],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=createTabsAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTabsAdapter.js","sourceRoot":"","sources":["../../../../src/features/tabs/application/createTabsAdapter.ts"],"names":[],"mappings":"AAIA,sGAAsG;AACtG,MAAM,UAAU,iBAAiB,CAC/B,IAAuB,EACvB,QAAkC,EAClC,WAA+B;IAE/B,MAAM,iBAAiB,GACrB,IAAI,CAAC,cAAc,KAAK,QAAQ;QAChC,CAAC,QAAQ,KAAK,KAAK,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,GAAG,EAAE,CAAC,CAAC;IACxE,OAAO;QACL,EAAE,EAAE,QAAQ,IAAI,CAAC,cAAc,EAAE;QACjC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QACxD,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,WAAW,EACT,IAAI,CAAC,cAAc,KAAK,QAAQ;YAC9B,CAAC,CAAC,CAAC,yEAAyE,CAAC;YAC7E,CAAC,CAAC,IAAI,CAAC,cAAc,KAAK,QAAQ;gBAChC,CAAC,CAAC,CAAC,sDAAsD,CAAC;gBAC1D,CAAC,CAAC,EAAE;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { TabsImplementationConfig } from '@ankhorage/contracts/navigator';
|
|
2
|
-
import type { NavigatorResponsiveSize
|
|
2
|
+
import type { NavigatorResponsiveSize } from '../../../utils/NavigatorResponsiveSize';
|
|
3
|
+
import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
|
|
4
|
+
import type { TabsNavigatorPlan } from '../domain/TabsNavigatorPlan';
|
|
3
5
|
/*** Resolve the Expo Router module/export and presentation for one tabs implementation. */
|
|
4
6
|
export declare function resolveTabsNavigatorPlan(config: TabsImplementationConfig | undefined, platform: NavigatorRuntimePlatform, size: NavigatorResponsiveSize): TabsNavigatorPlan;
|
|
5
7
|
//# sourceMappingURL=resolveTabsNavigatorPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTabsNavigatorPlan.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/application/resolveTabsNavigatorPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAExF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,2FAA2F;AAC3F,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,QAAQ,EAAE,wBAAwB,EAClC,IAAI,EAAE,uBAAuB,GAC5B,iBAAiB,CAcnB"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import { resolveCustomTabsPresentation } from '../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
/*** Return the adaptive config when omission or `adaptive` selects that branch. */
|
|
6
|
-
function resolveAdaptiveConfig(config) {
|
|
1
|
+
import { resolveCustomTabsPresentation } from '../domain/resolveCustomTabsPresentation';
|
|
2
|
+
/*** Resolve the Expo Router module/export and presentation for one tabs implementation. */
|
|
3
|
+
export function resolveTabsNavigatorPlan(config, platform, size) {
|
|
7
4
|
if (config === undefined)
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
:
|
|
5
|
+
return createAdaptiveTabsPlan(config, platform, size);
|
|
6
|
+
switch (config.implementation) {
|
|
7
|
+
case undefined:
|
|
8
|
+
case 'adaptive':
|
|
9
|
+
return createAdaptiveTabsPlan(config, platform, size);
|
|
10
|
+
case 'native':
|
|
11
|
+
return createNativeTabsPlan(platform, config);
|
|
12
|
+
case 'javascript':
|
|
13
|
+
return createJavaScriptTabsPlan(config);
|
|
14
|
+
case 'custom':
|
|
15
|
+
return createCustomTabsPlan(config, size);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/*** Resolve the adaptive tabs plan for the selected runtime platform. */
|
|
19
|
+
function createAdaptiveTabsPlan(config, platform, size) {
|
|
20
|
+
if (platform !== 'web')
|
|
21
|
+
return createNativeTabsPlan(platform, resolveAdaptiveConfig(config)?.native);
|
|
22
|
+
return createCustomTabsPlan(resolveAdaptiveConfig(config)?.web ?? DEFAULT_WEB_CUSTOM_TABS, size);
|
|
12
23
|
}
|
|
13
24
|
/*** Create the alpha native-tabs plan and reject unsupported Web usage. */
|
|
14
25
|
function createNativeTabsPlan(platform, config) {
|
|
@@ -28,16 +39,13 @@ function createNativeTabsPlan(platform, config) {
|
|
|
28
39
|
: { bottomAccessoryScreenId: config.bottomAccessory.screenId }),
|
|
29
40
|
};
|
|
30
41
|
}
|
|
31
|
-
/***
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
stability: 'stable',
|
|
39
|
-
presentation: top ? 'top' : 'bottom',
|
|
40
|
-
};
|
|
42
|
+
/*** Return the adaptive config when omission or `adaptive` selects that branch. */
|
|
43
|
+
function resolveAdaptiveConfig(config) {
|
|
44
|
+
if (config === undefined)
|
|
45
|
+
return undefined;
|
|
46
|
+
return config.implementation === undefined || config.implementation === 'adaptive'
|
|
47
|
+
? config
|
|
48
|
+
: undefined;
|
|
41
49
|
}
|
|
42
50
|
/*** Create the stable cross-platform headless custom-tabs plan for explicit custom use. */
|
|
43
51
|
function createCustomTabsPlan(config, size) {
|
|
@@ -56,26 +64,18 @@ function createCustomTabsPlan(config, size) {
|
|
|
56
64
|
presentations,
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return createAdaptiveTabsPlan(config, platform, size);
|
|
73
|
-
case 'native':
|
|
74
|
-
return createNativeTabsPlan(platform, config);
|
|
75
|
-
case 'javascript':
|
|
76
|
-
return createJavaScriptTabsPlan(config);
|
|
77
|
-
case 'custom':
|
|
78
|
-
return createCustomTabsPlan(config, size);
|
|
79
|
-
}
|
|
67
|
+
const DEFAULT_WEB_CUSTOM_TABS = {
|
|
68
|
+
presentation: 'responsive',
|
|
69
|
+
};
|
|
70
|
+
/*** Create the stable JavaScript tabs plan for bottom or top presentation. */
|
|
71
|
+
function createJavaScriptTabsPlan(config) {
|
|
72
|
+
const top = config.presentation === 'top';
|
|
73
|
+
return {
|
|
74
|
+
implementation: 'javascript',
|
|
75
|
+
module: top ? 'expo-router/js-top-tabs' : 'expo-router/js-tabs',
|
|
76
|
+
exportName: top ? 'TopTabs' : 'Tabs',
|
|
77
|
+
stability: 'stable',
|
|
78
|
+
presentation: top ? 'top' : 'bottom',
|
|
79
|
+
};
|
|
80
80
|
}
|
|
81
81
|
//# sourceMappingURL=resolveTabsNavigatorPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTabsNavigatorPlan.js","sourceRoot":"","sources":["../../../../src/features/tabs/application/resolveTabsNavigatorPlan.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAGxF,2FAA2F;AAC3F,MAAM,UAAU,wBAAwB,CACtC,MAA4C,EAC5C,QAAkC,EAClC,IAA6B;IAE7B,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IAEhF,QAAQ,MAAM,CAAC,cAAc,EAAE,CAAC;QAC9B,KAAK,SAAS,CAAC;QACf,KAAK,UAAU;YACb,OAAO,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QACxD,KAAK,QAAQ;YACX,OAAO,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAChD,KAAK,YAAY;YACf,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAC;QAC1C,KAAK,QAAQ;YACX,OAAO,oBAAoB,CAAC,MAAM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F,SAAS,oBAAoB,CAC3B,MAAgD,EAChD,IAA6B;IAE7B,MAAM,QAAQ,GAAG,6BAA6B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7D,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,6BAA6B,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,YAAY;QACtE,MAAM,EAAE,6BAA6B,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,YAAY;QACpE,QAAQ,EAAE,6BAA6B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,YAAY;KACzE,CAAC;IACF,OAAO;QACL,cAAc,EAAE,QAAQ;QACxB,MAAM,EAAE,gBAAgB;QACxB,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;QACnB,GAAG,QAAQ;QACX,aAAa;KACd,CAAC;AACJ,CAAC;AAED,MAAM,uBAAuB,GAAG;IAC9B,YAAY,EAAE,YAAY;CAClB,CAAC;AAEX,8EAA8E;AAC9E,SAAS,wBAAwB,CAAC,MAA4B;IAC5D,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,KAAK,KAAK,CAAC;IAC1C,OAAO;QACL,cAAc,EAAE,YAAY;QAC5B,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,qBAAqB;QAC/D,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;QACpC,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;KACrC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TabsImplementationConfig } from '@ankhorage/contracts/navigator';
|
|
2
|
+
import type { NavigatorResponsiveSize } from '../../../utils/NavigatorResponsiveSize';
|
|
3
|
+
import type { NavigatorRuntimePlatform } from '../../../utils/NavigatorRuntimePlatform';
|
|
4
|
+
import type { TabsNavigatorPlan } from '../domain/TabsNavigatorPlan';
|
|
5
|
+
/*** Retain an unavailable native-web plan for diagnostics or resolve the supported Tabs adapter. */
|
|
6
|
+
export declare function resolveTabsPlan(config: TabsImplementationConfig | undefined, platform: NavigatorRuntimePlatform, responsiveSize: NavigatorResponsiveSize): TabsNavigatorPlan;
|
|
7
|
+
//# sourceMappingURL=resolveTabsPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTabsPlan.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/application/resolveTabsPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,oGAAoG;AACpG,wBAAgB,eAAe,CAC7B,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,QAAQ,EAAE,wBAAwB,EAClC,cAAc,EAAE,uBAAuB,GACtC,iBAAiB,CAUnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { resolveTabsNavigatorPlan } from './resolveTabsNavigatorPlan';
|
|
2
|
+
/*** Retain an unavailable native-web plan for diagnostics or resolve the supported Tabs adapter. */
|
|
3
|
+
export function resolveTabsPlan(config, platform, responsiveSize) {
|
|
4
|
+
if (config?.implementation === 'native' && platform === 'web') {
|
|
5
|
+
return {
|
|
6
|
+
implementation: 'native',
|
|
7
|
+
module: 'expo-router/unstable-native-tabs',
|
|
8
|
+
exportName: 'NativeTabs',
|
|
9
|
+
stability: 'alpha',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
return resolveTabsNavigatorPlan(config, platform, responsiveSize);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resolveTabsPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTabsPlan.js","sourceRoot":"","sources":["../../../../src/features/tabs/application/resolveTabsPlan.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,oGAAoG;AACpG,MAAM,UAAU,eAAe,CAC7B,MAA4C,EAC5C,QAAkC,EAClC,cAAuC;IAEvC,IAAI,MAAM,EAAE,cAAc,KAAK,QAAQ,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QAC9D,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,MAAM,EAAE,kCAAkC;YAC1C,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,OAAO;SACnB,CAAC;IACJ,CAAC;IACD,OAAO,wBAAwB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedCustomTabsPresentation.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedCustomTabsPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,wBAAwB,CAAC;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedCustomTabsPresentation.js","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedCustomTabsPresentation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedTabsImplementation.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedTabsImplementation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedTabsImplementation.js","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedTabsImplementation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedTabsPresentation.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedTabsPresentation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvedTabsPresentation.js","sourceRoot":"","sources":["../../../../src/features/tabs/domain/ResolvedTabsPresentation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExpoRouterNavigatorModule } from '../../../utils/ExpoRouterNavigatorModule';
|
|
2
|
+
import type { NavigatorApiStability } from '../../../utils/NavigatorApiStability';
|
|
3
|
+
import type { NavigatorResponsiveSize } from '../../../utils/NavigatorResponsiveSize';
|
|
4
|
+
import type { ResolvedTabsImplementation } from './ResolvedTabsImplementation';
|
|
5
|
+
import type { ResolvedTabsPresentation } from './ResolvedTabsPresentation';
|
|
6
|
+
/**
|
|
7
|
+
* Disposable adapter plan for a `tabs` topology.
|
|
8
|
+
*
|
|
9
|
+
* The implementation selects the Router runtime. Presentation only selects its visual chrome and
|
|
10
|
+
* never creates another route topology.
|
|
11
|
+
*/
|
|
12
|
+
export interface TabsNavigatorPlan {
|
|
13
|
+
implementation: ResolvedTabsImplementation;
|
|
14
|
+
module: ExpoRouterNavigatorModule;
|
|
15
|
+
exportName: string;
|
|
16
|
+
stability: NavigatorApiStability;
|
|
17
|
+
presentation?: ResolvedTabsPresentation;
|
|
18
|
+
presentations?: Readonly<Record<NavigatorResponsiveSize, ResolvedTabsPresentation>>;
|
|
19
|
+
customPresentationId?: string;
|
|
20
|
+
minimizeBehavior?: 'automatic' | 'never' | 'onScrollDown' | 'onScrollUp';
|
|
21
|
+
bottomAccessoryScreenId?: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=TabsNavigatorPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabsNavigatorPlan.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/domain/TabsNavigatorPlan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,0BAA0B,CAAC;IAC3C,MAAM,EAAE,yBAAyB,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,qBAAqB,CAAC;IACjC,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAC,CAAC;IACpF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;IACzE,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabsNavigatorPlan.js","sourceRoot":"","sources":["../../../../src/features/tabs/domain/TabsNavigatorPlan.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AppNavigatorManifest, TabsNavigatorNode } from '@ankhorage/contracts/navigator';
|
|
2
|
-
import type { NavigatorDiagnostic
|
|
2
|
+
import type { NavigatorDiagnostic } from '../../../utils/NavigatorDiagnostic';
|
|
3
|
+
import type { NavigatorValidationContext } from '../../../utils/NavigatorValidationContext';
|
|
3
4
|
/*** Add tabs-specific semantic diagnostics for one manifest navigator node. */
|
|
4
5
|
export declare function addTabsAdapterDiagnostics(diagnostics: NavigatorDiagnostic[], manifest: AppNavigatorManifest, node: TabsNavigatorNode, pointer: string, validationContext: NavigatorValidationContext, routerMajor: number | undefined): void;
|
|
5
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=addTabsAdapterDiagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addTabsAdapterDiagnostics.d.ts","sourceRoot":"","sources":["../../../../src/features/tabs/domain/addTabsAdapterDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAG5F,+EAA+E;AAC/E,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,mBAAmB,EAAE,EAClC,QAAQ,EAAE,oBAAoB,EAC9B,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,0BAA0B,EAC7C,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,IAAI,CAeN"}
|