@wangeditor-next/yjs-for-react 0.1.5 → 0.1.7
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @description hover bar class
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { IButtonMenu,
|
|
5
|
+
import { IButtonMenu, IDropPanelMenu, IModalMenu, ISelectMenu } from '../interface';
|
|
6
6
|
type MenuType = IButtonMenu | ISelectMenu | IDropPanelMenu | IModalMenu;
|
|
7
7
|
declare class HoverBar {
|
|
8
8
|
private readonly $elem;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import { Node } from 'slate';
|
|
6
|
-
import { Dom7Array } from '../../utils/dom';
|
|
7
6
|
import { IDomEditor } from '../../editor/interface';
|
|
7
|
+
import { Dom7Array } from '../../utils/dom';
|
|
8
8
|
import { IPositionStyle } from '../interface';
|
|
9
9
|
/**
|
|
10
10
|
* 获取 textContainer 尺寸和定位
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import $, { Dom7Array } from 'dom7';
|
|
6
|
-
export { Dom7Array } from 'dom7';
|
|
7
|
-
export default $;
|
|
8
|
-
export declare const isDocument: (value: any) => value is Document;
|
|
9
|
-
export declare const isShadowRoot: (value: any) => value is ShadowRoot;
|
|
10
|
-
export declare const isDataTransfer: (value: any) => value is DataTransfer;
|
|
11
|
-
export declare const isHTMLElememt: (value: any) => value is HTMLElement;
|
|
12
6
|
import DOMNode = globalThis.Node;
|
|
13
7
|
import DOMComment = globalThis.Comment;
|
|
14
8
|
import DOMElement = globalThis.Element;
|
|
@@ -16,12 +10,22 @@ import DOMText = globalThis.Text;
|
|
|
16
10
|
import DOMRange = globalThis.Range;
|
|
17
11
|
import DOMSelection = globalThis.Selection;
|
|
18
12
|
import DOMStaticRange = globalThis.StaticRange;
|
|
19
|
-
export {
|
|
13
|
+
export { Dom7Array } from 'dom7';
|
|
14
|
+
export default $;
|
|
15
|
+
export declare const isDocument: (value: any) => value is Document;
|
|
16
|
+
export declare const isShadowRoot: (value: any) => value is ShadowRoot;
|
|
17
|
+
export declare const isDataTransfer: (value: any) => value is DataTransfer;
|
|
18
|
+
export declare const isHTMLElememt: (value: any) => value is HTMLElement;
|
|
19
|
+
export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
|
|
20
20
|
export type DOMPoint = [Node, number];
|
|
21
21
|
/**
|
|
22
22
|
* Returns the host window of a DOM node
|
|
23
23
|
*/
|
|
24
24
|
export declare const getDefaultView: (value: any) => Window | null;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a value is a DOM node.
|
|
27
|
+
*/
|
|
28
|
+
export declare const isDOMNode: (value: any) => value is DOMNode;
|
|
25
29
|
/**
|
|
26
30
|
* Check if a DOM node is a comment node.
|
|
27
31
|
*/
|
|
@@ -30,10 +34,6 @@ export declare const isDOMComment: (value: any) => value is DOMComment;
|
|
|
30
34
|
* Check if a DOM node is an element node.
|
|
31
35
|
*/
|
|
32
36
|
export declare const isDOMElement: (value: any) => value is DOMElement;
|
|
33
|
-
/**
|
|
34
|
-
* Check if a value is a DOM node.
|
|
35
|
-
*/
|
|
36
|
-
export declare const isDOMNode: (value: any) => value is DOMNode;
|
|
37
37
|
/**
|
|
38
38
|
* Check if a value is a DOM selection.
|
|
39
39
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/yjs-for-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React specific components/utils for wangeditor-next-yjs.",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"y-protocols": "^1.0.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@wangeditor-next/core": "1.7.
|
|
59
|
-
"@wangeditor-next/editor": "5.
|
|
60
|
-
"@wangeditor-next/yjs": "^0.1.
|
|
58
|
+
"@wangeditor-next/core": "1.7.8",
|
|
59
|
+
"@wangeditor-next/editor": "5.6.0",
|
|
60
|
+
"@wangeditor-next/yjs": "^0.1.6",
|
|
61
61
|
"react": ">=16.8.0",
|
|
62
62
|
"slate": "^0.72.0",
|
|
63
63
|
"yjs": "^13.5.29"
|