@olonjs/core 1.0.97 → 1.0.99
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 +8 -5
- package/dist/olonjs-core.js +2920 -2892
- package/dist/olonjs-core.umd.cjs +45 -45
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -119,8 +119,6 @@ export declare interface BaseWidgetProps<T = unknown> {
|
|
|
119
119
|
options?: string[];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export declare function buildWebMcpToolName(sectionType: string): string;
|
|
123
|
-
|
|
124
122
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
125
123
|
|
|
126
124
|
export declare interface ConfigContextValue {
|
|
@@ -139,7 +137,9 @@ export declare const ConfigProvider: default_2.FC<{
|
|
|
139
137
|
children: default_2.ReactNode;
|
|
140
138
|
}>;
|
|
141
139
|
|
|
142
|
-
export declare function
|
|
140
|
+
export declare function createWebMcpSaveToolInputSchema(): Record<string, unknown>;
|
|
141
|
+
|
|
142
|
+
export declare function createWebMcpUpdateToolInputSchema(): Record<string, unknown>;
|
|
143
143
|
|
|
144
144
|
export declare const DefaultNotFound: default_2.FC;
|
|
145
145
|
|
|
@@ -276,8 +276,6 @@ export declare interface PageRendererProps {
|
|
|
276
276
|
selectedId?: string | null;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
export declare function parseWebMcpToolName(toolName: string): string | null;
|
|
280
|
-
|
|
281
279
|
/** Persistence API exposed by the tenant app to Studio actions. */
|
|
282
280
|
export declare interface PersistenceConfig {
|
|
283
281
|
/**
|
|
@@ -545,6 +543,10 @@ export declare function useConfig(): ConfigContextValue;
|
|
|
545
543
|
|
|
546
544
|
export declare const useStudio: () => StudioContextType;
|
|
547
545
|
|
|
546
|
+
export declare const WEBMCP_TOOL_SAVE = "save-project-state";
|
|
547
|
+
|
|
548
|
+
export declare const WEBMCP_TOOL_UPDATE = "update-section-draft";
|
|
549
|
+
|
|
548
550
|
/** Optional WebMCP bridge registration in Studio mode. */
|
|
549
551
|
export declare interface WebMcpConfig {
|
|
550
552
|
/** Enables WebMCP tool registration when Studio is active. */
|
|
@@ -556,6 +558,7 @@ export declare interface WebMcpConfig {
|
|
|
556
558
|
export declare interface WebMcpMutationArgs {
|
|
557
559
|
slug?: string;
|
|
558
560
|
sectionId: string;
|
|
561
|
+
sectionType?: string;
|
|
559
562
|
scope?: 'global' | 'local';
|
|
560
563
|
data?: Record<string, unknown>;
|
|
561
564
|
itemPath?: SelectionPath;
|