@avora-labs/meta-forge 1.1.4 → 1.1.5

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.
@@ -2267,8 +2267,10 @@ const META_SECTION_CONTEXT = new InjectionToken('META_SECTION_CONTEXT');
2267
2267
  /**
2268
2268
  * Returns the routing configuration for AvoraMetaForge's built-in auth UI.
2269
2269
  * Connect this output to your main `app.routes.ts`.
2270
+ * If auth UI is disabled, it returns an empty array, allowing the MetaRouterService
2271
+ * to safely handle dynamic page routes.
2270
2272
  */
2271
- function getAmfAuthRoutes(meta) {
2273
+ function getAmfRoutes(meta) {
2272
2274
  if (!meta.auth?.builtInUI?.enabled) {
2273
2275
  return [];
2274
2276
  }
@@ -5399,6 +5401,7 @@ const EMPTY_LAYOUT_PATHS = ['/login', '/register', '/forgot-password', '/reset-p
5399
5401
  */
5400
5402
  class AppConfigService {
5401
5403
  router;
5404
+ metaConfig = inject(APP_META_CONFIG_TOKEN, { optional: true });
5402
5405
  /**
5403
5406
  * Current active layout type.
5404
5407
  * Initialized from the browser URL *before* Angular's first navigation so
@@ -5425,7 +5428,9 @@ class AppConfigService {
5425
5428
  getInitialLayout() {
5426
5429
  const path = window.location.pathname;
5427
5430
  const isEmptyRoute = EMPTY_LAYOUT_PATHS.some(p => path === p || path.startsWith(p + '/'));
5428
- return isEmptyRoute ? LayoutType.EMPTY : LayoutType.VERTICAL;
5431
+ if (isEmptyRoute)
5432
+ return LayoutType.EMPTY;
5433
+ return this.metaConfig?.app?.defaultLayout || LayoutType.VERTICAL;
5429
5434
  }
5430
5435
  constructor(router) {
5431
5436
  this.router = router;
@@ -6540,5 +6545,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
6540
6545
  * Generated bundle index. Do not edit.
6541
6546
  */
6542
6547
 
6543
- export { APP_META_CONFIG_TOKEN, AccordionSectionComponent, ActionDispatcherService, AmfDialogHostComponent, AmfDrawerHostComponent, AppConfigService, AuthService, CardSectionComponent, ComponentRegistryService, ConditionEvaluatorService, FormRendererComponent, LayoutComponent, LayoutType, META_SECTION_CONFIG, META_SECTION_CONTEXT, MetaApiService, MetaAuthService, MetaModalHostComponent, MetaPageComponent, MetaRendererComponent, MetaRouterService, MetaStateService, NotificationService, PageHeaderSectionComponent, PluginRegistryService, RepeaterFieldComponent, StatsGridSectionComponent, StepperFormRendererComponent, TableRendererComponent, ThemeService, authGuard, authInterceptor, getAmfAuthRoutes, initializeAvoraMetaForge, metaCanDeactivateGuard, metaGuard, provideAvoraMetaForge };
6548
+ export { APP_META_CONFIG_TOKEN, AccordionSectionComponent, ActionDispatcherService, AmfDialogHostComponent, AmfDrawerHostComponent, AppConfigService, AuthService, CardSectionComponent, ComponentRegistryService, ConditionEvaluatorService, FormRendererComponent, LayoutComponent, LayoutType, META_SECTION_CONFIG, META_SECTION_CONTEXT, MetaApiService, MetaAuthService, MetaModalHostComponent, MetaPageComponent, MetaRendererComponent, MetaRouterService, MetaStateService, NotificationService, PageHeaderSectionComponent, PluginRegistryService, RepeaterFieldComponent, StatsGridSectionComponent, StepperFormRendererComponent, TableRendererComponent, ThemeService, authGuard, authInterceptor, getAmfRoutes, initializeAvoraMetaForge, metaCanDeactivateGuard, metaGuard, provideAvoraMetaForge };
6544
6549
  //# sourceMappingURL=avora-labs-meta-forge.mjs.map