@unlayer/types 1.386.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/dist/containers/body.d.ts +162 -0
- package/dist/containers/column.d.ts +85 -0
- package/dist/containers/content.d.ts +62 -0
- package/dist/containers/footer.d.ts +79 -0
- package/dist/containers/header.d.ts +79 -0
- package/dist/containers/index.d.ts +6 -0
- package/dist/containers/row.d.ts +100 -0
- package/dist/design.d.ts +102 -0
- package/dist/editor/audit.d.ts +31 -0
- package/dist/editor/config.d.ts +41 -0
- package/dist/editor/design.d.ts +16 -0
- package/dist/editor/display-conditions.d.ts +5 -0
- package/dist/editor/editor.d.ts +467 -0
- package/dist/editor/export.d.ts +104 -0
- package/dist/editor/features.d.ts +122 -0
- package/dist/editor/font.d.ts +24 -0
- package/dist/editor/index.d.ts +15 -0
- package/dist/editor/intl.d.ts +16 -0
- package/dist/editor/link-types.d.ts +72 -0
- package/dist/editor/merge-tags.d.ts +28 -0
- package/dist/editor/style-guide.d.ts +20 -0
- package/dist/editor/theme.d.ts +775 -0
- package/dist/editor/types.d.ts +23 -0
- package/dist/editor/utils.d.ts +88 -0
- package/dist/index.d.ts +3 -0
- package/dist/tools/button.d.ts +111 -0
- package/dist/tools/carousel.d.ts +52 -0
- package/dist/tools/divider.d.ts +54 -0
- package/dist/tools/form.d.ts +159 -0
- package/dist/tools/heading.d.ts +79 -0
- package/dist/tools/html.d.ts +48 -0
- package/dist/tools/image.d.ts +75 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/menu.d.ts +91 -0
- package/dist/tools/page-break.d.ts +57 -0
- package/dist/tools/paragraph.d.ts +76 -0
- package/dist/tools/social.d.ts +58 -0
- package/dist/tools/table.d.ts +178 -0
- package/dist/tools/text.d.ts +76 -0
- package/dist/tools/timer.d.ts +87 -0
- package/dist/tools/video.d.ts +72 -0
- package/package.json +44 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { Language } from './intl';
|
|
4
|
+
import type { Resolution } from './types';
|
|
5
|
+
|
|
6
|
+
export interface TextEditorCustomButton {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
text: string;
|
|
10
|
+
onSetup?: () => void;
|
|
11
|
+
onAction: (data: {
|
|
12
|
+
text: string;
|
|
13
|
+
}, callback: (text: string) => void) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type ColorGroup = {} & ({
|
|
17
|
+
id: 'brand_colors' | 'common_colors' | 'recent_colors' | 'template_colors' | (string & {});
|
|
18
|
+
label?: string;
|
|
19
|
+
colors?: string[];
|
|
20
|
+
default?: boolean;
|
|
21
|
+
} | {
|
|
22
|
+
id?: never;
|
|
23
|
+
label: string;
|
|
24
|
+
colors: string[];
|
|
25
|
+
default?: boolean;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export interface ColorPicker {
|
|
29
|
+
/** @deprecated Use colors: string[] or colors: [{ id: "common_colors", label: 'Common Colors', colors: string[] }] instead */
|
|
30
|
+
presets?: string[];
|
|
31
|
+
/** @deprecated Use colors: [{ id: "brand_colors", label: 'Brand Colors', colors: string[] }] instead */
|
|
32
|
+
brandColors?: string[];
|
|
33
|
+
colors?: string[] | ColorGroup[];
|
|
34
|
+
limit?: number;
|
|
35
|
+
recentColors?: boolean | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface Features {
|
|
39
|
+
audit?: boolean;
|
|
40
|
+
beta?: boolean | {
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
feedback?: boolean;
|
|
43
|
+
};
|
|
44
|
+
blocks?: boolean;
|
|
45
|
+
collaboration?: boolean;
|
|
46
|
+
preview?: boolean | {
|
|
47
|
+
enabled?: boolean;
|
|
48
|
+
cleanup?: boolean;
|
|
49
|
+
deviceResolutions?: {
|
|
50
|
+
showDefaultResolutions?: boolean;
|
|
51
|
+
customResolutions?: {
|
|
52
|
+
desktop?: Resolution[];
|
|
53
|
+
tablet?: Resolution[];
|
|
54
|
+
mobile?: Resolution[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
imageEditor?: {
|
|
59
|
+
enabled: boolean;
|
|
60
|
+
tools?: {
|
|
61
|
+
resize?: boolean;
|
|
62
|
+
};
|
|
63
|
+
} | boolean;
|
|
64
|
+
preheaderText?: boolean;
|
|
65
|
+
headersAndFooters?: boolean;
|
|
66
|
+
stockImages?: {
|
|
67
|
+
enabled: true;
|
|
68
|
+
safeSearch: true;
|
|
69
|
+
defaultSearchTerm: string;
|
|
70
|
+
} | boolean;
|
|
71
|
+
userUploads?: boolean | {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
search?: boolean;
|
|
74
|
+
};
|
|
75
|
+
devTab?: boolean;
|
|
76
|
+
undoRedo?: boolean | {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
autoSelect?: boolean;
|
|
79
|
+
autoFocus?: boolean;
|
|
80
|
+
};
|
|
81
|
+
textEditor?: {
|
|
82
|
+
spellChecker?: boolean;
|
|
83
|
+
tables?: boolean;
|
|
84
|
+
cleanPaste?: boolean | 'basic' | 'confirm';
|
|
85
|
+
emojis?: boolean;
|
|
86
|
+
textDirection?: boolean | null;
|
|
87
|
+
inlineColorGroups?: string[];
|
|
88
|
+
inlineFontControls?: boolean;
|
|
89
|
+
defaultFontSize?: string;
|
|
90
|
+
customButtons?: TextEditorCustomButton[];
|
|
91
|
+
};
|
|
92
|
+
colorPicker?: ColorPicker;
|
|
93
|
+
legacy?: {
|
|
94
|
+
disableHoverButtonColors?: boolean;
|
|
95
|
+
};
|
|
96
|
+
inboxPreviews?: boolean;
|
|
97
|
+
pageAnchors?: boolean;
|
|
98
|
+
svgImageUpload?: boolean;
|
|
99
|
+
smartMergeTags?: boolean;
|
|
100
|
+
multiLanguage?: boolean | {
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
languages?: Language[];
|
|
103
|
+
};
|
|
104
|
+
styleGuide?: boolean;
|
|
105
|
+
ai?: boolean | {
|
|
106
|
+
enabled?: boolean;
|
|
107
|
+
copilot?: boolean;
|
|
108
|
+
models?: boolean;
|
|
109
|
+
magicImage?: boolean;
|
|
110
|
+
smartButtons?: boolean;
|
|
111
|
+
smartHeadings?: boolean;
|
|
112
|
+
smartImageAltText?: boolean;
|
|
113
|
+
smartText?: boolean;
|
|
114
|
+
smartParagraph?: boolean;
|
|
115
|
+
};
|
|
116
|
+
sendTestEmail?: boolean;
|
|
117
|
+
syncedBlocks?: boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
121
|
+
// Configuration
|
|
122
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { OptionItem } from './utils';
|
|
4
|
+
|
|
5
|
+
export type Font = Record<string, any>;
|
|
6
|
+
|
|
7
|
+
export type FontList = Font[];
|
|
8
|
+
|
|
9
|
+
export interface CustomFont {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
url: string;
|
|
13
|
+
weights?: number[] | Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
value: number;
|
|
16
|
+
} | number>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type FontItem = OptionItem<CustomFont>;
|
|
20
|
+
|
|
21
|
+
export type Fonts = {
|
|
22
|
+
showDefaultFonts?: boolean;
|
|
23
|
+
customFonts?: FontItem[];
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './utils';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './font';
|
|
4
|
+
export * from './intl';
|
|
5
|
+
export * from './design';
|
|
6
|
+
export * from './config';
|
|
7
|
+
export * from './merge-tags';
|
|
8
|
+
export * from './link-types';
|
|
9
|
+
export * from './display-conditions';
|
|
10
|
+
export * from './style-guide';
|
|
11
|
+
export * from './audit';
|
|
12
|
+
export * from './export';
|
|
13
|
+
export * from './theme';
|
|
14
|
+
export * from './features';
|
|
15
|
+
export * from './editor';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
export type Locale = string;
|
|
4
|
+
|
|
5
|
+
export type TextDirection = 'ltr' | 'rtl';
|
|
6
|
+
|
|
7
|
+
export interface Translations {
|
|
8
|
+
[name: string]: object;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type Language = {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
rtl?: boolean;
|
|
15
|
+
default?: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
export type SpecialLink = {
|
|
4
|
+
name: string;
|
|
5
|
+
href: string;
|
|
6
|
+
target?: string;
|
|
7
|
+
specialLinks?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
href?: undefined;
|
|
11
|
+
target?: undefined;
|
|
12
|
+
specialLinks: SpecialLinks;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export interface SpecialLinks {
|
|
16
|
+
[name: string]: SpecialLink;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type LinkTypeFieldOption = {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
highlight?: boolean;
|
|
24
|
+
onClick?: (option: {
|
|
25
|
+
label?: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}, meta: object, done: (result: {
|
|
28
|
+
label?: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void) => void;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'separator';
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export interface LinkTypeField {
|
|
36
|
+
name: string;
|
|
37
|
+
label: string;
|
|
38
|
+
defaultValue?: string | LinkTypeFieldOption[] | undefined;
|
|
39
|
+
enabled?: boolean;
|
|
40
|
+
placeholderText?: string;
|
|
41
|
+
inputType?: any;
|
|
42
|
+
isClearable?: boolean;
|
|
43
|
+
isCreatable?: boolean;
|
|
44
|
+
isMulti?: boolean;
|
|
45
|
+
limit?: number;
|
|
46
|
+
limitMessage?: string;
|
|
47
|
+
validationRegex?: string;
|
|
48
|
+
options?: LinkTypeFieldOption[];
|
|
49
|
+
sortOptions?: boolean | (<Option extends {
|
|
50
|
+
label: string;
|
|
51
|
+
}>(options: Option[]) => Option[]);
|
|
52
|
+
onCreateOption?: (inputValue: string, meta: object, done: (newOption: LinkTypeFieldOption) => void) => void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface LinkType {
|
|
56
|
+
name: string;
|
|
57
|
+
label: string;
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
attrs?: {
|
|
60
|
+
href?: string;
|
|
61
|
+
target?: string;
|
|
62
|
+
onClick?: string | ((...args: any[]) => void);
|
|
63
|
+
class?: string;
|
|
64
|
+
download?: boolean;
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
};
|
|
67
|
+
fields?: LinkTypeField[];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type LinkTypes = LinkType[];
|
|
71
|
+
|
|
72
|
+
export type LinkTypesSharedConfig = Pick<LinkType, 'attrs' | 'fields'>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
export interface MergeTag {
|
|
4
|
+
name: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
sample?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
mergeTags?: MergeTags;
|
|
9
|
+
rules?: {
|
|
10
|
+
[key: string]: {
|
|
11
|
+
name: string;
|
|
12
|
+
before: string;
|
|
13
|
+
after: string;
|
|
14
|
+
sample?: boolean | Array<Record<string, string>>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface MergeTags {
|
|
20
|
+
[name: string]: MergeTag;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type MergeTagsValues = Record<string, string | number | Record<string, boolean | Array<Record<string, string | number>>>>;
|
|
24
|
+
|
|
25
|
+
export interface MergeTagsConfig {
|
|
26
|
+
autocompleteTriggerChar?: string | null;
|
|
27
|
+
sort?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
export interface StyleGuideStyle {
|
|
4
|
+
label: string;
|
|
5
|
+
values: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface StyleGuideStyles {
|
|
9
|
+
[styleGuideId: string]: StyleGuideStyle | undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface StyleGuideToolConfig {
|
|
13
|
+
styles?: StyleGuideStyles;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface StyleGuideConfig {
|
|
17
|
+
tools?: {
|
|
18
|
+
[toolId: string]: StyleGuideToolConfig | undefined;
|
|
19
|
+
};
|
|
20
|
+
}
|