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