@chaibuilder/sdk 2.6.4 → 3.0.3
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/{code-editor-ChUC9WsA.cjs → code-editor-BL_76o6w.cjs} +1 -1
- package/dist/{code-editor-RwOkFe_0.js → code-editor-tDa4T69w.js} +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.d.ts +1 -6
- package/dist/core.js +541 -534
- package/dist/{css-import-modal-w1WZrKpm.cjs → css-import-modal-BRFVZ9j3.cjs} +1 -1
- package/dist/{css-import-modal-Ds-qmte_.js → css-import-modal-CgSqJi_w.js} +1 -1
- package/dist/toggle-C5f1IJ1G.cjs +1 -0
- package/dist/{toggle-DXTcRcvD.js → toggle-C6VUu_7m.js} +62 -62
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +147 -148
- package/package.json +14 -15
- package/dist/toggle-CCqv4Cah.cjs +0 -1
package/dist/core.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
172
172
|
/**
|
|
173
173
|
* Auto save support
|
|
174
174
|
*/
|
|
175
|
-
|
|
175
|
+
autoSave?: boolean;
|
|
176
176
|
/**
|
|
177
177
|
* Auto save interval in seconds
|
|
178
178
|
*/
|
|
@@ -197,15 +197,10 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
197
197
|
* Import HTML support
|
|
198
198
|
*/
|
|
199
199
|
importHTMLSupport?: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* AI context
|
|
202
|
-
*/
|
|
203
|
-
aiContext?: string;
|
|
204
200
|
/**
|
|
205
201
|
* Ask AI callback
|
|
206
202
|
*/
|
|
207
203
|
askAiCallBack?: (type: "styles" | "content", prompt: string, blocks: ChaiBlock[], lang: string) => Promise<AskAiResponse>;
|
|
208
|
-
saveAiContextCallback?: (content: string) => Promise<true | Error>;
|
|
209
204
|
/**
|
|
210
205
|
* Get partial blocks
|
|
211
206
|
* @returns {Record<string, { type: string; name: string; description?: string }>}
|