@fileverse-dev/dsheet 2.0.36-rtc-8 → 2.0.36-shortcut
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.
- package/dist/{constants-yStXQJiK.js → constants-CnhOvijG.js} +14 -35
- package/dist/constants.d.ts +0 -4
- package/dist/constants.js +3 -6
- package/dist/editor/contexts/editor-context.d.ts +5 -15
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/use-editor-collaboration.d.ts +9 -0
- package/dist/editor/hooks/use-editor-data.d.ts +1 -2
- package/dist/editor/hooks/use-editor-sync.d.ts +6 -9
- package/dist/editor/types.d.ts +2 -2
- package/dist/editor/utils/after-update-cell.d.ts +0 -12
- package/dist/editor/utils/formula-ui-sync.d.ts +1 -3
- package/dist/{executeStringFunction-F9mb-SpN.js → executeStringFunction-6r6Tl4Z6.js} +4593 -4546
- package/dist/formula.js +1 -1
- package/dist/index-CYIKZDtd.js +40340 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +35 -36
- package/dist/sheet-engine/core/api/cell.d.ts +0 -21
- package/dist/sheet-engine/core/events/shortcuts-v2.d.ts +7 -0
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/filter.d.ts +0 -13
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/selection.d.ts +7 -0
- package/dist/sheet-engine/core/settings.d.ts +0 -3
- package/dist/sheet-engine/core/types.d.ts +0 -1
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +0 -23
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -15
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-Cu-q8lC5.js → use-xlsx-import-impl-DczoKg4D.js} +2 -2
- package/dist/{xlsx-export-impl-CRw27cg1.js → xlsx-export-impl-BLKOiPKJ.js} +295 -293
- package/package.json +11 -14
- package/dist/editor/components/collab-status-chip.d.ts +0 -8
- package/dist/editor/hooks/use-collab-awareness.d.ts +0 -17
- package/dist/editor/utils/remote-apply-guard.d.ts +0 -19
- package/dist/index-CpskXdSI.js +0 -51878
- package/dist/sync-local/SyncManager.d.ts +0 -67
- package/dist/sync-local/collabStateMachine.d.ts +0 -23
- package/dist/sync-local/crypto/index.d.ts +0 -6
- package/dist/sync-local/index.d.ts +0 -3
- package/dist/sync-local/socketClient.d.ts +0 -68
- package/dist/sync-local/types/index.d.ts +0 -211
- package/dist/sync-local/useSyncManager.d.ts +0 -12
- package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +0 -8
- 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.36-
|
|
5
|
+
"version": "2.0.36-shortcut",
|
|
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
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"default": "./dist/index.es.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
13
|
},
|
|
14
14
|
"./constants": {
|
|
15
15
|
"import": "./dist/constants.js",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"default": "./dist/constants.js",
|
|
17
|
+
"types": "./dist/constants.d.ts"
|
|
18
18
|
},
|
|
19
19
|
"./formula": {
|
|
20
20
|
"import": "./dist/formula.js",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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"
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "vite",
|
|
36
36
|
"build": "tsc && vite build",
|
|
37
|
-
"
|
|
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,13 +51,8 @@
|
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@fileverse-dev/dsheets-templates": "^0.0.29",
|
|
52
53
|
"@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",
|
|
58
55
|
"@tippyjs/react": "^4.2.6",
|
|
59
|
-
"@ucans/ucans": "^0.12.0",
|
|
60
56
|
"classnames": "^2.5.1",
|
|
61
57
|
"dayjs": "^1.11.0",
|
|
62
58
|
"exceljs": "^4.4.0",
|
|
@@ -70,7 +66,6 @@
|
|
|
70
66
|
"react": "^18.2.0",
|
|
71
67
|
"react-dom": "^18.2.0",
|
|
72
68
|
"regenerator-runtime": "^0.14.1",
|
|
73
|
-
"socket.io-client": "^4.8.3",
|
|
74
69
|
"tailwindcss-animate": "^1.0.7",
|
|
75
70
|
"tiny-emitter": "^2.1.0",
|
|
76
71
|
"uuid": "^8.3.2",
|
|
@@ -79,6 +74,8 @@
|
|
|
79
74
|
"xlsx-js-style": "^1.2.0",
|
|
80
75
|
"y-indexeddb": "^9.0.12",
|
|
81
76
|
"y-protocols": "^1.0.6",
|
|
77
|
+
"y-webrtc": "^10.3.0",
|
|
78
|
+
"y-websocket": "^3.0.0",
|
|
82
79
|
"yjs": "^13.6.15"
|
|
83
80
|
},
|
|
84
81
|
"devDependencies": {
|
|
@@ -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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Scoped guard for RTC remote → local apply.
|
|
5
|
-
*
|
|
6
|
-
* `remoteUpdateRef` used to stay true for seconds (holdRemoteApplyLock), which
|
|
7
|
-
* blocked real user metadata writes via guardRemoteEcho. Depth tracks only the
|
|
8
|
-
* synchronous remote-apply window (plus one paint for structural remounts).
|
|
9
|
-
*/
|
|
10
|
-
export type RemoteApplyGuardRefs = {
|
|
11
|
-
remoteApplyDepthRef: MutableRefObject<number>;
|
|
12
|
-
remoteUpdateRef: MutableRefObject<boolean>;
|
|
13
|
-
};
|
|
14
|
-
export declare function syncRemoteUpdateFlag(refs: RemoteApplyGuardRefs): void;
|
|
15
|
-
export declare function beginRemoteApply(refs: RemoteApplyGuardRefs): void;
|
|
16
|
-
export declare function endRemoteApply(refs: RemoteApplyGuardRefs): void;
|
|
17
|
-
export declare function runUnderRemoteApply(refs: RemoteApplyGuardRefs, fn: () => void): void;
|
|
18
|
-
/** End after Workbook remount hooks have flushed (2 rAF ≈ one paint). */
|
|
19
|
-
export declare function endRemoteApplyAfterPaint(refs: RemoteApplyGuardRefs): void;
|