@fraczled/sdk 1.30.12 → 1.30.14

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 CHANGED
@@ -247,6 +247,33 @@ createFraczledEditor({
247
247
 
248
248
  Note: `ui.topbarMode = "custom"` is gated by the `topbarActions` plan feature.
249
249
 
250
+ ### Customize export menu (SDK only)
251
+
252
+ You can customize the export button label/icon and override or hide dropdown items while keeping the native UI.
253
+
254
+ ```tsx
255
+ import { createFraczledEditor } from "@fraczled/sdk";
256
+ import { Download, FileText } from "lucide-react";
257
+
258
+ createFraczledEditor({
259
+ apiKey: "YOUR_LICENSE_KEY",
260
+ projectId: "YOUR_PROJECT_ID",
261
+ container: document.getElementById("editor"),
262
+ ui: {
263
+ exportMenu: {
264
+ buttonLabel: "Download",
265
+ buttonIcon: Download,
266
+ items: [
267
+ { id: "web", label: "Quick PNG", description: "Optimized for web" },
268
+ { id: "print_pdf", label: "PDF (Press Ready)", icon: FileText },
269
+ { id: "print_png", hidden: true },
270
+ { id: "json", label: "Save Project File" }
271
+ ]
272
+ }
273
+ }
274
+ });
275
+ ```
276
+
250
277
  ### Custom new design modal (SDK only)
251
278
 
252
279
  You can replace the Create New Design modal with your own UI:
@@ -347,6 +374,7 @@ Built-in panel IDs you can hide:
347
374
  - `ToolType.DRAW`
348
375
  - `ToolType.TEXT`
349
376
  - `ToolType.IMAGES`
377
+ - `ToolType.ICONS`
350
378
  - `ToolType.BRAND`
351
379
  - `ToolType.UPLOADS`
352
380
  - `ToolType.QR_CODE`
@@ -1,6 +1,6 @@
1
1
  import "react";
2
2
  import "react-dom/client";
3
- import { S as o, b as p, a as c, d } from "./index-DNbhSjEm.js";
3
+ import { S as o, b as p, a as c, d } from "./index-D1XP3N62.js";
4
4
  export {
5
5
  o as Store,
6
6
  p as createFraczledEditor,