unlayer-types 1.293.0 → 1.294.0
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/embed.d.ts +16 -2
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -1304,6 +1304,10 @@ declare module "state/types/types" {
|
|
1304
1304
|
import { DisplayConditionZodSchema } from "engine/utils/zod/schemas";
|
1305
1305
|
export type DesignMode = 'live' | 'edit';
|
1306
1306
|
export type Device = 'desktop' | 'mobile' | 'tablet';
|
1307
|
+
export type Resolution = {
|
1308
|
+
value: number;
|
1309
|
+
name: string;
|
1310
|
+
};
|
1307
1311
|
export type DisplayMode = 'web' | 'email' | 'popup' | 'document';
|
1308
1312
|
export type Variant = 'amp' | null;
|
1309
1313
|
export type Ui = 'none' | 'visual' | 'classic';
|
@@ -1652,7 +1656,7 @@ declare module "engine/utils/pruneObj" {
|
|
1652
1656
|
}): Partial<T>;
|
1653
1657
|
}
|
1654
1658
|
declare module "engine/config/features" {
|
1655
|
-
import { Language } from "state/types/types";
|
1659
|
+
import { Resolution, Language } from "state/types/types";
|
1656
1660
|
export interface TextEditorCustomButton {
|
1657
1661
|
name: string;
|
1658
1662
|
icon: string;
|
@@ -1686,7 +1690,17 @@ declare module "engine/config/features" {
|
|
1686
1690
|
audit?: boolean;
|
1687
1691
|
blocks?: boolean;
|
1688
1692
|
collaboration?: boolean;
|
1689
|
-
preview?: boolean
|
1693
|
+
preview?: boolean | {
|
1694
|
+
enabled?: boolean;
|
1695
|
+
deviceResolutions?: {
|
1696
|
+
showDefaultResolutions?: boolean;
|
1697
|
+
customResolutions?: {
|
1698
|
+
desktop?: Resolution[];
|
1699
|
+
tablet?: Resolution[];
|
1700
|
+
mobile?: Resolution[];
|
1701
|
+
};
|
1702
|
+
};
|
1703
|
+
};
|
1690
1704
|
imageEditor?: {
|
1691
1705
|
enabled: boolean;
|
1692
1706
|
tools?: {
|
package/package.json
CHANGED