@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,17 @@
|
|
|
1
|
+
export type { ToolConfig, ToolsConfig } from '../editor/editor';
|
|
2
|
+
|
|
3
|
+
export type { ButtonValues, ButtonExporters } from './button';
|
|
4
|
+
export type { CarouselValues, CarouselExporters } from './carousel';
|
|
5
|
+
export type { DividerValues, DividerExporters } from './divider';
|
|
6
|
+
export type { FormValues, FormExporters } from './form';
|
|
7
|
+
export type { HeadingValues, HeadingExporters } from './heading';
|
|
8
|
+
export type { HtmlValues, HtmlExporters } from './html';
|
|
9
|
+
export type { ImageValues, ImageExporters } from './image';
|
|
10
|
+
export type { MenuValues, MenuExporters } from './menu';
|
|
11
|
+
export type { PageBreakValues, PageBreakExporters } from './page-break';
|
|
12
|
+
export type { ParagraphValues, ParagraphExporters } from './paragraph';
|
|
13
|
+
export type { SocialValues, SocialExporters } from './social';
|
|
14
|
+
export type { TableValues, TableExporters } from './table';
|
|
15
|
+
export type { TextValues, TextExporters } from './text';
|
|
16
|
+
export type { TimerValues, TimerExporters } from './timer';
|
|
17
|
+
export type { VideoValues, VideoExporters } from './video';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type MenuValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
synced: {
|
|
9
|
+
id: string;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
};
|
|
13
|
+
menu: {
|
|
14
|
+
items?: {
|
|
15
|
+
key: string;
|
|
16
|
+
text: string;
|
|
17
|
+
link?: {
|
|
18
|
+
name: string;
|
|
19
|
+
attrs?: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
href?: string;
|
|
22
|
+
target?: string;
|
|
23
|
+
onClick?: unknown;
|
|
24
|
+
class?: string;
|
|
25
|
+
download?: boolean;
|
|
26
|
+
};
|
|
27
|
+
values?: Record<string, string | number | {
|
|
28
|
+
label?: string;
|
|
29
|
+
value?: string | number;
|
|
30
|
+
}[]>;
|
|
31
|
+
};
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
linkColor: string;
|
|
35
|
+
padding: `${number}px` | `${number}px ${number}px` | `${number}px ${number}px ${number}px` | `${number}px ${number}px ${number}px ${number}px`;
|
|
36
|
+
fontFamily: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
defaultFont?: boolean;
|
|
40
|
+
type?: string;
|
|
41
|
+
url?: string;
|
|
42
|
+
weights?: (number | {
|
|
43
|
+
value: number;
|
|
44
|
+
label?: string;
|
|
45
|
+
})[];
|
|
46
|
+
};
|
|
47
|
+
fontWeight: number | {
|
|
48
|
+
value: number;
|
|
49
|
+
label?: string;
|
|
50
|
+
};
|
|
51
|
+
textColor: string;
|
|
52
|
+
fontSize: number | `${number}px`;
|
|
53
|
+
letterSpacing: number | `${number}px`;
|
|
54
|
+
layout: "horizontal" | "vertical";
|
|
55
|
+
align: "left" | "center" | "right" | "justify";
|
|
56
|
+
separator: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
import type { BodyValues } from '../containers/body';
|
|
60
|
+
import type { ColumnValues } from '../containers/column';
|
|
61
|
+
import type { ContentValues } from '../containers/content';
|
|
62
|
+
import type { RowValues } from '../containers/row';
|
|
63
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
64
|
+
|
|
65
|
+
type MenuExporter = (
|
|
66
|
+
renderValues: ContentValues & MenuValues,
|
|
67
|
+
index: number, // @deprecated use last param instead
|
|
68
|
+
columnIndex: number, // @deprecated use last param instead
|
|
69
|
+
rowCells: number[], // @deprecated use last param instead
|
|
70
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
71
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
72
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
73
|
+
meta: {
|
|
74
|
+
index: number;
|
|
75
|
+
columnIndex: number;
|
|
76
|
+
columnValues: ColumnValues;
|
|
77
|
+
rowIndex: number;
|
|
78
|
+
rowCells: number[];
|
|
79
|
+
rowValues: RowValues;
|
|
80
|
+
bodyValues: BodyValues;
|
|
81
|
+
|
|
82
|
+
embeddedValues: Record<string, unknown>;
|
|
83
|
+
mergeTagState: {
|
|
84
|
+
mergeTagGroup: string;
|
|
85
|
+
mergeTagRule: string;
|
|
86
|
+
mergeTags: MergeTagsValues;
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
) => string;
|
|
90
|
+
|
|
91
|
+
export type MenuExporters = Partial<Record<ExporterName, MenuExporter>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type PageBreakValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
synced: {
|
|
9
|
+
id: string;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
};
|
|
13
|
+
displayCondition: {
|
|
14
|
+
label: string;
|
|
15
|
+
description: string;
|
|
16
|
+
type: string;
|
|
17
|
+
before?: string;
|
|
18
|
+
after?: string;
|
|
19
|
+
};
|
|
20
|
+
color: string;
|
|
21
|
+
anchor: string;
|
|
22
|
+
containerPadding: `${number}px` | `${number}px ${number}px` | `${number}px ${number}px ${number}px` | `${number}px ${number}px ${number}px ${number}px`;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
import type { BodyValues } from '../containers/body';
|
|
26
|
+
import type { ColumnValues } from '../containers/column';
|
|
27
|
+
import type { ContentValues } from '../containers/content';
|
|
28
|
+
import type { RowValues } from '../containers/row';
|
|
29
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
30
|
+
|
|
31
|
+
type PageBreakExporter = (
|
|
32
|
+
renderValues: ContentValues & PageBreakValues,
|
|
33
|
+
index: number, // @deprecated use last param instead
|
|
34
|
+
columnIndex: number, // @deprecated use last param instead
|
|
35
|
+
rowCells: number[], // @deprecated use last param instead
|
|
36
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
37
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
38
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
39
|
+
meta: {
|
|
40
|
+
index: number;
|
|
41
|
+
columnIndex: number;
|
|
42
|
+
columnValues: ColumnValues;
|
|
43
|
+
rowIndex: number;
|
|
44
|
+
rowCells: number[];
|
|
45
|
+
rowValues: RowValues;
|
|
46
|
+
bodyValues: BodyValues;
|
|
47
|
+
|
|
48
|
+
embeddedValues: Record<string, unknown>;
|
|
49
|
+
mergeTagState: {
|
|
50
|
+
mergeTagGroup: string;
|
|
51
|
+
mergeTagRule: string;
|
|
52
|
+
mergeTags: MergeTagsValues;
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
) => string;
|
|
56
|
+
|
|
57
|
+
export type PageBreakExporters = Partial<Record<ExporterName, PageBreakExporter>>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type ParagraphValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
textJson: string;
|
|
9
|
+
synced: {
|
|
10
|
+
id: string;
|
|
11
|
+
dirty: boolean;
|
|
12
|
+
updatedAt?: string;
|
|
13
|
+
};
|
|
14
|
+
color: string;
|
|
15
|
+
textAlign: "left" | "center" | "right" | "justify";
|
|
16
|
+
fontFamily: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
defaultFont?: boolean;
|
|
20
|
+
type?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
weights?: (number | {
|
|
23
|
+
value: number;
|
|
24
|
+
label?: string;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
fontWeight: number | {
|
|
28
|
+
value: number;
|
|
29
|
+
label?: string;
|
|
30
|
+
};
|
|
31
|
+
fontSize: number | `${number}px`;
|
|
32
|
+
lineHeight: string;
|
|
33
|
+
letterSpacing: number | `${number}px`;
|
|
34
|
+
linkStyle: {
|
|
35
|
+
body?: boolean;
|
|
36
|
+
inherit?: boolean;
|
|
37
|
+
linkColor?: string;
|
|
38
|
+
linkHoverColor?: string;
|
|
39
|
+
linkUnderline?: boolean;
|
|
40
|
+
linkHoverUnderline?: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
import type { BodyValues } from '../containers/body';
|
|
45
|
+
import type { ColumnValues } from '../containers/column';
|
|
46
|
+
import type { ContentValues } from '../containers/content';
|
|
47
|
+
import type { RowValues } from '../containers/row';
|
|
48
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
49
|
+
|
|
50
|
+
type ParagraphExporter = (
|
|
51
|
+
renderValues: ContentValues & ParagraphValues,
|
|
52
|
+
index: number, // @deprecated use last param instead
|
|
53
|
+
columnIndex: number, // @deprecated use last param instead
|
|
54
|
+
rowCells: number[], // @deprecated use last param instead
|
|
55
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
56
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
57
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
58
|
+
meta: {
|
|
59
|
+
index: number;
|
|
60
|
+
columnIndex: number;
|
|
61
|
+
columnValues: ColumnValues;
|
|
62
|
+
rowIndex: number;
|
|
63
|
+
rowCells: number[];
|
|
64
|
+
rowValues: RowValues;
|
|
65
|
+
bodyValues: BodyValues;
|
|
66
|
+
|
|
67
|
+
embeddedValues: Record<string, unknown>;
|
|
68
|
+
mergeTagState: {
|
|
69
|
+
mergeTagGroup: string;
|
|
70
|
+
mergeTagRule: string;
|
|
71
|
+
mergeTags: MergeTagsValues;
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
) => string;
|
|
75
|
+
|
|
76
|
+
export type ParagraphExporters = Partial<Record<ExporterName, ParagraphExporter>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type SocialValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
synced: {
|
|
9
|
+
id: string;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
};
|
|
13
|
+
icons: {
|
|
14
|
+
iconType: string;
|
|
15
|
+
icons: {
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
imgUrl?: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
spacing: number | `${number}px` | `${number}%` | "auto";
|
|
22
|
+
align: "left" | "center" | "right" | "justify";
|
|
23
|
+
iconSize: number | `${number}px` | `${number}%` | "auto";
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
import type { BodyValues } from '../containers/body';
|
|
27
|
+
import type { ColumnValues } from '../containers/column';
|
|
28
|
+
import type { ContentValues } from '../containers/content';
|
|
29
|
+
import type { RowValues } from '../containers/row';
|
|
30
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
31
|
+
|
|
32
|
+
type SocialExporter = (
|
|
33
|
+
renderValues: ContentValues & SocialValues,
|
|
34
|
+
index: number, // @deprecated use last param instead
|
|
35
|
+
columnIndex: number, // @deprecated use last param instead
|
|
36
|
+
rowCells: number[], // @deprecated use last param instead
|
|
37
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
38
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
39
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
40
|
+
meta: {
|
|
41
|
+
index: number;
|
|
42
|
+
columnIndex: number;
|
|
43
|
+
columnValues: ColumnValues;
|
|
44
|
+
rowIndex: number;
|
|
45
|
+
rowCells: number[];
|
|
46
|
+
rowValues: RowValues;
|
|
47
|
+
bodyValues: BodyValues;
|
|
48
|
+
|
|
49
|
+
embeddedValues: Record<string, unknown>;
|
|
50
|
+
mergeTagState: {
|
|
51
|
+
mergeTagGroup: string;
|
|
52
|
+
mergeTagRule: string;
|
|
53
|
+
mergeTags: MergeTagsValues;
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
) => string;
|
|
57
|
+
|
|
58
|
+
export type SocialExporters = Partial<Record<ExporterName, SocialExporter>>;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type TableValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
table: {
|
|
9
|
+
headers: {
|
|
10
|
+
cells: {
|
|
11
|
+
text: string;
|
|
12
|
+
width: number;
|
|
13
|
+
}[];
|
|
14
|
+
height: number;
|
|
15
|
+
}[];
|
|
16
|
+
rows: {
|
|
17
|
+
cells: {
|
|
18
|
+
text: string;
|
|
19
|
+
width: number;
|
|
20
|
+
}[];
|
|
21
|
+
height: number;
|
|
22
|
+
}[];
|
|
23
|
+
footers: {
|
|
24
|
+
cells: {
|
|
25
|
+
text: string;
|
|
26
|
+
width: number;
|
|
27
|
+
}[];
|
|
28
|
+
height: number;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
cellBackgroundColor: {
|
|
32
|
+
property: "color" | "backgroundColor" | "padding" | "textAlign" | "verticalAlign";
|
|
33
|
+
selectedCellId?: string;
|
|
34
|
+
};
|
|
35
|
+
cellColor: {
|
|
36
|
+
property: "color" | "backgroundColor" | "padding" | "textAlign" | "verticalAlign";
|
|
37
|
+
selectedCellId?: string;
|
|
38
|
+
};
|
|
39
|
+
cellTextAlign: {
|
|
40
|
+
property: "color" | "backgroundColor" | "padding" | "textAlign" | "verticalAlign";
|
|
41
|
+
selectedCellId?: string;
|
|
42
|
+
};
|
|
43
|
+
cellVerticalAlign: {
|
|
44
|
+
property: "color" | "backgroundColor" | "padding" | "textAlign" | "verticalAlign";
|
|
45
|
+
selectedCellId?: string;
|
|
46
|
+
};
|
|
47
|
+
cellPadding: {
|
|
48
|
+
property: "color" | "backgroundColor" | "padding" | "textAlign" | "verticalAlign";
|
|
49
|
+
selectedCellId?: string;
|
|
50
|
+
};
|
|
51
|
+
border: {
|
|
52
|
+
borderBottomColor?: string;
|
|
53
|
+
borderBottomStyle?: string;
|
|
54
|
+
borderBottomWidth?: `${number}px`;
|
|
55
|
+
borderLeftColor?: string;
|
|
56
|
+
borderLeftStyle?: string;
|
|
57
|
+
borderLeftWidth?: `${number}px`;
|
|
58
|
+
borderRightColor?: string;
|
|
59
|
+
borderRightStyle?: string;
|
|
60
|
+
borderRightWidth?: `${number}px`;
|
|
61
|
+
borderTopColor?: string;
|
|
62
|
+
borderTopStyle?: string;
|
|
63
|
+
borderTopWidth?: `${number}px`;
|
|
64
|
+
};
|
|
65
|
+
columns: number | `${number}px` | `${number}%` | "auto";
|
|
66
|
+
rows: number | `${number}px` | `${number}%` | "auto";
|
|
67
|
+
stripedRows: boolean;
|
|
68
|
+
stripedRowsBackgroundColor: string;
|
|
69
|
+
enableHeader: boolean;
|
|
70
|
+
headerFontFamily: {
|
|
71
|
+
label: string;
|
|
72
|
+
value: string;
|
|
73
|
+
defaultFont?: boolean;
|
|
74
|
+
type?: string;
|
|
75
|
+
url?: string;
|
|
76
|
+
weights?: (number | {
|
|
77
|
+
value: number;
|
|
78
|
+
label?: string;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
headerBackgroundColor: string;
|
|
82
|
+
headerFontWeight: number | {
|
|
83
|
+
value: number;
|
|
84
|
+
label?: string;
|
|
85
|
+
};
|
|
86
|
+
headerFontSize: number | `${number}px`;
|
|
87
|
+
headerColor: string;
|
|
88
|
+
headerTextAlign: "left" | "center" | "right" | "justify";
|
|
89
|
+
headerVerticalAlign: "top" | "middle" | "bottom";
|
|
90
|
+
headerPadding: `${number}px` | `${number}px ${number}px` | `${number}px ${number}px ${number}px` | `${number}px ${number}px ${number}px ${number}px`;
|
|
91
|
+
contentVerticalAlign: "top" | "middle" | "bottom";
|
|
92
|
+
contentFontFamily: {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
defaultFont?: boolean;
|
|
96
|
+
type?: string;
|
|
97
|
+
url?: string;
|
|
98
|
+
weights?: (number | {
|
|
99
|
+
value: number;
|
|
100
|
+
label?: string;
|
|
101
|
+
})[];
|
|
102
|
+
};
|
|
103
|
+
contentBackgroundColor: string;
|
|
104
|
+
contentFontWeight: number | {
|
|
105
|
+
value: number;
|
|
106
|
+
label?: string;
|
|
107
|
+
};
|
|
108
|
+
contentFontSize: number | `${number}px`;
|
|
109
|
+
contentColor: string;
|
|
110
|
+
contentTextAlign: "left" | "center" | "right" | "justify";
|
|
111
|
+
contentLineHeight: string;
|
|
112
|
+
contentLetterSpacing: number | `${number}px`;
|
|
113
|
+
contentPadding: `${number}px` | `${number}px ${number}px` | `${number}px ${number}px ${number}px` | `${number}px ${number}px ${number}px ${number}px`;
|
|
114
|
+
enableFooter: boolean;
|
|
115
|
+
footerFontFamily: {
|
|
116
|
+
label: string;
|
|
117
|
+
value: string;
|
|
118
|
+
defaultFont?: boolean;
|
|
119
|
+
type?: string;
|
|
120
|
+
url?: string;
|
|
121
|
+
weights?: (number | {
|
|
122
|
+
value: number;
|
|
123
|
+
label?: string;
|
|
124
|
+
})[];
|
|
125
|
+
};
|
|
126
|
+
footerBackgroundColor: string;
|
|
127
|
+
footerFontWeight: number | {
|
|
128
|
+
value: number;
|
|
129
|
+
label?: string;
|
|
130
|
+
};
|
|
131
|
+
footerFontSize: number | `${number}px`;
|
|
132
|
+
footerColor: string;
|
|
133
|
+
footerTextAlign: "left" | "center" | "right" | "justify";
|
|
134
|
+
footerVerticalAlign: "top" | "middle" | "bottom";
|
|
135
|
+
footerPadding: `${number}px` | `${number}px ${number}px` | `${number}px ${number}px ${number}px` | `${number}px ${number}px ${number}px ${number}px`;
|
|
136
|
+
linkStyle: {
|
|
137
|
+
body?: boolean;
|
|
138
|
+
inherit?: boolean;
|
|
139
|
+
linkColor?: string;
|
|
140
|
+
linkHoverColor?: string;
|
|
141
|
+
linkUnderline?: boolean;
|
|
142
|
+
linkHoverUnderline?: boolean;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
import type { BodyValues } from '../containers/body';
|
|
147
|
+
import type { ColumnValues } from '../containers/column';
|
|
148
|
+
import type { ContentValues } from '../containers/content';
|
|
149
|
+
import type { RowValues } from '../containers/row';
|
|
150
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
151
|
+
|
|
152
|
+
type TableExporter = (
|
|
153
|
+
renderValues: ContentValues & TableValues,
|
|
154
|
+
index: number, // @deprecated use last param instead
|
|
155
|
+
columnIndex: number, // @deprecated use last param instead
|
|
156
|
+
rowCells: number[], // @deprecated use last param instead
|
|
157
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
158
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
159
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
160
|
+
meta: {
|
|
161
|
+
index: number;
|
|
162
|
+
columnIndex: number;
|
|
163
|
+
columnValues: ColumnValues;
|
|
164
|
+
rowIndex: number;
|
|
165
|
+
rowCells: number[];
|
|
166
|
+
rowValues: RowValues;
|
|
167
|
+
bodyValues: BodyValues;
|
|
168
|
+
|
|
169
|
+
embeddedValues: Record<string, unknown>;
|
|
170
|
+
mergeTagState: {
|
|
171
|
+
mergeTagGroup: string;
|
|
172
|
+
mergeTagRule: string;
|
|
173
|
+
mergeTags: MergeTagsValues;
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
) => string;
|
|
177
|
+
|
|
178
|
+
export type TableExporters = Partial<Record<ExporterName, TableExporter>>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type TextValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
text: string;
|
|
9
|
+
synced: {
|
|
10
|
+
id: string;
|
|
11
|
+
dirty: boolean;
|
|
12
|
+
updatedAt?: string;
|
|
13
|
+
};
|
|
14
|
+
color: string;
|
|
15
|
+
textAlign: "left" | "center" | "right" | "justify";
|
|
16
|
+
fontFamily: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
defaultFont?: boolean;
|
|
20
|
+
type?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
weights?: (number | {
|
|
23
|
+
value: number;
|
|
24
|
+
label?: string;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
fontWeight: number | {
|
|
28
|
+
value: number;
|
|
29
|
+
label?: string;
|
|
30
|
+
};
|
|
31
|
+
fontSize: number | `${number}px`;
|
|
32
|
+
lineHeight: string;
|
|
33
|
+
letterSpacing: number | `${number}px`;
|
|
34
|
+
linkStyle: {
|
|
35
|
+
body?: boolean;
|
|
36
|
+
inherit?: boolean;
|
|
37
|
+
linkColor?: string;
|
|
38
|
+
linkHoverColor?: string;
|
|
39
|
+
linkUnderline?: boolean;
|
|
40
|
+
linkHoverUnderline?: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
import type { BodyValues } from '../containers/body';
|
|
45
|
+
import type { ColumnValues } from '../containers/column';
|
|
46
|
+
import type { ContentValues } from '../containers/content';
|
|
47
|
+
import type { RowValues } from '../containers/row';
|
|
48
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
49
|
+
|
|
50
|
+
type TextExporter = (
|
|
51
|
+
renderValues: ContentValues & TextValues,
|
|
52
|
+
index: number, // @deprecated use last param instead
|
|
53
|
+
columnIndex: number, // @deprecated use last param instead
|
|
54
|
+
rowCells: number[], // @deprecated use last param instead
|
|
55
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
56
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
57
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
58
|
+
meta: {
|
|
59
|
+
index: number;
|
|
60
|
+
columnIndex: number;
|
|
61
|
+
columnValues: ColumnValues;
|
|
62
|
+
rowIndex: number;
|
|
63
|
+
rowCells: number[];
|
|
64
|
+
rowValues: RowValues;
|
|
65
|
+
bodyValues: BodyValues;
|
|
66
|
+
|
|
67
|
+
embeddedValues: Record<string, unknown>;
|
|
68
|
+
mergeTagState: {
|
|
69
|
+
mergeTagGroup: string;
|
|
70
|
+
mergeTagRule: string;
|
|
71
|
+
mergeTags: MergeTagsValues;
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
) => string;
|
|
75
|
+
|
|
76
|
+
export type TextExporters = Partial<Record<ExporterName, TextExporter>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type TimerValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
synced: {
|
|
9
|
+
id: string;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
};
|
|
13
|
+
countdown: {
|
|
14
|
+
endTime: string;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
digitColor: string;
|
|
17
|
+
labelColor: string;
|
|
18
|
+
labelFontSize: number;
|
|
19
|
+
digitFontSize: number;
|
|
20
|
+
labelFontFamily: string;
|
|
21
|
+
digitFontFamily: string;
|
|
22
|
+
timezone: string;
|
|
23
|
+
showLabels: boolean;
|
|
24
|
+
id?: string;
|
|
25
|
+
locale?: string;
|
|
26
|
+
countdownUrl?: string;
|
|
27
|
+
width?: number;
|
|
28
|
+
height?: number;
|
|
29
|
+
refreshedAt?: number;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
};
|
|
32
|
+
width: {
|
|
33
|
+
autoWidth?: boolean;
|
|
34
|
+
width?: number | `${number}px` | `${number}%`;
|
|
35
|
+
};
|
|
36
|
+
textAlign: "left" | "center" | "right" | "justify";
|
|
37
|
+
altText: string | number;
|
|
38
|
+
action: {
|
|
39
|
+
name: string;
|
|
40
|
+
attrs?: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
href?: string;
|
|
43
|
+
target?: string;
|
|
44
|
+
onClick?: unknown;
|
|
45
|
+
class?: string;
|
|
46
|
+
download?: boolean;
|
|
47
|
+
};
|
|
48
|
+
values?: Record<string, string | number | {
|
|
49
|
+
label?: string;
|
|
50
|
+
value?: string | number;
|
|
51
|
+
}[]>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
import type { BodyValues } from '../containers/body';
|
|
56
|
+
import type { ColumnValues } from '../containers/column';
|
|
57
|
+
import type { ContentValues } from '../containers/content';
|
|
58
|
+
import type { RowValues } from '../containers/row';
|
|
59
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
60
|
+
|
|
61
|
+
type TimerExporter = (
|
|
62
|
+
renderValues: ContentValues & TimerValues,
|
|
63
|
+
index: number, // @deprecated use last param instead
|
|
64
|
+
columnIndex: number, // @deprecated use last param instead
|
|
65
|
+
rowCells: number[], // @deprecated use last param instead
|
|
66
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
67
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
68
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
69
|
+
meta: {
|
|
70
|
+
index: number;
|
|
71
|
+
columnIndex: number;
|
|
72
|
+
columnValues: ColumnValues;
|
|
73
|
+
rowIndex: number;
|
|
74
|
+
rowCells: number[];
|
|
75
|
+
rowValues: RowValues;
|
|
76
|
+
bodyValues: BodyValues;
|
|
77
|
+
|
|
78
|
+
embeddedValues: Record<string, unknown>;
|
|
79
|
+
mergeTagState: {
|
|
80
|
+
mergeTagGroup: string;
|
|
81
|
+
mergeTagRule: string;
|
|
82
|
+
mergeTags: MergeTagsValues;
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
) => string;
|
|
86
|
+
|
|
87
|
+
export type TimerExporters = Partial<Record<ExporterName, TimerExporter>>;
|