@chaibuilder/sdk 2.0.0-beta.10 → 2.0.0-beta.12

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
@@ -62,13 +62,13 @@ export declare const CHAI_BUILDER_EVENTS: {
62
62
  SHOW_BLOCK_SETTINGS: string;
63
63
  };
64
64
 
65
- export declare type ChaiBlock = {
65
+ export declare type ChaiBlock<T = Record<string, any>> = {
66
66
  _id: string;
67
- _type: string;
68
67
  _name?: string;
69
68
  _parent?: string | null | undefined;
70
69
  _bindings?: Record<string, string>;
71
- } & Record<string, any>;
70
+ _type: string;
71
+ } & T;
72
72
 
73
73
  export declare const ChaiBuilderCanvas: React_3.FC;
74
74
 
@@ -524,7 +524,7 @@ export declare const useSelectedBlockCurrentClasses: () => Array<ClassDerivedObj
524
524
  /**
525
525
  *
526
526
  */
527
- export declare const useSelectedBlockIds: () => [Array<string>, Function, Function];
527
+ export declare const useSelectedBlockIds: () => readonly [string[], (args_0: string[] | ((prev: string[]) => string[])) => void, (blockId: string) => void];
528
528
 
529
529
  /**
530
530
  * Hook to get selected block ids