easy-email-pro-editor 1.49.3 → 1.49.4
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 +3230 -3162
- package/lib/typings/components/Elements/atom/HtmlBlockNode.d.ts +6 -6
- package/lib/typings/components/Elements/atom/HtmlNode.d.ts +3 -3
- package/lib/typings/components/Elements/basic/HTMLDomNode.d.ts +3 -3
- package/lib/typings/constants/index.d.ts +4 -0
- package/lib/typings/contexts/index.d.ts +0 -1
- package/lib/typings/hooks/index.d.ts +1 -0
- package/lib/typings/hooks/useEditorActions.d.ts +22 -0
- package/lib/typings/hooks/useEditorState.d.ts +1 -1
- package/lib/typings/index.d.ts +1 -0
- package/lib/typings/store/index.d.ts +1 -0
- package/lib/typings/store/useEditorStateStore.d.ts +23 -0
- package/package.json +1 -1
|
@@ -53,7 +53,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
53
53
|
results?: number | undefined;
|
|
54
54
|
security?: string | undefined;
|
|
55
55
|
unselectable?: "on" | "off" | undefined;
|
|
56
|
-
inputMode?: "text" | "
|
|
56
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
57
57
|
is?: string | undefined;
|
|
58
58
|
"aria-activedescendant"?: string | undefined;
|
|
59
59
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -67,7 +67,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
67
67
|
"aria-colindextext"?: string | undefined;
|
|
68
68
|
"aria-colspan"?: number | undefined;
|
|
69
69
|
"aria-controls"?: string | undefined;
|
|
70
|
-
"aria-current"?: boolean | "page" | "
|
|
70
|
+
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" | "time" | undefined;
|
|
71
71
|
"aria-describedby"?: string | undefined;
|
|
72
72
|
"aria-description"?: string | undefined;
|
|
73
73
|
"aria-details"?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
77
77
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
"aria-flowto"?: string | undefined;
|
|
79
79
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
80
|
-
"aria-haspopup"?: boolean | "
|
|
80
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
81
81
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
82
82
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
83
83
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -326,7 +326,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
326
326
|
results?: number | undefined;
|
|
327
327
|
security?: string | undefined;
|
|
328
328
|
unselectable?: "on" | "off" | undefined;
|
|
329
|
-
inputMode?: "text" | "
|
|
329
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
330
330
|
is?: string | undefined;
|
|
331
331
|
"aria-activedescendant"?: string | undefined;
|
|
332
332
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -340,7 +340,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
340
340
|
"aria-colindextext"?: string | undefined;
|
|
341
341
|
"aria-colspan"?: number | undefined;
|
|
342
342
|
"aria-controls"?: string | undefined;
|
|
343
|
-
"aria-current"?: boolean | "page" | "
|
|
343
|
+
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" | "time" | undefined;
|
|
344
344
|
"aria-describedby"?: string | undefined;
|
|
345
345
|
"aria-description"?: string | undefined;
|
|
346
346
|
"aria-details"?: string | undefined;
|
|
@@ -350,7 +350,7 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
350
350
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
351
351
|
"aria-flowto"?: string | undefined;
|
|
352
352
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
353
|
-
"aria-haspopup"?: boolean | "
|
|
353
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
354
354
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
355
355
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
356
356
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare class HtmlNode extends BaseElement<HtmlNodeElement> {
|
|
|
53
53
|
results?: number | undefined;
|
|
54
54
|
security?: string | undefined;
|
|
55
55
|
unselectable?: "on" | "off" | undefined;
|
|
56
|
-
inputMode?: "text" | "
|
|
56
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
57
57
|
is?: string | undefined;
|
|
58
58
|
"aria-activedescendant"?: string | undefined;
|
|
59
59
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -67,7 +67,7 @@ export declare class HtmlNode extends BaseElement<HtmlNodeElement> {
|
|
|
67
67
|
"aria-colindextext"?: string | undefined;
|
|
68
68
|
"aria-colspan"?: number | undefined;
|
|
69
69
|
"aria-controls"?: string | undefined;
|
|
70
|
-
"aria-current"?: boolean | "page" | "
|
|
70
|
+
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" | "time" | undefined;
|
|
71
71
|
"aria-describedby"?: string | undefined;
|
|
72
72
|
"aria-description"?: string | undefined;
|
|
73
73
|
"aria-details"?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare class HtmlNode extends BaseElement<HtmlNodeElement> {
|
|
|
77
77
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
"aria-flowto"?: string | undefined;
|
|
79
79
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
80
|
-
"aria-haspopup"?: boolean | "
|
|
80
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
81
81
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
82
82
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
83
83
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare class HTMLDomNode extends BaseElement<HTMLDomNodeElement> {
|
|
|
53
53
|
results?: number | undefined;
|
|
54
54
|
security?: string | undefined;
|
|
55
55
|
unselectable?: "on" | "off" | undefined;
|
|
56
|
-
inputMode?: "text" | "
|
|
56
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
57
57
|
is?: string | undefined;
|
|
58
58
|
"aria-activedescendant"?: string | undefined;
|
|
59
59
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -67,7 +67,7 @@ export declare class HTMLDomNode extends BaseElement<HTMLDomNodeElement> {
|
|
|
67
67
|
"aria-colindextext"?: string | undefined;
|
|
68
68
|
"aria-colspan"?: number | undefined;
|
|
69
69
|
"aria-controls"?: string | undefined;
|
|
70
|
-
"aria-current"?: boolean | "page" | "
|
|
70
|
+
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" | "time" | undefined;
|
|
71
71
|
"aria-describedby"?: string | undefined;
|
|
72
72
|
"aria-description"?: string | undefined;
|
|
73
73
|
"aria-details"?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare class HTMLDomNode extends BaseElement<HTMLDomNodeElement> {
|
|
|
77
77
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
"aria-flowto"?: string | undefined;
|
|
79
79
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
80
|
-
"aria-haspopup"?: boolean | "
|
|
80
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
81
81
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
82
82
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
83
83
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* 返回一个包含所有编辑器动作的对象
|
|
4
|
+
* 这些动作用于更新编辑器状态
|
|
5
|
+
*/
|
|
6
|
+
export declare const useEditorActions: () => {
|
|
7
|
+
setUniversalElementPath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
8
|
+
setStandaloneElementPath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
9
|
+
setSelectedNodePath: (path?: import("slate").Path | null | undefined) => void;
|
|
10
|
+
setHoverNodePath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
11
|
+
setDragNodePath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null>>;
|
|
12
|
+
setDragoverNodePath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null>>;
|
|
13
|
+
setActiveTab: import("react").Dispatch<import("react").SetStateAction<import("../contexts/InteractContext").ActiveTabKeys>>;
|
|
14
|
+
setLock: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
+
setStandaloneElementSaveButton: import("react").Dispatch<import("react").SetStateAction<Partial<{
|
|
16
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
17
|
+
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "className" | "onClick"> & {
|
|
18
|
+
href: string;
|
|
19
|
+
target?: string | undefined;
|
|
20
|
+
anchorProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
|
|
21
|
+
} & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "className" | "onClick">> | null>>;
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useEditorState: () => import("../contexts").InteractContextProps;
|
|
1
|
+
export declare const useEditorState: () => import("../contexts/InteractContext").InteractContextProps;
|
package/lib/typings/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useEditorStateStore";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InteractContextProps } from "../contexts/InteractContext";
|
|
3
|
+
export type EditorStateStore = InteractContextProps;
|
|
4
|
+
export declare const useEditorStateStore: () => InteractContextProps;
|
|
5
|
+
export declare const useUniversalElementPath: () => import("slate").Path | null | undefined;
|
|
6
|
+
export declare const useUniversalElement: () => import("../easy-email-pro-core/lib/typings").Element | null;
|
|
7
|
+
export declare const useUniversalElementEditing: () => boolean;
|
|
8
|
+
export declare const useStandaloneElementSaveButton: () => Partial<{
|
|
9
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
10
|
+
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "className" | "onClick"> & {
|
|
11
|
+
href: string;
|
|
12
|
+
target?: string | undefined;
|
|
13
|
+
anchorProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
|
|
14
|
+
} & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "className" | "onClick">> | null | undefined;
|
|
15
|
+
export declare const useStandaloneElementPath: () => import("slate").Path | null | undefined;
|
|
16
|
+
export declare const useStandaloneElementEditing: () => boolean;
|
|
17
|
+
export declare const useStandaloneElement: () => import("../easy-email-pro-core/lib/typings").Element | null;
|
|
18
|
+
export declare const useSelectedNodePath: () => import("slate").Path | null;
|
|
19
|
+
export declare const useHoverNodePath: () => import("slate").Path | null | undefined;
|
|
20
|
+
export declare const useDragNodePath: () => import("slate").Path | null;
|
|
21
|
+
export declare const useDragoverNodePath: () => import("slate").Path | null;
|
|
22
|
+
export declare const useActiveTab: () => import("../contexts/InteractContext").ActiveTabKeys;
|
|
23
|
+
export declare const useLockState: () => boolean;
|