@fraczled/sdk 1.30.2 → 1.30.3

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.
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-H9Vygg46.js";
1
+ import { c as Da, _ as Va, g as il } from "./index-B5pLe-q9.js";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/index.d.ts CHANGED
@@ -475,6 +475,20 @@ export interface CustomTemplatesConfig {
475
475
  fetchTemplates?: () => Promise<DesignTemplate[]>;
476
476
  hideDefaultTemplates?: boolean;
477
477
  categories?: TemplateCategory[];
478
+ saveAction?: TemplateSaveAction;
479
+ }
480
+
481
+ export interface TemplateActionContext {
482
+ store: Store;
483
+ getState: () => DesignState;
484
+ openSaveModal: () => void;
485
+ }
486
+
487
+ export interface TemplateSaveAction {
488
+ label?: string;
489
+ icon?: React.ComponentType<{ size?: number }>;
490
+ onClick?: (context: TemplateActionContext) => void;
491
+ render?: (context: TemplateActionContext) => React.ReactNode;
478
492
  }
479
493
 
480
494
  export interface ExportCaptureOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraczled/sdk",
3
- "version": "1.30.2",
3
+ "version": "1.30.3",
4
4
  "description": "Fraczled Design Studio SDK - Embed a powerful design editor in your application",
5
5
  "scripts": {
6
6
  "build": "vite build --config ../vite.sdk.config.ts && vite build --config ../vite.sdk.umd.config.ts",