@fraczled/sdk 1.30.2 → 1.30.3
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 +20 -0
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +208 -208
- package/dist/{index-H9Vygg46.js → index-B5pLe-q9.js} +8250 -8234
- package/dist/{index.es-BdnEhQbO.js → index.es-DVW0Ygin.js} +1 -1
- package/index.d.ts +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -201,6 +201,26 @@ Notes:
|
|
|
201
201
|
- `feature` maps to `entitlements.features[feature]` and controls visibility/access based on licensing.
|
|
202
202
|
- `render` is called when the panel is active, so you can wire buttons directly to `store` methods or read from `state`.
|
|
203
203
|
|
|
204
|
+
### Template save action (SDK only)
|
|
205
|
+
|
|
206
|
+
You can customize the "Save Current Design as Template" button in the Templates → Designs panel:
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
createFraczledEditor({
|
|
210
|
+
apiKey: "YOUR_LICENSE_KEY",
|
|
211
|
+
projectId: "YOUR_PROJECT_ID",
|
|
212
|
+
container: document.getElementById("editor"),
|
|
213
|
+
customTemplates: {
|
|
214
|
+
saveAction: {
|
|
215
|
+
label: "Save as Brand Template",
|
|
216
|
+
onClick: ({ openSaveModal }) => openSaveModal()
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Note: This action is gated by the `templateSave` plan feature.
|
|
223
|
+
|
|
204
224
|
### Custom topbar actions (SDK only)
|
|
205
225
|
|
|
206
226
|
You can replace the default topbar actions (save/new/export/undo/redo/zoom) with your own UI:
|
package/dist/fraczled-sdk.es.js
CHANGED