@fileverse-dev/dsheet 2.1.2-dropIn-5 → 2.1.3
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/components/editor-workbook.d.ts +9 -8
- package/dist/editor/contexts/editor-context.d.ts +2 -2
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/types.d.ts +5 -19
- package/dist/{executeStringFunction-CGbxAbbw.js → executeStringFunction-BkmJj04p.js} +96 -96
- package/dist/formula.js +1 -1
- package/dist/{index-BDaOOD6V.js → index-DMKCgPDx.js} +39101 -41307
- package/dist/index.d.ts +0 -7
- package/dist/index.es.js +51 -55
- package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +7 -0
- package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +6 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -4
- package/dist/sheet-engine/react/components/index.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-CLQyfm8_.js → use-xlsx-import-impl-hXBO_hh5.js} +2 -2
- package/dist/{xlsx-export-impl-DXIj7EEk.js → xlsx-export-impl-D12yGGTG.js} +2 -2
- package/package.json +2 -3
- package/dist/editor/components/comments/comment-actions-dropdown.d.ts +0 -19
- package/dist/editor/components/comments/comment-cell-popup.d.ts +0 -4
- package/dist/editor/components/comments/comment-input.d.ts +0 -4
- package/dist/editor/components/comments/comment-item.d.ts +0 -4
- package/dist/editor/components/comments/comment-sidebar-empty.d.ts +0 -4
- package/dist/editor/components/comments/comment-sidebar.d.ts +0 -4
- package/dist/editor/components/comments/ens/ens-cache.d.ts +0 -10
- package/dist/editor/components/comments/ens/use-ens-status.d.ts +0 -10
- package/dist/editor/components/comments/use-comment-cell-popup.d.ts +0 -12
- package/dist/editor/components/comments/use-comment-permissions.d.ts +0 -15
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +0 -20
- package/dist/editor/components/sidebar/right-sidebar.d.ts +0 -14
- package/dist/editor/components/sidebar/sidebar-context.d.ts +0 -17
- package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +0 -20
- package/dist/editor/components/sidebar/use-right-panels.d.ts +0 -12
- package/dist/editor/components/sidebars/conditional-format.d.ts +0 -2
- package/dist/editor/components/sidebars/data-verification.d.ts +0 -2
- package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +0 -11
- package/dist/editor/components/sidebars/function/function-categories.d.ts +0 -6
- package/dist/editor/components/sidebars/function/function-metadata.d.ts +0 -7
- package/dist/editor/components/sidebars/function/functionList.d.ts +0 -8
- package/dist/editor/components/sidebars/function/types.d.ts +0 -24
- package/dist/editor/components/sidebars/function/use-functions.d.ts +0 -20
- package/dist/editor/components/sidebars/function-content.d.ts +0 -8
- package/dist/editor/components/sidebars/template-ui.d.ts +0 -22
- package/dist/editor/components/sidebars/templates.d.ts +0 -9
- package/dist/editor/types/comments.d.ts +0 -133
- package/dist/editor/utils/api-keys-local-storage.d.ts +0 -17
- package/dist/editor/utils/cell-comment-marker.d.ts +0 -29
- package/dist/editor/utils/comment-key-utils.d.ts +0 -7
- package/dist/editor/utils/sheet-editor-safe.d.ts +0 -26
- package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +0 -17
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, ComponentProps } from 'react';
|
|
2
|
+
import { Workbook } from '../../sheet-engine/react';
|
|
3
3
|
import { SmartContractQueryHandler } from '../utils/after-update-cell';
|
|
4
4
|
import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
|
|
5
|
-
import { CommentsConfig } from '../types/comments';
|
|
6
5
|
|
|
7
6
|
type OnboardingHandler = OnboardingHandlerType;
|
|
8
7
|
type DataBlockApiKeyHandler = DataBlockApiKeyHandlerType;
|
|
@@ -13,13 +12,15 @@ interface EditorWorkbookProps {
|
|
|
13
12
|
setInputFetchURLDataBlock?: React.Dispatch<React.SetStateAction<string>>;
|
|
14
13
|
isReadOnly?: boolean;
|
|
15
14
|
allowSheetDownload?: boolean;
|
|
15
|
+
allowComments?: boolean;
|
|
16
16
|
toggleTemplateSidebar?: () => void;
|
|
17
17
|
onboardingComplete?: boolean;
|
|
18
18
|
onboardingCompleteLocalStorageKey?: string;
|
|
19
19
|
onboardingHandler?: OnboardingHandler;
|
|
20
20
|
dataBlockApiKeyHandler?: DataBlockApiKeyHandler;
|
|
21
21
|
exportDropdownOpen?: boolean;
|
|
22
|
-
|
|
22
|
+
commentData?: Object;
|
|
23
|
+
getCommentCellUI?: ComponentProps<typeof Workbook>['getCommentCellUI'];
|
|
23
24
|
setExportDropdownOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
24
25
|
dsheetId: string;
|
|
25
26
|
storeApiKey?: (apiKeyName: string) => void;
|
|
@@ -27,9 +28,9 @@ interface EditorWorkbookProps {
|
|
|
27
28
|
onDuneChartEmbed?: () => void;
|
|
28
29
|
onSheetCountChange?: (sheetCount: number) => void;
|
|
29
30
|
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
30
|
-
sidebarActivePanel?: string | null;
|
|
31
|
-
sidebarPortalRegistry?: SidebarPortalRegistryHandle | null;
|
|
32
|
-
sidebarPortalRenderers?: Record<string, SidebarPortalRenderer>;
|
|
33
31
|
}
|
|
34
|
-
|
|
32
|
+
/**
|
|
33
|
+
* EditorWorkbook component handles rendering the Fortune Workbook with proper configuration
|
|
34
|
+
*/
|
|
35
|
+
export declare const EditorWorkbook: React.FC<EditorWorkbookProps>;
|
|
35
36
|
export {};
|
|
@@ -2,7 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { LiveQueryData, Sheet, WorkbookInstance } from '../../sheet-engine/react';
|
|
3
3
|
import { IndexeddbPersistence } from 'y-indexeddb';
|
|
4
4
|
import { DataBlockApiKeyHandlerType, SheetUpdateData } from '../types';
|
|
5
|
-
import { CommentsConfig } from '../types/comments';
|
|
6
5
|
import { CollaborationProps, CollabState, CollabUser } from '../../sync-local/types';
|
|
7
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
8
7
|
|
|
@@ -51,6 +50,7 @@ export interface EditorContextType {
|
|
|
51
50
|
handleLiveQuery: (subsheetIndex: number, data: LiveQueryData) => void;
|
|
52
51
|
}
|
|
53
52
|
interface EditorProviderProps {
|
|
53
|
+
allowComments?: boolean;
|
|
54
54
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
55
55
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
56
56
|
getDocumentTitle?: (dsheetId: string) => Promise<string>;
|
|
@@ -65,7 +65,7 @@ interface EditorProviderProps {
|
|
|
65
65
|
onChange?: (data: SheetUpdateData, encodedUpdate?: string) => void;
|
|
66
66
|
collaboration?: CollaborationProps;
|
|
67
67
|
externalEditorRef?: React.MutableRefObject<WorkbookInstance | null>;
|
|
68
|
-
|
|
68
|
+
commentData?: object;
|
|
69
69
|
editorStateRef?: React.MutableRefObject<{
|
|
70
70
|
refreshIndexedDB: () => Promise<void>;
|
|
71
71
|
terminateSession?: () => void;
|
|
@@ -7,5 +7,5 @@ import { DsheetProps } from './types';
|
|
|
7
7
|
* @param props - Component properties
|
|
8
8
|
* @returns The SpreadsheetEditor component
|
|
9
9
|
*/
|
|
10
|
-
declare const SpreadsheetEditor: ({ isReadOnly, allowSheetDownload, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, onboardingComplete, onboardingCompleteLocalStorageKey, onboardingHandler,
|
|
10
|
+
declare const SpreadsheetEditor: ({ isReadOnly, allowSheetDownload, allowComments, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, onboardingComplete, onboardingCompleteLocalStorageKey, onboardingHandler, commentData, getCommentCellUI, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, setShowSmartContractModal, editorStateRef, handleSmartContractQuery, setSelectedTemplate, isNewSheet, liveQueryRefreshRate, enableLiveQuery, collaboration, }: DsheetProps) => JSX.Element;
|
|
11
11
|
export default SpreadsheetEditor;
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { Sheet, WorkbookInstance, Cell } from '../sheet-engine/react';
|
|
2
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { Sheet, Workbook, WorkbookInstance, Cell } from '../sheet-engine/react';
|
|
2
|
+
import { ComponentProps, RefObject } from 'react';
|
|
3
3
|
import { ERROR_MESSAGES_FLAG } from './constants/shared-constants';
|
|
4
4
|
import { SmartContractQueryHandler } from './utils/after-update-cell';
|
|
5
5
|
import { CollaborationProps } from '../sync-local/types';
|
|
6
|
-
import { CommentsConfig } from './types/comments';
|
|
7
6
|
|
|
8
7
|
import * as Y from 'yjs';
|
|
9
|
-
export type { CommentThread, CommentReply, CommentActionParams, CommentsConfig, } from './types/comments';
|
|
10
|
-
export { CommentAction } from './types/comments';
|
|
11
8
|
export interface SheetUpdateData {
|
|
12
9
|
data: Sheet[];
|
|
13
10
|
}
|
|
@@ -15,19 +12,7 @@ export interface EditorValues {
|
|
|
15
12
|
sheetEditorRef: RefObject<WorkbookInstance>;
|
|
16
13
|
currentDataRef: React.MutableRefObject<Sheet[] | null>;
|
|
17
14
|
ydocRef: React.RefObject<Y.Doc | null>;
|
|
18
|
-
openPanel: (panelId: string) => void;
|
|
19
|
-
closePanel: () => void;
|
|
20
15
|
}
|
|
21
|
-
export interface PanelConfig {
|
|
22
|
-
id: string;
|
|
23
|
-
header: {
|
|
24
|
-
title: string;
|
|
25
|
-
subtitle?: string;
|
|
26
|
-
};
|
|
27
|
-
width?: string;
|
|
28
|
-
content: React.ReactNode;
|
|
29
|
-
}
|
|
30
|
-
export type { PanelId, BuiltInPanelType, } from './components/sidebar/use-right-panels';
|
|
31
16
|
export type OnboardingHandlerType = (params: {
|
|
32
17
|
row: number;
|
|
33
18
|
column: number;
|
|
@@ -84,12 +69,14 @@ export interface DsheetProps {
|
|
|
84
69
|
onboardingHandler?: OnboardingHandlerType;
|
|
85
70
|
dataBlockApiKeyHandler?: DataBlockApiKeyHandlerType;
|
|
86
71
|
setForceSheetRender?: React.Dispatch<React.SetStateAction<number>>;
|
|
87
|
-
|
|
72
|
+
getCommentCellUI?: ComponentProps<typeof Workbook>['getCommentCellUI'];
|
|
73
|
+
commentData?: Object;
|
|
88
74
|
toggleTemplateSidebar?: () => void;
|
|
89
75
|
sheetEditorRef?: RefObject<WorkbookInstance & {
|
|
90
76
|
refreshIndexedDB: () => Promise<void>;
|
|
91
77
|
}>;
|
|
92
78
|
storeApiKey?: (apiKeyName: string) => void;
|
|
79
|
+
allowComments?: boolean;
|
|
93
80
|
onDataBlockApiResponse?: (dataBlockName: string) => void;
|
|
94
81
|
onDuneChartEmbed?: () => void;
|
|
95
82
|
onSheetCountChange?: (sheetCount: number) => void;
|
|
@@ -99,7 +86,6 @@ export interface DsheetProps {
|
|
|
99
86
|
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
100
87
|
enableLiveQuery?: boolean;
|
|
101
88
|
liveQueryRefreshRate?: number;
|
|
102
|
-
customPanels?: PanelConfig[];
|
|
103
89
|
}
|
|
104
90
|
export type BaseError = {
|
|
105
91
|
message: string;
|
|
@@ -12181,7 +12181,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
12181
12181
|
columnsToAnalyze: "Columns to analyze",
|
|
12182
12182
|
selectAll: "Select all",
|
|
12183
12183
|
removeDuplicates: "Remove duplicates",
|
|
12184
|
-
result: "{removed} duplicate
|
|
12184
|
+
result: "{removed} duplicate values removed from the analyzed columns. {remaining} unique values remain.",
|
|
12185
12185
|
noMulti: "Cannot perform this operation on multiple selection areas, please select a single area",
|
|
12186
12186
|
noMerge: "This operation cannot be performed on merged cells",
|
|
12187
12187
|
noColumns: "Select at least one column to analyze",
|
|
@@ -27087,7 +27087,7 @@ export {
|
|
|
27087
27087
|
$d as Z,
|
|
27088
27088
|
ml as _,
|
|
27089
27089
|
Fe as a,
|
|
27090
|
-
|
|
27090
|
+
Hd as a$,
|
|
27091
27091
|
vc as a0,
|
|
27092
27092
|
Rr as a1,
|
|
27093
27093
|
wc as a2,
|
|
@@ -27098,33 +27098,33 @@ export {
|
|
|
27098
27098
|
Na as a7,
|
|
27099
27099
|
ed as a8,
|
|
27100
27100
|
Js as a9,
|
|
27101
|
-
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
|
|
27110
|
-
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27114
|
-
|
|
27115
|
-
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27101
|
+
Nr as aA,
|
|
27102
|
+
mf as aB,
|
|
27103
|
+
$l as aC,
|
|
27104
|
+
sl as aD,
|
|
27105
|
+
Qu as aE,
|
|
27106
|
+
Rn as aF,
|
|
27107
|
+
om as aG,
|
|
27108
|
+
an as aH,
|
|
27109
|
+
Po as aI,
|
|
27110
|
+
ta as aJ,
|
|
27111
|
+
Mt as aK,
|
|
27112
|
+
Vu as aL,
|
|
27113
|
+
rn as aM,
|
|
27114
|
+
lf as aN,
|
|
27115
|
+
gm as aO,
|
|
27116
|
+
vm as aP,
|
|
27117
|
+
bm as aQ,
|
|
27118
|
+
_f as aR,
|
|
27119
|
+
ym as aS,
|
|
27120
|
+
_m as aT,
|
|
27121
|
+
wm as aU,
|
|
27122
|
+
Ed as aV,
|
|
27123
|
+
ia as aW,
|
|
27124
|
+
$m as aX,
|
|
27125
|
+
vf as aY,
|
|
27126
|
+
Tm as aZ,
|
|
27127
|
+
Zd as a_,
|
|
27128
27128
|
un as aa,
|
|
27129
27129
|
Ze as ab,
|
|
27130
27130
|
wl as ac,
|
|
@@ -27142,80 +27142,80 @@ export {
|
|
|
27142
27142
|
It as ao,
|
|
27143
27143
|
Mu as ap,
|
|
27144
27144
|
Tl as aq,
|
|
27145
|
-
|
|
27146
|
-
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
|
|
27151
|
-
|
|
27152
|
-
|
|
27153
|
-
|
|
27145
|
+
Ke as ar,
|
|
27146
|
+
ea as as,
|
|
27147
|
+
en as at,
|
|
27148
|
+
Kf as au,
|
|
27149
|
+
Un as av,
|
|
27150
|
+
Cn as aw,
|
|
27151
|
+
pm as ax,
|
|
27152
|
+
hm as ay,
|
|
27153
|
+
jn as az,
|
|
27154
27154
|
$c as b,
|
|
27155
27155
|
Qd as b$,
|
|
27156
|
-
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27163
|
-
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
|
|
27177
|
-
|
|
27178
|
-
|
|
27179
|
-
|
|
27180
|
-
|
|
27181
|
-
|
|
27182
|
-
|
|
27183
|
-
|
|
27184
|
-
|
|
27185
|
-
|
|
27186
|
-
|
|
27187
|
-
|
|
27156
|
+
tm as b0,
|
|
27157
|
+
nm as b1,
|
|
27158
|
+
sm as b2,
|
|
27159
|
+
Gd as b3,
|
|
27160
|
+
Xd as b4,
|
|
27161
|
+
jd as b5,
|
|
27162
|
+
Yd as b6,
|
|
27163
|
+
Wd as b7,
|
|
27164
|
+
Vd as b8,
|
|
27165
|
+
Kd as b9,
|
|
27166
|
+
Zc as bA,
|
|
27167
|
+
fd as bB,
|
|
27168
|
+
dd as bC,
|
|
27169
|
+
rf as bD,
|
|
27170
|
+
Oo as bE,
|
|
27171
|
+
ld as bF,
|
|
27172
|
+
Ld as bG,
|
|
27173
|
+
sd as bH,
|
|
27174
|
+
ud as bI,
|
|
27175
|
+
cd as bJ,
|
|
27176
|
+
tf as bK,
|
|
27177
|
+
ef as bL,
|
|
27178
|
+
dr as bM,
|
|
27179
|
+
Lc as bN,
|
|
27180
|
+
em as bO,
|
|
27181
|
+
Sd as bP,
|
|
27182
|
+
Ad as bQ,
|
|
27183
|
+
xd as bR,
|
|
27184
|
+
yd as bS,
|
|
27185
|
+
rm as bT,
|
|
27186
|
+
Id as bU,
|
|
27187
|
+
Rl as bV,
|
|
27188
27188
|
xt as bW,
|
|
27189
27189
|
am as bX,
|
|
27190
27190
|
Wn as bY,
|
|
27191
27191
|
hf as bZ,
|
|
27192
27192
|
Jd as b_,
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
|
|
27196
|
-
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
|
|
27212
|
-
|
|
27213
|
-
|
|
27214
|
-
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27218
|
-
|
|
27193
|
+
id as ba,
|
|
27194
|
+
Bd as bb,
|
|
27195
|
+
fm as bc,
|
|
27196
|
+
ru as bd,
|
|
27197
|
+
rd as be,
|
|
27198
|
+
iu as bf,
|
|
27199
|
+
zd as bg,
|
|
27200
|
+
td as bh,
|
|
27201
|
+
ou as bi,
|
|
27202
|
+
Ff as bj,
|
|
27203
|
+
Md as bk,
|
|
27204
|
+
ad as bl,
|
|
27205
|
+
mm as bm,
|
|
27206
|
+
Ud as bn,
|
|
27207
|
+
od as bo,
|
|
27208
|
+
Pd as bp,
|
|
27209
|
+
vr as bq,
|
|
27210
|
+
Ca as br,
|
|
27211
|
+
Jf as bs,
|
|
27212
|
+
kd as bt,
|
|
27213
|
+
Cd as bu,
|
|
27214
|
+
Nd as bv,
|
|
27215
|
+
pd as bw,
|
|
27216
|
+
Yn as bx,
|
|
27217
|
+
xl as by,
|
|
27218
|
+
Gc as bz,
|
|
27219
27219
|
Ul as c,
|
|
27220
27220
|
na as c0,
|
|
27221
27221
|
el as c1,
|
package/dist/formula.js
CHANGED