@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.
- package/README.md +20 -0
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +208 -208
- package/dist/{index-H9Vygg46.js → index-B5pLe-q9.js} +8250 -8234
- package/dist/{index.es-BdnEhQbO.js → index.es-DVW0Ygin.js} +1 -1
- package/index.d.ts +14 -0
- package/package.json +1 -1
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.
|
|
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",
|