@fileverse-dev/dsheet 2.0.1 → 2.0.2-hyperlink
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/editor/contexts/editor-context.d.ts +2 -2
- package/dist/editor/types.d.ts +1 -1
- package/dist/editor/utils/csv-export.d.ts +1 -1
- package/dist/editor/utils/custom-toolbar-item.d.ts +3 -3
- package/dist/editor/utils/formula-ui-sync.d.ts +6 -1
- package/dist/editor/utils/xlsx-export.d.ts +1 -1
- package/dist/index.es.js +19547 -18618
- package/dist/sheet-engine/core/api/common.d.ts +1 -4
- package/dist/sheet-engine/core/index.d.ts +2 -2
- package/dist/sheet-engine/core/modules/cursor.d.ts +5 -0
- package/dist/sheet-engine/core/modules/hyperlink.d.ts +32 -4
- package/dist/sheet-engine/core/modules/index.d.ts +5 -5
- package/dist/sheet-engine/core/modules/inline-string.d.ts +20 -1
- package/dist/sheet-engine/core/modules/toolbar.d.ts +6 -1
- package/dist/sheet-engine/core/types.d.ts +30 -4
- package/dist/sheet-engine/react/components/Toolbar/Button.d.ts +1 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +1 -4
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +1 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export interface EditorContextType {
|
|
|
9
9
|
handleOnChangePortalUpdate: () => void;
|
|
10
10
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
11
11
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
-
getDocumentTitle?: () => string
|
|
12
|
+
getDocumentTitle?: (dsheetId: string) => Promise<string>;
|
|
13
13
|
updateDocumentTitle?: (title: string) => void;
|
|
14
14
|
isAuthorized: boolean;
|
|
15
15
|
dataBlockCalcFunction: {
|
|
@@ -45,7 +45,7 @@ interface EditorProviderProps {
|
|
|
45
45
|
allowComments?: boolean;
|
|
46
46
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
47
47
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
48
|
-
getDocumentTitle?: () => string
|
|
48
|
+
getDocumentTitle?: (dsheetId: string) => Promise<string>;
|
|
49
49
|
updateDocumentTitle?: (title: string) => void;
|
|
50
50
|
isAuthorized: boolean;
|
|
51
51
|
children: React.ReactNode;
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface DsheetProps {
|
|
|
45
45
|
isNewSheet: boolean;
|
|
46
46
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
47
47
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
48
|
-
getDocumentTitle?: () => string
|
|
48
|
+
getDocumentTitle?: (dsheetId: string) => Promise<string>;
|
|
49
49
|
updateDocumentTitle?: (title: string) => void;
|
|
50
50
|
isAuthorized: boolean;
|
|
51
51
|
setShowFetchURLModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WorkbookInstance } from '../../sheet-engine/react';
|
|
2
2
|
import { MutableRefObject } from 'react';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
|
-
export declare const handleExportToCSV: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, _dsheetId?: string, getDocumentTitle?: () => string) => void
|
|
4
|
+
export declare const handleExportToCSV: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, _dsheetId?: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|
|
@@ -5,13 +5,13 @@ import * as Y from 'yjs';
|
|
|
5
5
|
export declare const getCustomToolbarItems: ({ handleContentPortal, setShowSmartContractModal, setExportDropdownOpen, handleCSVUpload, handleXLSXUpload, handleExportToXLSX, handleExportToCSV, handleExportToJSON, sheetEditorRef, ydocRef, dsheetId, currentDataRef, setForceSheetRender, toggleTemplateSidebar, getDocumentTitle, updateDocumentTitle, }: {
|
|
6
6
|
handleContentPortal?: any;
|
|
7
7
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
getDocumentTitle?: () => string
|
|
8
|
+
getDocumentTitle?: (dsheetId: string) => Promise<string>;
|
|
9
9
|
updateDocumentTitle?: (title: string) => void;
|
|
10
10
|
setExportDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
11
|
handleCSVUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, ydocRef: Y.Doc | null, setForceSheetRender: React.Dispatch<React.SetStateAction<number>>, dsheetId: string, currentDataRef: React.MutableRefObject<object | null>, sheetEditorRef: React.RefObject<WorkbookInstance | null>, updateDocumentTitle?: (title: string) => void, file?: File, importType?: string, handleContentPortal?: any, separatorType?: string) => void | Promise<void>;
|
|
12
12
|
handleXLSXUpload: (event: ChangeEventHandler<HTMLInputElement> | undefined, file?: File, importType?: string) => void | Promise<void>;
|
|
13
|
-
handleExportToXLSX: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => void;
|
|
14
|
-
handleExportToCSV: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: () => string) => void;
|
|
13
|
+
handleExportToXLSX: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => void;
|
|
14
|
+
handleExportToCSV: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => void;
|
|
15
15
|
handleExportToJSON: (sheetEditorRef: React.RefObject<WorkbookInstance | null>, ydocRef: React.RefObject<Y.Doc | null>, dsheetId: string) => void;
|
|
16
16
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
17
17
|
ydocRef: React.RefObject<Y.Doc | null>;
|
|
@@ -24,6 +24,7 @@ export declare const getCellClone: (r: number, c: number, sheetEditorRef: React.
|
|
|
24
24
|
ct?: {
|
|
25
25
|
fa?: string;
|
|
26
26
|
t?: string;
|
|
27
|
+
tb?: string;
|
|
27
28
|
s?: any;
|
|
28
29
|
};
|
|
29
30
|
qp?: number;
|
|
@@ -67,13 +68,16 @@ export declare const buildCellFormat: (value: any, existingCt: Cell["ct"], heade
|
|
|
67
68
|
t: string;
|
|
68
69
|
fa: string;
|
|
69
70
|
ht: number;
|
|
71
|
+
tb?: string;
|
|
70
72
|
} | {
|
|
71
73
|
t: string;
|
|
72
74
|
fa: string;
|
|
75
|
+
s: any;
|
|
76
|
+
tb?: string;
|
|
73
77
|
} | {
|
|
74
78
|
t: string;
|
|
75
79
|
fa: string;
|
|
76
|
-
|
|
80
|
+
tb?: string;
|
|
77
81
|
};
|
|
78
82
|
export declare const preserveTextColorFromInlineStyle: (existing: any, nextIsNum: boolean) => {
|
|
79
83
|
fc?: undefined;
|
|
@@ -93,6 +97,7 @@ export declare const cloneCellStyles: (cell: Cell) => {
|
|
|
93
97
|
ct?: {
|
|
94
98
|
fa?: string;
|
|
95
99
|
t?: string;
|
|
100
|
+
tb?: string;
|
|
96
101
|
s?: any;
|
|
97
102
|
};
|
|
98
103
|
qp?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WorkbookInstance } from '../../sheet-engine/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) => Promise<void>;
|
|
4
|
+
export declare const handleExportToXLSX: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|