@fileverse-dev/dsheet 2.0.34 → 2.0.36-rtc
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/{constants-CnhOvijG.js → constants-yStXQJiK.js} +35 -14
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +6 -3
- package/dist/editor/components/collab-status-chip.d.ts +8 -0
- package/dist/editor/contexts/editor-context.d.ts +15 -5
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/use-collab-awareness.d.ts +17 -0
- package/dist/editor/hooks/use-editor-data.d.ts +2 -1
- package/dist/editor/hooks/use-editor-sync.d.ts +9 -6
- package/dist/editor/types.d.ts +2 -2
- package/dist/editor/utils/after-update-cell.d.ts +12 -0
- package/dist/editor/utils/formula-ui-sync.d.ts +3 -1
- package/dist/{executeStringFunction-CqY9CxQI.js → executeStringFunction-F9mb-SpN.js} +4489 -4490
- package/dist/formula.js +1 -1
- package/dist/index-CFOs3Loc.js +50962 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +31 -30
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/format.d.ts +6 -0
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/core/settings.d.ts +3 -0
- package/dist/sheet-engine/core/types.d.ts +1 -0
- package/dist/sheet-engine/react/constants.d.ts +12 -2
- package/dist/sheet-engine/react/utils/convertCellsToCrypto.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.d.ts +67 -0
- package/dist/sync-local/collabStateMachine.d.ts +23 -0
- package/dist/sync-local/crypto/index.d.ts +6 -0
- package/dist/sync-local/index.d.ts +3 -0
- package/dist/sync-local/socketClient.d.ts +68 -0
- package/dist/sync-local/types/index.d.ts +211 -0
- package/dist/sync-local/useSyncManager.d.ts +12 -0
- package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
- package/dist/sync-local/utils/objectToFile.d.ts +1 -0
- package/dist/{use-xlsx-import-impl-DgedLtO_.js → use-xlsx-import-impl-B8AzRFwd.js} +2 -2
- package/dist/{xlsx-export-impl-1HOQoC6f.js → xlsx-export-impl-Q1Pec91B.js} +293 -295
- package/package.json +13 -9
- package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
- package/dist/index-D9nJayaD.js +0 -40174
- package/dist/sheet-engine/core/api/emit-cell-ydoc.d.ts +0 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { default as DSheetEditor } from './editor/dsheet-editor';
|
|
2
|
+
export { default as DSheetSkeleton } from './editor/components/skeleton-loader';
|
|
2
3
|
export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
|
|
3
4
|
export { executeStringFunction } from './editor/utils/executeStringFunction';
|
|
4
5
|
export { FLVURL } from '@fileverse-dev/formulajs';
|
|
5
6
|
export { loadLocale } from './sheet-engine/core';
|
|
6
7
|
export type { ErrorMessageHandlerReturnType } from './editor/types';
|
|
7
8
|
export type { WorkbookInstance } from './sheet-engine/react';
|
|
9
|
+
export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
|
|
8
10
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
|
|
9
11
|
export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
|
|
10
12
|
export { handleCSVUpload } from './editor/utils/csv-import';
|
package/dist/index.es.js
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { S as s,
|
|
2
|
-
import {
|
|
3
|
-
import { FLVURL as
|
|
4
|
-
import { E as
|
|
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 C, n as p, o as E, p as x, q as F, r as g, s as R, t as f, u as L, v as b, w as u, x as T, z as A } from "./index-CFOs3Loc.js";
|
|
2
|
+
import { bL as w, bM as k, bN as V, bR as z, bb as M, e as X, f as _, h as j, a as v, cc as y, aq as P, cj as U } from "./executeStringFunction-F9mb-SpN.js";
|
|
3
|
+
import { FLVURL as D } from "@fileverse-dev/formulajs";
|
|
4
|
+
import { E as H, S as N } from "./constants-yStXQJiK.js";
|
|
5
5
|
export {
|
|
6
6
|
s as DSheetEditor,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
l as DSheetSkeleton,
|
|
8
|
+
H as ERROR_MESSAGES_FLAG,
|
|
9
|
+
D as FLVURL,
|
|
10
|
+
o as FortuneCore,
|
|
11
|
+
N as SERVICES_API_KEY,
|
|
12
|
+
t as TEMPLATES,
|
|
12
13
|
r as api,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
w as clearColumnsCellsFormat,
|
|
15
|
+
n as clearFilter,
|
|
16
|
+
k as clearRowsCellsFormat,
|
|
16
17
|
V as clearSelectedCellFormat,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
d as createFilter,
|
|
19
|
+
z as deleteRowCol,
|
|
20
|
+
M as deleteSelectedCellText,
|
|
20
21
|
X as executeStringFunction,
|
|
21
22
|
_ as formulaResponseUiSync,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
j as getFlowdata,
|
|
24
|
+
v as getSheetIndex,
|
|
25
|
+
S as handleCSVUpload,
|
|
25
26
|
h as handleCopy,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
i as handleExportToCSV,
|
|
28
|
+
c as handleExportToJSON,
|
|
29
|
+
m as handleExportToXLSX,
|
|
30
|
+
C as handleFreeze,
|
|
30
31
|
p as handleHorizontalAlign,
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
E as handleLink,
|
|
33
|
+
x as handleMerge,
|
|
33
34
|
F as handlePasteByClick,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
g as handleSort,
|
|
36
|
+
R as handleTextSize,
|
|
36
37
|
f as handleVerticalAlign,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
y as insertRowCol,
|
|
39
|
+
P as jfrefreshgrid,
|
|
39
40
|
U as loadLocale,
|
|
40
41
|
L as removeActiveImage,
|
|
41
|
-
|
|
42
|
+
b as showImgChooser,
|
|
42
43
|
u as toolbarItemClickHandler,
|
|
43
44
|
T as updateFormat,
|
|
44
|
-
|
|
45
|
+
A as useXLSXImport
|
|
45
46
|
};
|
|
@@ -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, 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';
|
|
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, 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';
|
|
@@ -53,6 +53,12 @@ export declare function parseCurrencyPrefixedInput(raw: string, currencyDetail:
|
|
|
53
53
|
t: string;
|
|
54
54
|
}, number] | null;
|
|
55
55
|
export declare function genarateOrCurrencyPrefixed(vupdateStr: string, vupdate: any, currencyDetail: unknown): ReturnType<typeof genarate>;
|
|
56
|
+
/** Wrap text for SSF/Excel `fa` so letters like M/H/S/d are not date/time tokens (e.g. MXN → 5XN). */
|
|
57
|
+
export declare function quoteSsfLiteral(text: string): string;
|
|
58
|
+
/** Build a fiat currency display mask safe for SSF.format (always quotes the symbol). */
|
|
59
|
+
export declare function buildFiatCurrencyFormat(symbol: string, decimals?: number, options?: {
|
|
60
|
+
spaced?: boolean;
|
|
61
|
+
}): string;
|
|
56
62
|
export declare function update(fmt: string, v: any): string;
|
|
57
63
|
/** Max decimal places for toolbar +/- on General (Auto) without switching to a numeric `fa`. */
|
|
58
64
|
export declare const MAX_GENERAL_AUTO_DP = 15;
|
|
@@ -3,7 +3,7 @@ export { normalizedCellAttr, normalizedAttr, getCellValue, setCellValue, getReal
|
|
|
3
3
|
export { default as clipboard } from './clipboard';
|
|
4
4
|
export { moveToEnd, getRangeRectsByCharacterOffset } from './cursor';
|
|
5
5
|
export { getDateBaseLocale, getCanonicalDateEditFormat, getDateEditFormatForCell, isUsDateBaseLocale, normalizeDateBaseLocale, shouldPreserveDateFormatForEdit, setDateBaseLocale, } from './date-base-locale';
|
|
6
|
-
export { update, is_date, valueShowEs, isTypedCurrencyDisplayFormat, isCurrencyLikeNumberFormat, } from './format';
|
|
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
8
|
export { initFreeze } from './freeze';
|
|
9
9
|
export { isInlineStringCell, getInlineStringNoStyle, applyLinkToSelection, getHyperlinksFromInlineSegments, getUniformLinkFromWindowSelectionInEditor, getHyperlinkAtCaretInContentEditable, } from './inline-string';
|
|
@@ -25,6 +25,8 @@ export type Hooks = {
|
|
|
25
25
|
updateCellYdoc?: (changes: SheetChangePath[]) => void;
|
|
26
26
|
updateAllCell?: (sheetId: string) => void;
|
|
27
27
|
beforeUpdateCell?: (r: number, c: number, value: any) => boolean;
|
|
28
|
+
/** Clears RTC remote-apply lock so local edits can run data-block formulas. */
|
|
29
|
+
onLocalCellEdit?: () => void;
|
|
28
30
|
afterUpdateCell?: (row: number, column: number, oldValue: any, newValue: any) => void;
|
|
29
31
|
afterSelectionChange?: (sheetId: string, selection: Selection) => void;
|
|
30
32
|
beforeRenderRowHeaderCell?: (rowNumber: string, rowIndex: number, top: number, width: number, height: number, ctx: CanvasRenderingContext2D) => boolean;
|
|
@@ -131,6 +133,7 @@ export type Settings = {
|
|
|
131
133
|
onSheetCountChange?: (count: number) => void;
|
|
132
134
|
isAuthorized?: boolean;
|
|
133
135
|
isFlvReadOnly?: boolean;
|
|
136
|
+
isRTCActive?: boolean;
|
|
134
137
|
dateBaseLocale?: DateBaseLocale;
|
|
135
138
|
/** When true, do not auto-select A1 on load (e.g. onboarding modal runs first). */
|
|
136
139
|
suppressInitialCellSelection?: boolean;
|
|
@@ -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
|
|
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;
|