@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/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 as JSX_2 } from 'react/jsx-runtime';
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: () => JSX_2.Element;
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
- }) => JSX_2.Element;
24
+ }) => JSX.Element;
25
25
 
26
- export declare const AISetContext: () => JSX_2.Element;
26
+ export declare const AISetContext: () => JSX.Element;
27
27
 
28
28
  export declare const AIUserPrompt: ({ blockId }: {
29
29
  blockId: string | undefined;
30
- }) => JSX_2.Element;
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<() => JSX_2.Element>;
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(): JSX_2.Element;
46
+ export declare function BlockPropsEditor(): JSX.Element;
47
47
 
48
- export declare function BlockStyleEditor(): JSX_2.Element;
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(): JSX_2.Element;
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
- }) => JSX_2.Element;
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
- }) => JSX_2.Element;
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: () => JSX_2.Element;
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: () => JSX_2.Element;
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
- }) => JSX_2.Element;
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: () => JSX_2.Element;
404
+ export declare const UndoRedo: () => JSX.Element;
405
405
 
406
406
  export declare const useAddBlock: () => AddBlocks;
407
407