@fileverse-dev/dsheet 2.0.33-rtc-g → 2.0.34-smb

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 (36) hide show
  1. package/dist/{constants-yStXQJiK.js → constants-CnhOvijG.js} +14 -35
  2. package/dist/constants.d.ts +0 -4
  3. package/dist/constants.js +3 -6
  4. package/dist/editor/contexts/editor-context.d.ts +5 -13
  5. package/dist/editor/dsheet-editor.d.ts +1 -1
  6. package/dist/editor/hooks/use-editor-collaboration.d.ts +9 -0
  7. package/dist/editor/hooks/use-editor-data.d.ts +1 -1
  8. package/dist/editor/hooks/use-editor-sync.d.ts +6 -9
  9. package/dist/editor/types.d.ts +2 -2
  10. package/dist/{executeStringFunction-9cGLblM5.js → executeStringFunction-DmSriw-r.js} +222 -242
  11. package/dist/formula.js +1 -1
  12. package/dist/index-K5wvW66i.js +40192 -0
  13. package/dist/index.d.ts +0 -2
  14. package/dist/index.es.js +29 -30
  15. package/dist/sheet-engine/core/index.d.ts +1 -1
  16. package/dist/sheet-engine/core/modules/index.d.ts +1 -1
  17. package/dist/sheet-engine/core/settings.d.ts +1 -2
  18. package/dist/sheet-engine/core/types.d.ts +0 -1
  19. package/dist/sheet-engine/react/constants.d.ts +12 -2
  20. package/dist/sheet-engine/react/utils/convertCellsToCrypto.d.ts +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{use-xlsx-import-impl-BknTr9B-.js → use-xlsx-import-impl-CVZz9FqM.js} +2 -2
  23. package/dist/{xlsx-export-impl-DVg8rluj.js → xlsx-export-impl-C7VFyndH.js} +295 -293
  24. package/package.json +10 -14
  25. package/dist/editor/components/collab-status-chip.d.ts +0 -8
  26. package/dist/editor/hooks/use-collab-awareness.d.ts +0 -17
  27. package/dist/index-DJ9rTJnP.js +0 -50816
  28. package/dist/sync-local/SyncManager.d.ts +0 -67
  29. package/dist/sync-local/collabStateMachine.d.ts +0 -23
  30. package/dist/sync-local/crypto/index.d.ts +0 -6
  31. package/dist/sync-local/index.d.ts +0 -3
  32. package/dist/sync-local/socketClient.d.ts +0 -68
  33. package/dist/sync-local/types/index.d.ts +0 -211
  34. package/dist/sync-local/useSyncManager.d.ts +0 -12
  35. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +0 -8
  36. package/dist/sync-local/utils/objectToFile.d.ts +0 -1
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.33-rtc-g",
5
+ "version": "2.0.34-smb",
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
- "types": "./dist/index.d.ts",
12
- "default": "./dist/index.es.js"
11
+ "default": "./dist/index.es.js",
12
+ "types": "./dist/index.d.ts"
13
13
  },
14
14
  "./constants": {
15
15
  "import": "./dist/constants.js",
16
- "types": "./dist/constants.d.ts",
17
- "default": "./dist/constants.js"
16
+ "default": "./dist/constants.js",
17
+ "types": "./dist/constants.d.ts"
18
18
  },
19
19
  "./formula": {
20
20
  "import": "./dist/formula.js",
21
- "types": "./dist/formula.d.ts",
22
- "default": "./dist/formula.js"
21
+ "default": "./dist/formula.js",
22
+ "types": "./dist/formula.d.ts"
23
23
  },
24
24
  "./styles": "./dist/style.css",
25
25
  "./types": "./dist/editor/types.d.ts"
@@ -50,13 +50,8 @@
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",
54
53
  "@fileverse/ui": "^5.0.0",
55
- "@noble/ciphers": "^2.2.0",
56
- "@noble/curves": "^2.2.0",
57
- "@stablelib/ed25519": "^2.1.0",
58
54
  "@tippyjs/react": "^4.2.6",
59
- "@ucans/ucans": "^0.12.0",
60
55
  "classnames": "^2.5.1",
61
56
  "dayjs": "^1.11.0",
62
57
  "exceljs": "^4.4.0",
@@ -70,7 +65,6 @@
70
65
  "react": "^18.2.0",
71
66
  "react-dom": "^18.2.0",
72
67
  "regenerator-runtime": "^0.14.1",
73
- "socket.io-client": "^4.8.3",
74
68
  "tailwindcss-animate": "^1.0.7",
75
69
  "tiny-emitter": "^2.1.0",
76
70
  "uuid": "^8.3.2",
@@ -79,6 +73,8 @@
79
73
  "xlsx-js-style": "^1.2.0",
80
74
  "y-indexeddb": "^9.0.12",
81
75
  "y-protocols": "^1.0.6",
76
+ "y-webrtc": "^10.3.0",
77
+ "y-websocket": "^3.0.0",
82
78
  "yjs": "^13.6.15"
83
79
  },
84
80
  "devDependencies": {
@@ -109,4 +105,4 @@
109
105
  "typescript": "^5.2.2",
110
106
  "vite": "^5.0.0"
111
107
  }
112
- }
108
+ }
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { CollabState } from '../../sync-local/types';
3
-
4
- interface Props {
5
- state: CollabState;
6
- }
7
- export declare const CollabStatusChip: React.FC<Props>;
8
- export {};
@@ -1,17 +0,0 @@
1
- import { Awareness } from 'y-protocols/awareness';
2
- import { WorkbookInstance } from '../../sheet-engine/react';
3
- import { CollabUser } from '../../sync-local/types';
4
-
5
- /**
6
- * Reads remote cursor positions from Yjs awareness and keeps Fortune sheet's
7
- * native presence list in sync. Fortune renders colored cell borders + username
8
- * labels automatically via context.presences[].
9
- *
10
- * Also emits the full collaborator list (including the local user) via
11
- * `onCollaboratorsChange` so host apps can render navbar chips. This mirrors
12
- * ddoc's editor-layer awareness handler, which maps awareness.states →
13
- * `{ clientId, ...user }` and fires on every awareness update + once on mount.
14
- */
15
- export declare const useCollabAwareness: (awareness: Awareness | null | undefined, sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, onCollaboratorsChange?: (collaborators: CollabUser[]) => void) => {
16
- localColor: "#30bced" | "#6eeb83" | "#fa69d1" | "#ecd444" | "#ee6352" | "#db3041" | "#0ad7f2" | "#1bff39";
17
- };