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.
@@ -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"?: "auto" | "fixed" | "initial" | "inherit" | undefined;
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 { Element, TextElement } from "easy-email-pro-core";
2
+ import { TextElement } from "easy-email-pro-core";
3
3
  import { BaseElement } from "../BaseElement";
4
- export declare class Text<T extends Element = TextElement> extends BaseElement<T> {
4
+ export declare class Text extends BaseElement<TextElement> {
5
5
  componentType: string;
6
6
  static endingTag: boolean;
7
7
  static allowedAttributes: {
@@ -24,5 +24,6 @@ export declare class Image extends AtomImage {
24
24
  "mj-class"?: string | undefined;
25
25
  };
26
26
  getAttribute(name: string): string;
27
+ renderWithColumn: (children: React.ReactNode) => React.JSX.Element;
27
28
  renderElement(): React.JSX.Element;
28
29
  }
@@ -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<StandardTextListElement> {
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-editor",
3
- "version": "1.22.2",
3
+ "version": "1.23.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"