@fileverse-dev/dsheet 2.0.36-shortcut-2 → 2.0.36-shortcut-3

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.
Files changed (45) hide show
  1. package/dist/{constants-CnhOvijG.js → constants-yStXQJiK.js} +35 -14
  2. package/dist/constants.d.ts +4 -0
  3. package/dist/constants.js +6 -3
  4. package/dist/editor/components/collab-status-chip.d.ts +8 -0
  5. package/dist/editor/contexts/editor-context.d.ts +15 -5
  6. package/dist/editor/dsheet-editor.d.ts +1 -1
  7. package/dist/editor/hooks/use-collab-awareness.d.ts +17 -0
  8. package/dist/editor/hooks/use-editor-data.d.ts +2 -1
  9. package/dist/editor/hooks/use-editor-sync.d.ts +9 -6
  10. package/dist/editor/types.d.ts +2 -2
  11. package/dist/editor/utils/after-update-cell.d.ts +12 -0
  12. package/dist/editor/utils/formula-ui-sync.d.ts +3 -1
  13. package/dist/editor/utils/remote-apply-guard.d.ts +19 -0
  14. package/dist/{executeStringFunction-6r6Tl4Z6.js → executeStringFunction-tdvZ0KTi.js} +4646 -4612
  15. package/dist/formula.js +1 -1
  16. package/dist/index-D_IxoHMJ.js +52167 -0
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.es.js +46 -41
  19. package/dist/sheet-engine/core/api/cell.d.ts +21 -0
  20. package/dist/sheet-engine/core/events/index.d.ts +1 -0
  21. package/dist/sheet-engine/core/events/keyboard-shortcut-utils.d.ts +61 -0
  22. package/dist/sheet-engine/core/index.d.ts +2 -2
  23. package/dist/sheet-engine/core/modules/filter.d.ts +13 -0
  24. package/dist/sheet-engine/core/modules/index.d.ts +2 -2
  25. package/dist/sheet-engine/core/modules/selection.d.ts +1 -0
  26. package/dist/sheet-engine/core/modules/zoom.d.ts +0 -1
  27. package/dist/sheet-engine/core/settings.d.ts +3 -0
  28. package/dist/sheet-engine/core/types.d.ts +1 -0
  29. package/dist/sheet-engine/react/components/Workbook/api.d.ts +23 -0
  30. package/dist/sheet-engine/react/components/Workbook/index.d.ts +15 -0
  31. package/dist/style.css +1 -1
  32. package/dist/sync-local/SyncManager.d.ts +69 -0
  33. package/dist/sync-local/collabStateMachine.d.ts +23 -0
  34. package/dist/sync-local/crypto/index.d.ts +6 -0
  35. package/dist/sync-local/index.d.ts +3 -0
  36. package/dist/sync-local/socketClient.d.ts +68 -0
  37. package/dist/sync-local/types/index.d.ts +212 -0
  38. package/dist/sync-local/useSyncManager.d.ts +12 -0
  39. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
  40. package/dist/sync-local/utils/objectToFile.d.ts +1 -0
  41. package/dist/{use-xlsx-import-impl-CKG0a1fz.js → use-xlsx-import-impl-AI2QDZt1.js} +2 -2
  42. package/dist/{xlsx-export-impl-BLKOiPKJ.js → xlsx-export-impl-Buly1jC6.js} +293 -295
  43. package/package.json +13 -9
  44. package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
  45. package/dist/index-DXRs6xeV.js +0 -40363
package/package.json CHANGED
@@ -2,24 +2,24 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "2.0.36-shortcut-2",
5
+ "version": "2.0.36-shortcut-3",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": "./dist/index.es.js",
11
- "default": "./dist/index.es.js",
12
- "types": "./dist/index.d.ts"
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.es.js"
13
13
  },
14
14
  "./constants": {
15
15
  "import": "./dist/constants.js",
16
- "default": "./dist/constants.js",
17
- "types": "./dist/constants.d.ts"
16
+ "types": "./dist/constants.d.ts",
17
+ "default": "./dist/constants.js"
18
18
  },
19
19
  "./formula": {
20
20
  "import": "./dist/formula.js",
21
- "default": "./dist/formula.js",
22
- "types": "./dist/formula.d.ts"
21
+ "types": "./dist/formula.d.ts",
22
+ "default": "./dist/formula.js"
23
23
  },
24
24
  "./styles": "./dist/style.css",
25
25
  "./types": "./dist/editor/types.d.ts"
@@ -51,8 +51,13 @@
51
51
  "dependencies": {
52
52
  "@fileverse-dev/dsheets-templates": "^0.0.29",
53
53
  "@fileverse-dev/formulajs": "^4.4.53",
54
+ "@fileverse/crypto": "^0.0.22",
54
55
  "@fileverse/ui": "^5.0.0",
56
+ "@noble/ciphers": "^2.2.0",
57
+ "@noble/curves": "^2.2.0",
58
+ "@stablelib/ed25519": "^2.1.0",
55
59
  "@tippyjs/react": "^4.2.6",
60
+ "@ucans/ucans": "^0.12.0",
56
61
  "classnames": "^2.5.1",
57
62
  "dayjs": "^1.11.0",
58
63
  "exceljs": "^4.4.0",
@@ -66,6 +71,7 @@
66
71
  "react": "^18.2.0",
67
72
  "react-dom": "^18.2.0",
68
73
  "regenerator-runtime": "^0.14.1",
74
+ "socket.io-client": "^4.8.3",
69
75
  "tailwindcss-animate": "^1.0.7",
70
76
  "tiny-emitter": "^2.1.0",
71
77
  "uuid": "^8.3.2",
@@ -74,8 +80,6 @@
74
80
  "xlsx-js-style": "^1.2.0",
75
81
  "y-indexeddb": "^9.0.12",
76
82
  "y-protocols": "^1.0.6",
77
- "y-webrtc": "^10.3.0",
78
- "y-websocket": "^3.0.0",
79
83
  "yjs": "^13.6.15"
80
84
  },
81
85
  "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
- };