@fileverse-dev/dsheet 2.0.36-shortcut-2 → 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 (46) 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-B0p00aYv.js} +4568 -4602
  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 +43 -39
  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/modules/selection.d.ts +0 -7
  26. package/dist/sheet-engine/core/settings.d.ts +3 -0
  27. package/dist/sheet-engine/core/types.d.ts +1 -0
  28. package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -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-BRLMqMHz.js} +2 -2
  42. package/dist/{xlsx-export-impl-BLKOiPKJ.js → xlsx-export-impl-DStrYuG2.js} +293 -295
  43. package/package.json +14 -11
  44. package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
  45. package/dist/index-DXRs6xeV.js +0 -40363
  46. package/dist/sheet-engine/core/events/shortcuts-v2.d.ts +0 -7
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.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"
@@ -34,8 +34,7 @@
34
34
  "scripts": {
35
35
  "dev": "vite",
36
36
  "build": "tsc && vite build",
37
- "build:dist": "vite build",
38
- "dev:link": "npm run build:dist && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
37
+ "dev:link": "npm run build && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
39
38
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
40
39
  "preview": "vite preview"
41
40
  },
@@ -51,8 +50,13 @@
51
50
  "dependencies": {
52
51
  "@fileverse-dev/dsheets-templates": "^0.0.29",
53
52
  "@fileverse-dev/formulajs": "^4.4.53",
53
+ "@fileverse/crypto": "^0.0.22",
54
54
  "@fileverse/ui": "^5.0.0",
55
+ "@noble/ciphers": "^2.2.0",
56
+ "@noble/curves": "^2.2.0",
57
+ "@stablelib/ed25519": "^2.1.0",
55
58
  "@tippyjs/react": "^4.2.6",
59
+ "@ucans/ucans": "^0.12.0",
56
60
  "classnames": "^2.5.1",
57
61
  "dayjs": "^1.11.0",
58
62
  "exceljs": "^4.4.0",
@@ -66,6 +70,7 @@
66
70
  "react": "^18.2.0",
67
71
  "react-dom": "^18.2.0",
68
72
  "regenerator-runtime": "^0.14.1",
73
+ "socket.io-client": "^4.8.3",
69
74
  "tailwindcss-animate": "^1.0.7",
70
75
  "tiny-emitter": "^2.1.0",
71
76
  "uuid": "^8.3.2",
@@ -74,8 +79,6 @@
74
79
  "xlsx-js-style": "^1.2.0",
75
80
  "y-indexeddb": "^9.0.12",
76
81
  "y-protocols": "^1.0.6",
77
- "y-webrtc": "^10.3.0",
78
- "y-websocket": "^3.0.0",
79
82
  "yjs": "^13.6.15"
80
83
  },
81
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
- };