@chaibuilder/sdk 2.0.0-beta.22 → 2.0.0-beta.24
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/{CodeEditor-YzCn7aVY.js → CodeEditor-NoUXWcBN.js} +9 -10
- package/dist/CodeEditor-funqCist.cjs +1 -0
- package/dist/Topbar-80aquFk1.cjs +1 -0
- package/dist/{Topbar-DjNek52q.js → Topbar-XOJDIb13.js} +5 -6
- package/dist/context-menu-0lRey9QY.cjs +1 -0
- package/dist/{context-menu-oLipAPzI.js → context-menu-EDKTnqIV.js} +250 -233
- package/dist/core.cjs +6 -6
- package/dist/core.d.ts +16 -4
- package/dist/core.js +2309 -2223
- package/dist/render.cjs +2 -2
- package/dist/render.js +25 -26
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +223 -238
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +406 -311
- package/package.json +2 -2
- package/dist/CodeEditor-lNA6FAxD.cjs +0 -1
- package/dist/Topbar-aXe7JKK0.cjs +0 -1
- package/dist/context-menu-4nQs6OxC.cjs +0 -1
package/dist/core.d.ts
CHANGED
|
@@ -16,10 +16,11 @@ declare type AddBlocks = {
|
|
|
16
16
|
|
|
17
17
|
export declare const AddBlocksDialog: () => JSX_2.Element;
|
|
18
18
|
|
|
19
|
-
export declare const AddBlocksPanel: ({ className, showHeading, parentId, }: {
|
|
19
|
+
export declare const AddBlocksPanel: ({ className, showHeading, parentId, position, }: {
|
|
20
20
|
parentId?: string;
|
|
21
21
|
showHeading?: boolean;
|
|
22
22
|
className?: string;
|
|
23
|
+
position?: number;
|
|
23
24
|
}) => JSX_2.Element;
|
|
24
25
|
|
|
25
26
|
export declare const AISetContext: () => JSX_2.Element;
|
|
@@ -109,6 +110,14 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
109
110
|
mediaManagerComponent?: React_3.ComponentType<{
|
|
110
111
|
onSelect: (url: string) => void;
|
|
111
112
|
}>;
|
|
113
|
+
/**
|
|
114
|
+
* Add blocks dialog components
|
|
115
|
+
*/
|
|
116
|
+
addBlocksDialogTabs?: {
|
|
117
|
+
key: string;
|
|
118
|
+
tab: ReactComponentType;
|
|
119
|
+
tabContent: ReactComponentType;
|
|
120
|
+
}[];
|
|
112
121
|
/**
|
|
113
122
|
* HTML direction.
|
|
114
123
|
*/
|
|
@@ -278,8 +287,9 @@ declare type CopyFn = (text: string) => Promise<boolean>;
|
|
|
278
287
|
|
|
279
288
|
export declare function DarkModeSwitcher(): JSX_2.Element;
|
|
280
289
|
|
|
281
|
-
export declare const DefaultChaiBlocks: ({ parentId, gridCols }: {
|
|
290
|
+
export declare const DefaultChaiBlocks: ({ parentId, position, gridCols, }: {
|
|
282
291
|
parentId?: string;
|
|
292
|
+
position?: number;
|
|
283
293
|
gridCols?: string;
|
|
284
294
|
}) => JSX_2.Element;
|
|
285
295
|
|
|
@@ -315,8 +325,9 @@ declare type HSLColor = string;
|
|
|
315
325
|
|
|
316
326
|
export { i18n }
|
|
317
327
|
|
|
318
|
-
export declare const ImportHTML: ({ parentId }: {
|
|
328
|
+
export declare const ImportHTML: ({ parentId, position }: {
|
|
319
329
|
parentId?: string;
|
|
330
|
+
position?: number;
|
|
320
331
|
}) => JSX_2.Element;
|
|
321
332
|
|
|
322
333
|
declare type LayoutVariant = "SINGLE_SIDE_PANEL" | "DUAL_SIDE_PANEL" | "DUAL_SIDE_PANEL_ADVANCED";
|
|
@@ -362,8 +373,9 @@ declare type TStyleBlock = {
|
|
|
362
373
|
prop: string;
|
|
363
374
|
};
|
|
364
375
|
|
|
365
|
-
export declare const UILibraries: ({ parentId }: {
|
|
376
|
+
export declare const UILibraries: ({ parentId, position }: {
|
|
366
377
|
parentId?: string;
|
|
378
|
+
position?: number;
|
|
367
379
|
}) => JSX_2.Element;
|
|
368
380
|
|
|
369
381
|
declare interface UILibrary {
|