@fileverse-dev/dsheet 1.2.92-ydoc-6 → 1.2.93-ens-1
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/index.es.js +91784 -141924
- package/dist/package/constants/shared-constants.d.ts +0 -1
- package/dist/package/contexts/editor-context.d.ts +0 -1
- package/dist/package/utils/csv-import.d.ts +1 -1
- package/dist/package/utils/custom-toolbar-item.d.ts +2 -3
- package/dist/package/utils/diff-sheet.d.ts +0 -29
- package/dist/package/utils/sheet-operations.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/package/utils/calc-chain-ydoc-update.d.ts +0 -17
- package/dist/package/utils/condition-format-ydoc-update.d.ts +0 -17
- package/dist/package/utils/data-block-list-ydoc-update.d.ts +0 -18
- package/dist/package/utils/data-verification-ydoc-update.d.ts +0 -17
- package/dist/package/utils/hyperlink-ydoc-update.d.ts +0 -17
- package/dist/package/utils/live-query-list-ydoc-update.d.ts +0 -17
- package/dist/package/utils/migrate-new-yjs.d.ts +0 -6
- package/dist/package/utils/update-ydoc.d.ts +0 -11
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/dsheet",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DSheet",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.93-ens-1",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fileverse-dev/dsheets-templates": "^0.0.29",
|
|
37
|
-
"@fileverse-dev/formulajs": "4.4.
|
|
38
|
-
"@fileverse-dev/fortune-react": "1.2.
|
|
39
|
-
"@fileverse/ui": "^
|
|
37
|
+
"@fileverse-dev/formulajs": "^4.4.47",
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.2.95-ens-1",
|
|
39
|
+
"@fileverse/ui": "^5.0.0",
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|
|
42
42
|
"js-base64": "^3.7.7",
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
"typescript": "^5.2.2",
|
|
80
80
|
"vite": "^5.0.0"
|
|
81
81
|
}
|
|
82
|
-
}
|
|
82
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const calcChainYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
}) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const conditionFormatYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
}) => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const dataBlockListYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal, dataBlockCalcFunction }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
dataBlockCalcFunction?: any;
|
|
18
|
-
}) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const dataVerificationYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
}) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const hyperlinkYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
}) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
import * as Y from 'yjs';
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the integrity of sheet data in a YDoc against a given sheet editor instance.
|
|
6
|
-
* This function is used to verify that the sheet data in a YDoc matches the data in a sheet editor instance.
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
* @param {React.RefObject<WorkbookInstance | null>} options.sheetEditorRef - Reference to the sheet editor instance
|
|
9
|
-
* @param {React.RefObject<Y.Doc | null>} options.ydocRef - Reference to the YDoc instance
|
|
10
|
-
* @returns {void}
|
|
11
|
-
*/
|
|
12
|
-
export declare const liveQueryListYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal }: {
|
|
13
|
-
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
14
|
-
ydocRef: React.RefObject<Y.Doc | null>;
|
|
15
|
-
dsheetId: string;
|
|
16
|
-
handleContentPortal?: any;
|
|
17
|
-
}) => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Sheet } from '@fileverse-dev/fortune-react';
|
|
2
|
-
import * as Y from 'yjs';
|
|
3
|
-
export declare function migrateSheetArrayIfNeeded(ydoc: Y.Doc, sheetArray: Y.Array<any>): void;
|
|
4
|
-
type SheetFactory = () => Y.Map<any>;
|
|
5
|
-
export declare function migrateSheetFactoryForImport(sheet: Sheet | Y.Map<any>): SheetFactory;
|
|
6
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
import * as Y from 'yjs';
|
|
3
|
-
export type SheetChangePath = {
|
|
4
|
-
sheetId: string;
|
|
5
|
-
path: string[];
|
|
6
|
-
key?: string;
|
|
7
|
-
value: any;
|
|
8
|
-
type?: 'update' | 'delete';
|
|
9
|
-
};
|
|
10
|
-
export declare const updateYdocSheetData: (ydoc: Y.Doc | null, dsheetId: string, sheetEditor: WorkbookInstance | null, changes: SheetChangePath[], handleContentPortal: any) => void;
|
|
11
|
-
export declare function ySheetArrayToPlain(sheetArray: Y.Array<Y.Map>): Sheet[];
|