@olonjs/core 1.0.78 → 1.0.79
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 +6 -0
- package/dist/olonjs-core.js +5093 -5590
- package/dist/olonjs-core.umd.cjs +58 -58
- package/package.json +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,8 @@ export declare interface PageConfig {
|
|
|
278
278
|
slug: string;
|
|
279
279
|
meta: PageMeta;
|
|
280
280
|
sections: Section[];
|
|
281
|
+
/** When `false`, Core does not render the global header from `site.json` for this page. Omitted = default (show if configured). */
|
|
282
|
+
'global-header'?: boolean;
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
export declare interface PageMeta {
|
|
@@ -395,6 +397,9 @@ export declare interface SelectionPathSegment {
|
|
|
395
397
|
itemId?: string;
|
|
396
398
|
}
|
|
397
399
|
|
|
400
|
+
/** Whether the global `site.json` header should be rendered for this page. */
|
|
401
|
+
export declare function shouldRenderSiteGlobalHeader(page: PageConfig, site: SiteConfig): boolean;
|
|
402
|
+
|
|
398
403
|
export declare interface SiteConfig {
|
|
399
404
|
identity: SiteIdentity;
|
|
400
405
|
header?: Section;
|
|
@@ -451,6 +456,7 @@ export declare const StudioStage: default_2.FC<StudioStageProps>;
|
|
|
451
456
|
declare interface StudioStageProps {
|
|
452
457
|
draft: PageConfig;
|
|
453
458
|
globalDraft: SiteConfig;
|
|
459
|
+
menuConfig: MenuConfig;
|
|
454
460
|
themeConfig: ThemeConfig;
|
|
455
461
|
slug: string;
|
|
456
462
|
selectedId?: string | null;
|