@fraczled/sdk 1.30.1 → 1.30.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/README.md +24 -0
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +203 -203
- package/dist/{index-CXZBVuuc.js → index-H9Vygg46.js} +7417 -7388
- package/dist/{index.es-pJvmGaCj.js → index.es-BdnEhQbO.js} +1 -1
- package/index.d.ts +17 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -325,6 +325,7 @@ export interface SDKAssetsConfig {
|
|
|
325
325
|
export interface EditorUiConfig {
|
|
326
326
|
hideDefaultPanels?: boolean;
|
|
327
327
|
hiddenPanels?: PanelId[];
|
|
328
|
+
topbarMode?: 'default' | 'custom';
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
export type TemplateCategory = 'social-media' | 'business' | 'marketing' | 'personal' | (string & {});
|
|
@@ -403,6 +404,22 @@ export interface ToolbarContext {
|
|
|
403
404
|
store: Store;
|
|
404
405
|
selection: string[];
|
|
405
406
|
element?: CanvasElement;
|
|
407
|
+
topbar?: TopbarActionsContext;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface TopbarActionsContext {
|
|
411
|
+
onUndo?: () => void;
|
|
412
|
+
onRedo?: () => void;
|
|
413
|
+
canUndo?: boolean;
|
|
414
|
+
canRedo?: boolean;
|
|
415
|
+
onNewDesign?: () => void;
|
|
416
|
+
onSaveDesign?: () => void;
|
|
417
|
+
onExport?: (type: 'json' | 'web' | 'print_png' | 'print_pdf') => void;
|
|
418
|
+
onCustomExport?: (format: CustomExportFormat) => void;
|
|
419
|
+
exportAccess?: { web?: boolean; print?: boolean };
|
|
420
|
+
canSaveLoadJson?: boolean;
|
|
421
|
+
upgradeUrl?: string;
|
|
422
|
+
isExporting?: boolean;
|
|
406
423
|
}
|
|
407
424
|
|
|
408
425
|
export interface CustomToolbarItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraczled/sdk",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
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",
|