easy-email-pro-editor 0.2.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/lib/index.js +13691 -0
- package/lib/typings/components/BeacasEditor/InteractiveState/index.d.ts +2 -0
- package/lib/typings/components/BeacasEditor/index.d.ts +4 -0
- package/lib/typings/components/BeacasEditorProvider/index.d.ts +9 -0
- package/lib/typings/components/Elements/BaseElement.d.ts +53 -0
- package/lib/typings/components/Elements/atom/Button.d.ts +115 -0
- package/lib/typings/components/Elements/atom/Column.d.ts +112 -0
- package/lib/typings/components/Elements/atom/Divider.d.ts +53 -0
- package/lib/typings/components/Elements/atom/Group.d.ts +48 -0
- package/lib/typings/components/Elements/atom/Hero.d.ts +127 -0
- package/lib/typings/components/Elements/atom/HtmlNode.d.ts +539 -0
- package/lib/typings/components/Elements/atom/Image.d.ts +78 -0
- package/lib/typings/components/Elements/atom/LineBreak.d.ts +11 -0
- package/lib/typings/components/Elements/atom/Mergetag.d.ts +11 -0
- package/lib/typings/components/Elements/atom/Navbar.d.ts +93 -0
- package/lib/typings/components/Elements/atom/NavbarLink.d.ts +75 -0
- package/lib/typings/components/Elements/atom/Page.d.ts +32 -0
- package/lib/typings/components/Elements/atom/Placeholder.d.ts +11 -0
- package/lib/typings/components/Elements/atom/Raw.d.ts +12 -0
- package/lib/typings/components/Elements/atom/Section.d.ts +156 -0
- package/lib/typings/components/Elements/atom/Social.d.ts +67 -0
- package/lib/typings/components/Elements/atom/SocialElement.d.ts +110 -0
- package/lib/typings/components/Elements/atom/Spacer.d.ts +35 -0
- package/lib/typings/components/Elements/atom/Text.d.ts +66 -0
- package/lib/typings/components/Elements/atom/Wrapper.d.ts +26 -0
- package/lib/typings/components/Elements/atom/index.d.ts +16 -0
- package/lib/typings/components/Elements/basic/Button.d.ts +37 -0
- package/lib/typings/components/Elements/basic/Column.d.ts +20 -0
- package/lib/typings/components/Elements/basic/Divider.d.ts +20 -0
- package/lib/typings/components/Elements/basic/Group.d.ts +11 -0
- package/lib/typings/components/Elements/basic/Hero.d.ts +21 -0
- package/lib/typings/components/Elements/basic/Image.d.ts +28 -0
- package/lib/typings/components/Elements/basic/Navbar.d.ts +25 -0
- package/lib/typings/components/Elements/basic/Section.d.ts +29 -0
- package/lib/typings/components/Elements/basic/Social.d.ts +28 -0
- package/lib/typings/components/Elements/basic/Spacer.d.ts +10 -0
- package/lib/typings/components/Elements/basic/Text/index.d.ts +5 -0
- package/lib/typings/components/Elements/basic/TextList/TextListItem.d.ts +7 -0
- package/lib/typings/components/Elements/basic/TextList/index.d.ts +50 -0
- package/lib/typings/components/Elements/basic/Wrapper.d.ts +29 -0
- package/lib/typings/components/Elements/index.d.ts +11 -0
- package/lib/typings/components/HtmlStringToReactNodes/index.d.ts +9 -0
- package/lib/typings/components/IframeComponent/index.d.ts +9 -0
- package/lib/typings/components/Leaf/index.d.ts +5 -0
- package/lib/typings/constants/index.d.ts +18 -0
- package/lib/typings/contexts/EdirorPropsContext.d.ts +7 -0
- package/lib/typings/contexts/EditorContext.d.ts +17 -0
- package/lib/typings/contexts/InteractContext.d.ts +27 -0
- package/lib/typings/contexts/index.d.ts +3 -0
- package/lib/typings/core/withBeacas.d.ts +3 -0
- package/lib/typings/core/withEditorState.d.ts +9 -0
- package/lib/typings/core/withElementInteract.d.ts +3 -0
- package/lib/typings/hooks/index.d.ts +7 -0
- package/lib/typings/hooks/useEditorContext.d.ts +1 -0
- package/lib/typings/hooks/useEditorProps.d.ts +2 -0
- package/lib/typings/hooks/useEditorState.d.ts +1 -0
- package/lib/typings/hooks/useEventCallback.d.ts +1 -0
- package/lib/typings/hooks/useForceUpdate.d.ts +4 -0
- package/lib/typings/hooks/useRefState.d.ts +2 -0
- package/lib/typings/hooks/useSelectedNode.d.ts +5 -0
- package/lib/typings/index.d.ts +9 -0
- package/lib/typings/typings/custom-types.d.ts +43 -0
- package/lib/typings/typings/index.d.ts +77 -0
- package/lib/typings/utils/Uploader.d.ts +35 -0
- package/lib/typings/utils/classnames.d.ts +1 -0
- package/lib/typings/utils/conditionalTag.d.ts +9 -0
- package/lib/typings/utils/fonts.d.ts +1 -0
- package/lib/typings/utils/formatAttributes.d.ts +1 -0
- package/lib/typings/utils/generateMediaQuery.d.ts +6 -0
- package/lib/typings/utils/getMediaQuery.d.ts +5 -0
- package/lib/typings/utils/index.d.ts +5 -0
- package/lib/typings/utils/isDOMElement.d.ts +3 -0
- package/lib/typings/utils/isFormatActive.d.ts +3 -0
- package/lib/typings/utils/makeLowerBreakpoint.d.ts +1 -0
- package/lib/typings/utils/mediaQueries.d.ts +1 -0
- package/lib/typings/utils/shorthandParser.d.ts +2 -0
- package/lib/typings/utils/suffixCssClasses.d.ts +2 -0
- package/lib/typings/utils/toggleFormat.d.ts +3 -0
- package/lib/typings/utils/types/boolean.d.ts +12 -0
- package/lib/typings/utils/types/color.d.ts +12 -0
- package/lib/typings/utils/types/enum.d.ts +13 -0
- package/lib/typings/utils/types/helpers/colors.d.ts +2 -0
- package/lib/typings/utils/types/index.d.ts +82 -0
- package/lib/typings/utils/types/integer.d.ts +12 -0
- package/lib/typings/utils/types/string.d.ts +12 -0
- package/lib/typings/utils/types/type.d.ts +11 -0
- package/lib/typings/utils/types/unit.d.ts +12 -0
- package/lib/typings/utils/widthParser.d.ts +6 -0
- package/package.json +32 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EmailEditorProps } from "../../typings";
|
|
3
|
+
export interface MergetagItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
children?: MergetagItem[];
|
|
7
|
+
selectable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const BeacasEditorProvider: (props: EmailEditorProps) => JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RenderElementProps } from "slate-react";
|
|
3
|
+
import { CustomSlateEditor } from "../../typings/custom-types";
|
|
4
|
+
import { Element, PageElement } from "easy-email-pro-core";
|
|
5
|
+
export type BaseElementProps<T extends Element> = Omit<RenderElementProps, "element"> & {
|
|
6
|
+
element: T;
|
|
7
|
+
atomElement: T;
|
|
8
|
+
elementAttributes: T["attributes"];
|
|
9
|
+
context: {
|
|
10
|
+
data: PageElement["data"];
|
|
11
|
+
attributes: PageElement["attributes"];
|
|
12
|
+
};
|
|
13
|
+
editor: CustomSlateEditor;
|
|
14
|
+
placeholder?: React.ReactNode;
|
|
15
|
+
isMobileActive: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare abstract class BaseElement<T extends Element> extends React.PureComponent<BaseElementProps<T>> {
|
|
18
|
+
defaultAttributes: Partial<T>;
|
|
19
|
+
abstract componentType: string;
|
|
20
|
+
static contextType: React.Context<{
|
|
21
|
+
parent: BaseElement<any> | null;
|
|
22
|
+
}>;
|
|
23
|
+
get mediaQueries(): {
|
|
24
|
+
[prop: string]: string;
|
|
25
|
+
};
|
|
26
|
+
get attributes(): T["attributes"];
|
|
27
|
+
constructor(props: BaseElementProps<any>);
|
|
28
|
+
get parent(): BaseElement<any>;
|
|
29
|
+
get parentElement(): any;
|
|
30
|
+
get containerWidth(): string;
|
|
31
|
+
getShorthandAttrValue(attribute: string, direction: string): number;
|
|
32
|
+
getShorthandBorderValue(direction: string): number;
|
|
33
|
+
getBoxWidths(): {
|
|
34
|
+
totalWidth: number;
|
|
35
|
+
borders: number;
|
|
36
|
+
paddings: number;
|
|
37
|
+
box: number;
|
|
38
|
+
};
|
|
39
|
+
get nonRawSiblings(): any;
|
|
40
|
+
getStyles(): {};
|
|
41
|
+
getAttribute(name: string): string;
|
|
42
|
+
htmlAttributes: ((attributes: Record<string, any> | string) => {}) & import("lodash").MemoizedFunction;
|
|
43
|
+
styles(styles: string | Record<string, string>): Record<string, string>;
|
|
44
|
+
getMediaQuery(): Record<string, string>;
|
|
45
|
+
getStyleText(): string;
|
|
46
|
+
renderElement(): React.ReactNode;
|
|
47
|
+
renderChildrenWithPlaceholder(): JSX.Element;
|
|
48
|
+
get childContext(): {
|
|
49
|
+
parent: any;
|
|
50
|
+
};
|
|
51
|
+
render(): React.ReactNode;
|
|
52
|
+
renderWithColumn: (children: React.ReactNode) => JSX.Element;
|
|
53
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseElement } from "../BaseElement";
|
|
3
|
+
import { ButtonElement, Element } from "easy-email-pro-core";
|
|
4
|
+
export declare class Button<T extends Element = ButtonElement> extends BaseElement<T> {
|
|
5
|
+
static endingTag: boolean;
|
|
6
|
+
componentType: string;
|
|
7
|
+
static allowedAttributes: {
|
|
8
|
+
align: string;
|
|
9
|
+
"background-color": string;
|
|
10
|
+
"border-bottom": string;
|
|
11
|
+
"border-left": string;
|
|
12
|
+
"border-radius": string;
|
|
13
|
+
"border-right": string;
|
|
14
|
+
"border-top": string;
|
|
15
|
+
border: string;
|
|
16
|
+
color: string;
|
|
17
|
+
"container-background-color": string;
|
|
18
|
+
"font-family": string;
|
|
19
|
+
"font-size": string;
|
|
20
|
+
"font-style": string;
|
|
21
|
+
"font-weight": string;
|
|
22
|
+
height: string;
|
|
23
|
+
href: string;
|
|
24
|
+
name: string;
|
|
25
|
+
title: string;
|
|
26
|
+
"inner-padding": string;
|
|
27
|
+
"letter-spacing": string;
|
|
28
|
+
"line-height": string;
|
|
29
|
+
"padding-bottom": string;
|
|
30
|
+
"padding-left": string;
|
|
31
|
+
"padding-right": string;
|
|
32
|
+
"padding-top": string;
|
|
33
|
+
padding: string;
|
|
34
|
+
rel: string;
|
|
35
|
+
target: string;
|
|
36
|
+
"text-decoration": string;
|
|
37
|
+
"text-transform": string;
|
|
38
|
+
"vertical-align": string;
|
|
39
|
+
"text-align": string;
|
|
40
|
+
width: string;
|
|
41
|
+
};
|
|
42
|
+
static defaultAttributes: {
|
|
43
|
+
title?: string | undefined;
|
|
44
|
+
"background-color"?: string | undefined;
|
|
45
|
+
border?: string | undefined;
|
|
46
|
+
"border-radius"?: string | undefined;
|
|
47
|
+
padding?: string | undefined;
|
|
48
|
+
"padding-top"?: string | undefined;
|
|
49
|
+
"padding-bottom"?: string | undefined;
|
|
50
|
+
"padding-left"?: string | undefined;
|
|
51
|
+
"padding-right"?: string | undefined;
|
|
52
|
+
"text-align"?: string | undefined;
|
|
53
|
+
"container-background-color"?: string | undefined;
|
|
54
|
+
height?: string | undefined;
|
|
55
|
+
align?: string | undefined;
|
|
56
|
+
color?: string | undefined;
|
|
57
|
+
href?: string | undefined;
|
|
58
|
+
rel?: string | undefined;
|
|
59
|
+
target?: string | undefined;
|
|
60
|
+
"inner-padding"?: string | undefined;
|
|
61
|
+
"vertical-align"?: "middle" | "top" | "bottom" | undefined;
|
|
62
|
+
width?: string | undefined;
|
|
63
|
+
"font-family"?: string | undefined;
|
|
64
|
+
"font-size"?: string | undefined;
|
|
65
|
+
"font-style"?: string | undefined;
|
|
66
|
+
"font-weight"?: string | undefined;
|
|
67
|
+
"line-height"?: string | number | undefined;
|
|
68
|
+
"letter-spacing"?: string | undefined;
|
|
69
|
+
"text-decoration"?: string | undefined;
|
|
70
|
+
"text-transform"?: string | undefined;
|
|
71
|
+
"css-class"?: string | undefined;
|
|
72
|
+
"mj-class"?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
getStyles(): {
|
|
75
|
+
table: {
|
|
76
|
+
"border-collapse": string;
|
|
77
|
+
width: string;
|
|
78
|
+
"line-height": string;
|
|
79
|
+
};
|
|
80
|
+
td: {
|
|
81
|
+
border: string;
|
|
82
|
+
"border-bottom": string;
|
|
83
|
+
"border-left": string;
|
|
84
|
+
"border-radius": string;
|
|
85
|
+
"border-right": string;
|
|
86
|
+
"border-top": string;
|
|
87
|
+
cursor: string;
|
|
88
|
+
"font-style": string;
|
|
89
|
+
height: string;
|
|
90
|
+
"mso-padding-alt": string;
|
|
91
|
+
"text-align": string;
|
|
92
|
+
background: string;
|
|
93
|
+
};
|
|
94
|
+
content: {
|
|
95
|
+
display: string;
|
|
96
|
+
width: string | null;
|
|
97
|
+
background: string;
|
|
98
|
+
color: string;
|
|
99
|
+
"font-family": string;
|
|
100
|
+
"font-size": string;
|
|
101
|
+
"font-style": string;
|
|
102
|
+
"font-weight": string;
|
|
103
|
+
"line-height": string;
|
|
104
|
+
"letter-spacing": string;
|
|
105
|
+
margin: string;
|
|
106
|
+
"text-decoration": string;
|
|
107
|
+
"text-transform": string;
|
|
108
|
+
padding: string;
|
|
109
|
+
"mso-padding-alt": string;
|
|
110
|
+
"border-radius": string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
calculateAWidth(width: string): string | null;
|
|
114
|
+
renderElement(): JSX.Element;
|
|
115
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnElement, Element } from "easy-email-pro-core";
|
|
3
|
+
import { BaseElement } from "../BaseElement";
|
|
4
|
+
export declare class Column<T extends Element = ColumnElement> extends BaseElement<T> {
|
|
5
|
+
componentType: string;
|
|
6
|
+
static allowedAttributes: {
|
|
7
|
+
"background-color": string;
|
|
8
|
+
border: string;
|
|
9
|
+
"border-bottom": string;
|
|
10
|
+
"border-left": string;
|
|
11
|
+
"border-radius": string;
|
|
12
|
+
"border-right": string;
|
|
13
|
+
"border-top": string;
|
|
14
|
+
direction: string;
|
|
15
|
+
"inner-background-color": string;
|
|
16
|
+
"padding-bottom": string;
|
|
17
|
+
"padding-left": string;
|
|
18
|
+
"padding-right": string;
|
|
19
|
+
"padding-top": string;
|
|
20
|
+
"inner-border": string;
|
|
21
|
+
"inner-border-bottom": string;
|
|
22
|
+
"inner-border-left": string;
|
|
23
|
+
"inner-border-radius": string;
|
|
24
|
+
"inner-border-right": string;
|
|
25
|
+
"inner-border-top": string;
|
|
26
|
+
padding: string;
|
|
27
|
+
"vertical-align": string;
|
|
28
|
+
width: string;
|
|
29
|
+
};
|
|
30
|
+
static defaultAttributes: {
|
|
31
|
+
"background-color"?: string | undefined;
|
|
32
|
+
border?: string | undefined;
|
|
33
|
+
"border-radius"?: string | undefined;
|
|
34
|
+
direction?: string | undefined;
|
|
35
|
+
padding?: string | undefined;
|
|
36
|
+
"text-align"?: string | undefined;
|
|
37
|
+
"vertical-align"?: string | undefined;
|
|
38
|
+
width?: string | undefined;
|
|
39
|
+
"inner-border"?: string | undefined;
|
|
40
|
+
"inner-border-radius"?: string | undefined;
|
|
41
|
+
"inner-background-color"?: "color" | undefined;
|
|
42
|
+
"css-class"?: string | undefined;
|
|
43
|
+
"mj-class"?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
get containerWidth(): string;
|
|
46
|
+
getStyles(): {
|
|
47
|
+
div: {
|
|
48
|
+
"font-size": string;
|
|
49
|
+
"text-align": string;
|
|
50
|
+
direction: string;
|
|
51
|
+
display: string;
|
|
52
|
+
"vertical-align": string;
|
|
53
|
+
width: string;
|
|
54
|
+
};
|
|
55
|
+
table: {
|
|
56
|
+
"background-color": string;
|
|
57
|
+
border: string;
|
|
58
|
+
"border-bottom": string;
|
|
59
|
+
"border-left": string;
|
|
60
|
+
"border-radius": string;
|
|
61
|
+
"border-right": string;
|
|
62
|
+
"border-top": string;
|
|
63
|
+
} | {
|
|
64
|
+
"background-color": string;
|
|
65
|
+
border: string;
|
|
66
|
+
"border-bottom": string;
|
|
67
|
+
"border-left": string;
|
|
68
|
+
"border-radius": string;
|
|
69
|
+
"border-right": string;
|
|
70
|
+
"border-top": string;
|
|
71
|
+
"vertical-align": string;
|
|
72
|
+
};
|
|
73
|
+
tdOutlook: {
|
|
74
|
+
"vertical-align": string;
|
|
75
|
+
width: string;
|
|
76
|
+
};
|
|
77
|
+
gutter: {
|
|
78
|
+
padding: string;
|
|
79
|
+
"padding-top": string;
|
|
80
|
+
"padding-right": string;
|
|
81
|
+
"padding-bottom": string;
|
|
82
|
+
"padding-left": string;
|
|
83
|
+
"background-color": string;
|
|
84
|
+
border: string;
|
|
85
|
+
"border-bottom": string;
|
|
86
|
+
"border-left": string;
|
|
87
|
+
"border-radius": string;
|
|
88
|
+
"border-right": string;
|
|
89
|
+
"border-top": string;
|
|
90
|
+
"vertical-align": string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
getMobileWidth(): string;
|
|
94
|
+
getWidthAsPixel(): string;
|
|
95
|
+
getParsedWidth(): {
|
|
96
|
+
unit: string;
|
|
97
|
+
parsedWidth: number;
|
|
98
|
+
};
|
|
99
|
+
getParsedWidth(toString: boolean): string;
|
|
100
|
+
getColumnClass(): {
|
|
101
|
+
className: string;
|
|
102
|
+
parsedWidth: number;
|
|
103
|
+
unit: string;
|
|
104
|
+
};
|
|
105
|
+
get mediaQueries(): {
|
|
106
|
+
[x: string]: string;
|
|
107
|
+
};
|
|
108
|
+
hasGutter(): boolean;
|
|
109
|
+
renderGutter(): JSX.Element;
|
|
110
|
+
renderColumn(): JSX.Element;
|
|
111
|
+
renderElement(): JSX.Element;
|
|
112
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DividerElement, Element } from "easy-email-pro-core";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BaseElement } from "../BaseElement";
|
|
4
|
+
export declare class Divider<T extends Element = DividerElement> extends BaseElement<T> {
|
|
5
|
+
componentType: string;
|
|
6
|
+
static allowedAttributes: {
|
|
7
|
+
"border-color": string;
|
|
8
|
+
"border-style": string;
|
|
9
|
+
"border-width": string;
|
|
10
|
+
"container-background-color": string;
|
|
11
|
+
padding: string;
|
|
12
|
+
"padding-bottom": string;
|
|
13
|
+
"padding-left": string;
|
|
14
|
+
"padding-right": string;
|
|
15
|
+
"padding-top": string;
|
|
16
|
+
width: string;
|
|
17
|
+
align: string;
|
|
18
|
+
};
|
|
19
|
+
static defaultAttributes: {
|
|
20
|
+
padding?: string | undefined;
|
|
21
|
+
"padding-top"?: string | undefined;
|
|
22
|
+
"padding-bottom"?: string | undefined;
|
|
23
|
+
"padding-left"?: string | undefined;
|
|
24
|
+
"padding-right"?: string | undefined;
|
|
25
|
+
"container-background-color"?: string | undefined;
|
|
26
|
+
align?: "left" | "center" | "right" | undefined;
|
|
27
|
+
width?: string | undefined;
|
|
28
|
+
"border-color"?: string | undefined;
|
|
29
|
+
"border-style"?: string | undefined;
|
|
30
|
+
"border-width"?: string | undefined;
|
|
31
|
+
"css-class"?: string | undefined;
|
|
32
|
+
"mj-class"?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
getStyles(): {
|
|
35
|
+
p: {
|
|
36
|
+
"border-top": string;
|
|
37
|
+
"font-size": string;
|
|
38
|
+
"line-height": string;
|
|
39
|
+
margin: string;
|
|
40
|
+
width: string;
|
|
41
|
+
};
|
|
42
|
+
outlook: {
|
|
43
|
+
width: string;
|
|
44
|
+
"border-top": string;
|
|
45
|
+
"font-size": string;
|
|
46
|
+
"line-height": string;
|
|
47
|
+
margin: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
getOutlookWidth(): string;
|
|
51
|
+
renderWithColumn: (children: React.ReactNode) => JSX.Element;
|
|
52
|
+
renderElement(): JSX.Element;
|
|
53
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GroupElement, Element } from "easy-email-pro-core";
|
|
3
|
+
import { BaseElement } from "../BaseElement";
|
|
4
|
+
export declare class Group<T extends Element = GroupElement> extends BaseElement<T> {
|
|
5
|
+
componentType: string;
|
|
6
|
+
static allowedAttributes: {
|
|
7
|
+
"background-color": string;
|
|
8
|
+
direction: string;
|
|
9
|
+
"vertical-align": string;
|
|
10
|
+
width: string;
|
|
11
|
+
};
|
|
12
|
+
static defaultAttributes: {
|
|
13
|
+
"background-color"?: string | undefined;
|
|
14
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
15
|
+
"vertical-align"?: "middle" | "top" | "bottom" | undefined;
|
|
16
|
+
width?: string | undefined;
|
|
17
|
+
"css-class"?: string | undefined;
|
|
18
|
+
"mj-class"?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
get containerWidth(): string;
|
|
21
|
+
getStyles(): {
|
|
22
|
+
div: {
|
|
23
|
+
"font-size": string;
|
|
24
|
+
"line-height": string;
|
|
25
|
+
"text-align": string;
|
|
26
|
+
display: string;
|
|
27
|
+
width: string;
|
|
28
|
+
direction: string;
|
|
29
|
+
"vertical-align": string;
|
|
30
|
+
"background-color": string;
|
|
31
|
+
};
|
|
32
|
+
tdOutlook: {
|
|
33
|
+
"vertical-align": string;
|
|
34
|
+
width: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
getParsedWidth(toString?: boolean): string | {
|
|
38
|
+
unit: string;
|
|
39
|
+
parsedWidth: any;
|
|
40
|
+
};
|
|
41
|
+
getWidthAsPixel(): string;
|
|
42
|
+
getColumnClassAndMediaQuery(): {
|
|
43
|
+
className: string;
|
|
44
|
+
mediaQuery: JSX.Element;
|
|
45
|
+
};
|
|
46
|
+
getChildContainerWidth(): string;
|
|
47
|
+
renderElement(): JSX.Element;
|
|
48
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeroElement, Element } from "easy-email-pro-core";
|
|
3
|
+
import { BaseElement } from "../BaseElement";
|
|
4
|
+
export declare class Hero<T extends Element = HeroElement> extends BaseElement<T> {
|
|
5
|
+
componentType: string;
|
|
6
|
+
static allowedAttributes: {
|
|
7
|
+
mode: string;
|
|
8
|
+
height: string;
|
|
9
|
+
"background-url": string;
|
|
10
|
+
"background-width": string;
|
|
11
|
+
"background-height": string;
|
|
12
|
+
"background-position": string;
|
|
13
|
+
"border-radius": string;
|
|
14
|
+
"container-background-color": string;
|
|
15
|
+
"inner-background-color": string;
|
|
16
|
+
"inner-padding": string;
|
|
17
|
+
"inner-padding-top": string;
|
|
18
|
+
"inner-padding-left": string;
|
|
19
|
+
"inner-padding-right": string;
|
|
20
|
+
"inner-padding-bottom": string;
|
|
21
|
+
padding: string;
|
|
22
|
+
"padding-bottom": string;
|
|
23
|
+
"padding-left": string;
|
|
24
|
+
"padding-right": string;
|
|
25
|
+
"padding-top": string;
|
|
26
|
+
"background-color": string;
|
|
27
|
+
"vertical-align": string;
|
|
28
|
+
};
|
|
29
|
+
static defaultAttributes: {
|
|
30
|
+
"background-color"?: string | undefined;
|
|
31
|
+
"background-position"?: string | undefined;
|
|
32
|
+
"background-url"?: string | undefined;
|
|
33
|
+
"border-radius"?: string | undefined;
|
|
34
|
+
"padding-top"?: string | undefined;
|
|
35
|
+
"padding-bottom"?: string | undefined;
|
|
36
|
+
"padding-left"?: string | undefined;
|
|
37
|
+
"padding-right"?: string | undefined;
|
|
38
|
+
height?: string | undefined;
|
|
39
|
+
"vertical-align"?: string | undefined;
|
|
40
|
+
width?: string | undefined;
|
|
41
|
+
mode?: "fluid-height" | "fixed-height" | undefined;
|
|
42
|
+
"background-height"?: string | undefined;
|
|
43
|
+
"background-width"?: string | undefined;
|
|
44
|
+
"css-class"?: string | undefined;
|
|
45
|
+
"mj-class"?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
getParentContainerWidth(): string;
|
|
48
|
+
getStyles(): {
|
|
49
|
+
div: {
|
|
50
|
+
margin: string;
|
|
51
|
+
"max-width": string;
|
|
52
|
+
};
|
|
53
|
+
table: {
|
|
54
|
+
width: string;
|
|
55
|
+
};
|
|
56
|
+
tr: {
|
|
57
|
+
"vertical-align": string;
|
|
58
|
+
};
|
|
59
|
+
"td-fluid": {
|
|
60
|
+
width: string;
|
|
61
|
+
"padding-bottom": string;
|
|
62
|
+
"mso-padding-bottom-alt": string;
|
|
63
|
+
};
|
|
64
|
+
hero: {
|
|
65
|
+
"background-position": string;
|
|
66
|
+
"background-repeat": string;
|
|
67
|
+
"border-radius": string;
|
|
68
|
+
padding: string;
|
|
69
|
+
"padding-top": string;
|
|
70
|
+
"padding-left": string;
|
|
71
|
+
"padding-right": string;
|
|
72
|
+
"padding-bottom": string;
|
|
73
|
+
"vertical-align": string;
|
|
74
|
+
"background-color": string;
|
|
75
|
+
"background-url": string;
|
|
76
|
+
"background-size": string;
|
|
77
|
+
};
|
|
78
|
+
"outlook-table": {
|
|
79
|
+
width: string;
|
|
80
|
+
};
|
|
81
|
+
"outlook-td": {
|
|
82
|
+
"line-height": number;
|
|
83
|
+
"font-size": number;
|
|
84
|
+
"mso-line-height-rule": string;
|
|
85
|
+
};
|
|
86
|
+
"outlook-inner-table": {
|
|
87
|
+
width: string;
|
|
88
|
+
};
|
|
89
|
+
"outlook-image": {
|
|
90
|
+
border: string;
|
|
91
|
+
height: string;
|
|
92
|
+
"mso-position-horizontal": string;
|
|
93
|
+
position: string;
|
|
94
|
+
top: number;
|
|
95
|
+
width: string;
|
|
96
|
+
"z-index": string;
|
|
97
|
+
};
|
|
98
|
+
"outlook-inner-td": {
|
|
99
|
+
"background-color": string;
|
|
100
|
+
padding: string;
|
|
101
|
+
"padding-top": string;
|
|
102
|
+
"padding-left": string;
|
|
103
|
+
"padding-right": string;
|
|
104
|
+
"padding-bottom": string;
|
|
105
|
+
};
|
|
106
|
+
"inner-table": {
|
|
107
|
+
width: string;
|
|
108
|
+
margin: string;
|
|
109
|
+
};
|
|
110
|
+
"inner-div": {
|
|
111
|
+
"background-color": string;
|
|
112
|
+
float: string;
|
|
113
|
+
margin: string;
|
|
114
|
+
width: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
getBackground: () => {
|
|
118
|
+
"background-color": string;
|
|
119
|
+
"background-url": string;
|
|
120
|
+
"background-position": string;
|
|
121
|
+
"background-repeat": string;
|
|
122
|
+
"background-size": string;
|
|
123
|
+
};
|
|
124
|
+
renderContent(): JSX.Element;
|
|
125
|
+
renderMode(): JSX.Element;
|
|
126
|
+
renderElement(): JSX.Element;
|
|
127
|
+
}
|