@chaibuilder/sdk 2.0.0-beta.18 → 2.0.0-beta.19
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/core.cjs +4 -4
- package/dist/core.d.ts +2 -2
- package/dist/core.js +448 -503
- package/package.json +2 -2
package/dist/core.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export declare const ChaiBuilderEditor: React_3.FC<ChaiBuilderEditorProps>;
|
|
|
79
79
|
|
|
80
80
|
export declare interface ChaiBuilderEditorProps {
|
|
81
81
|
themePresets?: Record<string, Partial<ChaiBuilderThemeValues>>[];
|
|
82
|
-
themeOptions?: (defaultThemeOptions: ChaiBuilderThemeOptions) => ChaiBuilderThemeOptions;
|
|
82
|
+
themeOptions?: ChaiBuilderThemeOptions | ((defaultThemeOptions: ChaiBuilderThemeOptions) => ChaiBuilderThemeOptions);
|
|
83
83
|
theme?: Partial<ChaiBuilderThemeValues>;
|
|
84
84
|
/**
|
|
85
85
|
* onError callback function
|
|
@@ -164,7 +164,7 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
164
164
|
uiLibraries?: Omit<UILibrary, "blocks">[];
|
|
165
165
|
getUILibraryBlocks?: (library: UILibrary) => Promise<UiLibraryBlock[]>;
|
|
166
166
|
getUILibraryBlock?: (library: UILibrary, uiLibBlock: UiLibraryBlock) => Promise<ChaiBlock[]>;
|
|
167
|
-
|
|
167
|
+
getBlockAsyncProps?: (block: ChaiBlock) => Promise<string>;
|
|
168
168
|
/**
|
|
169
169
|
* Get Global blocks
|
|
170
170
|
*/
|