@fraczled/sdk 1.0.3 → 1.0.4

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-B7nKcvyh.js";
1
+ import { c as Da, _ as Va, g as il } from "./index-D13RaDcT.js";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // @fraczled/sdk Type Declarations
2
+ import type * as React from 'react';
2
3
 
3
4
  export type Unit = 'px' | 'in' | 'mm' | 'pt';
4
5
 
@@ -305,6 +306,7 @@ export interface EditorConfig {
305
306
  };
306
307
  services?: SDKServicesConfig;
307
308
  assets?: SDKAssetsConfig;
309
+ customPanels?: CustomSidebarPanel[];
308
310
  }
309
311
 
310
312
  export interface EmbedConfig extends EditorConfig {
@@ -312,6 +314,21 @@ export interface EmbedConfig extends EditorConfig {
312
314
  className?: string;
313
315
  }
314
316
 
317
+ export interface CustomPanelContext {
318
+ store: Store;
319
+ state: DesignState;
320
+ closePanel: () => void;
321
+ setActivePanel: (panelId: string | null) => void;
322
+ }
323
+
324
+ export interface CustomSidebarPanel {
325
+ id: string;
326
+ label: string;
327
+ icon?: React.ComponentType<{ size?: number; className?: string }>;
328
+ feature?: string;
329
+ render: (context: CustomPanelContext) => React.ReactNode;
330
+ }
331
+
315
332
  export type EventType = 'change' | 'save' | 'select' | 'export';
316
333
 
317
334
  export interface Store {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraczled/sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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",