easy-email-pro-core 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.cjs.js +105 -0
- package/lib/index.es.js +7244 -0
- package/lib/typings/blocks/basic/Button/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Column/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Divider/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Group/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Hero/index.d.ts +2 -0
- package/lib/typings/blocks/basic/HtmlNode/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Image/index.d.ts +2 -0
- package/lib/typings/blocks/basic/LineBreak/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Mergetag/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Navbar/index.d.ts +2 -0
- package/lib/typings/blocks/basic/NavbarLink/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Page/index.d.ts +3 -0
- package/lib/typings/blocks/basic/Placeholder/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Raw/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Section/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Social/index.d.ts +2 -0
- package/lib/typings/blocks/basic/SocialElement/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Spacer/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Text/index.d.ts +2 -0
- package/lib/typings/blocks/basic/Wrapper/index.d.ts +2 -0
- package/lib/typings/blocks/basic/index.d.ts +23 -0
- package/lib/typings/blocks/index.d.ts +45 -0
- package/lib/typings/blocks/logic/ForEach/index.d.ts +3 -0
- package/lib/typings/blocks/logic/Show/index.d.ts +2 -0
- package/lib/typings/blocks/logic/index.d.ts +5 -0
- package/lib/typings/blocks/standard/Button/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Column/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Divider/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Group/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Hero/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Image/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Navbar/index.d.ts +2 -0
- package/lib/typings/blocks/standard/NavbarLink/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Section/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Social/index.d.ts +2 -0
- package/lib/typings/blocks/standard/SocialElement/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Spacer/index.d.ts +2 -0
- package/lib/typings/blocks/standard/Text/generateTextBlock.d.ts +4 -0
- package/lib/typings/blocks/standard/Text/index.d.ts +7 -0
- package/lib/typings/blocks/standard/TextList/TextListItem.d.ts +2 -0
- package/lib/typings/blocks/standard/TextList/index.d.ts +3 -0
- package/lib/typings/blocks/standard/Wrapper/index.d.ts +2 -0
- package/lib/typings/blocks/standard/index.d.ts +24 -0
- package/lib/typings/components/BasicBlock.d.ts +7 -0
- package/lib/typings/components/BlockRenderer.d.ts +9 -0
- package/lib/typings/components/ContentEditableBlock.d.ts +4 -0
- package/lib/typings/components/ContentLeaf.d.ts +4 -0
- package/lib/typings/components/Elements/Button.d.ts +9 -0
- package/lib/typings/components/Elements/Column.d.ts +8 -0
- package/lib/typings/components/Elements/Divider.d.ts +8 -0
- package/lib/typings/components/Elements/ForEach.d.ts +6 -0
- package/lib/typings/components/Elements/Group.d.ts +8 -0
- package/lib/typings/components/Elements/Hero.d.ts +8 -0
- package/lib/typings/components/Elements/HtmlNode.d.ts +9 -0
- package/lib/typings/components/Elements/Image.d.ts +8 -0
- package/lib/typings/components/Elements/Navbar.d.ts +8 -0
- package/lib/typings/components/Elements/NavbarLink.d.ts +8 -0
- package/lib/typings/components/Elements/Raw.d.ts +8 -0
- package/lib/typings/components/Elements/Section.d.ts +8 -0
- package/lib/typings/components/Elements/Show.d.ts +6 -0
- package/lib/typings/components/Elements/Social.d.ts +8 -0
- package/lib/typings/components/Elements/SocialElement.d.ts +8 -0
- package/lib/typings/components/Elements/Spacer.d.ts +8 -0
- package/lib/typings/components/Elements/Text.d.ts +8 -0
- package/lib/typings/components/Elements/Wrapper.d.ts +8 -0
- package/lib/typings/components/Elements/index.d.ts +19 -0
- package/lib/typings/components/index.d.ts +5 -0
- package/lib/typings/constants/blockCategory.d.ts +20 -0
- package/lib/typings/constants/blockType.d.ts +100 -0
- package/lib/typings/constants/editor.d.ts +1 -0
- package/lib/typings/constants/index.d.ts +4 -0
- package/lib/typings/constants/regexp.d.ts +2 -0
- package/lib/typings/constants/responsive.d.ts +4 -0
- package/lib/typings/index.d.ts +8 -0
- package/lib/typings/typings/custom-types.d.ts +22 -0
- package/lib/typings/typings/element-logic.d.ts +38 -0
- package/lib/typings/typings/element.d.ts +609 -0
- package/lib/typings/typings/helper.d.ts +6 -0
- package/lib/typings/typings/index.d.ts +35 -0
- package/lib/typings/typings/mergeTagGenerate.d.ts +18 -0
- package/lib/typings/utils/BeacasCore/contexts/EmailGlobalContext.d.ts +32 -0
- package/lib/typings/utils/BeacasCore/contexts/EmailRenderContext.d.ts +18 -0
- package/lib/typings/utils/BeacasCore/index.d.ts +14 -0
- package/lib/typings/utils/BeacasCore/universalElement.d.ts +11 -0
- package/lib/typings/utils/BlockManager.d.ts +7 -0
- package/lib/typings/utils/I18nManager.d.ts +9 -0
- package/lib/typings/utils/NodeUtils.d.ts +37 -0
- package/lib/typings/utils/classnames.d.ts +1 -0
- package/lib/typings/utils/createBlock.d.ts +5 -0
- package/lib/typings/utils/getAdapterAttributesString.d.ts +10 -0
- package/lib/typings/utils/index.d.ts +9 -0
- package/lib/typings/utils/isProductionMode.d.ts +15 -0
- package/lib/typings/utils/isValidReactChildren.d.ts +2 -0
- package/lib/typings/utils/mergeBlock.d.ts +2 -0
- package/lib/typings/utils/plugins/PluginManager.d.ts +43 -0
- package/lib/typings/utils/plugins/TemplateEngine.d.ts +9 -0
- package/lib/typings/utils/plugins/index.d.ts +2 -0
- package/package.json +34 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export declare const BasicType: {
|
|
2
|
+
PAGE: "page";
|
|
3
|
+
SECTION: "section";
|
|
4
|
+
COLUMN: "column";
|
|
5
|
+
GROUP: "group";
|
|
6
|
+
TEXT: "text";
|
|
7
|
+
IMAGE: "image";
|
|
8
|
+
DIVIDER: "divider";
|
|
9
|
+
SPACER: "spacer";
|
|
10
|
+
BUTTON: "button";
|
|
11
|
+
WRAPPER: "wrapper";
|
|
12
|
+
RAW: "raw";
|
|
13
|
+
HERO: "hero";
|
|
14
|
+
CAROUSEL: "carousel";
|
|
15
|
+
NAVBAR: "navbar";
|
|
16
|
+
NAVBAR_LINK: "navbar-link";
|
|
17
|
+
SOCIAL: "social";
|
|
18
|
+
SOCIAL_ELEMENT: "social-element";
|
|
19
|
+
MERGETAG: "mergetag";
|
|
20
|
+
LINE_BREAK: "line-break";
|
|
21
|
+
PLACEHOLDER: "placeholder";
|
|
22
|
+
TABLE: "table";
|
|
23
|
+
HTML_NODE: "html-node";
|
|
24
|
+
WIDGET: "widget";
|
|
25
|
+
};
|
|
26
|
+
export declare const StandardType: {
|
|
27
|
+
STANDARD_HERO: "standard-hero";
|
|
28
|
+
STANDARD_WRAPPER: "standard-wrapper";
|
|
29
|
+
STANDARD_SECTION: "standard-section";
|
|
30
|
+
STANDARD_GROUP: "standard-group";
|
|
31
|
+
STANDARD_COLUMN: "standard-column";
|
|
32
|
+
STANDARD_IMAGE: "standard-image";
|
|
33
|
+
STANDARD_DIVIDER: "standard-divider";
|
|
34
|
+
STANDARD_SPACER: "standard-spacer";
|
|
35
|
+
STANDARD_NAVBAR: "standard-navbar";
|
|
36
|
+
STANDARD_NAVBAR_LINK: "standard-navbar-link";
|
|
37
|
+
STANDARD_SOCIAL: "standard-social";
|
|
38
|
+
STANDARD_SOCIAL_ELEMENT: "standard-social-element";
|
|
39
|
+
STANDARD_BUTTON: "standard-button";
|
|
40
|
+
STANDARD_TEXT: "standard-text";
|
|
41
|
+
STANDARD_PARAGRAPH: "standard-paragraph";
|
|
42
|
+
STANDARD_H1: "standard-h1";
|
|
43
|
+
STANDARD_H2: "standard-h2";
|
|
44
|
+
STANDARD_H3: "standard-h3";
|
|
45
|
+
STANDARD_H4: "standard-h4";
|
|
46
|
+
STANDARD_TEXT_LIST: "standard-text-list";
|
|
47
|
+
STANDARD_TEXT_LIST_ITEM: "standard-text-list-item";
|
|
48
|
+
};
|
|
49
|
+
export declare const LogicType: {
|
|
50
|
+
FOR_EACH: "logic-for-each";
|
|
51
|
+
SHOW: "logic-show";
|
|
52
|
+
};
|
|
53
|
+
export declare const ElementType: {
|
|
54
|
+
FOR_EACH: "logic-for-each";
|
|
55
|
+
SHOW: "logic-show";
|
|
56
|
+
STANDARD_HERO: "standard-hero";
|
|
57
|
+
STANDARD_WRAPPER: "standard-wrapper";
|
|
58
|
+
STANDARD_SECTION: "standard-section";
|
|
59
|
+
STANDARD_GROUP: "standard-group";
|
|
60
|
+
STANDARD_COLUMN: "standard-column";
|
|
61
|
+
STANDARD_IMAGE: "standard-image";
|
|
62
|
+
STANDARD_DIVIDER: "standard-divider";
|
|
63
|
+
STANDARD_SPACER: "standard-spacer";
|
|
64
|
+
STANDARD_NAVBAR: "standard-navbar";
|
|
65
|
+
STANDARD_NAVBAR_LINK: "standard-navbar-link";
|
|
66
|
+
STANDARD_SOCIAL: "standard-social";
|
|
67
|
+
STANDARD_SOCIAL_ELEMENT: "standard-social-element";
|
|
68
|
+
STANDARD_BUTTON: "standard-button";
|
|
69
|
+
STANDARD_TEXT: "standard-text";
|
|
70
|
+
STANDARD_PARAGRAPH: "standard-paragraph";
|
|
71
|
+
STANDARD_H1: "standard-h1";
|
|
72
|
+
STANDARD_H2: "standard-h2";
|
|
73
|
+
STANDARD_H3: "standard-h3";
|
|
74
|
+
STANDARD_H4: "standard-h4";
|
|
75
|
+
STANDARD_TEXT_LIST: "standard-text-list";
|
|
76
|
+
STANDARD_TEXT_LIST_ITEM: "standard-text-list-item";
|
|
77
|
+
PAGE: "page";
|
|
78
|
+
SECTION: "section";
|
|
79
|
+
COLUMN: "column";
|
|
80
|
+
GROUP: "group";
|
|
81
|
+
TEXT: "text";
|
|
82
|
+
IMAGE: "image";
|
|
83
|
+
DIVIDER: "divider";
|
|
84
|
+
SPACER: "spacer";
|
|
85
|
+
BUTTON: "button";
|
|
86
|
+
WRAPPER: "wrapper";
|
|
87
|
+
RAW: "raw";
|
|
88
|
+
HERO: "hero";
|
|
89
|
+
CAROUSEL: "carousel";
|
|
90
|
+
NAVBAR: "navbar";
|
|
91
|
+
NAVBAR_LINK: "navbar-link";
|
|
92
|
+
SOCIAL: "social";
|
|
93
|
+
SOCIAL_ELEMENT: "social-element";
|
|
94
|
+
MERGETAG: "mergetag";
|
|
95
|
+
LINE_BREAK: "line-break";
|
|
96
|
+
PLACEHOLDER: "placeholder";
|
|
97
|
+
TABLE: "table";
|
|
98
|
+
HTML_NODE: "html-node";
|
|
99
|
+
WIDGET: "widget";
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CONTENT_EDITABLE_CLASSNAME = "beacas_preview_content_editable";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const HIDE_DESKTOP_BLOCK_CLASS_NAME = "hide-desktop-block";
|
|
2
|
+
export declare const HIDE_MOBILE_BLOCK_CLASS_NAME = "hide-mobile-block";
|
|
3
|
+
export declare const HIDE_DESKTOP_INLINE_BLOCK_CLASS_NAME = "hide-desktop-inline-block";
|
|
4
|
+
export declare const HIDE_MOBILE_INLINE_BLOCK_CLASS_NAME = "hide-mobile-inline-block";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { useEmailRenderContext, EmailRenderProvider, } from "./utils/BeacasCore/contexts/EmailRenderContext";
|
|
2
|
+
export * from "./utils";
|
|
3
|
+
export * from "./blocks";
|
|
4
|
+
export * from "./constants";
|
|
5
|
+
export * from "./utils";
|
|
6
|
+
export * as components from "./components";
|
|
7
|
+
export * from "./typings";
|
|
8
|
+
export { PageTestingCss } from "./blocks/basic/Page";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { blockMap } from "../blocks";
|
|
2
|
+
import { InternalElement, TextNode } from "./element";
|
|
3
|
+
export interface CustomTypes {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export type Element = ExtendedType<"Element", InternalElement, CustomTypes> | InternalElement;
|
|
7
|
+
export type ExtendedType<K extends string, B, CT extends {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}> = unknown extends CT[K] ? B : CT[K];
|
|
10
|
+
export type InternalBlockMap = typeof blockMap;
|
|
11
|
+
declare module "slate" {
|
|
12
|
+
interface CustomTypes {
|
|
13
|
+
Element: Element;
|
|
14
|
+
Text: TextNode;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export type PickObjectValueByKey<T, K extends keyof T> = T[K];
|
|
18
|
+
export type UnionObjectToKeyObject<T extends Record<string, any>, Key extends keyof T> = {
|
|
19
|
+
[K in PickObjectValueByKey<T, Key>]: Extract<Element, {
|
|
20
|
+
type: K;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface LogicIteration {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
dataSource: string;
|
|
4
|
+
itemName: string;
|
|
5
|
+
limit: number;
|
|
6
|
+
mockQuantity: number;
|
|
7
|
+
}
|
|
8
|
+
export interface LogicComponentCondition {
|
|
9
|
+
expression: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LogicCondition {
|
|
12
|
+
groups: Array<LogicConditionGroup>;
|
|
13
|
+
symbol: ConditionOperatorSymbol;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface LogicConditionGroup {
|
|
17
|
+
symbol: ConditionOperatorSymbol;
|
|
18
|
+
groups: Array<LogicConditionGroupItem>;
|
|
19
|
+
}
|
|
20
|
+
export interface LogicConditionGroupItem {
|
|
21
|
+
left: string;
|
|
22
|
+
operator: ConditionOperator;
|
|
23
|
+
right: string | number;
|
|
24
|
+
}
|
|
25
|
+
export declare enum ConditionOperator {
|
|
26
|
+
TRUTHY = "truthy",
|
|
27
|
+
FALSY = "falsy",
|
|
28
|
+
EQUAL = "==",
|
|
29
|
+
NOT_EQUAL = "!=",
|
|
30
|
+
GREATER = ">",
|
|
31
|
+
GREATER_OR_EQUAL = ">=",
|
|
32
|
+
LESS = "<",
|
|
33
|
+
LESS_OR_EQUAL = "<="
|
|
34
|
+
}
|
|
35
|
+
export declare enum ConditionOperatorSymbol {
|
|
36
|
+
AND = "and",
|
|
37
|
+
OR = "or"
|
|
38
|
+
}
|