@chaibuilder/sdk 2.1.7 → 2.1.9

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
@@ -394,9 +394,7 @@ export declare const PERMISSIONS: {
394
394
  CREATE_LIBRARY_BLOCK: string;
395
395
  CREATE_LIBRARY_GROUP: string;
396
396
  EDIT_LIBRARY_BLOCK: string;
397
- EDIT_LIBRARY_GROUP: string;
398
397
  DELETE_LIBRARY_BLOCK: string;
399
- DELETE_LIBRARY_GROUP: string;
400
398
  };
401
399
 
402
400
  declare type ReactComponentType = default_2.ComponentType<any>;
@@ -533,7 +531,7 @@ export declare const useLibraryBlocks: (library?: Partial<ChaiUILibrary> & {
533
531
  }) => {
534
532
  data: any;
535
533
  isLoading: boolean;
536
- resetLibrary: () => void;
534
+ resetLibrary: (libraryId: string) => void;
537
535
  };
538
536
 
539
537
  export declare const useMediaManagerComponent: () => ComponentType<MediaManagerProps>;
@@ -605,6 +603,12 @@ export declare const useSelectedBlocksDisplayChild: () => {
605
603
 
606
604
  export declare const useSelectedBreakpoints: () => [string[], Function];
607
605
 
606
+ /**
607
+ * Hook to get and set the selected UI library
608
+ * @returns {[string, (library: string) => void]} A tuple containing the selected library ID and a function to set the selected library
609
+ */
610
+ export declare const useSelectedLibrary: () => [string, (args_0: string | RESET | ((prev: string) => string | RESET)) => void];
611
+
608
612
  /**
609
613
  * @group Hooks
610
614
  * @returns {TStyleBlock[]} selected styling blocks