@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.
Files changed (49) hide show
  1. package/dist/editor/components/editor-workbook.d.ts +9 -8
  2. package/dist/editor/contexts/editor-context.d.ts +2 -2
  3. package/dist/editor/dsheet-editor.d.ts +1 -1
  4. package/dist/editor/types.d.ts +5 -19
  5. package/dist/{executeStringFunction-CGbxAbbw.js → executeStringFunction-BkmJj04p.js} +96 -96
  6. package/dist/formula.js +1 -1
  7. package/dist/{index-BDaOOD6V.js → index-DMKCgPDx.js} +39101 -41307
  8. package/dist/index.d.ts +0 -7
  9. package/dist/index.es.js +51 -55
  10. package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +7 -0
  11. package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +6 -0
  12. package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -4
  13. package/dist/sheet-engine/react/components/index.d.ts +0 -1
  14. package/dist/style.css +1 -1
  15. package/dist/{use-xlsx-import-impl-CLQyfm8_.js → use-xlsx-import-impl-hXBO_hh5.js} +2 -2
  16. package/dist/{xlsx-export-impl-DXIj7EEk.js → xlsx-export-impl-D12yGGTG.js} +2 -2
  17. package/package.json +2 -3
  18. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +0 -19
  19. package/dist/editor/components/comments/comment-cell-popup.d.ts +0 -4
  20. package/dist/editor/components/comments/comment-input.d.ts +0 -4
  21. package/dist/editor/components/comments/comment-item.d.ts +0 -4
  22. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +0 -4
  23. package/dist/editor/components/comments/comment-sidebar.d.ts +0 -4
  24. package/dist/editor/components/comments/ens/ens-cache.d.ts +0 -10
  25. package/dist/editor/components/comments/ens/use-ens-status.d.ts +0 -10
  26. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +0 -12
  27. package/dist/editor/components/comments/use-comment-permissions.d.ts +0 -15
  28. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +0 -20
  29. package/dist/editor/components/sidebar/right-sidebar.d.ts +0 -14
  30. package/dist/editor/components/sidebar/sidebar-context.d.ts +0 -17
  31. package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +0 -20
  32. package/dist/editor/components/sidebar/use-right-panels.d.ts +0 -12
  33. package/dist/editor/components/sidebars/conditional-format.d.ts +0 -2
  34. package/dist/editor/components/sidebars/data-verification.d.ts +0 -2
  35. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +0 -11
  36. package/dist/editor/components/sidebars/function/function-categories.d.ts +0 -6
  37. package/dist/editor/components/sidebars/function/function-metadata.d.ts +0 -7
  38. package/dist/editor/components/sidebars/function/functionList.d.ts +0 -8
  39. package/dist/editor/components/sidebars/function/types.d.ts +0 -24
  40. package/dist/editor/components/sidebars/function/use-functions.d.ts +0 -20
  41. package/dist/editor/components/sidebars/function-content.d.ts +0 -8
  42. package/dist/editor/components/sidebars/template-ui.d.ts +0 -22
  43. package/dist/editor/components/sidebars/templates.d.ts +0 -9
  44. package/dist/editor/types/comments.d.ts +0 -133
  45. package/dist/editor/utils/api-keys-local-storage.d.ts +0 -17
  46. package/dist/editor/utils/cell-comment-marker.d.ts +0 -29
  47. package/dist/editor/utils/comment-key-utils.d.ts +0 -7
  48. package/dist/editor/utils/sheet-editor-safe.d.ts +0 -26
  49. 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 { SidebarPortalRegistryHandle, SidebarPortalRenderer } from '../../sheet-engine/react';
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
- commentsConfig?: CommentsConfig;
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
- export declare const EditorWorkbook: React.NamedExoticComponent<EditorWorkbookProps>;
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
- commentsConfig?: CommentsConfig;
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, commentsConfig, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, setShowSmartContractModal, editorStateRef, handleSmartContractQuery, setSelectedTemplate, isNewSheet, liveQueryRefreshRate, enableLiveQuery, collaboration, customPanels, }: DsheetProps) => JSX.Element;
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;
@@ -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
- commentsConfig?: CommentsConfig;
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 rows found and removed. {remaining} unique rows remain.",
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
- Zd as a$,
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
- jn as aA,
27102
- Nr as aB,
27103
- mf as aC,
27104
- $l as aD,
27105
- sl as aE,
27106
- Qu as aF,
27107
- Rn as aG,
27108
- om as aH,
27109
- an as aI,
27110
- Po as aJ,
27111
- ta as aK,
27112
- Mt as aL,
27113
- Vu as aM,
27114
- rn as aN,
27115
- lf as aO,
27116
- gm as aP,
27117
- vm as aQ,
27118
- bm as aR,
27119
- _f as aS,
27120
- ym as aT,
27121
- _m as aU,
27122
- wm as aV,
27123
- Ed as aW,
27124
- ia as aX,
27125
- $m as aY,
27126
- vf as aZ,
27127
- Tm as a_,
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
- Rl as ar,
27146
- Ke as as,
27147
- ea as at,
27148
- en as au,
27149
- Kf as av,
27150
- Un as aw,
27151
- Cn as ax,
27152
- pm as ay,
27153
- hm as az,
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
- Hd as b0,
27157
- tm as b1,
27158
- nm as b2,
27159
- sm as b3,
27160
- Gd as b4,
27161
- Xd as b5,
27162
- jd as b6,
27163
- Yd as b7,
27164
- Wd as b8,
27165
- Vd as b9,
27166
- Gc as bA,
27167
- Zc as bB,
27168
- fd as bC,
27169
- dd as bD,
27170
- rf as bE,
27171
- Oo as bF,
27172
- ld as bG,
27173
- Ld as bH,
27174
- sd as bI,
27175
- ud as bJ,
27176
- cd as bK,
27177
- tf as bL,
27178
- ef as bM,
27179
- dr as bN,
27180
- Lc as bO,
27181
- em as bP,
27182
- Sd as bQ,
27183
- Ad as bR,
27184
- xd as bS,
27185
- yd as bT,
27186
- rm as bU,
27187
- Id as bV,
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
- Kd as ba,
27194
- id as bb,
27195
- Bd as bc,
27196
- fm as bd,
27197
- ru as be,
27198
- rd as bf,
27199
- iu as bg,
27200
- zd as bh,
27201
- td as bi,
27202
- ou as bj,
27203
- Ff as bk,
27204
- Md as bl,
27205
- ad as bm,
27206
- mm as bn,
27207
- Ud as bo,
27208
- od as bp,
27209
- Pd as bq,
27210
- vr as br,
27211
- Ca as bs,
27212
- Jf as bt,
27213
- kd as bu,
27214
- Cd as bv,
27215
- Nd as bw,
27216
- pd as bx,
27217
- Yn as by,
27218
- xl as bz,
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
@@ -1,5 +1,5 @@
1
1
  import { FLVURL as r } from "@fileverse-dev/formulajs";
2
- import { e as t, f } from "./executeStringFunction-CGbxAbbw.js";
2
+ import { e as t, f } from "./executeStringFunction-BkmJj04p.js";
3
3
  export {
4
4
  r as FLVURL,
5
5
  t as executeStringFunction,