@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/{chai-theme-helpers-GQ1UI3nD.cjs → chai-theme-helpers-BjWE6otR.cjs} +6 -6
- package/dist/{chai-theme-helpers-CVkLfKt7.js → chai-theme-helpers-FO9vdd-R.js} +5 -4
- package/dist/core.cjs +12 -4
- package/dist/core.d.ts +7 -3
- package/dist/core.js +961 -877
- package/dist/{plugin-DRtv2KR5.js → plugin-B09c0d5S.js} +1 -1
- package/dist/{plugin-uUPBh-_c.cjs → plugin-BiiuylVf.cjs} +1 -1
- package/dist/render.cjs +2 -2
- package/dist/render.js +16 -16
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +5 -5
- package/package.json +3 -3
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
|