@wangeditor-next/yjs-for-react 0.1.2 → 0.1.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/dist/hooks/useRemoteCursorEditor.d.ts +1 -1
- package/dist/hooks/useRemoteCursorOverlayPositions.d.ts +2 -2
- package/dist/hooks/useRemoteCursorStateStore.d.ts +1 -1
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/getOverlayPosition.d.ts +5 -5
- package/dist/utils/react-editor-to-dom-range-safe.d.ts +1 -1
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Store<T> = readonly [(onStoreChange: () => void) => () => void, () => T];
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { BaseRange, Path, Text } from 'slate';
|
|
2
1
|
import { IDomEditor } from '@wangeditor-next/editor';
|
|
3
|
-
|
|
2
|
+
import { BaseRange, Path, Text } from 'slate';
|
|
3
|
+
export type SelectionRect = {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
top: number;
|
|
7
7
|
left: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type CaretPosition = {
|
|
10
10
|
height: number;
|
|
11
11
|
top: number;
|
|
12
12
|
left: number;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type OverlayPosition = {
|
|
15
15
|
caretPosition: CaretPosition | null;
|
|
16
16
|
selectionRects: SelectionRect[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type GetSelectionRectsOptions = {
|
|
19
19
|
xOffset: number;
|
|
20
20
|
yOffset: number;
|
|
21
21
|
shouldGenerateOverlay?: (node: Text, path: Path) => boolean;
|
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.4",
|
|
4
4
|
"description": "React specific components/utils for wangeditor-next-yjs.",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"contributors": [],
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"size-stats": "cross-env NODE_ENV=production:size_stats rollup -c rollup.config.js"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/react": "^
|
|
49
|
-
"@types/use-sync-external-store": "^0.0.
|
|
48
|
+
"@types/react": "^18.0.0",
|
|
49
|
+
"@types/use-sync-external-store": "^0.0.6"
|
|
50
50
|
},
|
|
51
51
|
"bugs": {
|
|
52
52
|
"url": "https://github.com/cycleccc/wangEditor/issues"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"react": ">=16.8.0",
|
|
60
|
-
"@wangeditor-next/core": "1.7.
|
|
61
|
-
"@wangeditor-next/editor": "5.5.
|
|
62
|
-
"@wangeditor-next/yjs": "^0.1.
|
|
60
|
+
"@wangeditor-next/core": "1.7.6",
|
|
61
|
+
"@wangeditor-next/editor": "5.5.7",
|
|
62
|
+
"@wangeditor-next/yjs": "^0.1.4",
|
|
63
63
|
"slate": "^0.72.0",
|
|
64
64
|
"yjs": "^13.5.29"
|
|
65
65
|
}
|