@flexbe/sdk 0.2.46 → 0.2.47
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.
|
@@ -311,11 +311,11 @@ export type PageEntityEvent = {
|
|
|
311
311
|
state: 'all' | 'in' | 'out';
|
|
312
312
|
[key: string]: any;
|
|
313
313
|
};
|
|
314
|
-
export type PageEntityData<T = Record<string,
|
|
314
|
+
export type PageEntityData<T = Record<string, any>> = T;
|
|
315
315
|
export type PageEntityMultiVars<T> = Record<string, {
|
|
316
316
|
data: PageEntityData<T>;
|
|
317
317
|
}>;
|
|
318
|
-
export interface PageEntity<T = Record<string,
|
|
318
|
+
export interface PageEntity<T = Record<string, any>> {
|
|
319
319
|
id: string;
|
|
320
320
|
is: PageEntityType;
|
|
321
321
|
template_id: string;
|
|
@@ -335,7 +335,7 @@ export interface PageEntity<T = Record<string, unknown>> {
|
|
|
335
335
|
vars: PageEntityMultiVars<T>;
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
export interface PageBlock<T = Record<string,
|
|
338
|
+
export interface PageBlock<T = Record<string, any>> extends PageEntity<T> {
|
|
339
339
|
is: PageEntityType.Block;
|
|
340
340
|
refPageId?: number;
|
|
341
341
|
aboveTheFold?: boolean;
|
|
@@ -353,16 +353,16 @@ export interface PageBlock<T = Record<string, unknown>> extends PageEntity<T> {
|
|
|
353
353
|
}>;
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
export interface PageWidget<T = Record<string,
|
|
356
|
+
export interface PageWidget<T = Record<string, any>> extends PageEntity<T> {
|
|
357
357
|
is: PageEntityType.Widget;
|
|
358
358
|
children?: PageElement[];
|
|
359
359
|
}
|
|
360
|
-
export interface PageModal<T = Record<string,
|
|
360
|
+
export interface PageModal<T = Record<string, any>> extends PageEntity<T> {
|
|
361
361
|
is: PageEntityType.Modal;
|
|
362
362
|
screenshot: ImageObj | null;
|
|
363
363
|
children?: PageElement[];
|
|
364
364
|
}
|
|
365
|
-
export interface PageElement<T = Record<string,
|
|
365
|
+
export interface PageElement<T = Record<string, any>> extends PageEntity<T> {
|
|
366
366
|
is: PageEntityType.Element;
|
|
367
367
|
aboveTheFold?: boolean;
|
|
368
368
|
children?: PageElement[];
|
|
@@ -399,7 +399,7 @@ export type PageLayoutData = {
|
|
|
399
399
|
background?: PageBackground;
|
|
400
400
|
responsive?: 'auto' | false;
|
|
401
401
|
container?: PageContainerSettings;
|
|
402
|
-
} & Record<string,
|
|
402
|
+
} & Record<string, any>;
|
|
403
403
|
/**
|
|
404
404
|
* Page version JSON (`d_pages_versions.data`).
|
|
405
405
|
*/
|