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

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-Bl4AYetV.js → executeStringFunction-tdvZ0KTi.js} +4727 -4656
  15. package/dist/formula.js +1 -1
  16. package/dist/index-llRXqdgK.js +52173 -0
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.es.js +45 -39
  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 +58 -0
  22. package/dist/sheet-engine/core/events/shortcuts-v2.d.ts +7 -0
  23. package/dist/sheet-engine/core/index.d.ts +2 -2
  24. package/dist/sheet-engine/core/modules/filter.d.ts +13 -0
  25. package/dist/sheet-engine/core/modules/index.d.ts +1 -1
  26. package/dist/sheet-engine/core/modules/selection.d.ts +8 -0
  27. package/dist/sheet-engine/core/modules/zoom.d.ts +1 -0
  28. package/dist/sheet-engine/core/settings.d.ts +3 -0
  29. package/dist/sheet-engine/core/types.d.ts +1 -0
  30. package/dist/sheet-engine/react/components/Workbook/api.d.ts +23 -0
  31. package/dist/sheet-engine/react/components/Workbook/index.d.ts +15 -0
  32. package/dist/style.css +1 -1
  33. package/dist/sync-local/SyncManager.d.ts +69 -0
  34. package/dist/sync-local/collabStateMachine.d.ts +23 -0
  35. package/dist/sync-local/crypto/index.d.ts +6 -0
  36. package/dist/sync-local/index.d.ts +3 -0
  37. package/dist/sync-local/socketClient.d.ts +68 -0
  38. package/dist/sync-local/types/index.d.ts +212 -0
  39. package/dist/sync-local/useSyncManager.d.ts +12 -0
  40. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
  41. package/dist/sync-local/utils/objectToFile.d.ts +1 -0
  42. package/dist/{use-xlsx-import-impl-BIdckUWG.js → use-xlsx-import-impl-D1AnvZ-z.js} +2 -2
  43. package/dist/{xlsx-export-impl-BEVF8Y2c.js → xlsx-export-impl-duuL1dcS.js} +293 -295
  44. package/package.json +15 -10
  45. package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
  46. 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-shortcut-2",
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,7 +34,8 @@
34
34
  "scripts": {
35
35
  "dev": "vite",
36
36
  "build": "tsc && vite build",
37
- "dev:link": "npm run build && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
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'",
38
39
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
39
40
  "preview": "vite preview"
40
41
  },
@@ -50,8 +51,13 @@
50
51
  "dependencies": {
51
52
  "@fileverse-dev/dsheets-templates": "^0.0.29",
52
53
  "@fileverse-dev/formulajs": "^4.4.53",
54
+ "@fileverse/crypto": "^0.0.22",
53
55
  "@fileverse/ui": "^5.0.0",
56
+ "@noble/ciphers": "^2.2.0",
57
+ "@noble/curves": "^2.2.0",
58
+ "@stablelib/ed25519": "^2.1.0",
54
59
  "@tippyjs/react": "^4.2.6",
60
+ "@ucans/ucans": "^0.12.0",
55
61
  "classnames": "^2.5.1",
56
62
  "dayjs": "^1.11.0",
57
63
  "exceljs": "^4.4.0",
@@ -65,6 +71,7 @@
65
71
  "react": "^18.2.0",
66
72
  "react-dom": "^18.2.0",
67
73
  "regenerator-runtime": "^0.14.1",
74
+ "socket.io-client": "^4.8.3",
68
75
  "tailwindcss-animate": "^1.0.7",
69
76
  "tiny-emitter": "^2.1.0",
70
77
  "uuid": "^8.3.2",
@@ -73,8 +80,6 @@
73
80
  "xlsx-js-style": "^1.2.0",
74
81
  "y-indexeddb": "^9.0.12",
75
82
  "y-protocols": "^1.0.6",
76
- "y-webrtc": "^10.3.0",
77
- "y-websocket": "^3.0.0",
78
83
  "yjs": "^13.6.15"
79
84
  },
80
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
- };