@fileverse-dev/dsheet 2.0.33-comment → 2.0.33-rtc
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/editor/components/collab-status-chip.d.ts +8 -0
- package/dist/editor/contexts/editor-context.d.ts +9 -5
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/use-collab-awareness.d.ts +11 -0
- package/dist/editor/hooks/use-editor-data.d.ts +1 -1
- package/dist/editor/hooks/use-editor-sync.d.ts +9 -6
- package/dist/editor/types.d.ts +2 -2
- package/dist/{executeStringFunction-CqY9CxQI.js → executeStringFunction-9cGLblM5.js} +221 -201
- package/dist/formula.js +1 -1
- package/dist/index-DkB-BZN7.js +50679 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -4
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/core/settings.d.ts +1 -1
- package/dist/sheet-engine/core/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.d.ts +67 -0
- package/dist/sync-local/collabStateMachine.d.ts +23 -0
- package/dist/sync-local/constants.d.ts +1 -0
- package/dist/sync-local/crypto/index.d.ts +6 -0
- package/dist/sync-local/index.d.ts +3 -0
- package/dist/sync-local/socketClient.d.ts +68 -0
- package/dist/sync-local/types/index.d.ts +208 -0
- package/dist/sync-local/useSyncManager.d.ts +12 -0
- package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
- package/dist/sync-local/utils/objectToFile.d.ts +1 -0
- package/dist/{use-xlsx-import-impl-DgedLtO_.js → use-xlsx-import-impl-DUEM4eBB.js} +2 -2
- package/dist/{xlsx-export-impl-1HOQoC6f.js → xlsx-export-impl-BLwdk5y1.js} +293 -295
- package/package.json +7 -3
- package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
- package/dist/index-D9nJayaD.js +0 -40174
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/dsheet",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DSheet",
|
|
5
|
-
"version": "2.0.33-
|
|
5
|
+
"version": "2.0.33-rtc",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -50,8 +50,13 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@fileverse-dev/dsheets-templates": "^0.0.29",
|
|
52
52
|
"@fileverse-dev/formulajs": "^4.4.53",
|
|
53
|
+
"@fileverse/crypto": "^0.0.22",
|
|
53
54
|
"@fileverse/ui": "^5.0.0",
|
|
55
|
+
"@noble/ciphers": "^2.2.0",
|
|
56
|
+
"@noble/curves": "^2.2.0",
|
|
57
|
+
"@stablelib/ed25519": "^2.1.0",
|
|
54
58
|
"@tippyjs/react": "^4.2.6",
|
|
59
|
+
"@ucans/ucans": "^0.12.0",
|
|
55
60
|
"classnames": "^2.5.1",
|
|
56
61
|
"dayjs": "^1.11.0",
|
|
57
62
|
"exceljs": "^4.4.0",
|
|
@@ -65,6 +70,7 @@
|
|
|
65
70
|
"react": "^18.2.0",
|
|
66
71
|
"react-dom": "^18.2.0",
|
|
67
72
|
"regenerator-runtime": "^0.14.1",
|
|
73
|
+
"socket.io-client": "^4.8.3",
|
|
68
74
|
"tailwindcss-animate": "^1.0.7",
|
|
69
75
|
"tiny-emitter": "^2.1.0",
|
|
70
76
|
"uuid": "^8.3.2",
|
|
@@ -73,8 +79,6 @@
|
|
|
73
79
|
"xlsx-js-style": "^1.2.0",
|
|
74
80
|
"y-indexeddb": "^9.0.12",
|
|
75
81
|
"y-protocols": "^1.0.6",
|
|
76
|
-
"y-webrtc": "^10.3.0",
|
|
77
|
-
"y-websocket": "^3.0.0",
|
|
78
82
|
"yjs": "^13.6.15"
|
|
79
83
|
},
|
|
80
84
|
"devDependencies": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Y from 'yjs';
|
|
2
|
-
/**
|
|
3
|
-
* Hook for setting up WebRTC-based collaboration
|
|
4
|
-
* Handles real-time synchronization between peers
|
|
5
|
-
*/
|
|
6
|
-
export declare const useEditorCollaboration: (ydoc: Y.Doc | null, dsheetId: string, username?: string, enableWebrtc?: boolean, signalData?: string) => {
|
|
7
|
-
collaborationStatus: "error" | "disconnected" | "connecting" | "connected";
|
|
8
|
-
activeUsers: string[];
|
|
9
|
-
};
|