@fileverse-dev/dsheet 1.0.75 → 1.0.76-patch-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
CHANGED
|
@@ -189601,7 +189601,7 @@ var V3 = {
|
|
|
189601
189601
|
SHEET_VERY_HIDDEN: 2
|
|
189602
189602
|
}
|
|
189603
189603
|
};
|
|
189604
|
-
const OMt = (e, r, t, a) => {
|
|
189604
|
+
const OMt = async (e, r, t, a) => {
|
|
189605
189605
|
if (!(!e.current || !r.current))
|
|
189606
189606
|
try {
|
|
189607
189607
|
const i = r.current.getArray(t), c = Array.from(i), f = e.current.getAllSheets(), s = V3.book_new();
|
|
@@ -189627,8 +189627,8 @@ const OMt = (e, r, t, a) => {
|
|
|
189627
189627
|
Company: "",
|
|
189628
189628
|
Manager: ""
|
|
189629
189629
|
};
|
|
189630
|
-
|
|
189631
|
-
kMt(s, `${l}.xlsx`, {
|
|
189630
|
+
let l = await (a == null ? void 0 : a()) || "Sheet";
|
|
189631
|
+
console.log(l), l.length > 30 && l.slice(0, 30), kMt(s, `${l}.xlsx`, {
|
|
189632
189632
|
bookType: "xlsx",
|
|
189633
189633
|
type: "binary",
|
|
189634
189634
|
sheetStubs: !1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
2
|
import { MutableRefObject } from 'react';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
|
-
export declare const handleExportToXLSX: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => void
|
|
4
|
+
export declare const handleExportToXLSX: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => Promise<void>;
|