@wangeditor-next/yjs-for-react 0.1.42 → 0.1.43
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.
|
@@ -15,4 +15,4 @@ export type CursorOverlayData<TCursorData extends Record<string, unknown>> = Cur
|
|
|
15
15
|
caretPosition: CaretPosition | null;
|
|
16
16
|
selectionRects: SelectionRect[];
|
|
17
17
|
};
|
|
18
|
-
export declare function useRemoteCursorOverlayPositions<TCursorData extends Record<string, unknown>, TContainer extends HTMLElement = HTMLDivElement>({ containerRef, shouldGenerateOverlay, ...opts }?: UseRemoteCursorOverlayPositionsOptions<TContainer>): readonly [
|
|
18
|
+
export declare function useRemoteCursorOverlayPositions<TCursorData extends Record<string, unknown>, TContainer extends HTMLElement = HTMLDivElement>({ containerRef, shouldGenerateOverlay, ...opts }?: UseRemoteCursorOverlayPositionsOptions<TContainer>): readonly [any, any];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export declare function useRequestRerender():
|
|
2
|
+
export declare function useRequestRerender(): any;
|
|
3
3
|
export declare function useOnResize<T extends HTMLElement>(ref: RefObject<T> | undefined, onResize: () => void): void;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/yjs-for-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "React specific components/utils for wangeditor-next-yjs.",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/wangeditor-next/wangeditor-next#readme",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
9
|
+
"types": "dist/yjs-for-react/src/index.d.ts",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.mjs",
|
|
12
12
|
"unpkg": "dist/index.global.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
22
|
+
"types": "./dist/yjs-for-react/src/index.d.ts",
|
|
23
23
|
"import": "./dist/index.mjs",
|
|
24
24
|
"require": "./dist/index.js"
|
|
25
25
|
},
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
+
"directories": {
|
|
32
|
+
"lib": "dist"
|
|
33
|
+
},
|
|
31
34
|
"publishConfig": {
|
|
32
35
|
"access": "public"
|
|
33
36
|
},
|
|
@@ -45,7 +48,6 @@
|
|
|
45
48
|
"size-stats": "cross-env NODE_ENV=production:size_stats rollup -c rollup.config.js"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
48
|
-
"@types/react": "^18.0.0",
|
|
49
51
|
"@types/use-sync-external-store": "^0.0.6"
|
|
50
52
|
},
|
|
51
53
|
"bugs": {
|
|
@@ -56,9 +58,9 @@
|
|
|
56
58
|
"y-protocols": "^1.0.5"
|
|
57
59
|
},
|
|
58
60
|
"peerDependencies": {
|
|
59
|
-
"@wangeditor-next/editor": "5.6.
|
|
61
|
+
"@wangeditor-next/editor": "5.6.32",
|
|
60
62
|
"@wangeditor-next/yjs": "^0.1.30",
|
|
61
|
-
"react": ">=
|
|
63
|
+
"react": ">=17.0.2",
|
|
62
64
|
"slate": "^0.72.0",
|
|
63
65
|
"yjs": "^13.5.29"
|
|
64
66
|
}
|