@fraczled/sdk 1.29.0 → 1.30.1
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 +3 -1
- package/dist/fraczled-sdk.es.js +1 -1
- package/dist/fraczled-sdk.umd.js +221 -221
- package/dist/{index-CKZGj1xb.js → index-CXZBVuuc.js} +9818 -9660
- package/dist/{index.es-DtkeWqk-.js → index.es-pJvmGaCj.js} +1 -1
- package/index.d.ts +15 -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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraczled/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.1",
|
|
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",
|