@fileverse-dev/dsheet 2.1.3-package-cleanup-1 → 2.1.3-rtc-debug-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.
Files changed (74) hide show
  1. package/dist/editor/components/editor-workbook.d.ts +14 -11
  2. package/dist/editor/contexts/editor-context.d.ts +4 -16
  3. package/dist/editor/dsheet-editor.d.ts +1 -1
  4. package/dist/editor/hooks/live-query/use-live-query.d.ts +2 -4
  5. package/dist/editor/hooks/use-editor-data.d.ts +2 -4
  6. package/dist/editor/types.d.ts +29 -36
  7. package/dist/editor/utils/after-update-cell.d.ts +8 -13
  8. package/dist/{executeStringFunction-C26SXUpc.js → executeStringFunction-BkmJj04p.js} +4364 -4742
  9. package/dist/formula.js +1 -1
  10. package/dist/index-DbuVGe3U.js +52666 -0
  11. package/dist/index.d.ts +1 -8
  12. package/dist/index.es.js +51 -55
  13. package/dist/sheet-engine/core/context.d.ts +0 -5
  14. package/dist/sheet-engine/core/index.d.ts +1 -1
  15. package/dist/sheet-engine/core/modules/formula.d.ts +1 -26
  16. package/dist/sheet-engine/core/modules/index.d.ts +1 -3
  17. package/dist/sheet-engine/react/components/SheetOverlay/Icon.d.ts +4 -5
  18. package/dist/sheet-engine/react/components/SheetOverlay/LucideIcon.d.ts +4 -4
  19. package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +7 -0
  20. package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +6 -0
  21. package/dist/sheet-engine/react/components/Workbook/index.d.ts +0 -6
  22. package/dist/sheet-engine/react/components/index.d.ts +0 -1
  23. package/dist/sheet-engine/react/utils/datepickerStyles.d.ts +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{use-xlsx-import-impl-C-PHnu49.js → use-xlsx-import-impl-BYpFEhWN.js} +2 -2
  26. package/dist/{xlsx-export-impl-BAJCFNh6.js → xlsx-export-impl-DWDG-U2Y.js} +2 -2
  27. package/package.json +2 -3
  28. package/dist/editor/components/api-key-modal/api-key-input.d.ts +0 -5
  29. package/dist/editor/components/api-key-modal/api-key-modal.d.ts +0 -7
  30. package/dist/editor/components/api-key-modal/rate-limit-info.d.ts +0 -4
  31. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +0 -19
  32. package/dist/editor/components/comments/comment-cell-popup.d.ts +0 -4
  33. package/dist/editor/components/comments/comment-input.d.ts +0 -4
  34. package/dist/editor/components/comments/comment-item.d.ts +0 -4
  35. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +0 -4
  36. package/dist/editor/components/comments/comment-sidebar.d.ts +0 -4
  37. package/dist/editor/components/comments/ens/ens-cache.d.ts +0 -10
  38. package/dist/editor/components/comments/ens/use-ens-status.d.ts +0 -10
  39. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +0 -12
  40. package/dist/editor/components/comments/use-comment-permissions.d.ts +0 -15
  41. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +0 -20
  42. package/dist/editor/components/sidebar/right-sidebar.d.ts +0 -14
  43. package/dist/editor/components/sidebar/sidebar-context.d.ts +0 -17
  44. package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +0 -20
  45. package/dist/editor/components/sidebar/use-right-panels.d.ts +0 -12
  46. package/dist/editor/components/sidebars/conditional-format.d.ts +0 -2
  47. package/dist/editor/components/sidebars/data-verification.d.ts +0 -2
  48. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +0 -11
  49. package/dist/editor/components/sidebars/function/function-categories.d.ts +0 -6
  50. package/dist/editor/components/sidebars/function/function-metadata.d.ts +0 -7
  51. package/dist/editor/components/sidebars/function/functionList.d.ts +0 -8
  52. package/dist/editor/components/sidebars/function/types.d.ts +0 -24
  53. package/dist/editor/components/sidebars/function/use-functions.d.ts +0 -20
  54. package/dist/editor/components/sidebars/function-content.d.ts +0 -8
  55. package/dist/editor/components/sidebars/template-ui.d.ts +0 -22
  56. package/dist/editor/components/sidebars/templates.d.ts +0 -9
  57. package/dist/editor/types/comments.d.ts +0 -133
  58. package/dist/editor/utils/api-key-storage.d.ts +0 -6
  59. package/dist/editor/utils/api-keys-local-storage.d.ts +0 -19
  60. package/dist/editor/utils/cell-comment-marker.d.ts +0 -29
  61. package/dist/editor/utils/comment-key-utils.d.ts +0 -7
  62. package/dist/editor/utils/data-block-error-handler.d.ts +0 -21
  63. package/dist/editor/utils/datablock-error-utils.d.ts +0 -1
  64. package/dist/editor/utils/sheet-editor-safe.d.ts +0 -26
  65. package/dist/index-DSogq3Tz.js +0 -55498
  66. package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +0 -53
  67. package/dist/sheet-engine/core/modules/formula-eval.worker.d.ts +0 -1
  68. package/dist/sheet-engine/core/modules/formula-range-cache.d.ts +0 -20
  69. package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +0 -40
  70. package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +0 -7
  71. package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +0 -16
  72. package/dist/sheet-engine/core/modules/formula-worker-types.d.ts +0 -24
  73. package/dist/sheet-engine/core/theme.d.ts +0 -67
  74. package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +0 -17
package/dist/index.d.ts CHANGED
@@ -4,14 +4,7 @@ export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
4
4
  export { executeStringFunction } from './editor/utils/executeStringFunction';
5
5
  export { FLVURL } from '@fileverse-dev/formulajs';
6
6
  export { loadLocale } from './sheet-engine/core';
7
- export type { ErrorMessageHandlerReturnType, DataBlockEvent, DataBlockEventType, ApiKeyStorage } from './editor/types';
8
- export type { PanelConfig, PanelId, BuiltInPanelType } from './editor/types';
9
- export type { CommentThread, CommentReply, CommentActionParams, CommentsConfig, } from './editor/types/comments';
10
- export { CommentAction } from './editor/types/comments';
11
- export { CommentsContent } from './editor/components/comments/comment-sidebar';
12
- export { CommentCellUI } from './editor/components/comments/comment-cell-popup';
13
- export { useEnsStatus } from './editor/components/comments/ens/use-ens-status';
14
- export type { EnsStatus } from './editor/components/comments/ens/ens-cache';
7
+ export type { ErrorMessageHandlerReturnType } from './editor/types';
15
8
  export type { WorkbookInstance } from './sheet-engine/react';
16
9
  export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
17
10
  export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
package/dist/index.es.js CHANGED
@@ -1,57 +1,53 @@
1
- import { C as s, a as t, b as o, S as l, d as r, i as n, T as d, e as i, f as S, g as c, h, j as m, k as C, l as u, n as p, o as E, p as F, q as g, r as x, s as R, t as f, u as A, v as I, w as L, x as w, z as T, A as b, B as v, D, E as M, F as k, G as V, H as X, I as z, J as P, K as U } from "./index-DSogq3Tz.js";
2
- import { bX as j, bY as y, bZ as B, at as G, bj as H, e as O, f as J, h as K, a as Y, cm as Z, as as q, cu as N } from "./executeStringFunction-C26SXUpc.js";
3
- import { FLVURL as W } from "@fileverse-dev/formulajs";
4
- import { E as ee, S as ae } from "./constants-yStXQJiK.js";
1
+ import { S as s, a as o, i as t, T as r, b as l, d as n, e as d, f as i, g as S, h as c, j as h, k as m, l as p, n as u, o as C, p as E, q as g, r as F, s as x, t as R, u as f, v as L, w as b, x as w, z as A, A as T, B as v, C as I, D, E as M, F as V, G as k } from "./index-DbuVGe3U.js";
2
+ import { bP as z, bQ as X, bR as _, bV as y, bg as B, e as G, f as O, h as U, a as j, cf as q, aq as H, cm as J } from "./executeStringFunction-BkmJj04p.js";
3
+ import { FLVURL as N } from "@fileverse-dev/formulajs";
4
+ import { E as Y, S as Z } from "./constants-yStXQJiK.js";
5
5
  export {
6
- s as CommentAction,
7
- t as CommentCellUI,
8
- o as CommentsContent,
9
- l as DSheetEditor,
10
- r as DSheetSkeleton,
11
- ee as ERROR_MESSAGES_FLAG,
12
- W as FLVURL,
13
- n as FortuneCore,
14
- ae as SERVICES_API_KEY,
15
- d as TEMPLATES,
16
- i as api,
17
- j as clearColumnsCellsFormat,
18
- S as clearFilter,
19
- y as clearRowsCellsFormat,
20
- B as clearSelectedCellFormat,
21
- c as createFilter,
22
- G as deleteRowCol,
23
- H as deleteSelectedCellText,
24
- h as describeMatchedShortcut,
25
- O as executeStringFunction,
26
- J as formulaResponseUiSync,
27
- K as getFlowdata,
28
- m as getRemoveDuplicatesErrorMessage,
29
- C as getRemoveDuplicatesPreview,
30
- Y as getSheetIndex,
31
- u as handleCSVUpload,
32
- p as handleCopy,
33
- E as handleExportToCSV,
34
- F as handleExportToJSON,
35
- g as handleExportToXLSX,
36
- x as handleFreeze,
37
- R as handleHorizontalAlign,
38
- f as handleLink,
39
- A as handleMerge,
40
- I as handlePasteByClick,
41
- L as handleSort,
42
- w as handleTextSize,
43
- T as handleVerticalAlign,
44
- Z as insertRowCol,
45
- b as isBrowserZoomShortcut,
46
- v as isFormulaListShortcut,
47
- D as isOpenShortcutsModalShortcut,
48
- q as jfrefreshgrid,
49
- N as loadLocale,
50
- M as removeActiveImage,
51
- k as removeDuplicates,
52
- V as showImgChooser,
53
- X as toolbarItemClickHandler,
54
- z as updateFormat,
55
- P as useEnsStatus,
56
- U as useXLSXImport
6
+ s as DSheetEditor,
7
+ o as DSheetSkeleton,
8
+ Y as ERROR_MESSAGES_FLAG,
9
+ N as FLVURL,
10
+ t as FortuneCore,
11
+ Z as SERVICES_API_KEY,
12
+ r as TEMPLATES,
13
+ l as api,
14
+ z as clearColumnsCellsFormat,
15
+ n as clearFilter,
16
+ X as clearRowsCellsFormat,
17
+ _ as clearSelectedCellFormat,
18
+ d as createFilter,
19
+ y as deleteRowCol,
20
+ B as deleteSelectedCellText,
21
+ i as describeMatchedShortcut,
22
+ G as executeStringFunction,
23
+ O as formulaResponseUiSync,
24
+ U as getFlowdata,
25
+ S as getRemoveDuplicatesErrorMessage,
26
+ c as getRemoveDuplicatesPreview,
27
+ j as getSheetIndex,
28
+ h as handleCSVUpload,
29
+ m as handleCopy,
30
+ p as handleExportToCSV,
31
+ u as handleExportToJSON,
32
+ C as handleExportToXLSX,
33
+ E as handleFreeze,
34
+ g as handleHorizontalAlign,
35
+ F as handleLink,
36
+ x as handleMerge,
37
+ R as handlePasteByClick,
38
+ f as handleSort,
39
+ L as handleTextSize,
40
+ b as handleVerticalAlign,
41
+ q as insertRowCol,
42
+ w as isBrowserZoomShortcut,
43
+ A as isFormulaListShortcut,
44
+ T as isOpenShortcutsModalShortcut,
45
+ H as jfrefreshgrid,
46
+ J as loadLocale,
47
+ v as removeActiveImage,
48
+ I as removeDuplicates,
49
+ D as showImgChooser,
50
+ M as toolbarItemClickHandler,
51
+ V as updateFormat,
52
+ k as useXLSXImport
57
53
  };
@@ -1,6 +1,5 @@
1
1
  import { SheetConfig, Sheet, Selection, Cell, CommentBox, Rect, Image, Presence, LinkCardProps, FilterOptions, RangeDialogProps, DataRegulationProps, ConditionRulesProps, GlobalCache, CellError } from './types';
2
2
  import { FormulaCache } from './modules';
3
- import { FormulaAsyncEvalJob } from './modules/formula-async-eval';
4
3
  import { DateBaseLocale, Hooks } from './settings';
5
4
 
6
5
  interface MutableRefObject<T> {
@@ -240,10 +239,6 @@ export type Context = {
240
239
  luckysheetPaintSingle: boolean;
241
240
  defaultCell: Cell;
242
241
  groupValuesRefreshData: any[];
243
- /** Chunked async formula recalc queue (Step 1 perf). Cleared when job completes. */
244
- formulaAsyncEval?: FormulaAsyncEvalJob | null;
245
- /** True while `formulaAsyncEval` is draining on the main thread in chunks. */
246
- isFormulaCalculating?: boolean;
247
242
  /**
248
243
  * Incremented when formula `func_selectedrange` moves via keyboard (`rangeOfFormula`)
249
244
  * so React re-renders — `FormulaCache` is a class and Immer does not track it.
@@ -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, describeMatchedShortcut, isBrowserZoomShortcut, isOpenShortcutsModalShortcut, isFormulaListShortcut, } 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, buildFiatCurrencyFormat, quoteSsfLiteral, FormulaCache, groupValuesRefresh, execFunctionGroup, runFormulaEvalChunk, applyWorkerFormulaChunkResults, isFormulaEvalPending, FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, 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, getRemoveDuplicatesPreview, removeDuplicates, getRemoveDuplicatesErrorMessage, 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, applySheetFilterState, 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, 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, buildFiatCurrencyFormat, quoteSsfLiteral, 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, getRemoveDuplicatesPreview, removeDuplicates, getRemoveDuplicatesErrorMessage, 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, applySheetFilterState, 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, 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';
@@ -1,8 +1,5 @@
1
- import { Cell, CellMatrix, Rect, Selection } from '../types';
1
+ import { Cell, Rect, Selection } from '../types';
2
2
  import { Context } from '../context';
3
- import { FormulaAsyncEvalJob } from './formula-async-eval';
4
- import { RangePassCacheEntry } from './formula-range-cache';
5
- import { SnapshotEvalOutput } from './formula-snapshot-eval';
6
3
 
7
4
  /** True when the formula is only numeric ops on TODAY()/NOW() (incl. unary +/−); used to display serials as dates. */
8
5
  export declare function isTodayNowPureArithmeticDateResult(formula: string, value: number): boolean;
@@ -40,12 +37,6 @@ export declare class FormulaCache {
40
37
  depsByCell: Map<string, Set<string>>;
41
38
  /** Reverse dependency graph: referenced cell -> dependent formula cells. */
42
39
  revDepsByCell: Map<string, Set<string>>;
43
- /**
44
- * Formulas that referenced a range too large to fully expand into `revDepsByCell`.
45
- * These must be included on incremental recalcs because a single-cell edit may
46
- * affect them even when no precise reverse edge exists.
47
- */
48
- formulasWithWideRangeDeps: Set<string>;
49
40
  /**
50
41
  * Dependency collection state for the currently-parsed formula, set by `execfunction`.
51
42
  * When null, dependency recording is disabled.
@@ -53,20 +44,8 @@ export declare class FormulaCache {
53
44
  activeDepCollection: null | {
54
45
  originKey: string;
55
46
  deps: Set<string>;
56
- hasWideRangeDep: boolean;
57
- };
58
- /** Step 2: per execFunctionGroup pass cache for materialized range reads. */
59
- rangeValuePassCache?: Map<string, RangePassCacheEntry>;
60
- rangeValuePassCacheStats?: {
61
- hits: number;
62
- misses: number;
63
47
  };
64
48
  constructor();
65
- materializeFullRangeFragment(context: Context, sheetId: string, flowdata: CellMatrix | null | undefined, startRow: number, endRow: number, startCol: number, endCol: number): {
66
- fragment: any[][];
67
- cryptoDenomination: string;
68
- cryptoDecimal: number;
69
- };
70
49
  tryGetCellAsNumber(cell: Cell): string | number | boolean | undefined;
71
50
  }
72
51
  export declare function iscelldata(txt: string): boolean;
@@ -76,10 +55,6 @@ export declare function delFunctionGroup(ctx: Context, r: number, c: number, id?
76
55
  export declare function insertUpdateFunctionGroup(ctx: Context, r: number, c: number, id?: string, calcChainSet?: Set<string>): void;
77
56
  export declare function execfunction(ctx: Context, txt: string, r: number, c: number, id?: string, calcChainSet?: Set<string>, isrefresh?: boolean, notInsertFunc?: boolean): any[];
78
57
  export declare function groupValuesRefresh(ctx: Context): void;
79
- /** Apply worker chunk output onto the live context (main thread only). */
80
- export declare function applyWorkerFormulaChunkResults(ctx: Context, output: SnapshotEvalOutput, impactedByCircular: Set<string>, cycleNodes: Set<string>, calcChainKeys?: string[], data?: CellMatrix | null): void;
81
- /** Run up to `chunkSize` formulas from an async job. Returns true when job is complete. */
82
- export declare function runFormulaEvalChunk(ctx: Context, job: FormulaAsyncEvalJob, chunkSize?: number): boolean;
83
58
  export declare function execFunctionGroup(ctx: Context, origin_r: number, origin_c: number, value: any, id?: string, data?: any, isForce?: boolean): void;
84
59
  /**
85
60
  * Before the first `moveHighlightCell/Range(..., "rangeOfFormula")` while editing
@@ -5,8 +5,6 @@ export { moveToEnd, getRangeRectsByCharacterOffset } from './cursor';
5
5
  export { getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, } from './date-base-locale';
6
6
  export { update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, buildFiatCurrencyFormat, quoteSsfLiteral, } from './format';
7
7
  export { FormulaCache, groupValuesRefresh, setCaretPosition, getrangeseleciton, getFormulaEditorOwner, rangeHightlightselected, handleFormulaInput, israngeseleciton, createRangeHightlight, createFormulaRangeSelect, maybeRecoverDirtyRangeSelection, delFunctionGroup, functionHTMLGenerate, onFormulaRangeDragEnd, rangeDrag, rangeSetValue, remapFormulaReferencesByMap, getFormulaRangeIndexAtCaret, isCaretAtValidFormulaRangeInsertionPoint, isLegacyFormulaRangeMode, markRangeSelectionDirty, getFormulaRangeIndexForKeyboardSync, isFormulaReferenceInputMode, seedFormulaFuncSelectedRangeFromLastSelection, functionStrChange, setFormulaEditorOwner, getAllFunctionGroup, suppressFormulaRangeSelectionForInitialEdit, } from './formula';
8
- export { FORMULA_ASYNC_CHUNK_SIZE, FORMULA_ASYNC_EVAL_THRESHOLD, FORMULA_WORKER_CHUNK_SIZE, FORMULA_WORKER_THRESHOLD, isFormulaEvalPending, } from './formula-async-eval';
9
- export type { FormulaAsyncEvalJob } from './formula-async-eval';
10
8
  export { initFreeze } from './freeze';
11
9
  export { isInlineStringCell, getInlineStringNoStyle, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, } from './inline-string';
12
10
  export { rowLocation, rowLocationByIndex, colLocation, colLocationByIndex, } from './location';
@@ -42,6 +40,6 @@ export { sanitizeDuneUrl, insertDuneChart, onIframeMoveStart, onIframeResizeStar
42
40
  export { setCellError, clearCellError, overShowError, } from './error-state-helpers';
43
41
  export { checkCellIsLocked } from './protection';
44
42
  export { detectDateFormat, isdatatypemulti, diff, isdatetime, isRealNull, isRealNum, isNumericCellType, } from './validation';
45
- export { iscelldata, getcellrange, execfunction, execFunctionGroup, runFormulaEvalChunk, applyWorkerFormulaChunkResults, insertUpdateFunctionGroup, functionCopy, } from './formula';
43
+ export { iscelldata, getcellrange, execfunction, execFunctionGroup, insertUpdateFunctionGroup, functionCopy, } from './formula';
46
44
  export { checkCF, getComputeMap } from './ConditionFormat';
47
45
  export { getdatabyselection, getQKBorder } from './cell';
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { LucideIconProps } from './LucideIcon';
3
2
 
4
3
  export declare const LucideIcons: {
@@ -12,10 +11,10 @@ export declare const LucideIcons: {
12
11
  Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
13
12
  Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
14
13
  DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
15
- AddColLeft: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
16
- AddColRight: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
17
- AddRowBelowLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
18
- AddRowAboveLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
14
+ AddColLeft: () => import("react/jsx-runtime").JSX.Element;
15
+ AddColRight: () => import("react/jsx-runtime").JSX.Element;
16
+ AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
17
+ AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
19
18
  DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
20
19
  Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
21
20
  Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -11,10 +11,10 @@ export declare const UltimateIcons: {
11
11
  Farcaster: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
12
12
  Warpcast: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
13
13
  DSheetTextDisabled: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
14
- AddColLeft: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
15
- AddColRight: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
16
- AddRowBelowLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
17
- AddRowAboveLocal: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
14
+ AddColLeft: () => import("react/jsx-runtime").JSX.Element;
15
+ AddColRight: () => import("react/jsx-runtime").JSX.Element;
16
+ AddRowBelowLocal: () => import("react/jsx-runtime").JSX.Element;
17
+ AddRowAboveLocal: () => import("react/jsx-runtime").JSX.Element;
18
18
  DSheetOnlyText: () => import("react/jsx-runtime").JSX.Element;
19
19
  Orb: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
20
20
  Lens: ({ width, height, ...props }: LucideIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const ConditionalFormatPortal: ({ visible, context, }: {
4
+ visible: boolean;
5
+ context: any;
6
+ }) => React.ReactPortal | null;
7
+ export default ConditionalFormatPortal;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const DataVerificationPortal: ({ visible }: {
4
+ visible: boolean;
5
+ }) => React.ReactPortal | null;
6
+ export default DataVerificationPortal;
@@ -1,18 +1,12 @@
1
1
  import { Settings, Context, CellWithRowAndCol, Sheet as SheetType, Op, CellMatrix, api } from '../../../core';
2
- import { ThemeKey } from '../../../core/theme';
3
2
  import { default as React } from 'react';
4
3
  import { getCryptoPrice } from '../../utils/cryptoApi';
5
4
  import { SetContextOptions } from '../../context';
6
5
  import { generateAPIs } from './api';
7
- import { SidebarPortalRegistryHandle, SidebarPortalRenderer } from '../SidebarPanelPortals';
8
6
 
9
7
  export type WorkbookInstance = ReturnType<typeof generateAPIs>;
10
8
  type AdditionalProps = {
11
9
  onOp?: (op: Op[]) => void;
12
- sidebarActivePanel?: string | null;
13
- sidebarPortalRegistry?: SidebarPortalRegistryHandle | null;
14
- sidebarPortalRenderers?: Record<string, SidebarPortalRenderer>;
15
- theme?: ThemeKey;
16
10
  };
17
11
  declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
18
12
  applyOp: (ops: Op[]) => void;
@@ -3,6 +3,5 @@ import { default as Workbook } from './Workbook';
3
3
  export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from '@fileverse-dev/formulajs/crypto-constants';
4
4
  export { Workbook };
5
5
  export type { WorkbookInstance } from './Workbook';
6
- export type { SidebarPortalRenderer, SidebarPortalRegistryHandle, SidebarPortalTargets, } from './SidebarPanelPortals';
7
6
  export type { Cell, Sheet, LiveQueryData } from '../../core';
8
7
  export { markCellChanged as animateChangedCell } from '../../core';
@@ -1,2 +1,2 @@
1
- export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid hsl(var(--color-border-default));\n border-radius: 6px;\n font-size: 14px;\n line-height: 1.5;\n color: hsl(var(--color-text-default));\n background-color: hsl(var(--color-bg-default));\n cursor: pointer;\n }\n \n .datepicker-input::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n cursor: pointer;\n opacity: 0;\n }\n \n .datepicker-input:focus {\n outline: none;\n border-color: #0188fb;\n box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);\n }\n";
1
+ export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid #e2e8f0;\n border-radius: 6px;\n font-size: 14px;\n line-height: 1.5;\n color: #1a202c;\n background-color: #fff;\n cursor: pointer;\n }\n \n .datepicker-input::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n cursor: pointer;\n opacity: 0;\n }\n \n .datepicker-input:focus {\n outline: none;\n border-color: #4299e1;\n box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);\n }\n";
2
2
  export declare const injectDatepickerStyles: () => void;