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,43 @@
|
|
|
1
|
+
import { BaseEditor, Path, NodeEntry } from "slate";
|
|
2
|
+
import { ReactEditor } from "slate-react";
|
|
3
|
+
import { Element, TextNode } from "easy-email-pro-core";
|
|
4
|
+
import { HistoryEditor } from "slate-history";
|
|
5
|
+
export interface BeacasSlateEditor {
|
|
6
|
+
splitColumns(options: {
|
|
7
|
+
path: Path;
|
|
8
|
+
}): void;
|
|
9
|
+
insertNewLine(options?: {
|
|
10
|
+
path?: Path;
|
|
11
|
+
}): void;
|
|
12
|
+
insertNewRow(options?: {
|
|
13
|
+
path?: Path;
|
|
14
|
+
}): void;
|
|
15
|
+
removeNode(options?: {
|
|
16
|
+
path?: Path;
|
|
17
|
+
}): void;
|
|
18
|
+
filterEmpty(options: {
|
|
19
|
+
path: Path;
|
|
20
|
+
}): void;
|
|
21
|
+
insertMergetag(options: {
|
|
22
|
+
path?: Path;
|
|
23
|
+
mergetag: string;
|
|
24
|
+
}): void;
|
|
25
|
+
replaceNode(options: {
|
|
26
|
+
path: Path;
|
|
27
|
+
node: Partial<Element>;
|
|
28
|
+
}): void;
|
|
29
|
+
moveNode(options: {
|
|
30
|
+
at: Path;
|
|
31
|
+
to: Path;
|
|
32
|
+
}): void;
|
|
33
|
+
getSelectionRect(): null | DOMRect;
|
|
34
|
+
getSelectedBlockElement(): null | NodeEntry<Element>;
|
|
35
|
+
}
|
|
36
|
+
export type CustomSlateEditor = BaseEditor & ReactEditor & HistoryEditor & BeacasSlateEditor;
|
|
37
|
+
declare module "slate" {
|
|
38
|
+
interface CustomTypes {
|
|
39
|
+
Editor: CustomSlateEditor;
|
|
40
|
+
Element: Element;
|
|
41
|
+
Text: TextNode;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MergetagItem } from "../components/BeacasEditorProvider";
|
|
3
|
+
import { TextFormat } from "../constants";
|
|
4
|
+
import type { Element, ExtendedType, MergetagElement, PageElement } from "easy-email-pro-core";
|
|
5
|
+
import { BaseSelection, Path } from "slate";
|
|
6
|
+
import { EditableProps } from "slate-react/dist/components/editable";
|
|
7
|
+
import { CustomSlateEditor } from "./custom-types";
|
|
8
|
+
export * from "./custom-types";
|
|
9
|
+
export interface CustomEditorTypes {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface BasicEmailTemplate {
|
|
13
|
+
content: PageElement;
|
|
14
|
+
subject: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BasicEditorProps extends Partial<Pick<EditableProps, "onDOMBeforeInput" | "onKeyDown">> {
|
|
17
|
+
onUpload?: (blob: Blob) => Promise<string>;
|
|
18
|
+
onSubmit: (values: EmailTemplate) => void;
|
|
19
|
+
onPageChange?: (content: EmailTemplate["content"], editor: CustomSlateEditor) => void;
|
|
20
|
+
fontList?: {
|
|
21
|
+
value: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
fontSizeList?: string[];
|
|
25
|
+
localeData?: Record<string, string>;
|
|
26
|
+
initialValues: EmailTemplate;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
loading?: React.ReactNode;
|
|
29
|
+
editor: CustomSlateEditor;
|
|
30
|
+
footer?: React.ReactNode;
|
|
31
|
+
ElementPlaceholder?: React.FC<{
|
|
32
|
+
element: Element;
|
|
33
|
+
isSelected: boolean;
|
|
34
|
+
isHover: boolean;
|
|
35
|
+
nodeElement: HTMLElement;
|
|
36
|
+
path: Path;
|
|
37
|
+
}>;
|
|
38
|
+
ElementHover?: React.FC<{
|
|
39
|
+
element: Element;
|
|
40
|
+
isSelected: boolean;
|
|
41
|
+
nodeElement: HTMLElement;
|
|
42
|
+
path: Path;
|
|
43
|
+
}>;
|
|
44
|
+
ElementSelected?: React.FC<{
|
|
45
|
+
element: Element;
|
|
46
|
+
isHover: boolean;
|
|
47
|
+
nodeElement: HTMLElement;
|
|
48
|
+
path: Path;
|
|
49
|
+
}>;
|
|
50
|
+
MergetagPopover?: React.FC<{
|
|
51
|
+
element: MergetagElement;
|
|
52
|
+
onSave: (val?: string) => void;
|
|
53
|
+
}>;
|
|
54
|
+
interactiveStyle?: {
|
|
55
|
+
hoverColor?: string;
|
|
56
|
+
selectedColor?: string;
|
|
57
|
+
dragColor?: string;
|
|
58
|
+
};
|
|
59
|
+
withEnhanceEditor?: (editor: CustomSlateEditor, props: EmailEditorProps) => CustomSlateEditor;
|
|
60
|
+
hoveringToolbar?: {
|
|
61
|
+
prefix?: React.ReactNode;
|
|
62
|
+
list?: (params: {
|
|
63
|
+
isCollapsed?: boolean;
|
|
64
|
+
selection: BaseSelection;
|
|
65
|
+
}) => Array<TextFormat>;
|
|
66
|
+
subfix?: React.ReactNode;
|
|
67
|
+
};
|
|
68
|
+
mergetags?: MergetagItem[];
|
|
69
|
+
mergetagsData?: Record<string, any>;
|
|
70
|
+
newLineWithBr?: boolean;
|
|
71
|
+
universalElementSetting?: {
|
|
72
|
+
elements: Record<string, Element>;
|
|
73
|
+
};
|
|
74
|
+
readOnly?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export type EmailTemplate = ExtendedType<"EmailTemplate", BasicEmailTemplate, CustomEditorTypes>;
|
|
77
|
+
export type EmailEditorProps = ExtendedType<"EmailEditorProps", BasicEditorProps, CustomEditorTypes>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
limit?: number;
|
|
3
|
+
accept?: string;
|
|
4
|
+
minSize?: number;
|
|
5
|
+
maxSize?: number;
|
|
6
|
+
autoUpload?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type UploadItem = {
|
|
9
|
+
idx: string;
|
|
10
|
+
url: string;
|
|
11
|
+
status: 'pending' | 'done' | 'error';
|
|
12
|
+
};
|
|
13
|
+
export type UploaderEventMap = {
|
|
14
|
+
start: (data: UploadItem[]) => void;
|
|
15
|
+
progress: (data: UploadItem[]) => void;
|
|
16
|
+
end: (data: UploadItem[]) => void;
|
|
17
|
+
};
|
|
18
|
+
export type UploaderServer = (file: File) => Promise<string>;
|
|
19
|
+
export declare class Uploader {
|
|
20
|
+
private options;
|
|
21
|
+
private el;
|
|
22
|
+
private uploadServer;
|
|
23
|
+
private handler;
|
|
24
|
+
constructor(uploadServer: UploaderServer, options: Options);
|
|
25
|
+
private createInput;
|
|
26
|
+
uploadFiles(files: File[]): Promise<void>;
|
|
27
|
+
private uploadFile;
|
|
28
|
+
private checkFile;
|
|
29
|
+
private checkTypes;
|
|
30
|
+
private checkSize;
|
|
31
|
+
chooseFile(): void;
|
|
32
|
+
on<K extends keyof UploaderEventMap>(event: K, fn: UploaderEventMap[K]): void;
|
|
33
|
+
off<K extends keyof UploaderEventMap>(event: K, fn: UploaderEventMap[K]): void;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function classnames(...rest: any[]): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const startConditionalTag = "<!--[if mso | IE]>";
|
|
3
|
+
export declare const startMsoConditionalTag = "<!--[if mso]>";
|
|
4
|
+
export declare const endConditionalTag = "<![endif]-->";
|
|
5
|
+
export declare const startNegationConditionalTag = "<!--[if !mso | IE]><!-->";
|
|
6
|
+
export declare const startMsoNegationConditionalTag = "<!--[if !mso><!-->";
|
|
7
|
+
export declare const endNegationConditionalTag = "<!--<![endif]-->";
|
|
8
|
+
export default function conditionalTag(content: string, negation?: boolean): string;
|
|
9
|
+
export declare function msoConditionalTag(content: React.ReactNode, negation?: boolean): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildFontsTags(content: string, inlineStyle: string[], fonts?: {}): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatAttributes: (attributes: Record<string, string>, allowedAttributes: Record<string, string>) => {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function makeLowerBreakpoint(breakpoint: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function buildMediaQueriesTags(breakpoint: string, mediaQueries?: Record<string, string>): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: () => {
|
|
3
|
+
new (boolean: any): {
|
|
4
|
+
isValid: () => boolean;
|
|
5
|
+
matchers: RegExp[];
|
|
6
|
+
value: any;
|
|
7
|
+
errorMessage?: string | undefined;
|
|
8
|
+
getErrorMessage: () => string | undefined;
|
|
9
|
+
getValue: () => any;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: () => {
|
|
3
|
+
new (color: string): {
|
|
4
|
+
getValue: () => string;
|
|
5
|
+
matchers: RegExp[];
|
|
6
|
+
value: string;
|
|
7
|
+
errorMessage?: string | undefined;
|
|
8
|
+
isValid: () => boolean;
|
|
9
|
+
getErrorMessage: () => string | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: (params: string) => {
|
|
3
|
+
new (value: string): {
|
|
4
|
+
matchers: RegExp[];
|
|
5
|
+
value: string;
|
|
6
|
+
errorMessage?: string | undefined;
|
|
7
|
+
isValid: () => boolean;
|
|
8
|
+
getErrorMessage: () => string | undefined;
|
|
9
|
+
getValue: () => string;
|
|
10
|
+
};
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const validation: {
|
|
2
|
+
boolean: {
|
|
3
|
+
matcher: RegExp;
|
|
4
|
+
typeConstructor: () => {
|
|
5
|
+
new (boolean: any): {
|
|
6
|
+
isValid: () => boolean;
|
|
7
|
+
matchers: RegExp[];
|
|
8
|
+
value: any;
|
|
9
|
+
errorMessage?: string | undefined;
|
|
10
|
+
getErrorMessage: () => string | undefined;
|
|
11
|
+
getValue: () => any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
enum: {
|
|
16
|
+
matcher: RegExp;
|
|
17
|
+
typeConstructor: (params: string) => {
|
|
18
|
+
new (value: string): {
|
|
19
|
+
matchers: RegExp[];
|
|
20
|
+
value: string;
|
|
21
|
+
errorMessage?: string | undefined;
|
|
22
|
+
isValid: () => boolean;
|
|
23
|
+
getErrorMessage: () => string | undefined;
|
|
24
|
+
getValue: () => string;
|
|
25
|
+
};
|
|
26
|
+
errorMessage: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
color: {
|
|
30
|
+
matcher: RegExp;
|
|
31
|
+
typeConstructor: () => {
|
|
32
|
+
new (color: string): {
|
|
33
|
+
getValue: () => string;
|
|
34
|
+
matchers: RegExp[];
|
|
35
|
+
value: string;
|
|
36
|
+
errorMessage?: string | undefined;
|
|
37
|
+
isValid: () => boolean;
|
|
38
|
+
getErrorMessage: () => string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
unit: {
|
|
43
|
+
matcher: RegExp;
|
|
44
|
+
typeConstructor: (params: string) => {
|
|
45
|
+
new (value: string): {
|
|
46
|
+
errorMessage: string;
|
|
47
|
+
matchers: RegExp[];
|
|
48
|
+
value: string;
|
|
49
|
+
isValid: () => boolean;
|
|
50
|
+
getErrorMessage: () => string | undefined;
|
|
51
|
+
getValue: () => string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
string: {
|
|
56
|
+
matcher: RegExp;
|
|
57
|
+
typeConstructor: () => {
|
|
58
|
+
new (value: string): {
|
|
59
|
+
matchers: RegExp[];
|
|
60
|
+
value: string;
|
|
61
|
+
errorMessage?: string | undefined;
|
|
62
|
+
isValid: () => boolean;
|
|
63
|
+
getErrorMessage: () => string | undefined;
|
|
64
|
+
getValue: () => string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
integer: {
|
|
69
|
+
matcher: RegExp;
|
|
70
|
+
typeConstructor: () => {
|
|
71
|
+
new (value: number): {
|
|
72
|
+
matchers: RegExp[];
|
|
73
|
+
value: number;
|
|
74
|
+
errorMessage?: string | undefined;
|
|
75
|
+
isValid: () => boolean;
|
|
76
|
+
getErrorMessage: () => string | undefined;
|
|
77
|
+
getValue: () => number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export { validation };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: () => {
|
|
3
|
+
new (value: number): {
|
|
4
|
+
matchers: RegExp[];
|
|
5
|
+
value: number;
|
|
6
|
+
errorMessage?: string | undefined;
|
|
7
|
+
isValid: () => boolean;
|
|
8
|
+
getErrorMessage: () => string | undefined;
|
|
9
|
+
getValue: () => number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: () => {
|
|
3
|
+
new (value: string): {
|
|
4
|
+
matchers: RegExp[];
|
|
5
|
+
value: string;
|
|
6
|
+
errorMessage?: string | undefined;
|
|
7
|
+
isValid: () => boolean;
|
|
8
|
+
getErrorMessage: () => string | undefined;
|
|
9
|
+
getValue: () => string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const types: any;
|
|
2
|
+
export declare const initializeType: (typeConfig: any) => any;
|
|
3
|
+
export default class Type<T extends string | number | boolean> {
|
|
4
|
+
matchers: RegExp[];
|
|
5
|
+
value: T;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
constructor(value: T);
|
|
8
|
+
isValid: () => boolean;
|
|
9
|
+
getErrorMessage: () => string | undefined;
|
|
10
|
+
getValue: () => T;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const matcher: RegExp;
|
|
2
|
+
declare const _default: (params: string) => {
|
|
3
|
+
new (value: string): {
|
|
4
|
+
errorMessage: string;
|
|
5
|
+
matchers: RegExp[];
|
|
6
|
+
value: string;
|
|
7
|
+
isValid: () => boolean;
|
|
8
|
+
getErrorMessage: () => string | undefined;
|
|
9
|
+
getValue: () => string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "easy-email-pro-editor",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"files": [
|
|
6
|
+
"lib"
|
|
7
|
+
],
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"types": "lib/typings/index.d.ts",
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"axios": "^1.2.2",
|
|
14
|
+
"color": "^4.2.3",
|
|
15
|
+
"he": "^1.2.0",
|
|
16
|
+
"is-hotkey": "^0.2.0",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"overlayscrollbars": "^1.13.2",
|
|
19
|
+
"overlayscrollbars-react": "^0.3.0",
|
|
20
|
+
"parse5": "^7.1.2",
|
|
21
|
+
"react-attr-converter": "^0.3.1"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^18.2.0",
|
|
25
|
+
"react-dom": "^18.2.0"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "vite build && npm run typings",
|
|
29
|
+
"typings": "tsc --declaration --emitDeclarationOnly --project tsconfig.alias.json && tsc-alias -p tsconfig.alias.json",
|
|
30
|
+
"lint": "eslint --fix --ext .tsx,.ts src/"
|
|
31
|
+
}
|
|
32
|
+
}
|