@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/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 as JSX_2 } from 'react/jsx-runtime';
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: () => JSX_2.Element;
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
- }) => JSX_2.Element;
25
+ }) => JSX.Element;
25
26
 
26
- export declare const AISetContext: () => JSX_2.Element;
27
+ export declare const AISetContext: () => JSX.Element;
27
28
 
28
29
  export declare const AIUserPrompt: ({ blockId }: {
29
30
  blockId: string | undefined;
30
- }) => JSX_2.Element;
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<() => JSX_2.Element>;
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(): JSX_2.Element;
47
+ export declare function BlockPropsEditor(): JSX.Element;
47
48
 
48
- export declare function BlockStyleEditor(): JSX_2.Element;
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(): JSX_2.Element;
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
- }) => JSX_2.Element;
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
- }) => JSX_2.Element;
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: () => JSX_2.Element;
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: () => JSX_2.Element;
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
- }) => JSX_2.Element;
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: () => JSX_2.Element;
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: () => any;
607
+ export declare const useWrapperBlock: () => ChaiBlock_2;
607
608
 
608
609
  declare type VariableKey = string;
609
610