easy-email-pro-editor 1.22.2 → 1.23.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 +2620 -2568
- package/lib/typings/components/Elements/atom/Table.d.ts +1 -1
- package/lib/typings/components/Elements/atom/Text.d.ts +2 -2
- package/lib/typings/components/Elements/basic/Image.d.ts +1 -0
- package/lib/typings/components/Elements/basic/TextList/index.d.ts +2 -2
- package/lib/typings/typings/custom-types.d.ts +5 -0
- package/lib/typings/typings/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ export declare class Table extends BaseElement<TableElement> {
|
|
|
47
47
|
cellpadding?: string | undefined;
|
|
48
48
|
cellspacing?: string | undefined;
|
|
49
49
|
role?: "none" | "presentation" | undefined;
|
|
50
|
-
"table-layout"?: "
|
|
50
|
+
"table-layout"?: "fixed" | "auto" | "initial" | "inherit" | undefined;
|
|
51
51
|
"css-class"?: string | undefined;
|
|
52
52
|
"mj-class"?: string | undefined;
|
|
53
53
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { TextElement } from "easy-email-pro-core";
|
|
3
3
|
import { BaseElement } from "../BaseElement";
|
|
4
|
-
export declare class Text
|
|
4
|
+
export declare class Text extends BaseElement<TextElement> {
|
|
5
5
|
componentType: string;
|
|
6
6
|
static endingTag: boolean;
|
|
7
7
|
static allowedAttributes: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { StandardTextListElement } from "easy-email-pro-core";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { Text as AtomText } from "../../atom";
|
|
4
|
-
export declare class TextList extends AtomText
|
|
3
|
+
export declare class TextList extends AtomText {
|
|
5
4
|
static allowedAttributes: {
|
|
6
5
|
"list-style": string;
|
|
7
6
|
align: string;
|
|
@@ -43,6 +42,7 @@ export declare class TextList extends AtomText<StandardTextListElement> {
|
|
|
43
42
|
"padding-bottom"?: string | undefined;
|
|
44
43
|
"padding-left"?: string | undefined;
|
|
45
44
|
"padding-right"?: string | undefined;
|
|
45
|
+
"list-style": "number" | "circle";
|
|
46
46
|
"css-class"?: string | undefined;
|
|
47
47
|
"mj-class"?: string | undefined;
|
|
48
48
|
};
|
|
@@ -15,6 +15,11 @@ export interface SlateEditor {
|
|
|
15
15
|
removeNode(options: {
|
|
16
16
|
path: Path;
|
|
17
17
|
}): void;
|
|
18
|
+
splitNodesByCategoryType(options: {
|
|
19
|
+
path: Path;
|
|
20
|
+
targetCategoryType: ElementCategoryType;
|
|
21
|
+
insertElement?: Element;
|
|
22
|
+
}): void;
|
|
18
23
|
findSelfOrAncestorNodeByCategory(options: {
|
|
19
24
|
path: Path;
|
|
20
25
|
category: ElementCategoryType;
|
|
@@ -74,6 +74,7 @@ export interface BasicEditorProps extends Partial<Pick<EditableProps, "onDOMBefo
|
|
|
74
74
|
selection: BaseSelection;
|
|
75
75
|
}) => Array<TextFormat | React.FC>;
|
|
76
76
|
subfix?: React.ReactNode;
|
|
77
|
+
fixed?: boolean;
|
|
77
78
|
};
|
|
78
79
|
mergetags?: MergetagItem[];
|
|
79
80
|
mergetagsData?: Record<string, any>;
|