@wangeditor-next/list-module 1.1.10 → 1.1.11
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/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/list-module/src/module/menu/BaseMenu.d.ts +2 -2
- package/dist/list-module/src/module/parse-elem-html.d.ts +2 -2
- package/dist/list-module/src/module/render-elem.d.ts +1 -1
- package/dist/list-module/src/utils/dom.d.ts +2 -2
- package/package.json +2 -2
|
@@ -10,9 +10,9 @@ declare abstract class BaseMenu implements IButtonMenu {
|
|
|
10
10
|
abstract readonly iconSvg: string;
|
|
11
11
|
readonly tag = "button";
|
|
12
12
|
private getListNode;
|
|
13
|
-
getValue(
|
|
13
|
+
getValue(_editor: IDomEditor): string | boolean;
|
|
14
14
|
isActive(editor: IDomEditor): boolean;
|
|
15
15
|
isDisabled(editor: IDomEditor): boolean;
|
|
16
|
-
exec(editor: IDomEditor,
|
|
16
|
+
exec(editor: IDomEditor, _value: string | boolean): void;
|
|
17
17
|
}
|
|
18
18
|
export default BaseMenu;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @description parse elem html
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
+
import { IDomEditor } from '@wangeditor-next/core';
|
|
5
6
|
import { Descendant } from 'slate';
|
|
6
7
|
import { DOMElement } from '../utils/dom';
|
|
7
|
-
import { IDomEditor } from '@wangeditor-next/core';
|
|
8
8
|
import { ListItemElement } from './custom-types';
|
|
9
9
|
declare function parseItemHtml(elem: DOMElement, children: Descendant[], editor: IDomEditor): ListItemElement;
|
|
10
10
|
export declare const parseItemHtmlConf: {
|
|
11
11
|
selector: string;
|
|
12
12
|
parseElemHtml: typeof parseItemHtml;
|
|
13
13
|
};
|
|
14
|
-
declare function parseListHtml(
|
|
14
|
+
declare function parseListHtml(_elem: DOMElement, children: Descendant[], _editor: IDomEditor): ListItemElement[];
|
|
15
15
|
export declare const parseListHtmlConf: {
|
|
16
16
|
selector: string;
|
|
17
17
|
parseElemHtml: typeof parseListHtml;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @description render list elem
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
+
import { IDomEditor } from '@wangeditor-next/core';
|
|
5
6
|
import { Element as SlateElement } from 'slate';
|
|
6
7
|
import { VNode } from 'snabbdom';
|
|
7
|
-
import { IDomEditor } from '@wangeditor-next/core';
|
|
8
8
|
declare function renderListElem(elemNode: SlateElement, children: VNode[] | null, editor: IDomEditor): VNode;
|
|
9
9
|
declare const renderListItemConf: {
|
|
10
10
|
type: string;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import $, { Dom7Array } from 'dom7';
|
|
6
|
-
export default $;
|
|
7
6
|
import DOMNode = globalThis.Node;
|
|
8
7
|
import DOMComment = globalThis.Comment;
|
|
9
8
|
import DOMElement = globalThis.Element;
|
|
@@ -11,7 +10,8 @@ import DOMText = globalThis.Text;
|
|
|
11
10
|
import DOMRange = globalThis.Range;
|
|
12
11
|
import DOMSelection = globalThis.Selection;
|
|
13
12
|
import DOMStaticRange = globalThis.StaticRange;
|
|
14
|
-
export
|
|
13
|
+
export default $;
|
|
14
|
+
export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
|
|
15
15
|
/**
|
|
16
16
|
* 获取 tagName lower-case
|
|
17
17
|
* @param $elem $elem
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/list-module",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "wangEditor list module",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"contributors": [],
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"url": "https://github.com/cycleccc/wangEditor/issues"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@wangeditor-next/core": "1.7.
|
|
43
|
+
"@wangeditor-next/core": "1.7.6",
|
|
44
44
|
"dom7": "^3.0.0",
|
|
45
45
|
"slate": "^0.72.0",
|
|
46
46
|
"snabbdom": "^3.1.0"
|