@odoo/o-spreadsheet 16.3.3 → 16.3.5

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.
@@ -40,7 +40,7 @@ interface EnrichedToken extends Token {
40
40
  functionContext?: FunctionContext;
41
41
  }
42
42
 
43
- declare type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
43
+ type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
44
44
  interface Token {
45
45
  type: TokenType;
46
46
  value: string;
@@ -87,7 +87,7 @@ interface ASTEmpty extends ASTBase {
87
87
  type: "EMPTY";
88
88
  value: "";
89
89
  }
90
- declare type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
90
+ type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
91
91
  /**
92
92
  * Parse an expression (as a string) into an AST.
93
93
  */
@@ -154,7 +154,7 @@ declare class EventBus<Event extends {
154
154
  */
155
155
  clear(): void;
156
156
  }
157
- declare type Callback = (...args: any[]) => void;
157
+ type Callback = (...args: any[]) => void;
158
158
  interface Subscription {
159
159
  owner: any;
160
160
  callback: Callback;
@@ -241,7 +241,7 @@ declare class SelectiveHistory<T = unknown> {
241
241
  private fastForward;
242
242
  }
243
243
 
244
- declare type ClientId = string;
244
+ type ClientId = string;
245
245
  interface Client {
246
246
  id: ClientId;
247
247
  name: string;
@@ -287,9 +287,9 @@ interface RevisionsDroppedEvent {
287
287
  interface SnapshotEvent {
288
288
  type: "snapshot";
289
289
  }
290
- declare type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
290
+ type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
291
291
 
292
- declare type XLSXExportFile = XLSXExportImageFile | XLSXExportXMLFile;
292
+ type XLSXExportFile = XLSXExportImageFile | XLSXExportXMLFile;
293
293
  interface XLSXExportXMLFile {
294
294
  path: string;
295
295
  content: string;
@@ -308,10 +308,10 @@ interface XLSXExport {
308
308
  * Note that the alpha channel goes first! AARRGGBB
309
309
  * e.g. "1E5010" or "331E5010"
310
310
  */
311
- declare type XlsxHexColor = string & Alias;
311
+ type XlsxHexColor = string & Alias;
312
312
 
313
- declare type VerticalAxisPosition = "left" | "right";
314
- declare type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
313
+ type VerticalAxisPosition = "left" | "right";
314
+ type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
315
315
 
316
316
  interface BarChartDefinition {
317
317
  readonly type: "bar";
@@ -325,7 +325,7 @@ interface BarChartDefinition {
325
325
  readonly stacked: boolean;
326
326
  readonly aggregated?: boolean;
327
327
  }
328
- declare type BarChartRuntime = {
328
+ type BarChartRuntime = {
329
329
  chartJsConfig: ChartConfiguration;
330
330
  background: Color;
331
331
  };
@@ -406,7 +406,7 @@ interface LineChartDefinition {
406
406
  readonly stacked: boolean;
407
407
  readonly aggregated?: boolean;
408
408
  }
409
- declare type LineChartRuntime = {
409
+ type LineChartRuntime = {
410
410
  chartJsConfig: ChartConfiguration;
411
411
  background: Color;
412
412
  };
@@ -421,7 +421,7 @@ interface PieChartDefinition {
421
421
  readonly legendPosition: LegendPosition;
422
422
  readonly aggregated?: boolean;
423
423
  }
424
- declare type PieChartRuntime = {
424
+ type PieChartRuntime = {
425
425
  chartJsConfig: ChartConfiguration;
426
426
  background: Color;
427
427
  };
@@ -437,8 +437,8 @@ interface ScorecardChartDefinition {
437
437
  readonly baselineColorUp: Color;
438
438
  readonly baselineColorDown: Color;
439
439
  }
440
- declare type BaselineMode = "text" | "difference" | "percentage";
441
- declare type BaselineArrowDirection = "neutral" | "up" | "down";
440
+ type BaselineMode = "text" | "difference" | "percentage";
441
+ type BaselineArrowDirection = "neutral" | "up" | "down";
442
442
  interface ScorecardChartRuntime {
443
443
  readonly title: string;
444
444
  readonly keyValue: string;
@@ -452,15 +452,15 @@ interface ScorecardChartRuntime {
452
452
  readonly baselineStyle?: Style;
453
453
  }
454
454
 
455
- declare type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
456
- declare type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
457
- declare type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
458
- declare type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
455
+ type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
456
+ type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
457
+ type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
458
+ type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
459
459
  interface ExcelChartDataset {
460
460
  readonly label?: string;
461
461
  readonly range: string;
462
462
  }
463
- declare type ExcelChartType = "line" | "bar" | "pie";
463
+ type ExcelChartType = "line" | "bar" | "pie";
464
464
  interface ExcelChartDefinition {
465
465
  readonly title?: string;
466
466
  readonly type: ExcelChartType;
@@ -511,8 +511,8 @@ interface ConditionalFormat {
511
511
  interface ConditionalFormatInternal extends Omit<ConditionalFormat, "ranges"> {
512
512
  ranges: Range[];
513
513
  }
514
- declare type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
515
- declare type SingleColorRules = CellIsRule;
514
+ type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
515
+ type SingleColorRules = CellIsRule;
516
516
  interface SingleColorRule {
517
517
  style: Style;
518
518
  }
@@ -521,18 +521,18 @@ interface CellIsRule extends SingleColorRule {
521
521
  operator: ConditionalFormattingOperatorValues;
522
522
  values: string[];
523
523
  }
524
- declare type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
525
- declare type ColorScaleThreshold = {
524
+ type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
525
+ type ColorScaleThreshold = {
526
526
  color: number;
527
527
  type: ThresholdType;
528
528
  value?: string;
529
529
  };
530
- declare type ColorScaleMidPointThreshold = {
530
+ type ColorScaleMidPointThreshold = {
531
531
  color: number;
532
532
  type: Exclude<ThresholdType, "value">;
533
533
  value: string;
534
534
  };
535
- declare type IconThreshold = {
535
+ type IconThreshold = {
536
536
  type: Exclude<ThresholdType, "value">;
537
537
  operator: "gt" | "ge";
538
538
  value: string;
@@ -554,8 +554,8 @@ interface IconSetRule {
554
554
  upperInflectionPoint: IconThreshold;
555
555
  lowerInflectionPoint: IconThreshold;
556
556
  }
557
- declare type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
558
- declare type UpDown = "up" | "down";
557
+ type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
558
+ type UpDown = "up" | "down";
559
559
 
560
560
  interface Figure {
561
561
  id: UID;
@@ -569,7 +569,7 @@ interface FigureSize {
569
569
  width: Pixel;
570
570
  height: Pixel;
571
571
  }
572
- declare type ResizeDirection = -1 | 0 | 1;
572
+ type ResizeDirection = -1 | 0 | 1;
573
573
 
574
574
  interface Image {
575
575
  path: string;
@@ -663,7 +663,8 @@ interface ExcelFilterTableData {
663
663
  }
664
664
  interface ExcelFilterData {
665
665
  colId: number;
666
- filteredValues: string[];
666
+ displayedValues: string[];
667
+ displayBlanks?: boolean;
667
668
  }
668
669
 
669
670
  interface AbstractMessage {
@@ -719,11 +720,11 @@ interface SnapshotCreatedMessage extends AbstractMessage {
719
720
  serverRevisionId: UID;
720
721
  nextRevisionId: UID;
721
722
  }
722
- declare type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
723
- declare type StateUpdateMessage = Extract<CollaborationMessage, {
723
+ type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
724
+ type StateUpdateMessage = Extract<CollaborationMessage, {
724
725
  nextRevisionId: UID;
725
726
  }>;
726
- declare type NewMessageCallback<T = any> = (message: T) => void;
727
+ type NewMessageCallback<T = any> = (message: T) => void;
727
728
  /**
728
729
  * The transport service allows to communicate between multiple clients.
729
730
  * A client can send any message to others.
@@ -1020,7 +1021,7 @@ interface HeadersSelected extends SelectionEventPayload {
1020
1021
  interface AlterZone extends SelectionEventPayload {
1021
1022
  type: "AlterZone";
1022
1023
  }
1023
- declare type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZone>;
1024
+ type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZone>;
1024
1025
 
1025
1026
  interface StreamCallbacks<Event> {
1026
1027
  handleEvent: (event: Event) => void;
@@ -1029,7 +1030,7 @@ interface StreamCallbacks<Event> {
1029
1030
  release?: () => void;
1030
1031
  }
1031
1032
 
1032
- declare type StatefulStream<Event, State> = {
1033
+ type StatefulStream<Event, State> = {
1033
1034
  capture(owner: unknown, state: State, callbacks: StreamCallbacks<Event>): void;
1034
1035
  registerAsDefault: (owner: unknown, state: State, callbacks: StreamCallbacks<Event>) => void;
1035
1036
  resetDefaultAnchor: (owner: unknown, state: State) => void;
@@ -1054,9 +1055,9 @@ interface SelectionProcessor {
1054
1055
  loopSelection(): DispatchResult;
1055
1056
  selectTableAroundSelection(): DispatchResult;
1056
1057
  }
1057
- declare type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
1058
+ type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
1058
1059
 
1059
- declare type FilePath = string;
1060
+ type FilePath = string;
1060
1061
  /**
1061
1062
  * FileStore manage the transfer of file with the server.
1062
1063
  */
@@ -1109,7 +1110,7 @@ interface NotifyUIEvent {
1109
1110
  * Note that the Model can be used in a standalone way to manipulate
1110
1111
  * programmatically a spreadsheet.
1111
1112
  */
1112
- declare type Mode = "normal" | "readonly" | "dashboard";
1113
+ type Mode = "normal" | "readonly" | "dashboard";
1113
1114
  interface ModelConfig {
1114
1115
  readonly mode: Mode;
1115
1116
  /**
@@ -1357,7 +1358,7 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
1357
1358
  checkValidations<T>(command: T, ...validations: Validation<T>[]): CommandResult | CommandResult[];
1358
1359
  }
1359
1360
 
1360
- declare type UIActions = Pick<ModelConfig, "notifyUI">;
1361
+ type UIActions = Pick<ModelConfig, "notifyUI">;
1361
1362
  interface UIPluginConfig {
1362
1363
  readonly getters: Getters;
1363
1364
  readonly stateObserver: StateObserver;
@@ -1414,7 +1415,9 @@ declare class FindAndReplacePlugin extends UIPlugin {
1414
1415
  private currentSearchRegex;
1415
1416
  private searchOptions;
1416
1417
  private toSearch;
1418
+ private isSearchDirty;
1417
1419
  handle(cmd: Command): void;
1420
+ finalize(): void;
1418
1421
  getSearchMatches(): SearchMatch[];
1419
1422
  getCurrentSelectedMatchIndex(): number | null;
1420
1423
  /**
@@ -1458,7 +1461,7 @@ declare class FindAndReplacePlugin extends UIPlugin {
1458
1461
  drawGrid(renderingContext: GridRenderingContext): void;
1459
1462
  }
1460
1463
 
1461
- declare type EditionMode = "editing" | "selecting" | "inactive";
1464
+ type EditionMode = "editing" | "selecting" | "inactive";
1462
1465
  interface ComposerSelection {
1463
1466
  start: number;
1464
1467
  end: number;
@@ -1571,12 +1574,12 @@ interface DOMDimension {
1571
1574
  width: Pixel;
1572
1575
  height: Pixel;
1573
1576
  }
1574
- declare type Rect = DOMCoordinates & DOMDimension;
1577
+ type Rect = DOMCoordinates & DOMDimension;
1575
1578
  /**
1576
1579
  * The viewport is the visible area of a sheet.
1577
1580
  * Column and row headers are not included in the viewport.
1578
1581
  */
1579
- declare type Viewport = Zone & Alias;
1582
+ type Viewport = Zone & Alias;
1580
1583
  interface SheetScrollInfo {
1581
1584
  /**
1582
1585
  * The offset in the X coordinate between the viewport left side and
@@ -1621,16 +1624,16 @@ interface EdgeScrollInfo {
1621
1624
  direction: ScrollDirection$1;
1622
1625
  delay: number;
1623
1626
  }
1624
- declare type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1627
+ type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1625
1628
 
1626
1629
  declare enum ClipboardMIMEType {
1627
1630
  PlainText = "text/plain",
1628
1631
  Html = "text/html"
1629
1632
  }
1630
- declare type ClipboardContent = {
1633
+ type ClipboardContent = {
1631
1634
  [type in ClipboardMIMEType]?: string;
1632
1635
  };
1633
- declare type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1636
+ type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1634
1637
 
1635
1638
  /**
1636
1639
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -1672,8 +1675,8 @@ interface PositionDependentCommand {
1672
1675
  col: number;
1673
1676
  row: number;
1674
1677
  }
1675
- declare const invalidateEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "MOVE_CONDITIONAL_FORMAT" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "REFRESH_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS">;
1676
- declare const readonlyAllowedCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "MOVE_CONDITIONAL_FORMAT" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "REFRESH_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS">;
1678
+ declare const invalidateEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "MOVE_CONDITIONAL_FORMAT" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS">;
1679
+ declare const readonlyAllowedCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "MOVE_CONDITIONAL_FORMAT" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS">;
1677
1680
  declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "MOVE_CONDITIONAL_FORMAT" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE">;
1678
1681
  interface UpdateCellCommand extends PositionDependentCommand {
1679
1682
  type: "UPDATE_CELL";
@@ -2123,9 +2126,6 @@ interface UpdateSearchCommand {
2123
2126
  interface ClearSearchCommand {
2124
2127
  type: "CLEAR_SEARCH";
2125
2128
  }
2126
- interface RefreshSearchCommand {
2127
- type: "REFRESH_SEARCH";
2128
- }
2129
2129
  interface SelectSearchPreviousCommand {
2130
2130
  type: "SELECT_SEARCH_PREVIOUS_MATCH";
2131
2131
  }
@@ -2149,7 +2149,7 @@ interface SortCommand {
2149
2149
  sortDirection: SortDirection;
2150
2150
  sortOptions?: SortOptions;
2151
2151
  }
2152
- declare type SortDirection = "ascending" | "descending";
2152
+ type SortDirection = "ascending" | "descending";
2153
2153
  interface ResizeViewportCommand {
2154
2154
  type: "RESIZE_SHEETVIEW";
2155
2155
  width: Pixel;
@@ -2218,7 +2218,7 @@ interface SplitTextIntoColumnsCommand {
2218
2218
  addNewColumns: boolean;
2219
2219
  force?: boolean;
2220
2220
  }
2221
- declare type CoreCommand =
2221
+ type CoreCommand =
2222
2222
  /** CELLS */
2223
2223
  UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
2224
2224
  /** GRID SHAPE */
@@ -2241,8 +2241,8 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
2241
2241
  | CreateImageOverCommand
2242
2242
  /** FILTERS */
2243
2243
  | CreateFilterTableCommand | RemoveFilterTableCommand;
2244
- declare type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | RefreshSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand;
2245
- declare type Command = CoreCommand | LocalCommand;
2244
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand;
2245
+ type Command = CoreCommand | LocalCommand;
2246
2246
  /**
2247
2247
  * Holds the result of a command dispatch.
2248
2248
  * The command may have been successfully dispatched or cancelled
@@ -2262,7 +2262,7 @@ declare class DispatchResult {
2262
2262
  */
2263
2263
  isCancelledBecause(reason: CancelledReason): boolean;
2264
2264
  }
2265
- declare type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2265
+ type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2266
2266
  declare const enum CommandResult {
2267
2267
  Success = 0,
2268
2268
  CancelledForUnknownReason = 1,
@@ -2386,26 +2386,26 @@ interface CoreCommandDispatcher {
2386
2386
  type: T;
2387
2387
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
2388
2388
  }
2389
- declare type CommandTypes = Command["type"];
2390
- declare type CoreCommandTypes = CoreCommand["type"];
2389
+ type CommandTypes = Command["type"];
2390
+ type CoreCommandTypes = CoreCommand["type"];
2391
2391
 
2392
2392
  /**
2393
2393
  * The following type is meant to be used in union with other aliases to prevent
2394
2394
  * Intellisense from resolving it.
2395
2395
  * See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
2396
2396
  */
2397
- declare type Alias = {} & {};
2398
- declare type HeaderIndex = number & Alias;
2399
- declare type Pixel = number & Alias;
2400
- declare type UID = string & Alias;
2401
- declare type SetDecimalStep = 1 | -1;
2402
- declare type FilterId = UID & Alias;
2403
- declare type FilterTableId = UID & Alias;
2397
+ type Alias = {} & {};
2398
+ type HeaderIndex = number & Alias;
2399
+ type Pixel = number & Alias;
2400
+ type UID = string & Alias;
2401
+ type SetDecimalStep = 1 | -1;
2402
+ type FilterId = UID & Alias;
2403
+ type FilterTableId = UID & Alias;
2404
2404
  /**
2405
2405
  * CSS style color string
2406
2406
  * e.g. "#ABC", "#AAAFFF", "rgb(30, 80, 16)"
2407
2407
  */
2408
- declare type Color = string & Alias;
2408
+ type Color = string & Alias;
2409
2409
  interface RGBA {
2410
2410
  a: number;
2411
2411
  r: number;
@@ -2447,9 +2447,9 @@ interface ZoneDimension {
2447
2447
  numberOfRows: HeaderIndex;
2448
2448
  numberOfCols: HeaderIndex;
2449
2449
  }
2450
- declare type Align = "left" | "right" | "center" | undefined;
2451
- declare type VerticalAlign = "top" | "middle" | "bottom" | undefined;
2452
- declare type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2450
+ type Align = "left" | "right" | "center" | undefined;
2451
+ type VerticalAlign = "top" | "middle" | "bottom" | undefined;
2452
+ type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2453
2453
  interface Style {
2454
2454
  bold?: boolean;
2455
2455
  italic?: boolean;
@@ -2483,15 +2483,15 @@ interface CellPosition {
2483
2483
  sheetId: UID;
2484
2484
  }
2485
2485
  declare const borderStyles: readonly ["thin", "medium", "thick", "dashed", "dotted"];
2486
- declare type BorderStyle = typeof borderStyles[number];
2487
- declare type BorderDescr = {
2486
+ type BorderStyle = typeof borderStyles[number];
2487
+ type BorderDescr = {
2488
2488
  style: BorderStyle;
2489
2489
  color: Color;
2490
2490
  };
2491
2491
  /**
2492
2492
  * A complete border(s) data is a set of position-color-style information
2493
2493
  */
2494
- declare type BorderData = {
2494
+ type BorderData = {
2495
2495
  position: BorderPosition;
2496
2496
  color?: Color;
2497
2497
  style?: BorderStyle;
@@ -2502,27 +2502,27 @@ interface Border$1 {
2502
2502
  bottom?: BorderDescr;
2503
2503
  right?: BorderDescr;
2504
2504
  }
2505
- declare type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2506
- declare type EnsureRange = (range: Range) => any[][];
2507
- declare type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2505
+ type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2506
+ type EnsureRange = (range: Range) => any[][];
2507
+ type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2508
2508
  interface CompiledFormula {
2509
2509
  execute: _CompiledFormula;
2510
2510
  tokens: Token[];
2511
2511
  dependencies: string[];
2512
2512
  }
2513
- declare type Arg = MatrixArg | PrimitiveArg;
2514
- declare type MatrixArg = ({
2513
+ type Arg = MatrixArg | PrimitiveArg;
2514
+ type MatrixArg = ({
2515
2515
  value: CellValue;
2516
2516
  format?: Format;
2517
2517
  } | undefined)[][];
2518
- declare type PrimitiveArg = {
2518
+ type PrimitiveArg = {
2519
2519
  value: PrimitiveArgValue;
2520
2520
  format?: Format;
2521
2521
  };
2522
- declare type ArgValue = PrimitiveArgValue | MatrixArgValue;
2523
- declare type MatrixArgValue = (CellValue | undefined)[][];
2524
- declare type PrimitiveArgValue = string | number | boolean | null;
2525
- declare type FunctionReturn = {
2522
+ type ArgValue = PrimitiveArgValue | MatrixArgValue;
2523
+ type MatrixArgValue = (CellValue | undefined)[][];
2524
+ type PrimitiveArgValue = string | number | boolean | null;
2525
+ type FunctionReturn = {
2526
2526
  value: FunctionReturnValue;
2527
2527
  format?: Format;
2528
2528
  };
@@ -2530,7 +2530,7 @@ interface FormulaReturn extends Omit<FunctionReturn, "value"> {
2530
2530
  value: FunctionReturnValue | null;
2531
2531
  format?: Format;
2532
2532
  }
2533
- declare type FunctionReturnValue = string | number | boolean;
2533
+ type FunctionReturnValue = string | number | boolean;
2534
2534
  interface HeaderDimensions {
2535
2535
  start: Pixel;
2536
2536
  size: Pixel;
@@ -2562,8 +2562,8 @@ interface PaneDivision {
2562
2562
  /** Represents the number of frozen rows */
2563
2563
  ySplit: number;
2564
2564
  }
2565
- declare type BorderPosition = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2566
- declare type BorderDescription = {
2565
+ type BorderPosition = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2566
+ type BorderDescription = {
2567
2567
  vertical?: BorderDescr;
2568
2568
  horizontal?: BorderDescr;
2569
2569
  } | undefined;
@@ -2573,24 +2573,24 @@ declare const enum DIRECTION {
2573
2573
  LEFT = "left",
2574
2574
  RIGHT = "right"
2575
2575
  }
2576
- declare type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2577
- declare type ApplyRangeChangeResult = {
2576
+ type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2577
+ type ApplyRangeChangeResult = {
2578
2578
  changeType: Exclude<ChangeType, "NONE">;
2579
2579
  range: Range;
2580
2580
  } | {
2581
2581
  changeType: "NONE";
2582
2582
  };
2583
- declare type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2584
- declare type Dimension = "COL" | "ROW";
2585
- declare type ConsecutiveIndexes = HeaderIndex[];
2583
+ type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2584
+ type Dimension = "COL" | "ROW";
2585
+ type ConsecutiveIndexes = HeaderIndex[];
2586
2586
  interface RangeProvider {
2587
2587
  adaptRanges: (applyChange: ApplyRangeChange, sheetId?: UID) => void;
2588
2588
  }
2589
- declare type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2589
+ type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2590
2590
  /**
2591
2591
  * Return the prop's type of a component
2592
2592
  */
2593
- declare type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2593
+ type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2594
2594
  /**
2595
2595
  * Container for a lazy computed value
2596
2596
  */
@@ -2616,7 +2616,7 @@ interface Lazy<T> {
2616
2616
  interface Cloneable<T> {
2617
2617
  clone: (args?: Partial<T>) => T;
2618
2618
  }
2619
- declare type CSSProperties<P extends string = string> = Record<P, string | undefined>;
2619
+ type CSSProperties<P extends string = string> = Record<P, string | undefined>;
2620
2620
  interface SortOptions {
2621
2621
  /** If true sort the headers of the range along with the rest */
2622
2622
  sortHeaders?: boolean;
@@ -2627,8 +2627,8 @@ interface MenuMouseEvent extends MouseEvent {
2627
2627
  closedMenuId?: UID;
2628
2628
  }
2629
2629
 
2630
- declare type Format = string & Alias;
2631
- declare type FormattedValue = string & Alias;
2630
+ type Format = string & Alias;
2631
+ type FormattedValue = string & Alias;
2632
2632
 
2633
2633
  interface CellAttributes {
2634
2634
  readonly id: UID;
@@ -2647,7 +2647,7 @@ interface FormulaCell extends CellAttributes {
2647
2647
  readonly compiledFormula: CompiledFormula;
2648
2648
  readonly dependencies: Range[];
2649
2649
  }
2650
- declare type Cell = LiteralCell | FormulaCell;
2650
+ type Cell = LiteralCell | FormulaCell;
2651
2651
  interface EvaluatedCellProperties {
2652
2652
  readonly format?: Format;
2653
2653
  /**
@@ -2661,8 +2661,8 @@ interface EvaluatedCellProperties {
2661
2661
  readonly isAutoSummable: boolean;
2662
2662
  readonly link?: Link;
2663
2663
  }
2664
- declare type CellValue = string | number | boolean;
2665
- declare type EvaluatedCell = NumberCell | TextCell | BooleanCell | EmptyCell | ErrorCell;
2664
+ type CellValue = string | number | boolean;
2665
+ type EvaluatedCell = NumberCell | TextCell | BooleanCell | EmptyCell | ErrorCell;
2666
2666
  interface NumberCell extends EvaluatedCellProperties {
2667
2667
  readonly type: CellValueType.number;
2668
2668
  readonly value: number;
@@ -2722,7 +2722,7 @@ interface FormulaModifier {
2722
2722
  increment: number;
2723
2723
  current: number;
2724
2724
  }
2725
- declare type AutofillModifier = IncrementModifier | AlphanumericIncrementModifier | CopyModifier | FormulaModifier;
2725
+ type AutofillModifier = IncrementModifier | AlphanumericIncrementModifier | CopyModifier | FormulaModifier;
2726
2726
  interface Tooltip {
2727
2727
  props: any;
2728
2728
  component?: any;
@@ -2763,7 +2763,7 @@ interface Currency {
2763
2763
  position: "before" | "after";
2764
2764
  }
2765
2765
 
2766
- declare type ClipboardReadResult = {
2766
+ type ClipboardReadResult = {
2767
2767
  status: "ok";
2768
2768
  content: string;
2769
2769
  } | {
@@ -2775,7 +2775,7 @@ interface ClipboardInterface {
2775
2775
  readText(): Promise<ClipboardReadResult>;
2776
2776
  }
2777
2777
 
2778
- declare type TranslationFunction = (string: string, ...values: string[] | [{
2778
+ type TranslationFunction = (string: string, ...values: string[] | [{
2779
2779
  [key: string]: string;
2780
2780
  }]) => string;
2781
2781
  /***
@@ -2810,7 +2810,7 @@ interface SpreadsheetChildEnv extends SpreadsheetEnv {
2810
2810
  loadCurrencies?: () => Promise<Currency[]>;
2811
2811
  }
2812
2812
 
2813
- declare type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2813
+ type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2814
2814
  interface ArgDefinition {
2815
2815
  repeating?: boolean;
2816
2816
  optional?: boolean;
@@ -2821,8 +2821,8 @@ interface ArgDefinition {
2821
2821
  default?: boolean;
2822
2822
  defaultValue?: any;
2823
2823
  }
2824
- declare type ComputeFunctionArg<T> = T | (() => T) | undefined;
2825
- declare type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2824
+ type ComputeFunctionArg<T> = T | (() => T) | undefined;
2825
+ type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2826
2826
  interface AddFunctionDescription {
2827
2827
  description: string;
2828
2828
  compute: ComputeFunction<ArgValue, FunctionReturnValue>;
@@ -2839,7 +2839,7 @@ interface FunctionDescription extends AddFunctionDescription {
2839
2839
  nbrArgRepeating: number;
2840
2840
  getArgToFocus: (argPosition: number) => number;
2841
2841
  }
2842
- declare type EvalContext = {
2842
+ type EvalContext = {
2843
2843
  __lastFnCalled?: string;
2844
2844
  __originCellXC?: () => string;
2845
2845
  [key: string]: any;
@@ -3463,7 +3463,7 @@ declare class ImagePlugin extends CorePlugin<ImageState> implements ImageState {
3463
3463
  private getAllImages;
3464
3464
  }
3465
3465
 
3466
- declare type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3466
+ type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3467
3467
  interface MergeState {
3468
3468
  readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
3469
3469
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
@@ -3918,7 +3918,7 @@ declare class InternalViewport {
3918
3918
  private adjustViewportZoneY;
3919
3919
  }
3920
3920
 
3921
- declare type SheetViewports = {
3921
+ type SheetViewports = {
3922
3922
  topLeft: InternalViewport | undefined;
3923
3923
  bottomLeft: InternalViewport | undefined;
3924
3924
  topRight: InternalViewport | undefined;
@@ -4752,46 +4752,46 @@ declare class GridSelectionPlugin extends UIPlugin {
4752
4752
  * This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
4753
4753
  * is actually the type `number`.
4754
4754
  */
4755
- declare type GetterNames<Plugin extends {
4755
+ type GetterNames<Plugin extends {
4756
4756
  getters: readonly string[];
4757
4757
  }> = Plugin["getters"][number];
4758
- declare type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4759
- declare type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4760
- declare type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4761
- declare type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4762
- declare type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4763
- declare type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4764
- declare type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4765
- declare type ImageGetters = Pick<ImagePlugin, GetterNames<typeof ImagePlugin>>;
4766
- declare type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4767
- declare type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4768
- declare type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4769
- declare type LocalHistoryGetters = Pick<HistoryPlugin, GetterNames<typeof HistoryPlugin>>;
4770
- declare type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4771
- declare type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ImageGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4772
- declare type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4773
- declare type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4774
- declare type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4775
- declare type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4776
- declare type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4777
- declare type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4778
- declare type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4779
- declare type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4780
- declare type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4781
- declare type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4782
- declare type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4783
- declare type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4784
- declare type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4785
- declare type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4786
- declare type CollaborativeGetters = Pick<CollaborativePlugin, GetterNames<typeof CollaborativePlugin>>;
4787
- declare type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4788
- declare type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4789
- declare type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4790
- declare type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4791
- declare type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4792
- declare type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4793
- declare type SplitToColumnsGetters = Pick<SplitToColumnsPlugin, GetterNames<typeof SplitToColumnsPlugin>>;
4794
- declare type Getters = {
4758
+ type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4759
+ type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4760
+ type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4761
+ type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4762
+ type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4763
+ type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4764
+ type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4765
+ type ImageGetters = Pick<ImagePlugin, GetterNames<typeof ImagePlugin>>;
4766
+ type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4767
+ type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4768
+ type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4769
+ type LocalHistoryGetters = Pick<HistoryPlugin, GetterNames<typeof HistoryPlugin>>;
4770
+ type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4771
+ type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ImageGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4772
+ type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4773
+ type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4774
+ type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4775
+ type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4776
+ type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4777
+ type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4778
+ type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4779
+ type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4780
+ type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4781
+ type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4782
+ type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4783
+ type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4784
+ type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4785
+ type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4786
+ type CollaborativeGetters = Pick<CollaborativePlugin, GetterNames<typeof CollaborativePlugin>>;
4787
+ type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4788
+ type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4789
+ type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4790
+ type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4791
+ type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4792
+ type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4793
+ type SplitToColumnsGetters = Pick<SplitToColumnsPlugin, GetterNames<typeof SplitToColumnsPlugin>>;
4794
+ type Getters = {
4795
4795
  isReadonly: () => boolean;
4796
4796
  isDashboard: () => boolean;
4797
4797
  } & LocalHistoryGetters & CoreGetters & AutofillGetters & AutomaticSumGetters & ClipboardGetters & EditionGetters & EvaluationGetters & EvaluationChartGetters & EvaluationConditionalFormatGetters & FindAndReplaceGetters & HighlightGetters & CustomColorsGetters & RendererGetters & SelectionGetters & SelectionInputGetters & CollaborativeGetters & SortGetters & UIOptionsGetters & SheetUIGetters & ViewportGetters & CellPopoverPluginGetters & FilterEvaluationGetters & HeaderVisibilityIUIGetters & SplitToColumnsGetters;
@@ -4810,7 +4810,7 @@ interface WorkbookHistory<Plugin> {
4810
4810
  update<T extends keyof Plugin, U extends keyof NonNullable<Plugin[T]>, K extends keyof NonNullable<NonNullable<Plugin[T]>[U]>, V extends keyof NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>, W extends keyof NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>>(key1: T, key2: U, key3: K, key4: V, key5: W, val: NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]): void;
4811
4811
  update<T extends keyof Plugin, U extends keyof NonNullable<Plugin[T]>, K extends keyof NonNullable<NonNullable<Plugin[T]>[U]>, V extends keyof NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>, W extends keyof NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>, Y extends keyof NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]>>(key1: T, key2: U, key3: K, key4: V, key5: W, key6: Y, val: NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]>[Y]): void;
4812
4812
  }
4813
- declare type Transformation<T = unknown> = (dataToTransform: T) => T;
4813
+ type Transformation<T = unknown> = (dataToTransform: T) => T;
4814
4814
  interface TransformationFactory<T = unknown> {
4815
4815
  /**
4816
4816
  * Build a transformation function to transform any operation as if the execution of
@@ -4824,12 +4824,12 @@ interface TransformationFactory<T = unknown> {
4824
4824
  with: (operation: T) => Transformation<T>;
4825
4825
  }
4826
4826
 
4827
- declare type SelectionDirection = "up" | "down" | "left" | "right";
4828
- declare type SelectionStep = number | "end";
4827
+ type SelectionDirection = "up" | "down" | "left" | "right";
4828
+ type SelectionStep = number | "end";
4829
4829
 
4830
- declare type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4831
- declare type PopoverPropsPosition = "TopRight" | "BottomLeft";
4832
- declare type MaxSizedComponentConstructor = ComponentConstructor & {
4830
+ type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4831
+ type PopoverPropsPosition = "TopRight" | "BottomLeft";
4832
+ type MaxSizedComponentConstructor = ComponentConstructor & {
4833
4833
  maxSize?: {
4834
4834
  maxWidth?: number;
4835
4835
  maxHeight?: number;
@@ -4839,7 +4839,7 @@ declare type MaxSizedComponentConstructor = ComponentConstructor & {
4839
4839
  * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
4840
4840
  * returns the parameters to display the component
4841
4841
  */
4842
- declare type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
4842
+ type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
4843
4843
  interface PopoverBuilders {
4844
4844
  onOpen?: CellPopoverBuilder;
4845
4845
  onHover?: CellPopoverBuilder;
@@ -4852,14 +4852,14 @@ interface ClosedCellPopover {
4852
4852
  * i.e. which component class, which props and where to
4853
4853
  * display it relative to the cell
4854
4854
  */
4855
- declare type OpenCellPopover<C extends ComponentConstructor> = {
4855
+ type OpenCellPopover<C extends ComponentConstructor> = {
4856
4856
  isOpen: true;
4857
4857
  Component: C;
4858
4858
  props: PropsOf<C>;
4859
4859
  cellCorner: PopoverPropsPosition;
4860
4860
  };
4861
- declare type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4862
- declare type PositionedCellPopover<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
4861
+ type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4862
+ type PositionedCellPopover<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
4863
4863
  isOpen: true;
4864
4864
  Component: C;
4865
4865
  props: PropsOf<C>;
@@ -4928,7 +4928,7 @@ interface LinkSpec {
4928
4928
  declare function urlRepresentation(link: Link, getters: Getters): string;
4929
4929
  declare function openLink(link: Link, env: SpreadsheetChildEnv): void;
4930
4930
 
4931
- declare type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4931
+ type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4932
4932
  type: U;
4933
4933
  }>, executed: Extract<CoreCommand, {
4934
4934
  type: V;
@@ -5208,7 +5208,7 @@ declare class GaugeChartConfigPanel extends Component<Props$z, SpreadsheetChildE
5208
5208
  updateDataRange(): void;
5209
5209
  }
5210
5210
 
5211
- declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5211
+ type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5212
5212
  interface Props$y {
5213
5213
  figureId: UID;
5214
5214
  definition: GaugeChartDefinition;
@@ -5269,7 +5269,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$x, SpreadsheetCh
5269
5269
  updateBaselineMode(ev: any): void;
5270
5270
  }
5271
5271
 
5272
- declare type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5272
+ type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5273
5273
  interface Props$w {
5274
5274
  figureId: UID;
5275
5275
  definition: ScorecardChartDefinition;
@@ -5361,8 +5361,8 @@ interface Action {
5361
5361
  separator: boolean;
5362
5362
  textColor?: Color;
5363
5363
  }
5364
- declare type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
5365
- declare type ActionChildren = (ActionSpec | ActionBuilder)[];
5364
+ type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
5365
+ type ActionChildren = (ActionSpec | ActionBuilder)[];
5366
5366
 
5367
5367
  /**
5368
5368
  * This registry is intended to map a type of figure (tag) to a class of
@@ -5465,7 +5465,7 @@ declare class ScorecardChart extends Component<Props$u, SpreadsheetChildEnv> {
5465
5465
  private getWidestElement;
5466
5466
  }
5467
5467
 
5468
- declare type MenuItemOrSeparator = Action | "separator";
5468
+ type MenuItemOrSeparator = Action | "separator";
5469
5469
  interface Props$t {
5470
5470
  position: DOMCoordinates;
5471
5471
  menuItems: Action[];
@@ -5519,7 +5519,7 @@ declare class Menu extends Component<Props$t, SpreadsheetChildEnv> {
5519
5519
  onMouseOver(menu: Action, position: Pixel, ev: MouseEvent): void;
5520
5520
  }
5521
5521
 
5522
- declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5522
+ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5523
5523
  interface Props$s {
5524
5524
  figure: Figure;
5525
5525
  style: string;
@@ -5804,8 +5804,8 @@ declare class FilterIconsOverlay extends Component<Props$l, SpreadsheetChildEnv>
5804
5804
  private isPositionVisible;
5805
5805
  }
5806
5806
 
5807
- declare type HFigureAxisType = "top" | "bottom" | "vCenter";
5808
- declare type VFigureAxisType = "right" | "left" | "hCenter";
5807
+ type HFigureAxisType = "top" | "bottom" | "vCenter";
5808
+ type VFigureAxisType = "right" | "left" | "hCenter";
5809
5809
  interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
5810
5810
  matchedFigIds: UID[];
5811
5811
  snapOffset: number;
@@ -5813,7 +5813,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
5813
5813
  position: Pixel;
5814
5814
  }
5815
5815
 
5816
- declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5816
+ type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5817
5817
  interface Props$k {
5818
5818
  onFigureDeleted: () => void;
5819
5819
  }
@@ -5975,7 +5975,7 @@ declare class GridPopover extends Component<Props$i, SpreadsheetChildEnv> {
5975
5975
  get cellPopover(): PositionedCellPopover | ClosedCellPopover;
5976
5976
  }
5977
5977
 
5978
- declare type ScrollDirection = "horizontal" | "vertical";
5978
+ type ScrollDirection = "horizontal" | "vertical";
5979
5979
 
5980
5980
  interface Props$h {
5981
5981
  width: Pixel;
@@ -6367,7 +6367,7 @@ declare class ActionButton extends Component<Props$c, SpreadsheetChildEnv> {
6367
6367
  get buttonStyle(): string;
6368
6368
  }
6369
6369
 
6370
- declare type Tool = "borderColorTool" | "borderTypeTool";
6370
+ type Tool = "borderColorTool" | "borderTypeTool";
6371
6371
  interface State$3 {
6372
6372
  activeTool: Tool | undefined;
6373
6373
  }
@@ -6512,7 +6512,7 @@ declare class FunctionDescriptionProvider extends Component<Props$9> {
6512
6512
  onMouseMove(): void;
6513
6513
  }
6514
6514
 
6515
- declare type HtmlContent = {
6515
+ type HtmlContent = {
6516
6516
  value: string;
6517
6517
  color?: Color;
6518
6518
  class?: string;
@@ -6578,6 +6578,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6578
6578
  onCompositionStart(): void;
6579
6579
  onCompositionEnd(): void;
6580
6580
  onKeydown(ev: KeyboardEvent): void;
6581
+ private updateCursorIfNeeded;
6581
6582
  onInput(): void;
6582
6583
  onKeyup(ev: KeyboardEvent): void;
6583
6584
  showAutocomplete(searchTerm: string): void;
@@ -6625,6 +6626,7 @@ interface State$1 {
6625
6626
  interface Props$7 {
6626
6627
  onToggle: () => void;
6627
6628
  dropdownStyle: string;
6629
+ class: string;
6628
6630
  }
6629
6631
  declare class FontSizeEditor extends Component<Props$7, SpreadsheetChildEnv> {
6630
6632
  static template: string;
@@ -6693,7 +6695,7 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
6693
6695
  setColor(target: string, color: Color): void;
6694
6696
  }
6695
6697
 
6696
- declare type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6698
+ type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6697
6699
  interface SpreadsheetProps {
6698
6700
  model: Model;
6699
6701
  }
@@ -6884,7 +6886,7 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
6884
6886
  selectAll(): void;
6885
6887
  }
6886
6888
 
6887
- declare type Orientation$1 = "n" | "s" | "w" | "e";
6889
+ type Orientation$1 = "n" | "s" | "w" | "e";
6888
6890
  interface Props$4 {
6889
6891
  zone: Zone;
6890
6892
  orientation: Orientation$1;
@@ -6897,7 +6899,7 @@ declare class Border extends Component<Props$4, SpreadsheetChildEnv> {
6897
6899
  onMouseDown(ev: MouseEvent): void;
6898
6900
  }
6899
6901
 
6900
- declare type Orientation = "nw" | "ne" | "sw" | "se";
6902
+ type Orientation = "nw" | "ne" | "sw" | "se";
6901
6903
  interface Props$3 {
6902
6904
  zone: Zone;
6903
6905
  color: Color;
@@ -6941,7 +6943,7 @@ declare class Highlight extends Component<Props$2, SpreadsheetChildEnv> {
6941
6943
  * - a horizontal resizer (to resize columns)
6942
6944
  * - a vertical resizer (same, for rows)
6943
6945
  */
6944
- declare type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6946
+ type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6945
6947
  interface Props$1 {
6946
6948
  sidePanelIsOpen: boolean;
6947
6949
  exposeFocus: (focus: () => void) => void;