@olonjs/core 1.0.113 → 1.0.115
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 +11 -3
- package/dist/olonjs-core.js +2641 -2617
- package/dist/olonjs-core.umd.cjs +47 -47
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -181,12 +181,13 @@ export declare interface ConfigContextValue {
|
|
|
181
181
|
registry: Registry;
|
|
182
182
|
schemas: Schemas;
|
|
183
183
|
tenantId?: string;
|
|
184
|
+
basePath?: string;
|
|
184
185
|
assets?: AssetsConfig;
|
|
185
186
|
overlayDisabledSectionTypes?: string[];
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
export declare const ConfigProvider: default_2.FC<{
|
|
189
|
-
config: Pick<JsonPagesConfig, 'registry' | 'schemas' | 'tenantId' | 'assets' | 'overlayDisabledSectionTypes'>;
|
|
190
|
+
config: Pick<JsonPagesConfig, 'registry' | 'schemas' | 'tenantId' | 'basePath' | 'assets' | 'overlayDisabledSectionTypes'>;
|
|
190
191
|
children: default_2.ReactNode;
|
|
191
192
|
}>;
|
|
192
193
|
|
|
@@ -320,6 +321,7 @@ export declare const isTransientAssetUrl: (path: string) => boolean;
|
|
|
320
321
|
|
|
321
322
|
export declare interface JsonPagesConfig {
|
|
322
323
|
tenantId: string;
|
|
324
|
+
basePath?: string;
|
|
323
325
|
registry: Record<string, default_2.ComponentType<unknown>>;
|
|
324
326
|
schemas: Record<string, {
|
|
325
327
|
parse: (v: unknown) => unknown;
|
|
@@ -415,6 +417,8 @@ export declare interface MenuItem {
|
|
|
415
417
|
children?: MenuItem[];
|
|
416
418
|
}
|
|
417
419
|
|
|
420
|
+
export declare function normalizeBasePath(value?: string): string;
|
|
421
|
+
|
|
418
422
|
export declare function normalizeSlugSegments(value: string): string;
|
|
419
423
|
|
|
420
424
|
declare interface OlonJsPageContract {
|
|
@@ -565,7 +569,7 @@ export declare function registerWebMcpTool(tool: WebMcpTool): () => void;
|
|
|
565
569
|
|
|
566
570
|
declare type Registry = JsonPagesConfig['registry'];
|
|
567
571
|
|
|
568
|
-
export declare const resolveAssetUrl: (path: string, tenantId?: string) => string;
|
|
572
|
+
export declare const resolveAssetUrl: (path: string, tenantId?: string, basePath?: string) => string;
|
|
569
573
|
|
|
570
574
|
export declare function resolveHeaderMenuItems(headerData: unknown, fallbackMain: MenuItem[]): MenuItem[];
|
|
571
575
|
|
|
@@ -617,7 +621,9 @@ export declare namespace runtime {
|
|
|
617
621
|
resolveAssetUrl,
|
|
618
622
|
useDocumentMeta,
|
|
619
623
|
buildThemeVariableMap,
|
|
620
|
-
themeManager
|
|
624
|
+
themeManager,
|
|
625
|
+
normalizeBasePath,
|
|
626
|
+
withBasePath
|
|
621
627
|
}
|
|
622
628
|
}
|
|
623
629
|
|
|
@@ -908,4 +914,6 @@ declare interface WebMcpToolContract {
|
|
|
908
914
|
|
|
909
915
|
export declare type WidgetType = keyof typeof InputWidgets;
|
|
910
916
|
|
|
917
|
+
export declare function withBasePath(pathname: string, basePath?: string): string;
|
|
918
|
+
|
|
911
919
|
export { }
|