@olonjs/core 1.1.7 → 1.1.8
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 +24 -0
- package/dist/olonjs-core-runtime.js +200 -195
- package/dist/olonjs-core.js +3115 -3044
- package/dist/olonjs-core.umd.cjs +35 -35
- package/dist/runtime.d.ts +24 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,16 @@ declare interface AdminSidebarProps {
|
|
|
98
98
|
onPageChange?: (slug: string) => void;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
export declare function applyMenuRefBindingsToDraft(authoredSectionData: unknown, nextData: Record<string, unknown>, menuDraft: MenuConfig): {
|
|
102
|
+
normalizedData: Record<string, unknown>;
|
|
103
|
+
menuDraft: MenuConfig;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export declare function applySiteMenuRefBindingsToDraft(authoredSite: SiteConfig, nextSite: SiteConfig, menuDraft: MenuConfig): {
|
|
107
|
+
site: SiteConfig;
|
|
108
|
+
menuDraft: MenuConfig;
|
|
109
|
+
};
|
|
110
|
+
|
|
101
111
|
export declare function applyValueAtSelectionPath(rootData: Record<string, unknown>, selectionPath: SelectionPath, value: unknown): Record<string, unknown>;
|
|
102
112
|
|
|
103
113
|
export declare interface AssetsConfig {
|
|
@@ -269,10 +279,14 @@ export declare namespace contract {
|
|
|
269
279
|
AssetsConfig,
|
|
270
280
|
WebMcpConfig,
|
|
271
281
|
JsonPagesConfig,
|
|
282
|
+
getMenuRefBindings,
|
|
283
|
+
applyMenuRefBindingsToDraft,
|
|
284
|
+
applySiteMenuRefBindingsToDraft,
|
|
272
285
|
resolveHeaderMenuItems,
|
|
273
286
|
resolveSectionMenuItems,
|
|
274
287
|
resolveRuntimeConfig,
|
|
275
288
|
RefDocuments,
|
|
289
|
+
MenuRefBinding,
|
|
276
290
|
buildPageContractHref,
|
|
277
291
|
buildPageManifestHref,
|
|
278
292
|
buildPageContract,
|
|
@@ -385,6 +399,8 @@ export declare interface FormState {
|
|
|
385
399
|
|
|
386
400
|
export declare type FormStatus = 'idle' | 'submitting' | 'success' | 'error';
|
|
387
401
|
|
|
402
|
+
export declare function getMenuRefBindings(sectionData: unknown): MenuRefBinding[];
|
|
403
|
+
|
|
388
404
|
/**
|
|
389
405
|
* Image picker field: object { url, alt? } with ui:image-picker for Form Factory.
|
|
390
406
|
* Use in section data and resolve with resolveAssetUrl(url, tenantId) in View.
|
|
@@ -471,6 +487,9 @@ export declare interface JsonPagesEngineProps {
|
|
|
471
487
|
|
|
472
488
|
export declare namespace kernel {
|
|
473
489
|
export {
|
|
490
|
+
applyMenuRefBindingsToDraft,
|
|
491
|
+
applySiteMenuRefBindingsToDraft,
|
|
492
|
+
getMenuRefBindings,
|
|
474
493
|
resolveHeaderMenuItems,
|
|
475
494
|
resolveRuntimeConfig,
|
|
476
495
|
resolveSectionMenuItems,
|
|
@@ -538,6 +557,11 @@ export declare interface MenuItem {
|
|
|
538
557
|
children?: MenuItem[];
|
|
539
558
|
}
|
|
540
559
|
|
|
560
|
+
declare interface MenuRefBinding {
|
|
561
|
+
fieldKey: string;
|
|
562
|
+
path: string[];
|
|
563
|
+
}
|
|
564
|
+
|
|
541
565
|
export declare function normalizeBasePath(value?: string): string;
|
|
542
566
|
|
|
543
567
|
export declare function normalizeSlugSegments(value: string): string;
|