@olonjs/core 1.0.83 → 1.0.84

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/dist/index.d.ts CHANGED
@@ -222,6 +222,8 @@ export declare interface JsonPagesConfig {
222
222
  siteConfig: SiteConfig;
223
223
  themeConfig: ThemeConfig;
224
224
  menuConfig: MenuConfig;
225
+ /** Optional extra JSON documents available to the runtime $ref resolver. */
226
+ refDocuments?: Record<string, unknown>;
225
227
  /** Optional persistence; Core provides defaults if omitted. */
226
228
  persistence?: Partial<PersistenceConfig>;
227
229
  /** CSS strings for ThemeLoader. */
@@ -351,6 +353,27 @@ declare type Registry = JsonPagesConfig['registry'];
351
353
  */
352
354
  export declare const resolveAssetUrl: (path: string, tenantId?: string) => string;
353
355
 
356
+ export declare function resolveHeaderMenuItems(headerData: unknown, fallbackMain: MenuItem[]): MenuItem[];
357
+
358
+ export declare function resolveRuntimeConfig(input: RuntimeResolutionInput): RuntimeResolutionResult;
359
+
360
+ export declare function resolveSectionMenuItems(section: Section, fallbackMain: MenuItem[]): MenuItem[] | undefined;
361
+
362
+ declare interface RuntimeResolutionInput {
363
+ pages: Record<string, PageConfig>;
364
+ siteConfig: SiteConfig;
365
+ themeConfig: ThemeConfig;
366
+ menuConfig: MenuConfig;
367
+ refDocuments?: JsonPagesConfig['refDocuments'];
368
+ }
369
+
370
+ declare interface RuntimeResolutionResult {
371
+ pages: Record<string, PageConfig>;
372
+ siteConfig: SiteConfig;
373
+ themeConfig: ThemeConfig;
374
+ menuConfig: MenuConfig;
375
+ }
376
+
354
377
  declare type Schemas = JsonPagesConfig['schemas'];
355
378
 
356
379
  /** Computed union of all registered section types. */