@fileverse-dev/dsheet 3.0.0 → 3.0.1-yjs-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/{constants-yStXQJiK.js → constants-Cdz6oSCq.js} +5 -7
- package/dist/constants.js +1 -1
- package/dist/editor/constants/shared-constants.d.ts +0 -2
- package/dist/editor/utils/config-ydoc-update.d.ts +20 -0
- package/dist/{executeStringFunction-C5hEkx9z.js → executeStringFunction-B2qjYgmE.js} +13459 -9239
- package/dist/formula.js +1 -1
- package/dist/{index-CBzFxleP.js → index-C7kCuqoG.js} +21253 -24580
- package/dist/index.es.js +42 -42
- package/dist/observability/publish-trace.d.ts +26 -0
- package/dist/sheet-engine/core/api/cell.d.ts +0 -20
- package/dist/sheet-engine/core/api/common.d.ts +2 -1
- package/dist/sheet-engine/core/api/index.d.ts +1 -0
- package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.d.ts +15 -0
- package/dist/sheet-engine/core/api/sheet.d.ts +5 -0
- package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +1 -0
- package/dist/sheet-engine/core/paste/paste-border-utils.d.ts +23 -0
- package/dist/sheet-engine/core/types.d.ts +3 -0
- package/dist/sheet-engine/core/utils/border-config-utils.d.ts +10 -0
- package/dist/sheet-engine/core/utils/cell-persist-utils.d.ts +8 -0
- package/dist/sheet-engine/core/utils/range-format.d.ts +43 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +8 -1
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +5 -1
- package/dist/{use-xlsx-import-impl-C_npga_I.js → use-xlsx-import-impl-BQsXcyKJ.js} +491 -477
- package/dist/{xlsx-export-impl-C2cU3lhm.js → xlsx-export-impl-BBux0CIG.js} +1106 -1106
- package/package.json +2 -2
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
const E =
|
|
1
|
+
import { E as a, S as n } from "./crypto-constants-CqpCRs86.js";
|
|
2
|
+
const E = a, d = n, f = [
|
|
3
3
|
{
|
|
4
4
|
id: "0",
|
|
5
5
|
name: "Sheet1",
|
|
6
6
|
celldata: [],
|
|
7
7
|
config: {},
|
|
8
|
-
order: 0
|
|
9
|
-
row: 500,
|
|
10
|
-
column: 26
|
|
8
|
+
order: 0
|
|
11
9
|
}
|
|
12
10
|
], m = [
|
|
13
11
|
"undo",
|
|
@@ -52,8 +50,8 @@ const E = n, d = a, f = [
|
|
|
52
50
|
"copy",
|
|
53
51
|
"paste",
|
|
54
52
|
"|",
|
|
55
|
-
"insert-row",
|
|
56
53
|
"insert-row-above",
|
|
54
|
+
"insert-row",
|
|
57
55
|
"insert-column",
|
|
58
56
|
"insert-column-right",
|
|
59
57
|
"insert-cells",
|
|
@@ -89,8 +87,8 @@ const E = n, d = a, f = [
|
|
|
89
87
|
"copy",
|
|
90
88
|
"paste",
|
|
91
89
|
"|",
|
|
92
|
-
"insert-row",
|
|
93
90
|
"insert-row-above",
|
|
91
|
+
"insert-row",
|
|
94
92
|
"insert-column",
|
|
95
93
|
"insert-column-right",
|
|
96
94
|
"|",
|
package/dist/constants.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WorkbookInstance } from '../../sheet-engine/react';
|
|
2
|
+
import { SheetChangePath } from './update-ydoc';
|
|
3
|
+
|
|
4
|
+
import * as Y from 'yjs';
|
|
5
|
+
/** Diff top-level config sub-keys and emit granular Yjs updates. */
|
|
6
|
+
export declare function buildConfigSubKeyChanges({ sheetId, oldConfig, newConfig, }: {
|
|
7
|
+
sheetId: string;
|
|
8
|
+
oldConfig: Record<string, any>;
|
|
9
|
+
newConfig: Record<string, any>;
|
|
10
|
+
}): SheetChangePath[];
|
|
11
|
+
/**
|
|
12
|
+
* Sync active sheet config sub-keys to Yjs (borderInfo, merge, rowlen, …).
|
|
13
|
+
* Replaces whole-config writes so only changed sub-keys are broadcast.
|
|
14
|
+
*/
|
|
15
|
+
export declare const configYdocUpdate: ({ sheetEditorRef, ydocRef, dsheetId, handleContentPortal, }: {
|
|
16
|
+
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
17
|
+
ydocRef: React.RefObject<Y.Doc | null>;
|
|
18
|
+
dsheetId: string;
|
|
19
|
+
handleContentPortal?: any;
|
|
20
|
+
}) => void;
|