@fraczled/sdk 1.0.3 → 1.0.5
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 +58 -0
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +122 -117
- package/dist/{index-B7nKcvyh.js → index-CEY4Vg36.js} +7841 -7775
- package/dist/{index.es-DWObXjGN.js → index.es-BHRAhVWf.js} +1 -1
- package/index.d.ts +17 -0
- package/package.json +1 -1
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
|
+
"version": "1.0.5",
|
|
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",
|