easy-email-pro-editor 1.49.4 → 1.49.5
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 +5472 -5416
- package/lib/typings/components/DraggingPlaceholderWrapper/index.d.ts +6 -0
- package/lib/typings/components/Elements/BaseElement.d.ts +1 -1
- package/lib/typings/components/Elements/atom/Button/index.d.ts +1 -1
- package/lib/typings/components/Elements/atom/Group/index.d.ts +2 -2
- package/lib/typings/components/Elements/atom/HtmlBlockNode.d.ts +9 -9
- package/lib/typings/components/Elements/atom/HtmlNode.d.ts +4 -4
- package/lib/typings/components/Elements/atom/Section/index.d.ts +1 -1
- package/lib/typings/components/Elements/atom/Social/index.d.ts +0 -1
- package/lib/typings/components/Elements/atom/Table/index.d.ts +1 -1
- package/lib/typings/components/Elements/atom/Wrapper.d.ts +1 -1
- package/lib/typings/components/Elements/basic/HTMLDomNode.d.ts +4 -4
- package/lib/typings/components/Elements/basic/Table2.d.ts +1 -2
- package/lib/typings/components/Elements/basic/Wrapper.d.ts +1 -1
- package/lib/typings/components/Elements/components/RenderWithColumn.d.ts +2 -1
- package/lib/typings/contexts/InteractContext.d.ts +9 -0
- package/lib/typings/hooks/useEditorActions.d.ts +3 -6
- package/lib/typings/index.d.ts +1 -0
- package/lib/typings/store/useEditorStateStore.d.ts +9 -2
- package/package.json +3 -2
|
@@ -16,6 +16,6 @@ export declare class BaseElement<T extends Element> extends React.Component<Base
|
|
|
16
16
|
idx: string;
|
|
17
17
|
constructor(props: BaseElementProps<any>);
|
|
18
18
|
renderElement(): React.ReactNode;
|
|
19
|
-
renderChildrenWithPlaceholder():
|
|
19
|
+
renderChildrenWithPlaceholder(): any;
|
|
20
20
|
render(): React.ReactNode;
|
|
21
21
|
}
|
|
@@ -72,7 +72,7 @@ export declare class Button extends BaseElement<ButtonElement> {
|
|
|
72
72
|
href?: string | undefined;
|
|
73
73
|
target?: string | undefined;
|
|
74
74
|
"inner-padding"?: string | undefined;
|
|
75
|
-
"vertical-align"?: "
|
|
75
|
+
"vertical-align"?: "top" | "bottom" | "middle" | undefined;
|
|
76
76
|
"css-class"?: string | undefined;
|
|
77
77
|
"mj-class"?: string | undefined;
|
|
78
78
|
};
|
|
@@ -16,8 +16,8 @@ export declare class Group extends BaseElement<GroupElement> {
|
|
|
16
16
|
"padding-left"?: string | undefined;
|
|
17
17
|
"padding-right"?: string | undefined;
|
|
18
18
|
"background-color"?: string | undefined;
|
|
19
|
-
direction?: "
|
|
20
|
-
"vertical-align"?: "
|
|
19
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
20
|
+
"vertical-align"?: "top" | "bottom" | "middle" | undefined;
|
|
21
21
|
"css-class"?: string | undefined;
|
|
22
22
|
"mj-class"?: string | undefined;
|
|
23
23
|
};
|
|
@@ -5,9 +5,11 @@ import { BaseElement } from "../BaseElement";
|
|
|
5
5
|
export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
6
6
|
componentType: string;
|
|
7
7
|
static defaultAttributes: {
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
dir?: string | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
8
11
|
id?: string | undefined;
|
|
9
12
|
title?: string | undefined;
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
13
|
style?: string | undefined;
|
|
12
14
|
manifest?: string | undefined;
|
|
13
15
|
defaultChecked?: boolean | undefined;
|
|
@@ -16,10 +18,8 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
16
18
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
19
|
accessKey?: string | undefined;
|
|
18
20
|
autoFocus?: boolean | undefined;
|
|
19
|
-
className?: string | undefined;
|
|
20
21
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
21
22
|
contextMenu?: string | undefined;
|
|
22
|
-
dir?: string | undefined;
|
|
23
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
hidden?: boolean | undefined;
|
|
25
25
|
lang?: string | undefined;
|
|
@@ -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?: "
|
|
56
|
+
inputMode?: "search" | "text" | "none" | "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;
|
|
@@ -279,9 +279,11 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
279
279
|
renderElement(): import("react").DOMElement<Pick<{
|
|
280
280
|
style: any;
|
|
281
281
|
"data-slate-block": string;
|
|
282
|
+
children?: import("react").ReactNode;
|
|
283
|
+
dir?: string | undefined;
|
|
284
|
+
className?: string | undefined;
|
|
282
285
|
id?: string | undefined;
|
|
283
286
|
title?: string | undefined;
|
|
284
|
-
children?: import("react").ReactNode;
|
|
285
287
|
manifest?: string | undefined;
|
|
286
288
|
defaultChecked?: boolean | undefined;
|
|
287
289
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -289,10 +291,8 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
289
291
|
suppressHydrationWarning?: boolean | undefined;
|
|
290
292
|
accessKey?: string | undefined;
|
|
291
293
|
autoFocus?: boolean | undefined;
|
|
292
|
-
className?: string | undefined;
|
|
293
294
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
294
295
|
contextMenu?: string | undefined;
|
|
295
|
-
dir?: string | undefined;
|
|
296
296
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
297
297
|
hidden?: boolean | undefined;
|
|
298
298
|
lang?: 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?: "
|
|
329
|
+
inputMode?: "search" | "text" | "none" | "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;
|
|
@@ -552,5 +552,5 @@ export declare class HtmlBlockNode extends BaseElement<HtmlBlockNodeElement> {
|
|
|
552
552
|
'data-slate-inline'?: true | undefined;
|
|
553
553
|
'data-slate-void'?: true | undefined;
|
|
554
554
|
ref: any;
|
|
555
|
-
}, "
|
|
555
|
+
}, "children" | "data-slate-node" | "data-slate-inline" | "data-slate-void" | "dir" | "ref" | "className" | "id" | "title" | "style" | "manifest" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css-class" | "mj-class" | "data-slate-block">, Element>;
|
|
556
556
|
}
|
|
@@ -5,9 +5,11 @@ import React from "react";
|
|
|
5
5
|
export declare class HtmlNode extends BaseElement<HtmlNodeElement> {
|
|
6
6
|
componentType: string;
|
|
7
7
|
static defaultAttributes: {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
dir?: string | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
8
11
|
id?: string | undefined;
|
|
9
12
|
title?: string | undefined;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
13
|
style?: CSSProperties | undefined;
|
|
12
14
|
manifest?: string | undefined;
|
|
13
15
|
defaultChecked?: boolean | undefined;
|
|
@@ -16,10 +18,8 @@ export declare class HtmlNode extends BaseElement<HtmlNodeElement> {
|
|
|
16
18
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
19
|
accessKey?: string | undefined;
|
|
18
20
|
autoFocus?: boolean | undefined;
|
|
19
|
-
className?: string | undefined;
|
|
20
21
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
21
22
|
contextMenu?: string | undefined;
|
|
22
|
-
dir?: string | undefined;
|
|
23
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
hidden?: boolean | undefined;
|
|
25
25
|
lang?: 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?: "
|
|
56
|
+
inputMode?: "search" | "text" | "none" | "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;
|
|
@@ -41,7 +41,7 @@ export declare class Section extends BaseElement<SectionElement> {
|
|
|
41
41
|
"background-url"?: string | undefined;
|
|
42
42
|
border?: string | undefined;
|
|
43
43
|
"border-radius"?: string | undefined;
|
|
44
|
-
direction?: "
|
|
44
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
45
45
|
"full-width"?: string | undefined;
|
|
46
46
|
"text-align"?: string | undefined;
|
|
47
47
|
"css-class"?: string | undefined;
|
|
@@ -47,7 +47,7 @@ export declare class Table extends BaseElement<TableElement> {
|
|
|
47
47
|
border?: string | undefined;
|
|
48
48
|
cellpadding?: string | undefined;
|
|
49
49
|
cellspacing?: string | undefined;
|
|
50
|
-
"table-layout"?: "
|
|
50
|
+
"table-layout"?: "fixed" | "inherit" | "auto" | "initial" | undefined;
|
|
51
51
|
"css-class"?: string | undefined;
|
|
52
52
|
"mj-class"?: string | undefined;
|
|
53
53
|
};
|
|
@@ -16,7 +16,7 @@ export declare class Wrapper extends AtomSection {
|
|
|
16
16
|
"background-url"?: string | undefined;
|
|
17
17
|
border?: string | undefined;
|
|
18
18
|
"border-radius"?: string | undefined;
|
|
19
|
-
direction?: "
|
|
19
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
20
20
|
"full-width"?: string | undefined;
|
|
21
21
|
"text-align"?: string | undefined;
|
|
22
22
|
"css-class"?: string | undefined;
|
|
@@ -5,9 +5,11 @@ export declare class HTMLDomNode extends BaseElement<HTMLDomNodeElement> {
|
|
|
5
5
|
componentType: string;
|
|
6
6
|
allowedAttributes: {};
|
|
7
7
|
defaultAttributes: {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
dir?: string | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
8
11
|
id?: string | undefined;
|
|
9
12
|
title?: string | undefined;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
13
|
style?: React.CSSProperties | undefined;
|
|
12
14
|
manifest?: string | undefined;
|
|
13
15
|
defaultChecked?: boolean | undefined;
|
|
@@ -16,10 +18,8 @@ export declare class HTMLDomNode extends BaseElement<HTMLDomNodeElement> {
|
|
|
16
18
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
19
|
accessKey?: string | undefined;
|
|
18
20
|
autoFocus?: boolean | undefined;
|
|
19
|
-
className?: string | undefined;
|
|
20
21
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
21
22
|
contextMenu?: string | undefined;
|
|
22
|
-
dir?: string | undefined;
|
|
23
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
hidden?: boolean | undefined;
|
|
25
25
|
lang?: 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?: "
|
|
56
|
+
inputMode?: "search" | "text" | "none" | "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;
|
|
@@ -56,10 +56,9 @@ export declare class Table2 extends BaseElement<StandardTable2Element> {
|
|
|
56
56
|
border?: string | undefined;
|
|
57
57
|
cellpadding?: string | undefined;
|
|
58
58
|
cellspacing?: string | undefined;
|
|
59
|
-
"table-layout"?: "
|
|
59
|
+
"table-layout"?: "fixed" | "inherit" | "auto" | "initial" | undefined;
|
|
60
60
|
"css-class"?: string | undefined;
|
|
61
61
|
"mj-class"?: string | undefined;
|
|
62
62
|
};
|
|
63
|
-
renderChildrenWithPlaceholder(): React.JSX.Element;
|
|
64
63
|
renderElement(): React.ReactNode;
|
|
65
64
|
}
|
|
@@ -16,7 +16,7 @@ export declare class Wrapper extends AtomSection {
|
|
|
16
16
|
"background-url"?: string | undefined;
|
|
17
17
|
border?: string | undefined;
|
|
18
18
|
"border-radius"?: string | undefined;
|
|
19
|
-
direction?: "
|
|
19
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
20
20
|
"full-width"?: string | undefined;
|
|
21
21
|
"text-align"?: string | undefined;
|
|
22
22
|
"css-class"?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Element } from "easy-email-pro-core";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { BaseElementProps } from "../BaseElement";
|
|
4
|
-
export declare const RenderWithColumn: <T extends Element>({ attributes, componentType, getHtmlAttributes, children, ...rest }: {
|
|
4
|
+
export declare const RenderWithColumn: <T extends Element>({ attributes, componentType, getHtmlAttributes, children, placeholder, ...rest }: {
|
|
5
5
|
attributes: {
|
|
6
6
|
'data-slate-node': "element";
|
|
7
7
|
'data-slate-inline'?: true | undefined;
|
|
@@ -13,4 +13,5 @@ export declare const RenderWithColumn: <T extends Element>({ attributes, compone
|
|
|
13
13
|
componentType: string;
|
|
14
14
|
getHtmlAttributes: (attributes: Record<string, any> | string) => {};
|
|
15
15
|
children: React.ReactElement;
|
|
16
|
+
placeholder: React.ReactNode | undefined;
|
|
16
17
|
}) => React.JSX.Element;
|
|
@@ -23,6 +23,8 @@ export interface InteractContextProps {
|
|
|
23
23
|
setHoverNodePath: React.Dispatch<React.SetStateAction<Path | null | undefined>>;
|
|
24
24
|
dragoverNodePath: Path | null;
|
|
25
25
|
dragNodePath: Path | null;
|
|
26
|
+
dragoverDirection: "top" | "bottom" | "middle" | null;
|
|
27
|
+
setDragoverDirection: React.Dispatch<React.SetStateAction<"top" | "bottom" | "middle" | null>>;
|
|
26
28
|
setDragNodePath: React.Dispatch<React.SetStateAction<Path | null>>;
|
|
27
29
|
setDragoverNodePath: React.Dispatch<React.SetStateAction<Path | null>>;
|
|
28
30
|
lock: boolean;
|
|
@@ -31,6 +33,13 @@ export interface InteractContextProps {
|
|
|
31
33
|
initialStandaloneElement: Element | null;
|
|
32
34
|
}
|
|
33
35
|
export declare const InteractContext: React.Context<InteractContextProps>;
|
|
36
|
+
export declare const useEditorStore: import("zustand").UseBoundStore<import("zustand").StoreApi<{
|
|
37
|
+
state: InteractContextProps;
|
|
38
|
+
setState: (state: InteractContextProps) => void;
|
|
39
|
+
}>>;
|
|
40
|
+
export declare const ContextToZustandBridge: React.FC<{
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
}>;
|
|
34
43
|
export declare const InteractProvider: React.FC<{
|
|
35
44
|
children: React.ReactNode;
|
|
36
45
|
}>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* 返回一个包含所有编辑器动作的对象
|
|
4
|
-
* 这些动作用于更新编辑器状态
|
|
5
|
-
*/
|
|
6
2
|
export declare const useEditorActions: () => {
|
|
7
3
|
setUniversalElementPath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
8
4
|
setStandaloneElementPath: import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
@@ -14,9 +10,10 @@ export declare const useEditorActions: () => {
|
|
|
14
10
|
setLock: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
11
|
setStandaloneElementSaveButton: import("react").Dispatch<import("react").SetStateAction<Partial<{
|
|
16
12
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
17
|
-
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "
|
|
13
|
+
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "className" | "type" | "onClick"> & {
|
|
18
14
|
href: string;
|
|
19
15
|
target?: string | undefined;
|
|
20
16
|
anchorProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
|
|
21
|
-
} & Omit<import("react").AnchorHTMLAttributes<any>, "
|
|
17
|
+
} & Omit<import("react").AnchorHTMLAttributes<any>, "className" | "type" | "onClick">> | null>>;
|
|
18
|
+
setDragoverDirection: import("react").Dispatch<import("react").SetStateAction<"top" | "bottom" | "middle" | null>>;
|
|
22
19
|
};
|
package/lib/typings/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DraggingPlaceholderWrapper } from "./components/DraggingPlaceholderWrapper";
|
|
1
2
|
export { useElement } from "./components/Elements/useElement";
|
|
2
3
|
export { useBlockComponent, BlockComponentProvider, } from "./components/Elements/components/BlockComponentProvider";
|
|
3
4
|
export type { BaseElementProps } from "./components/Elements/BaseElement";
|
|
@@ -7,11 +7,11 @@ export declare const useUniversalElement: () => import("../easy-email-pro-core/l
|
|
|
7
7
|
export declare const useUniversalElementEditing: () => boolean;
|
|
8
8
|
export declare const useStandaloneElementSaveButton: () => Partial<{
|
|
9
9
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
10
|
-
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "
|
|
10
|
+
} & import("@arco-design/web-react/es/Button/interface").BaseButtonProps & Omit<import("react").ButtonHTMLAttributes<any>, "className" | "type" | "onClick"> & {
|
|
11
11
|
href: string;
|
|
12
12
|
target?: string | undefined;
|
|
13
13
|
anchorProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
|
|
14
|
-
} & Omit<import("react").AnchorHTMLAttributes<any>, "
|
|
14
|
+
} & Omit<import("react").AnchorHTMLAttributes<any>, "className" | "type" | "onClick">> | null | undefined;
|
|
15
15
|
export declare const useStandaloneElementPath: () => import("slate").Path | null | undefined;
|
|
16
16
|
export declare const useStandaloneElementEditing: () => boolean;
|
|
17
17
|
export declare const useStandaloneElement: () => import("../easy-email-pro-core/lib/typings").Element | null;
|
|
@@ -19,5 +19,12 @@ export declare const useSelectedNodePath: () => import("slate").Path | null;
|
|
|
19
19
|
export declare const useHoverNodePath: () => import("slate").Path | null | undefined;
|
|
20
20
|
export declare const useDragNodePath: () => import("slate").Path | null;
|
|
21
21
|
export declare const useDragoverNodePath: () => import("slate").Path | null;
|
|
22
|
+
export declare const useDragoverDirection: () => "top" | "bottom" | "middle" | null;
|
|
22
23
|
export declare const useActiveTab: () => import("../contexts/InteractContext").ActiveTabKeys;
|
|
23
24
|
export declare const useLockState: () => boolean;
|
|
25
|
+
export declare const useSetUniversalElementPath: () => import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
26
|
+
export declare const useSetSelectedNodePath: () => (path?: import("slate").Path | null | undefined) => void;
|
|
27
|
+
export declare const useSetHoverNodePath: () => import("react").Dispatch<import("react").SetStateAction<import("slate").Path | null | undefined>>;
|
|
28
|
+
export declare const useSetActiveTab: () => import("react").Dispatch<import("react").SetStateAction<import("../contexts/InteractContext").ActiveTabKeys>>;
|
|
29
|
+
export declare const useSetLock: () => import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
30
|
+
export declare const useSetDragoverDirection: () => import("react").Dispatch<import("react").SetStateAction<"top" | "bottom" | "middle" | null>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-email-pro-editor",
|
|
3
|
-
"version": "1.49.
|
|
3
|
+
"version": "1.49.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"overlayscrollbars": "^1.13.2",
|
|
20
20
|
"overlayscrollbars-react": "^0.3.0",
|
|
21
21
|
"parse5": "^7.1.2",
|
|
22
|
-
"react-attr-converter": "^0.3.1"
|
|
22
|
+
"react-attr-converter": "^0.3.1",
|
|
23
|
+
"zustand": "^5.0.3"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"react": "^18.2.0",
|