@chaibuilder/sdk 2.1.0 → 2.1.2
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.cjs +4 -4
- package/dist/core.d.ts +11 -5
- package/dist/core.js +291 -290
- package/package.json +3 -3
package/dist/core.d.ts
CHANGED
|
@@ -285,14 +285,18 @@ export declare const ChaiScreenSizes: ({ openDelay, canvas, tooltip, }: {
|
|
|
285
285
|
tooltip?: boolean;
|
|
286
286
|
}) => JSX_2.Element;
|
|
287
287
|
|
|
288
|
-
declare interface ChaiSidebarPanel
|
|
288
|
+
export declare interface ChaiSidebarPanel {
|
|
289
289
|
id: string;
|
|
290
290
|
position: "top" | "bottom";
|
|
291
291
|
view?: "standard" | "modal" | "overlay" | "drawer";
|
|
292
|
-
|
|
292
|
+
button: React.ComponentType<{
|
|
293
|
+
isActive: boolean;
|
|
294
|
+
show: () => void;
|
|
295
|
+
panelId: string;
|
|
296
|
+
position: "top" | "bottom";
|
|
297
|
+
}>;
|
|
293
298
|
label: string;
|
|
294
|
-
|
|
295
|
-
showIf?: (params: T) => boolean;
|
|
299
|
+
panel?: ComponentType;
|
|
296
300
|
width?: number;
|
|
297
301
|
isInternal?: boolean;
|
|
298
302
|
}
|
|
@@ -416,7 +420,7 @@ export declare const registerChaiAddBlockTab: (id: string, tab: Omit<AddBlockTab
|
|
|
416
420
|
|
|
417
421
|
export declare const registerChaiMediaManager: (component: React.ComponentType<MediaManagerProps>) => void;
|
|
418
422
|
|
|
419
|
-
export declare const registerChaiSidebarPanel:
|
|
423
|
+
export declare const registerChaiSidebarPanel: (panelId: string, panelOptions: Omit<ChaiSidebarPanel, "id">) => void;
|
|
420
424
|
|
|
421
425
|
export declare const registerChaiTopBar: (component: React.ComponentType) => void;
|
|
422
426
|
|
|
@@ -533,6 +537,8 @@ export declare const useLibraryBlocks: (library?: Partial<ChaiUILibrary> & {
|
|
|
533
537
|
resetLibrary: () => void;
|
|
534
538
|
};
|
|
535
539
|
|
|
540
|
+
export declare const useMediaManagerComponent: () => ComponentType<MediaManagerProps>;
|
|
541
|
+
|
|
536
542
|
export declare const usePartailBlocksStore: () => {
|
|
537
543
|
getPartailBlocks: (partailBlock: string) => any;
|
|
538
544
|
reset: () => void;
|