@fileverse-dev/dsheet 2.0.36 → 2.1.0-remove

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 (44) 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-Bl4AYetV.js → executeStringFunction-B0p00aYv.js} +4454 -4451
  15. package/dist/formula.js +1 -1
  16. package/dist/index-B0KT8Bdl.js +52333 -0
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.es.js +42 -38
  19. package/dist/sheet-engine/core/api/cell.d.ts +21 -0
  20. package/dist/sheet-engine/core/index.d.ts +2 -1
  21. package/dist/sheet-engine/core/locale/en.d.ts +13 -0
  22. package/dist/sheet-engine/core/modules/filter.d.ts +13 -0
  23. package/dist/sheet-engine/core/modules/index.d.ts +3 -1
  24. package/dist/sheet-engine/core/modules/removeDuplicates.d.ts +29 -0
  25. package/dist/sheet-engine/core/settings.d.ts +3 -0
  26. package/dist/sheet-engine/core/types.d.ts +1 -0
  27. package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -0
  28. package/dist/sheet-engine/react/components/Workbook/api.d.ts +23 -0
  29. package/dist/sheet-engine/react/components/Workbook/index.d.ts +15 -0
  30. package/dist/style.css +1 -1
  31. package/dist/sync-local/SyncManager.d.ts +69 -0
  32. package/dist/sync-local/collabStateMachine.d.ts +23 -0
  33. package/dist/sync-local/crypto/index.d.ts +6 -0
  34. package/dist/sync-local/index.d.ts +3 -0
  35. package/dist/sync-local/socketClient.d.ts +68 -0
  36. package/dist/sync-local/types/index.d.ts +212 -0
  37. package/dist/sync-local/useSyncManager.d.ts +12 -0
  38. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
  39. package/dist/sync-local/utils/objectToFile.d.ts +1 -0
  40. package/dist/{use-xlsx-import-impl-BIdckUWG.js → use-xlsx-import-impl-BRLMqMHz.js} +2 -2
  41. package/dist/{xlsx-export-impl-BEVF8Y2c.js → xlsx-export-impl-DStrYuG2.js} +293 -295
  42. package/package.json +13 -9
  43. package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
  44. package/dist/index-CqPhp0yr.js +0 -40212
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",
5
+ "version": "2.1.0-remove",
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"
@@ -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
- };