@fraczled/sdk 1.30.3 → 1.30.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.
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-B5pLe-q9.js";
1
+ import { c as Da, _ as Va, g as il } from "./index-BMcZvArF.js";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/index.d.ts CHANGED
@@ -326,6 +326,45 @@ export interface EditorUiConfig {
326
326
  hideDefaultPanels?: boolean;
327
327
  hiddenPanels?: PanelId[];
328
328
  topbarMode?: 'default' | 'custom';
329
+ newDesignModal?: NewDesignModalConfig;
330
+ }
331
+
332
+ export interface TemplateSizePreset {
333
+ id?: string;
334
+ name: string;
335
+ width: number;
336
+ height: number;
337
+ unit: Unit;
338
+ dpi?: number;
339
+ bleed?: number;
340
+ safeArea?: number;
341
+ icon?: React.ReactNode;
342
+ }
343
+
344
+ export interface NewDesignModalContext {
345
+ store: Store;
346
+ getState: () => DesignState;
347
+ onClose: () => void;
348
+ onSkipFuture: () => void;
349
+ applyTemplate: (template: DesignTemplate, options?: { transparentBackground?: boolean; skipFuture?: boolean }) => void;
350
+ applySizePreset: (preset: TemplateSizePreset, options?: { transparentBackground?: boolean; skipFuture?: boolean }) => void;
351
+ createCustom: (options: {
352
+ width: number;
353
+ height: number;
354
+ unit: Unit;
355
+ dpi?: number;
356
+ bleed?: number;
357
+ safeArea?: number;
358
+ transparentBackground?: boolean;
359
+ }) => void;
360
+ }
361
+
362
+ export interface NewDesignModalConfig {
363
+ render?: (context: NewDesignModalContext) => React.ReactNode;
364
+ sizePresets?: {
365
+ social?: TemplateSizePreset[];
366
+ print?: TemplateSizePreset[];
367
+ };
329
368
  }
330
369
 
331
370
  export type TemplateCategory = 'social-media' | 'business' | 'marketing' | 'personal' | (string & {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraczled/sdk",
3
- "version": "1.30.3",
3
+ "version": "1.30.6",
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",