@chaibuilder/sdk 2.1.4 → 2.1.6

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
@@ -411,6 +411,8 @@ export declare const registerChaiAddBlockTab: (id: string, tab: Omit<AddBlockTab
411
411
 
412
412
  export declare const registerChaiMediaManager: (component: React.ComponentType<MediaManagerProps>) => void;
413
413
 
414
+ export declare const registerChaiSaveToLibrary: (component: ComponentType<SaveToLibraryProps>) => void;
415
+
414
416
  export declare const registerChaiSidebarPanel: (panelId: string, panelOptions: Omit<ChaiSidebarPanel, "id">) => void;
415
417
 
416
418
  export declare const registerChaiTopBar: (component: React.ComponentType) => void;
@@ -421,6 +423,12 @@ declare type SavePageData = {
421
423
  theme?: ChaiBuilderThemeValues;
422
424
  };
423
425
 
426
+ declare type SaveToLibraryProps = {
427
+ blockId: string;
428
+ blocks?: ChaiBlock[];
429
+ close: () => void;
430
+ };
431
+
424
432
  declare interface ThemeConfigProps {
425
433
  className?: string;
426
434
  }