@chaibuilder/sdk 2.0.0-beta.39 → 2.0.0-beta.40
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/ChaiThemeFn-Ba9O-eBT.js +201 -0
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
- package/dist/{CodeEditor-DCZWTNZX.cjs → CodeEditor-C5hkhszC.cjs} +1 -1
- package/dist/{CodeEditor-iLT-zqjH.js → CodeEditor-DmPiW1eD.js} +2 -2
- package/dist/{Topbar-DMCtQiUj.js → Topbar-CTL7UXRB.js} +2 -2
- package/dist/{Topbar-Bk4vqKpP.cjs → Topbar-CiOsi4Ut.cjs} +1 -1
- package/dist/{context-menu-CxioWiWD.js → context-menu-BsI3Hqio.js} +1 -1
- package/dist/{context-menu-t34dYg4a.cjs → context-menu-dsqhw1Ub.cjs} +1 -1
- package/dist/core.cjs +246 -5
- package/dist/core.d.ts +15 -15
- package/dist/core.js +28438 -3616
- package/dist/jsx-runtime-DGh1k5sI.cjs +31 -0
- package/dist/jsx-runtime-Dx-03ztt.js +445 -0
- package/dist/{plugin-fWX0IMr4.cjs → plugin-2xcljWGM.cjs} +1 -1
- package/dist/{plugin-OOaLfdkf.js → plugin-Bvqh40K5.js} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +2 -2
- package/dist/render.js +4 -4
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +5 -1
- package/dist/tailwind.js +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +58 -22
- package/dist/ui.js +3 -3
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +3 -3
- package/package.json +96 -110
- package/dist/ChaiThemeFn-BUgkaTMi.js +0 -190
- package/dist/ChaiThemeFn-B_ATMTMa.cjs +0 -13
- package/dist/jsx-runtime-BYECrxsp.cjs +0 -30
- package/dist/jsx-runtime-DGlMoOmv.js +0 -630
- /package/dist/{style.css → sdk.css} +0 -0
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { default as i18n } from 'i18next';
|
|
4
|
-
import { JSX
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
5
|
import * as React_2 from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { registerChaiBlock } from '@chaibuilder/runtime';
|
|
@@ -14,20 +14,20 @@ declare type AddBlocks = {
|
|
|
14
14
|
addPredefinedBlock: any;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export declare const AddBlocksDialog: () =>
|
|
17
|
+
export declare const AddBlocksDialog: () => JSX.Element;
|
|
18
18
|
|
|
19
19
|
export declare const AddBlocksPanel: ({ className, showHeading, parentId, position, }: {
|
|
20
20
|
parentId?: string;
|
|
21
21
|
showHeading?: boolean;
|
|
22
22
|
className?: string;
|
|
23
23
|
position?: number;
|
|
24
|
-
}) =>
|
|
24
|
+
}) => JSX.Element;
|
|
25
25
|
|
|
26
|
-
export declare const AISetContext: () =>
|
|
26
|
+
export declare const AISetContext: () => JSX.Element;
|
|
27
27
|
|
|
28
28
|
export declare const AIUserPrompt: ({ blockId }: {
|
|
29
29
|
blockId: string | undefined;
|
|
30
|
-
}) =>
|
|
30
|
+
}) => JSX.Element;
|
|
31
31
|
|
|
32
32
|
declare type AskAiResponse = {
|
|
33
33
|
blocks?: Array<{
|
|
@@ -37,15 +37,15 @@ declare type AskAiResponse = {
|
|
|
37
37
|
error?: any;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export declare const BlockAttributesEditor: React_2.MemoExoticComponent<() =>
|
|
40
|
+
export declare const BlockAttributesEditor: React_2.MemoExoticComponent<() => JSX.Element>;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @returns Block Setting
|
|
45
45
|
*/
|
|
46
|
-
export declare function BlockPropsEditor():
|
|
46
|
+
export declare function BlockPropsEditor(): JSX.Element;
|
|
47
47
|
|
|
48
|
-
export declare function BlockStyleEditor():
|
|
48
|
+
export declare function BlockStyleEditor(): JSX.Element;
|
|
49
49
|
|
|
50
50
|
declare type BorderRadiusValue = false | string;
|
|
51
51
|
|
|
@@ -278,13 +278,13 @@ declare type CopiedValue = string | null;
|
|
|
278
278
|
|
|
279
279
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
280
280
|
|
|
281
|
-
export declare function DarkModeSwitcher():
|
|
281
|
+
export declare function DarkModeSwitcher(): JSX.Element;
|
|
282
282
|
|
|
283
283
|
export declare const DefaultChaiBlocks: ({ parentId, position, gridCols, }: {
|
|
284
284
|
parentId?: string;
|
|
285
285
|
position?: number;
|
|
286
286
|
gridCols?: string;
|
|
287
|
-
}) =>
|
|
287
|
+
}) => JSX.Element;
|
|
288
288
|
|
|
289
289
|
declare type ExcludedBuilderProps = "blocks" | "subPages" | "brandingOptions" | "dataProviders";
|
|
290
290
|
|
|
@@ -321,13 +321,13 @@ export { i18n }
|
|
|
321
321
|
export declare const ImportHTML: ({ parentId, position }: {
|
|
322
322
|
parentId?: string;
|
|
323
323
|
position?: number;
|
|
324
|
-
}) =>
|
|
324
|
+
}) => JSX.Element;
|
|
325
325
|
|
|
326
326
|
declare type LayoutVariant = "SINGLE_SIDE_PANEL" | "DUAL_SIDE_PANEL" | "DUAL_SIDE_PANEL_ADVANCED";
|
|
327
327
|
|
|
328
328
|
export declare const mergeClasses: (...inputs: ClassValue[]) => string;
|
|
329
329
|
|
|
330
|
-
export declare const Outline: () =>
|
|
330
|
+
export declare const Outline: () => JSX.Element;
|
|
331
331
|
|
|
332
332
|
declare type OutlineMenuItem = {
|
|
333
333
|
item: default_2.ComponentType<{
|
|
@@ -361,7 +361,7 @@ declare type SavePageData = {
|
|
|
361
361
|
theme?: Record<string, any>;
|
|
362
362
|
};
|
|
363
363
|
|
|
364
|
-
export declare const ScreenSizes: () =>
|
|
364
|
+
export declare const ScreenSizes: () => JSX.Element;
|
|
365
365
|
|
|
366
366
|
declare interface ThemeConfigProps {
|
|
367
367
|
className?: string;
|
|
@@ -380,7 +380,7 @@ declare type TStyleBlock = {
|
|
|
380
380
|
export declare const UILibraries: ({ parentId, position }: {
|
|
381
381
|
parentId?: string;
|
|
382
382
|
position?: number;
|
|
383
|
-
}) =>
|
|
383
|
+
}) => JSX.Element;
|
|
384
384
|
|
|
385
385
|
declare interface UILibrary {
|
|
386
386
|
uuid: string;
|
|
@@ -401,7 +401,7 @@ declare type UiLibraryBlock = {
|
|
|
401
401
|
description?: string;
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
export declare const UndoRedo: () =>
|
|
404
|
+
export declare const UndoRedo: () => JSX.Element;
|
|
405
405
|
|
|
406
406
|
export declare const useAddBlock: () => AddBlocks;
|
|
407
407
|
|