@fileverse-dev/dsheet 2.0.33-rtc-g → 2.0.34-smb

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 (36) hide show
  1. package/dist/{constants-yStXQJiK.js → constants-CnhOvijG.js} +14 -35
  2. package/dist/constants.d.ts +0 -4
  3. package/dist/constants.js +3 -6
  4. package/dist/editor/contexts/editor-context.d.ts +5 -13
  5. package/dist/editor/dsheet-editor.d.ts +1 -1
  6. package/dist/editor/hooks/use-editor-collaboration.d.ts +9 -0
  7. package/dist/editor/hooks/use-editor-data.d.ts +1 -1
  8. package/dist/editor/hooks/use-editor-sync.d.ts +6 -9
  9. package/dist/editor/types.d.ts +2 -2
  10. package/dist/{executeStringFunction-9cGLblM5.js → executeStringFunction-DmSriw-r.js} +222 -242
  11. package/dist/formula.js +1 -1
  12. package/dist/index-K5wvW66i.js +40192 -0
  13. package/dist/index.d.ts +0 -2
  14. package/dist/index.es.js +29 -30
  15. package/dist/sheet-engine/core/index.d.ts +1 -1
  16. package/dist/sheet-engine/core/modules/index.d.ts +1 -1
  17. package/dist/sheet-engine/core/settings.d.ts +1 -2
  18. package/dist/sheet-engine/core/types.d.ts +0 -1
  19. package/dist/sheet-engine/react/constants.d.ts +12 -2
  20. package/dist/sheet-engine/react/utils/convertCellsToCrypto.d.ts +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{use-xlsx-import-impl-BknTr9B-.js → use-xlsx-import-impl-CVZz9FqM.js} +2 -2
  23. package/dist/{xlsx-export-impl-DVg8rluj.js → xlsx-export-impl-C7VFyndH.js} +295 -293
  24. package/package.json +10 -14
  25. package/dist/editor/components/collab-status-chip.d.ts +0 -8
  26. package/dist/editor/hooks/use-collab-awareness.d.ts +0 -17
  27. package/dist/index-DJ9rTJnP.js +0 -50816
  28. package/dist/sync-local/SyncManager.d.ts +0 -67
  29. package/dist/sync-local/collabStateMachine.d.ts +0 -23
  30. package/dist/sync-local/crypto/index.d.ts +0 -6
  31. package/dist/sync-local/index.d.ts +0 -3
  32. package/dist/sync-local/socketClient.d.ts +0 -68
  33. package/dist/sync-local/types/index.d.ts +0 -211
  34. package/dist/sync-local/useSyncManager.d.ts +0 -12
  35. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +0 -8
  36. package/dist/sync-local/utils/objectToFile.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  export { default as DSheetEditor } from './editor/dsheet-editor';
2
- export { default as DSheetSkeleton } from './editor/components/skeleton-loader';
3
2
  export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
4
3
  export { executeStringFunction } from './editor/utils/executeStringFunction';
5
4
  export { FLVURL } from '@fileverse-dev/formulajs';
6
5
  export { loadLocale } from './sheet-engine/core';
7
6
  export type { ErrorMessageHandlerReturnType } from './editor/types';
8
7
  export type { WorkbookInstance } from './sheet-engine/react';
9
- export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
10
8
  export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
11
9
  export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
12
10
  export { handleCSVUpload } from './editor/utils/csv-import';
package/dist/index.es.js CHANGED
@@ -1,46 +1,45 @@
1
- import { S as s, a as l, i as o, T as t, b as r, d as n, e as d, h as S, f as h, g as i, j as c, k as m, l as p, n as C, o as E, p as x, q as F, r as g, s as f, t as L, u as R, v as u, w as T, x as b, z as A } from "./index-DJ9rTJnP.js";
2
- import { bJ as w, bK as k, bL as V, bP as z, ba as P, e as X, f as _, h as v, a as y, ca as M, ap as U, ch as j } from "./executeStringFunction-9cGLblM5.js";
1
+ import { S as s, i as l, T as o, a as r, c as t, b as n, h as d, d as h, e as S, f as i, g as c, j as m, k as p, l as C, n as E, o as F, p as x, q as g, r as f, s as L, t as R, u, v as T, w as b } from "./index-K5wvW66i.js";
2
+ import { bJ as I, bK as w, bL as V, bP as k, ba as P, e as X, f as _, h as v, a as y, ca as z, ap as M, ch as U } from "./executeStringFunction-DmSriw-r.js";
3
3
  import { FLVURL as G } from "@fileverse-dev/formulajs";
4
- import { E as J, S as K } from "./constants-yStXQJiK.js";
4
+ import { E as J, S as K } from "./constants-CnhOvijG.js";
5
5
  export {
6
6
  s as DSheetEditor,
7
- l as DSheetSkeleton,
8
7
  J as ERROR_MESSAGES_FLAG,
9
8
  G as FLVURL,
10
- o as FortuneCore,
9
+ l as FortuneCore,
11
10
  K as SERVICES_API_KEY,
12
- t as TEMPLATES,
11
+ o as TEMPLATES,
13
12
  r as api,
14
- w as clearColumnsCellsFormat,
15
- n as clearFilter,
16
- k as clearRowsCellsFormat,
13
+ I as clearColumnsCellsFormat,
14
+ t as clearFilter,
15
+ w as clearRowsCellsFormat,
17
16
  V as clearSelectedCellFormat,
18
- d as createFilter,
19
- z as deleteRowCol,
17
+ n as createFilter,
18
+ k as deleteRowCol,
20
19
  P as deleteSelectedCellText,
21
20
  X as executeStringFunction,
22
21
  _ as formulaResponseUiSync,
23
22
  v as getFlowdata,
24
23
  y as getSheetIndex,
25
- S as handleCSVUpload,
24
+ d as handleCSVUpload,
26
25
  h as handleCopy,
27
- i as handleExportToCSV,
28
- c as handleExportToJSON,
29
- m as handleExportToXLSX,
30
- p as handleFreeze,
31
- C as handleHorizontalAlign,
32
- E as handleLink,
33
- x as handleMerge,
26
+ S as handleExportToCSV,
27
+ i as handleExportToJSON,
28
+ c as handleExportToXLSX,
29
+ m as handleFreeze,
30
+ p as handleHorizontalAlign,
31
+ C as handleLink,
32
+ E as handleMerge,
34
33
  F as handlePasteByClick,
35
- g as handleSort,
36
- f as handleTextSize,
37
- L as handleVerticalAlign,
38
- M as insertRowCol,
39
- U as jfrefreshgrid,
40
- j as loadLocale,
41
- R as removeActiveImage,
42
- u as showImgChooser,
43
- T as toolbarItemClickHandler,
44
- b as updateFormat,
45
- A as useXLSXImport
34
+ x as handleSort,
35
+ g as handleTextSize,
36
+ f as handleVerticalAlign,
37
+ z as insertRowCol,
38
+ M as jfrefreshgrid,
39
+ U as loadLocale,
40
+ L as removeActiveImage,
41
+ R as showImgChooser,
42
+ u as toolbarItemClickHandler,
43
+ T as updateFormat,
44
+ b as useXLSXImport
46
45
  };
@@ -7,7 +7,7 @@ export { defaultSettings } from './settings';
7
7
  export type { Settings, Hooks, DateBaseLocale } from './settings';
8
8
  export { handleCopy, handleGlobalKeyDown, handlePaste, handlePasteByClick, fixPositionOnFrozenCells, handleCellAreaMouseDown, handleCellAreaDoubleClick, handleContextMenu, mouseRender, handleOverlayMouseMove, handleOverlayMouseUp, handleRowHeaderMouseDown, handleColumnHeaderMouseDown, handleColSizeHandleMouseDown, handleColSizeHandleDoubleClick, handleRowSizeHandleMouseDown, handleColFreezeHandleMouseDown, handleRowFreezeHandleMouseDown, } from './events';
9
9
  export * from './locale';
10
- export { getBorderInfoComputeRange, getBorderInfoCompute, normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getRealCellValue, mergeBorder, cancelNormalSelected, updateCell, getRangetxt, getRangeByTxt, isValidRangeText, getInlineStringHTML, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, getStyleByCell, clearSelectedCellFormat, clearRowsCellsFormat, clearColumnsCellsFormat, clipboard, moveToEnd, getRangeRectsByCharacterOffset, getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, FormulaCache, groupValuesRefresh, execFunctionGroup, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, maybeRecoverDirtyRangeSelection, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, setFormulaEditorOwner, functionHTMLGenerate, suppressFormulaRangeSelectionForInitialEdit, rangeSetValue, getFormulaRangeIndexForKeyboardSync, createFormulaRangeSelect, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, initFreeze, isInlineStringCell, getInlineStringNoStyle, rowLocation, rowLocationByIndex, colLocation, colLocationByIndex, insertRowCol, deleteRowCol, hideSelected, showSelected, isShowHidenCR, getFilterHiddenRowsUnionFromFilterMap, getFilterHiddenRowsUnion, ensureManualHiddenInitialized, rebuildRowHiddenUnion, scrollToHighlightCell, selectTitlesMap, selectTitlesRange, defaultLuckysheetSelectRanges, normalizeSelection, syncPrimaryCellActiveFromSelection, selectionIsExactlyOneMergeBlock, setPrimaryCellActive, advancePrimaryCellInLastMultiSelection, snapSheetSelectionFocusToCellPreserveMultiRange, moveHighlightCell, deleteSelectedCellText, selectAll, fixRowStyleOverflowInFreeze, fixColumnStyleOverflowInFreeze, calcSelectionInfo, addSheet, deleteSheet, editSheetName, changeSheet, updateFormat, autoSelectionFormula, handleBold, handleItalic, handleStrikeThrough, handleUnderline, handleHorizontalAlign, handleVerticalAlign, handleTextColor, handleTextBackground, handleBorder, handleMerge, mergeSelectionHasValues, handleSort, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, handleScreenShot, insertImage, showImgChooser, drawArrow, setEditingComment, removeEditingComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, removeActiveImage, cancelActiveImgItem, onImageMoveStart, onImageResizeStart, createDropCellRange, sortSelection, sortSheetBySelectedColumn, searchAll, searchNext, replace, replaceAll, replaceAllScoped, getSearchIndexArr, getSearchIndexArrAsync, getFindRangeOnCurrentSheet, getQuickSearchIndexArr, getQuickSearchHiddenConfig, getCellHyperlinks, getHyperlinkDisplayTextInCell, getInlineLinkPlainRange, getUniformLinkCoveringPlainRange, getUniformLinkAtPlainOffset, removeHyperlinkForLink, updateHyperlinkForLink, syncLinkCardAfterHyperlinkChange, expandCellRectForMerge, shouldQuickSearchUseAsync, runQuickSearchIndexArrAsync, QUICK_SEARCH_ASYNC_ROW_THRESHOLD, parseRangeText, getCellRowColumn, getCellHyperlink, saveHyperlink, removeHyperlink, showLinkCard, goToLink, isLinkValid, createFilterOptions, clearFilter, clearFilterForColumn, toggleViewerFilter, createFilter, getFilterColumnValues, getFilterColumnColors, orderbydatafiler, saveFilter, onCellsMoveStart, cfSplitRange, updateMoreCell, getRegStr, getDataArr, applyLocation, getOptionValue, getSelectRange, getDropdownList, setDropdownValue, confirmMessage, setConditionRules, CF_DATE_DEFAULT_FORMAT, parseCfDateConditionForUi, formatCfDatePresetSnapshot, parseDdMmYyyyToSerial, handleOverlayTouchStart, handleOverlayTouchEnd, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, handleKeydownForZoom, jfrefreshgrid, sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStart, onIframeMove, onIframeMoveEnd, onIframeResize, onIframeResizeEnd, setCellError, clearCellError, detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, iscelldata, getcellrange, cancelFunctionrangeSelected, seletedHighlistByindex, spillSortResult, execfunction, insertUpdateFunctionGroup, remapFormulaReferencesByMap, checkCF, getComputeMap, cancelPaintModel, hideCRCount, getdatabyselection, } from './modules';
10
+ export { getBorderInfoComputeRange, getBorderInfoCompute, normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getRealCellValue, mergeBorder, cancelNormalSelected, updateCell, getRangetxt, getRangeByTxt, isValidRangeText, getInlineStringHTML, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, getStyleByCell, clearSelectedCellFormat, clearRowsCellsFormat, clearColumnsCellsFormat, clipboard, moveToEnd, getRangeRectsByCharacterOffset, getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, FormulaCache, groupValuesRefresh, execFunctionGroup, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, maybeRecoverDirtyRangeSelection, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, setFormulaEditorOwner, functionHTMLGenerate, suppressFormulaRangeSelectionForInitialEdit, rangeSetValue, getFormulaRangeIndexForKeyboardSync, createFormulaRangeSelect, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, initFreeze, isInlineStringCell, getInlineStringNoStyle, rowLocation, rowLocationByIndex, colLocation, colLocationByIndex, insertRowCol, deleteRowCol, hideSelected, showSelected, isShowHidenCR, getFilterHiddenRowsUnionFromFilterMap, getFilterHiddenRowsUnion, ensureManualHiddenInitialized, rebuildRowHiddenUnion, scrollToHighlightCell, selectTitlesMap, selectTitlesRange, defaultLuckysheetSelectRanges, normalizeSelection, syncPrimaryCellActiveFromSelection, selectionIsExactlyOneMergeBlock, setPrimaryCellActive, advancePrimaryCellInLastMultiSelection, snapSheetSelectionFocusToCellPreserveMultiRange, moveHighlightCell, deleteSelectedCellText, selectAll, fixRowStyleOverflowInFreeze, fixColumnStyleOverflowInFreeze, calcSelectionInfo, addSheet, deleteSheet, editSheetName, changeSheet, updateFormat, autoSelectionFormula, handleBold, handleItalic, handleStrikeThrough, handleUnderline, handleHorizontalAlign, handleVerticalAlign, handleTextColor, handleTextBackground, handleBorder, handleMerge, mergeSelectionHasValues, handleSort, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, handleScreenShot, insertImage, showImgChooser, drawArrow, setEditingComment, removeEditingComment, removeOverShowComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, removeActiveImage, cancelActiveImgItem, onImageMoveStart, onImageResizeStart, createDropCellRange, sortSelection, sortSheetBySelectedColumn, searchAll, searchNext, replace, replaceAll, replaceAllScoped, getSearchIndexArr, getSearchIndexArrAsync, getFindRangeOnCurrentSheet, getQuickSearchIndexArr, getQuickSearchHiddenConfig, getCellHyperlinks, getHyperlinkDisplayTextInCell, getInlineLinkPlainRange, getUniformLinkCoveringPlainRange, getUniformLinkAtPlainOffset, removeHyperlinkForLink, updateHyperlinkForLink, syncLinkCardAfterHyperlinkChange, expandCellRectForMerge, shouldQuickSearchUseAsync, runQuickSearchIndexArrAsync, QUICK_SEARCH_ASYNC_ROW_THRESHOLD, parseRangeText, getCellRowColumn, getCellHyperlink, saveHyperlink, removeHyperlink, showLinkCard, goToLink, isLinkValid, createFilterOptions, clearFilter, clearFilterForColumn, toggleViewerFilter, createFilter, getFilterColumnValues, getFilterColumnColors, orderbydatafiler, saveFilter, onCellsMoveStart, cfSplitRange, updateMoreCell, getRegStr, getDataArr, applyLocation, getOptionValue, getSelectRange, getDropdownList, setDropdownValue, confirmMessage, setConditionRules, CF_DATE_DEFAULT_FORMAT, parseCfDateConditionForUi, formatCfDatePresetSnapshot, parseDdMmYyyyToSerial, handleOverlayTouchStart, handleOverlayTouchEnd, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, handleKeydownForZoom, jfrefreshgrid, sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStart, onIframeMove, onIframeMoveEnd, onIframeResize, onIframeResizeEnd, setCellError, clearCellError, detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, iscelldata, getcellrange, cancelFunctionrangeSelected, seletedHighlistByindex, spillSortResult, execfunction, insertUpdateFunctionGroup, remapFormulaReferencesByMap, checkCF, getComputeMap, cancelPaintModel, hideCRCount, getdatabyselection, } from './modules';
11
11
  export type { FilterDate, FilterValue, FilterColor } from './modules';
12
12
  export { getFreezeState, toggleFreeze, indexToColumnChar, escapeScriptTag, escapeHTMLTag, getSheetIndex, replaceHtml, isAllowEdit, isAllowEditReadOnly, filterPatch, patchToOp, opToPatch, inverseRowColOptions, } from './utils';
13
13
  export type { PatchOptions, ChangedSheet } from './utils';
@@ -14,7 +14,7 @@ export { scrollToHighlightCell, seletedHighlistByindex, selectTitlesMap, selectT
14
14
  export { addSheet, deleteSheet, editSheetName, changeSheet, updateSheet, } from './sheet';
15
15
  export { updateFormat, autoSelectionFormula, handleBold, handleItalic, handleStrikeThrough, handleUnderline, handleHorizontalAlign, handleVerticalAlign, handleTextColor, handleTextBackground, handleBorder, handleMerge, handleSort, handleFreeze, handleTextSize, handleSum, handleLink, captureLinkEditorOpenSnapshot, isHyperlinkCreationBlocked, toolbarItemClickHandler, toolbarItemSelectedFunc, updateFormatCell, cancelPaintModel, } from './toolbar';
16
16
  export { handleScreenShot } from './screenshot';
17
- export { drawArrow, setEditingComment, removeEditingComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, onCommentBoxMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxResize, onCommentBoxResizeEnd, removeOverShowComment, } from './comment';
17
+ export { drawArrow, setEditingComment, removeEditingComment, newComment, editComment, deleteComment, showComments, showHideComment, showHideAllComments, getCommentBoxByRC, onCommentBoxMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxResize, onCommentBoxResizeEnd, removeOverShowComment, } from './comment';
18
18
  export { showImgChooser, insertImage, removeActiveImage, cancelActiveImgItem, onImageMoveStart, onImageResizeStart, onImageMove, onImageMoveEnd, onImageResize, onImageResizeEnd, } from './image';
19
19
  export { createDropCellRange, dropCellCache, getTypeItemHide, updateDropCell, } from './dropCell';
20
20
  export { mergeCells, mergeSelectionHasValues } from './merge';
@@ -115,7 +115,7 @@ export type Settings = {
115
115
  headerContextMenu?: string[];
116
116
  sheetTabContextMenu?: string[];
117
117
  filterContextMenu?: string[];
118
- getCommentCellUI?: ((row: number, column: number, dragHandler: CommentUIDragFn) => React.ReactNode) | null;
118
+ getCommentCellUI?: ((row: number, column: number, dragHandler: CommentUIDragFn, isHover?: boolean) => React.ReactNode) | null;
119
119
  generateSheetId?: () => string;
120
120
  hooks?: Hooks;
121
121
  customToolbarItems?: {
@@ -131,7 +131,6 @@ export type Settings = {
131
131
  onSheetCountChange?: (count: number) => void;
132
132
  isAuthorized?: boolean;
133
133
  isFlvReadOnly?: boolean;
134
- isRTCActive?: boolean;
135
134
  dateBaseLocale?: DateBaseLocale;
136
135
  /** When true, do not auto-select A1 on load (e.g. onboarding modal runs first). */
137
136
  suppressInitialCellSelection?: boolean;
@@ -112,7 +112,6 @@ export type Presence = {
112
112
  username: string;
113
113
  userId?: string;
114
114
  color: string;
115
- isEns?: boolean;
116
115
  selection: {
117
116
  r: number;
118
117
  c: number;
@@ -16,12 +16,22 @@ export declare const FIAT_ICON_MAP: {
16
16
  export declare function getGroupedCurrencyOptions(currencyDetail: Array<{
17
17
  name: string;
18
18
  value: string;
19
- }>): {
19
+ geckoId?: string;
20
+ }>): ({
20
21
  group: string;
21
22
  options: {
22
23
  label: string;
23
24
  value: string;
25
+ icon: string;
26
+ type: string;
27
+ }[];
28
+ } | {
29
+ group: string;
30
+ options: {
31
+ label: string;
32
+ value: string;
33
+ geckoId: string | undefined;
24
34
  icon: string | undefined;
25
35
  type: string;
26
36
  }[];
27
- }[];
37
+ })[];
@@ -1,5 +1,5 @@
1
1
  export declare const getFiatSymbol: (code: string) => string;
2
- export declare const getFiatGeckoId: (symbol: string, baseCurrency: string) => string;
2
+ export declare const getFiatGeckoId: (symbol: string, baseCurrency?: string) => string;
3
3
  export declare function convertCellsToCrypto({ context, setContext, denomination, decimals, }: {
4
4
  context: any;
5
5
  setContext: (fn: (ctx: any) => void) => void;