@olonjs/core 1.0.112 → 1.0.114

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
@@ -320,6 +320,7 @@ export declare const isTransientAssetUrl: (path: string) => boolean;
320
320
 
321
321
  export declare interface JsonPagesConfig {
322
322
  tenantId: string;
323
+ basePath?: string;
323
324
  registry: Record<string, default_2.ComponentType<unknown>>;
324
325
  schemas: Record<string, {
325
326
  parse: (v: unknown) => unknown;
@@ -402,7 +403,8 @@ export declare interface LibraryImageEntry {
402
403
  }
403
404
 
404
405
  export declare interface MenuConfig {
405
- main: MenuItem[];
406
+ main?: MenuItem[];
407
+ [key: string]: MenuItem[] | undefined;
406
408
  }
407
409
 
408
410
  export declare interface MenuItem {
@@ -414,6 +416,8 @@ export declare interface MenuItem {
414
416
  children?: MenuItem[];
415
417
  }
416
418
 
419
+ export declare function normalizeBasePath(value?: string): string;
420
+
417
421
  export declare function normalizeSlugSegments(value: string): string;
418
422
 
419
423
  declare interface OlonJsPageContract {
@@ -616,7 +620,9 @@ export declare namespace runtime {
616
620
  resolveAssetUrl,
617
621
  useDocumentMeta,
618
622
  buildThemeVariableMap,
619
- themeManager
623
+ themeManager,
624
+ normalizeBasePath,
625
+ withBasePath
620
626
  }
621
627
  }
622
628
 
@@ -681,7 +687,7 @@ export declare function shouldRenderSiteGlobalHeader(page: PageConfig, site: Sit
681
687
  export declare interface SiteConfig {
682
688
  identity: SiteIdentity;
683
689
  header?: Section;
684
- footer?: Section;
690
+ footer: Section;
685
691
  pages: SitePageEntry[];
686
692
  }
687
693
 
@@ -735,9 +741,7 @@ export declare interface StudioRouteProps {
735
741
  pageRegistry: Record<string, PageConfig>;
736
742
  schemas: JsonPagesConfig['schemas'];
737
743
  siteConfig: SiteConfig;
738
- menuConfig: {
739
- main: MenuItem[];
740
- };
744
+ menuConfig: MenuConfig;
741
745
  themeConfig: JsonPagesConfig['themeConfig'];
742
746
  refDocuments?: JsonPagesConfig['refDocuments'];
743
747
  tenantCss: string;
@@ -776,22 +780,10 @@ export declare function syncHeadLink(rel: string, href: string): void;
776
780
  export declare function syncWebMcpJsonLd(title: string, description: string, url: string): void;
777
781
 
778
782
  export declare interface ThemeBorderRadius {
779
- sm: string;
780
- md: string;
781
- lg: string;
782
783
  [key: string]: string;
783
784
  }
784
785
 
785
786
  export declare interface ThemeColors {
786
- primary: string;
787
- secondary: string;
788
- accent: string;
789
- background: string;
790
- surface: string;
791
- surfaceAlt: string;
792
- text: string;
793
- textMuted: string;
794
- border: string;
795
787
  [key: string]: string;
796
788
  }
797
789
 
@@ -806,9 +798,6 @@ export declare interface ThemeCssConfig {
806
798
  }
807
799
 
808
800
  export declare interface ThemeFontFamily {
809
- primary: string;
810
- mono: string;
811
- display?: string;
812
801
  [key: string]: string | undefined;
813
802
  }
814
803
 
@@ -850,9 +839,7 @@ export declare const VisitorRoute: default_2.FC<VisitorRouteProps>;
850
839
  export declare interface VisitorRouteProps {
851
840
  pageRegistry: Record<string, PageConfig>;
852
841
  siteConfig: SiteConfig;
853
- menuConfig: {
854
- main: MenuItem[];
855
- };
842
+ menuConfig: MenuConfig;
856
843
  themeConfig: JsonPagesConfig['themeConfig'];
857
844
  refDocuments?: JsonPagesConfig['refDocuments'];
858
845
  tenantCss: string;
@@ -926,4 +913,6 @@ declare interface WebMcpToolContract {
926
913
 
927
914
  export declare type WidgetType = keyof typeof InputWidgets;
928
915
 
916
+ export declare function withBasePath(pathname: string, basePath?: string): string;
917
+
929
918
  export { }