@chaibuilder/sdk 2.0.0-beta.51 → 2.0.0-beta.54
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-CzoZfMYd.cjs +1 -0
- package/dist/CodeEditor-DvFaAnJ4.js +67 -0
- package/dist/{Topbar-CEyGOl06.js → Topbar-XpkgGUK2.js} +2 -2
- package/dist/{Topbar-pFV2NO8v.cjs → Topbar-Zby0BmoN.cjs} +1 -1
- package/dist/{context-menu-FCyNTUkl.js → context-menu-BsI3Hqio.js} +1 -1
- package/dist/{context-menu-C_ITMOD1.cjs → context-menu-dsqhw1Ub.cjs} +1 -1
- package/dist/core.cjs +246 -5
- package/dist/core.d.ts +17 -16
- package/dist/core.js +28274 -3445
- package/dist/jsx-runtime-DGh1k5sI.cjs +31 -0
- package/dist/jsx-runtime-Dx-03ztt.js +445 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +2 -2
- package/dist/render.js +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +14 -14
- package/dist/ui.js +3 -3
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +727 -721
- package/package.json +8 -9
- package/dist/CodeEditor-CARM2Bvq.js +0 -77
- package/dist/CodeEditor-DFSAQLjb.cjs +0 -1
- package/dist/jsx-runtime-Drh4NO5G.js +0 -633
- package/dist/jsx-runtime-qcKc-DpB.cjs +0 -30
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ChaiBlock as ChaiBlock_2 } from '@chaibuilder/runtime';
|
|
1
2
|
import { ClassValue } from 'clsx';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
3
4
|
import { default as i18n } from 'i18next';
|
|
4
|
-
import { JSX
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
6
|
import * as React_2 from 'react';
|
|
6
7
|
import { ReactNode } from 'react';
|
|
7
8
|
import { registerChaiBlock } from '@chaibuilder/runtime';
|
|
@@ -14,20 +15,20 @@ declare type AddBlocks = {
|
|
|
14
15
|
addPredefinedBlock: any;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
export declare const AddBlocksDialog: () =>
|
|
18
|
+
export declare const AddBlocksDialog: () => JSX.Element;
|
|
18
19
|
|
|
19
20
|
export declare const AddBlocksPanel: ({ className, showHeading, parentId, position, }: {
|
|
20
21
|
parentId?: string;
|
|
21
22
|
showHeading?: boolean;
|
|
22
23
|
className?: string;
|
|
23
24
|
position?: number;
|
|
24
|
-
}) =>
|
|
25
|
+
}) => JSX.Element;
|
|
25
26
|
|
|
26
|
-
export declare const AISetContext: () =>
|
|
27
|
+
export declare const AISetContext: () => JSX.Element;
|
|
27
28
|
|
|
28
29
|
export declare const AIUserPrompt: ({ blockId }: {
|
|
29
30
|
blockId: string | undefined;
|
|
30
|
-
}) =>
|
|
31
|
+
}) => JSX.Element;
|
|
31
32
|
|
|
32
33
|
declare type AskAiResponse = {
|
|
33
34
|
blocks?: Array<{
|
|
@@ -37,15 +38,15 @@ declare type AskAiResponse = {
|
|
|
37
38
|
error?: any;
|
|
38
39
|
};
|
|
39
40
|
|
|
40
|
-
export declare const BlockAttributesEditor: React_2.MemoExoticComponent<() =>
|
|
41
|
+
export declare const BlockAttributesEditor: React_2.MemoExoticComponent<() => JSX.Element>;
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* @returns Block Setting
|
|
45
46
|
*/
|
|
46
|
-
export declare function BlockPropsEditor():
|
|
47
|
+
export declare function BlockPropsEditor(): JSX.Element;
|
|
47
48
|
|
|
48
|
-
export declare function BlockStyleEditor():
|
|
49
|
+
export declare function BlockStyleEditor(): JSX.Element;
|
|
49
50
|
|
|
50
51
|
declare type BorderRadiusValue = false | string;
|
|
51
52
|
|
|
@@ -284,13 +285,13 @@ declare type CopiedValue = string | null;
|
|
|
284
285
|
|
|
285
286
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
286
287
|
|
|
287
|
-
export declare function DarkModeSwitcher():
|
|
288
|
+
export declare function DarkModeSwitcher(): JSX.Element;
|
|
288
289
|
|
|
289
290
|
export declare const DefaultChaiBlocks: ({ parentId, position, gridCols, }: {
|
|
290
291
|
parentId?: string;
|
|
291
292
|
position?: number;
|
|
292
293
|
gridCols?: string;
|
|
293
|
-
}) =>
|
|
294
|
+
}) => JSX.Element;
|
|
294
295
|
|
|
295
296
|
declare type ExcludedBuilderProps = "blocks" | "subPages" | "brandingOptions" | "dataProviders";
|
|
296
297
|
|
|
@@ -327,13 +328,13 @@ export { i18n }
|
|
|
327
328
|
export declare const ImportHTML: ({ parentId, position }: {
|
|
328
329
|
parentId?: string;
|
|
329
330
|
position?: number;
|
|
330
|
-
}) =>
|
|
331
|
+
}) => JSX.Element;
|
|
331
332
|
|
|
332
333
|
declare type LayoutVariant = "SINGLE_SIDE_PANEL" | "DUAL_SIDE_PANEL" | "DUAL_SIDE_PANEL_ADVANCED";
|
|
333
334
|
|
|
334
335
|
export declare const mergeClasses: (...inputs: ClassValue[]) => string;
|
|
335
336
|
|
|
336
|
-
export declare const Outline: () =>
|
|
337
|
+
export declare const Outline: () => JSX.Element;
|
|
337
338
|
|
|
338
339
|
declare type OutlineMenuItem = {
|
|
339
340
|
item: default_2.ComponentType<{
|
|
@@ -367,7 +368,7 @@ declare type SavePageData = {
|
|
|
367
368
|
theme?: Record<string, any>;
|
|
368
369
|
};
|
|
369
370
|
|
|
370
|
-
export declare const ScreenSizes: () =>
|
|
371
|
+
export declare const ScreenSizes: () => JSX.Element;
|
|
371
372
|
|
|
372
373
|
declare interface ThemeConfigProps {
|
|
373
374
|
className?: string;
|
|
@@ -386,7 +387,7 @@ declare type TStyleBlock = {
|
|
|
386
387
|
export declare const UILibraries: ({ parentId, position }: {
|
|
387
388
|
parentId?: string;
|
|
388
389
|
position?: number;
|
|
389
|
-
}) =>
|
|
390
|
+
}) => JSX.Element;
|
|
390
391
|
|
|
391
392
|
declare interface UILibrary {
|
|
392
393
|
uuid: string;
|
|
@@ -407,7 +408,7 @@ declare type UiLibraryBlock = {
|
|
|
407
408
|
description?: string;
|
|
408
409
|
};
|
|
409
410
|
|
|
410
|
-
export declare const UndoRedo: () =>
|
|
411
|
+
export declare const UndoRedo: () => JSX.Element;
|
|
411
412
|
|
|
412
413
|
export declare const useAddBlock: () => AddBlocks;
|
|
413
414
|
|
|
@@ -603,7 +604,7 @@ export declare const useUpdateBlocksProps: () => (blockIds: Array<string>, props
|
|
|
603
604
|
|
|
604
605
|
export declare const useUpdateBlocksPropsRealtime: () => (blockIds: Array<string>, props: Record<string, any>) => void;
|
|
605
606
|
|
|
606
|
-
export declare const useWrapperBlock: () =>
|
|
607
|
+
export declare const useWrapperBlock: () => ChaiBlock_2;
|
|
607
608
|
|
|
608
609
|
declare type VariableKey = string;
|
|
609
610
|
|