@fraczled/sdk 1.30.0 → 1.30.2
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 +27 -1
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +217 -217
- package/dist/{index-BaSHlmfB.js → index-H9Vygg46.js} +9473 -9354
- package/dist/{index.es-nZ_b4arL.js → index.es-BdnEhQbO.js} +1 -1
- package/index.d.ts +32 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -255,6 +255,7 @@ export interface DesignState {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
export type LicensePlan = 'free' | 'team' | 'business' | 'pro' | 'enterprise';
|
|
258
|
+
export type LicenseState = 'pending' | 'valid' | 'invalid' | 'offline';
|
|
258
259
|
|
|
259
260
|
export interface LicenseEntitlements {
|
|
260
261
|
ai: boolean;
|
|
@@ -277,6 +278,7 @@ export interface LicenseStatus {
|
|
|
277
278
|
expiresAt?: string;
|
|
278
279
|
message?: string;
|
|
279
280
|
upgradeUrl?: string;
|
|
281
|
+
state?: LicenseState;
|
|
280
282
|
}
|
|
281
283
|
|
|
282
284
|
export type DeepPartial<T> = {
|
|
@@ -288,6 +290,19 @@ export interface LicenseValidationRequest {
|
|
|
288
290
|
projectId: string;
|
|
289
291
|
sdkVersion?: string;
|
|
290
292
|
customerId?: string;
|
|
293
|
+
offlineLicense?: OfflineLicenseToken;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface OfflineLicenseToken {
|
|
297
|
+
payload: string;
|
|
298
|
+
signature: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface OfflineLicensePayload {
|
|
302
|
+
status: LicenseStatus;
|
|
303
|
+
projectId?: string;
|
|
304
|
+
issuedAt?: string;
|
|
305
|
+
expiresAt?: string;
|
|
291
306
|
}
|
|
292
307
|
|
|
293
308
|
export interface SDKServicesConfig {
|
|
@@ -310,6 +325,7 @@ export interface SDKAssetsConfig {
|
|
|
310
325
|
export interface EditorUiConfig {
|
|
311
326
|
hideDefaultPanels?: boolean;
|
|
312
327
|
hiddenPanels?: PanelId[];
|
|
328
|
+
topbarMode?: 'default' | 'custom';
|
|
313
329
|
}
|
|
314
330
|
|
|
315
331
|
export type TemplateCategory = 'social-media' | 'business' | 'marketing' | 'personal' | (string & {});
|
|
@@ -388,6 +404,22 @@ export interface ToolbarContext {
|
|
|
388
404
|
store: Store;
|
|
389
405
|
selection: string[];
|
|
390
406
|
element?: CanvasElement;
|
|
407
|
+
topbar?: TopbarActionsContext;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface TopbarActionsContext {
|
|
411
|
+
onUndo?: () => void;
|
|
412
|
+
onRedo?: () => void;
|
|
413
|
+
canUndo?: boolean;
|
|
414
|
+
canRedo?: boolean;
|
|
415
|
+
onNewDesign?: () => void;
|
|
416
|
+
onSaveDesign?: () => void;
|
|
417
|
+
onExport?: (type: 'json' | 'web' | 'print_png' | 'print_pdf') => void;
|
|
418
|
+
onCustomExport?: (format: CustomExportFormat) => void;
|
|
419
|
+
exportAccess?: { web?: boolean; print?: boolean };
|
|
420
|
+
canSaveLoadJson?: boolean;
|
|
421
|
+
upgradeUrl?: string;
|
|
422
|
+
isExporting?: boolean;
|
|
391
423
|
}
|
|
392
424
|
|
|
393
425
|
export interface CustomToolbarItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraczled/sdk",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
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",
|