react-glide-table 2.3.5 → 2.3.6

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/core.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { X as CellEditType, c as CellRenderer, C as CellKind, a as CellRenderContext, j as DataTableClassNames, R as RowSelectionMode, h as ColumnFreezeOffset, q as SearchResultItem, r as SearchStatus, m as DataTableProps, l as DataTableLabels, k as DataTableCopyActions, P as PasteMode, p as RowsPastePayload } from './types-hf2ruVdu.cjs';
2
- export { B as BuiltinCellKind, b as CellRenderFn, d as ColumnCopyValue, e as ColumnFreezeColumnInput, f as ColumnFreezeEdgeSide, g as ColumnFreezeMeta, i as ColumnFreezeSide, D as DEFAULT_DATA_TABLE_LABELS, I as INLINE_SEARCH_MAX_RESULTS, S as SearchCorpusRow, u as buildColumnFreezeOffsets, v as buildFlatSearchCorpus, w as buildSearchMatchKey, x as buildSearchMatchKeys, y as buildTreeSearchCorpus, z as cellValueToSearchText, A as collectAncestorKeysToExpand, E as collectSearchMatchesInRange, F as createSearchRegex, G as escapeSearchRegex, H as formatSearchResultLabel, J as getColumnFreezeEdgeAttr, K as getColumnFreezeStyle, L as mapSearchResultToVisibleItem, M as mapSearchResultsToVisibleKeys, N as nextSearchIndex, O as nextSearchStride, Q as previousSearchIndex, U as resolveColumnFreezeSide, V as resolveDataTableLabels, W as resolveHeaderFreezeOffset } from './types-hf2ruVdu.cjs';
1
+ import { Z as CellEditType, c as CellRenderer, C as CellKind, a as CellRenderContext, k as DataTableClassNames, R as RowSelectionMode, h as ColumnFreezeOffset, r as SearchResultItem, s as SearchStatus, n as DataTableProps, m as DataTableLabels, l as DataTableCopyActions, P as PasteMode, q as RowsPastePayload } from './types-CecIIMV1.cjs';
2
+ export { B as BuiltinCellKind, b as CellRenderFn, d as ColumnCopyValue, e as ColumnFreezeColumnInput, f as ColumnFreezeEdgeSide, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as ColumnSearchValue, D as DEFAULT_DATA_TABLE_LABELS, I as INLINE_SEARCH_MAX_RESULTS, S as SearchCorpusRow, v as buildColumnFreezeOffsets, w as buildFlatSearchCorpus, x as buildSearchMatchKey, y as buildSearchMatchKeys, z as buildTreeSearchCorpus, A as cellValueToSearchText, E as collectAncestorKeysToExpand, F as collectSearchMatchesInRange, G as createSearchRegex, H as escapeSearchRegex, J as formatSearchResultLabel, K as getColumnFreezeEdgeAttr, L as getColumnFreezeStyle, M as mapSearchResultToVisibleItem, N as mapSearchResultsToVisibleKeys, O as nextSearchIndex, Q as nextSearchStride, U as previousSearchIndex, V as resolveColumnFreezeSide, W as resolveDataTableLabels, X as resolveHeaderFreezeOffset } from './types-CecIIMV1.cjs';
3
3
  import { Row, ColumnDef, CellContext, Table, Cell, ColumnOrderState, Updater, RowSelectionState } from '@tanstack/react-table';
4
4
  export { ColumnDef, ColumnOrderState, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
5
5
  import { Virtualizer, VirtualItem } from '@tanstack/react-virtual';
@@ -22,6 +22,7 @@ type ColumnDefLike = {
22
22
  meta?: {
23
23
  editable?: boolean;
24
24
  editType?: CellEditType;
25
+ kind?: unknown;
25
26
  };
26
27
  };
27
28
  declare function isColumnEditable(columnDef: ColumnDefLike): boolean;
@@ -110,6 +111,23 @@ declare function rowRangeToHeightRatios(rowIndex: number, span: number, fromRow:
110
111
  declare function getCellSelectionEdgeStyle(rowIndex: number, colIndex: number, bounds: CellSelectionBounds | null, rowSpan?: number, isVisuallySelectedAt?: (row: number, col: number) => boolean, rowHeights?: number[]): CellSelectionEdgeStyle | undefined;
111
112
  declare function hasCellSelectionEdges(style: CellSelectionEdgeStyle | undefined): boolean;
112
113
 
114
+ /**
115
+ * hover 중인 행 인덱스를 React state가 아닌 외부 store로 관리한다.
116
+ *
117
+ * 이전에는 `hoveredRowIndex`가 `DataTableRowContextValue` 전체를 감싸는 하나의
118
+ * `useMemo`의 의존성이었기 때문에, 마우스가 행 위를 지나갈 때마다 그 memo가
119
+ * 무효화되어 cellSelection/cellEdit/columnFreeze 등 hover와 무관한 필드까지 포함한
120
+ * context 값 전체가 새로 만들어지고, 이를 구독하는 모든 `DataTableRow`가 다시
121
+ * 렌더링됐다. store를 이용하면 store 객체 자체의 참조는 절대 바뀌지 않으므로 hover가
122
+ * context를 무효화하지 않고, 각 행은 `useSyncExternalStore`로 "내 행/그룹이
123
+ * 강조돼야 하는가"만 구독해 그 값이 실제로 바뀔 때만 리렌더된다.
124
+ */
125
+ type RowHoverStore = {
126
+ getHoveredRowIndex: () => number | null;
127
+ setHoveredRowIndex: (rowIndex: number | null) => void;
128
+ subscribe: (listener: () => void) => () => void;
129
+ };
130
+
113
131
  type RowSpanInfo = {
114
132
  /** 0 means skip render (merged into a parent row) */
115
133
  rowSpan: number;
@@ -149,7 +167,12 @@ type DataTableRowContextValue = {
149
167
  primaryRowSpanKey?: string;
150
168
  primaryRowSpanColumnId?: string;
151
169
  columnRowSpanMap: ColumnRowSpanMap;
152
- hoveredRowIndex: number | null;
170
+ /**
171
+ * hover 상태는 store로 별도 관리한다 (참조가 절대 바뀌지 않아 이 context
172
+ * 전체를 무효화하지 않음). 실제 hover 여부는 각 행이 store를 직접 구독해서
173
+ * 계산한다 — rowHover.ts의 설명 참고.
174
+ */
175
+ hoverStore: RowHoverStore;
153
176
  selectedRowIndices: Set<number>;
154
177
  onRowHover: (rowIndex: number, rowData: RowData) => void;
155
178
  };
@@ -163,6 +186,8 @@ type DataTableRowContextValue = {
163
186
  enableCellSelection: boolean;
164
187
  activeSelectionBounds: CellSelectionBounds | null;
165
188
  dragState: DragState;
189
+ /** False when fill could not write anything (no editable column or no write callback). */
190
+ canFill?: boolean;
166
191
  onCellMouseDown: (rowIndex: number, colIndex: number, options?: CellMouseDownOptions) => void;
167
192
  onCellMouseEnter: (rowIndex: number, colIndex: number) => void;
168
193
  onFillHandleMouseDown: (rowIndex: number, colIndex: number) => void;
@@ -170,18 +195,30 @@ type DataTableRowContextValue = {
170
195
  cellEdit: {
171
196
  editingCell: EditingCell | null;
172
197
  draftValue: string;
198
+ /** The browser rejected the typed text (number input `badInput`). */
199
+ draftInvalid?: boolean;
200
+ onDraftInvalidChange?: (invalid: boolean) => void;
173
201
  onDraftValueChange: (value: string) => void;
174
202
  onStartEdit: (rowIndex: number, colIndex: number) => void;
175
203
  onCommitEdit: (raw?: string) => boolean;
204
+ /** Commit, then move the cell selection by `delta` (Enter / Tab). */
205
+ onCommitEditAndMove?: (raw: string, delta: {
206
+ row: number;
207
+ col: number;
208
+ }) => boolean;
176
209
  onCancelEdit: () => void;
177
210
  };
178
211
  cellRender: {
179
212
  registry: CellRendererRegistry;
180
213
  commitValue: (rowId: string, columnId: string, value: unknown) => boolean;
214
+ /** `labels.protectedCell` for `kind: "protected"` cells */
215
+ protectedLabel?: string;
181
216
  };
182
217
  expand: {
183
218
  enableExpand: boolean;
184
219
  toggleField?: string;
220
+ /** Column id that shows the expand toggle */
221
+ expandColumn?: string;
185
222
  expandedRows?: Set<string>;
186
223
  preventExpand: boolean;
187
224
  onToggleExpand?: (rowKey: string) => void;
@@ -222,6 +259,12 @@ type UseInlineSearchOptions = {
222
259
  rowCount: number;
223
260
  columnCount: number;
224
261
  getCellValue: (rowIndex: number, colIndex: number) => unknown;
262
+ /**
263
+ * Any value that changes when the searched content changes (rows edited or
264
+ * re-ordered, columns reordered). A new value re-runs the current search so
265
+ * highlights never point at stale cells.
266
+ */
267
+ contentKey?: unknown;
225
268
  /** Prefer starting the scan near the visible window (virtualized tables). */
226
269
  initialStartRow?: number;
227
270
  showSearch?: boolean;
@@ -253,7 +296,7 @@ type UseInlineSearchResult = {
253
296
  goToNext: () => void;
254
297
  goToPrevious: () => void;
255
298
  };
256
- declare function useInlineSearch({ enabled, rowCount, columnCount, getCellValue, initialStartRow, showSearch: controlledShowSearch, searchValue: controlledSearchValue, searchResults: controlledSearchResults, onSearchValueChange, onSearchClose, onSearchResultsChanged, onNavigateToResult, rootRef, }: UseInlineSearchOptions): UseInlineSearchResult;
299
+ declare function useInlineSearch({ enabled, rowCount, columnCount, getCellValue, contentKey, initialStartRow, showSearch: controlledShowSearch, searchValue: controlledSearchValue, searchResults: controlledSearchResults, onSearchValueChange, onSearchClose, onSearchResultsChanged, onNavigateToResult, rootRef, }: UseInlineSearchOptions): UseInlineSearchResult;
257
300
 
258
301
  type UseGlideTableOptions<T extends Record<string, unknown>> = Omit<DataTableProps<T>, "className" | "classNames" | "slots" | "summary" | "toolbar" | "isPending" | "totalCount" | "filteredCount">;
259
302
  type UseGlideTableResult<T extends Record<string, unknown>> = {
@@ -287,6 +330,8 @@ type UseGlideTableResult<T extends Record<string, unknown>> = {
287
330
  handleToggleSelect: (row: Row<T>) => void;
288
331
  clearHover: () => void;
289
332
  setColumnOrder: (next: ColumnOrderState) => void;
333
+ /** Keyboard focus landed on the table root: select the first cell if none. */
334
+ handleRootFocus: () => void;
290
335
  copySelection: DataTableCopyActions["copySelection"];
291
336
  inlineSearch: {
292
337
  showSearch: boolean;
@@ -315,6 +360,8 @@ type UseCellEditOptions<T extends Record<string, unknown>> = {
315
360
  declare function useCellEdit<T extends Record<string, unknown>>({ data, rows, onDataChange, onCellChange, }: UseCellEditOptions<T>): {
316
361
  editingCell: EditingCell | null;
317
362
  draftValue: string;
363
+ draftInvalid: boolean;
364
+ setDraftInvalid: (invalid: boolean) => void;
318
365
  setDraftValue: react.Dispatch<react.SetStateAction<string>>;
319
366
  startEdit: (rowIndex: number, colIndex: number) => void;
320
367
  commitEdit: (raw?: string) => boolean;
@@ -333,6 +380,8 @@ type CommitCellValueOptions<T extends Record<string, unknown>> = {
333
380
  onDataChange?: (data: T[]) => void;
334
381
  };
335
382
  /**
383
+ * `data` is the consumer's original array (not the flattened tree rows).
384
+ *
336
385
  * Shared commit path for custom `render` updates and built-in cell kinds.
337
386
  * Prefers `onCellChange`; falls back to immutable `onDataChange` patch.
338
387
  */
@@ -419,14 +468,21 @@ type ParsedClipboardTSV = {
419
468
  };
420
469
  /** Parse Excel/Sheets-style TSV from the clipboard. Trailing newlines are ignored. */
421
470
  declare function parseClipboardTSV(text: string): string[][];
471
+ type ParseClipboardOptions = {
472
+ /**
473
+ * `"auto"` (default) reads leading empty cells as subtree depth when the
474
+ * text looks like a subtree copy. `"none"` always keeps them as cells.
475
+ */
476
+ treeDepth?: "auto" | "none";
477
+ };
422
478
  /**
423
479
  * Parse TSV and recover relative tree depth from leading tabs
424
480
  * (encoded by subtree copy as leading empty cells).
425
481
  */
426
- declare function parseClipboardTSVWithDepths(text: string): ParsedClipboardTSV;
482
+ declare function parseClipboardTSVWithDepths(text: string, options?: ParseClipboardOptions): ParsedClipboardTSV;
427
483
  /** Resolve visible column ids starting at `startCol` for `width` columns. */
428
484
  declare function resolvePasteColumnIds<T extends Record<string, unknown>>(rows: Row<T>[], startCol: number, width: number): string[];
429
- declare function buildRowsPastePayload<T extends Record<string, unknown>>(rows: Row<T>[], startRow: number, startCol: number, text: string, mode: PasteMode, endRow?: number): RowsPastePayload | null;
485
+ declare function buildRowsPastePayload<T extends Record<string, unknown>>(rows: Row<T>[], startRow: number, startCol: number, text: string, mode: PasteMode, endRow?: number, options?: ParseClipboardOptions): RowsPastePayload | null;
430
486
  declare function isEditablePasteTarget(target: EventTarget | null): boolean;
431
487
 
432
488
  type CopySelectionOptions = {
@@ -439,8 +495,16 @@ type UseCellSelectionOptions<T extends Record<string, unknown>> = {
439
495
  enabled?: boolean;
440
496
  /** Visible leaf column count used to clamp keyboard navigation. */
441
497
  columnCount?: number;
498
+ /**
499
+ * Visible leaf column ids in order (any stable string). When it changes
500
+ * (columns reordered, added or removed) the index-based selection would
501
+ * point at different columns, so it is cleared.
502
+ */
503
+ columnSignature?: string;
442
504
  /** Enables Ctrl/Cmd+Shift+C subtree copy. Defaults to true when tree expand is enabled. */
443
505
  enableSubtreeCopy?: boolean;
506
+ /** Neutralizes spreadsheet formulas in copied cells. Defaults to false. */
507
+ escapeCopyFormulas?: boolean;
444
508
  /** Enables Ctrl/Cmd+Shift+V insert paste. Defaults to true. */
445
509
  enableInsertPaste?: boolean;
446
510
  onDataChange?: (data: T[]) => void;
@@ -456,8 +520,14 @@ type UseCellSelectionOptions<T extends Record<string, unknown>> = {
456
520
  cellRendererRegistry?: CellRendererRegistry;
457
521
  /** Scopes copy's DOM image-url lookup to this table when several are mounted at once. */
458
522
  rootRef?: RefObject<HTMLElement | null>;
459
- };
460
- declare function useCellSelection<T extends Record<string, unknown>>({ data, rows, enabled, columnCount, enableSubtreeCopy, enableInsertPaste, onDataChange, onBatchChange, onRowsPaste, onCellNavigate, cellRendererRegistry, rootRef, }: UseCellSelectionOptions<T>): {
523
+ /** W/A/S/D act as arrow keys. Defaults to true. */
524
+ enableWasdNavigation?: boolean;
525
+ /** Enter / F2 on the active cell (start editing). */
526
+ onEditKey?: (position: CellPosition) => void;
527
+ /** Delete / Backspace over the selection (clear editable cells). */
528
+ onClearKey?: (bounds: CellSelectionBounds) => void;
529
+ };
530
+ declare function useCellSelection<T extends Record<string, unknown>>({ data, rows, enabled, columnCount, columnSignature, enableSubtreeCopy, escapeCopyFormulas, enableInsertPaste, onDataChange, onBatchChange, onRowsPaste, onCellNavigate, cellRendererRegistry, rootRef, enableWasdNavigation, onEditKey, onClearKey, }: UseCellSelectionOptions<T>): {
461
531
  dragState: DragState;
462
532
  activeSelectionBounds: CellSelectionBounds | null;
463
533
  handleCellMouseDown: (rowIndex: number, colIndex: number, options?: CellMouseDownOptions) => void;
@@ -465,8 +535,17 @@ declare function useCellSelection<T extends Record<string, unknown>>({ data, row
465
535
  handleFillHandleMouseDown: (rowIndex: number, colIndex: number) => void;
466
536
  clearSelection: () => void;
467
537
  copySelection: (options?: CopySelectionOptions) => Promise<boolean>;
538
+ selectCell: (row: number, col: number) => void;
539
+ focusSelection: () => void;
468
540
  };
469
541
 
542
+ /**
543
+ * One plain string per cell, shared by clipboard copy and default display.
544
+ * Avoids `String(object)` → `[object Object]`, joins arrays with `, ` and
545
+ * writes dates as ISO strings (not JSON-quoted).
546
+ */
547
+ declare function formatCellValue(value: unknown): string;
548
+
470
549
  type CopySelectionMode = "visible" | "subtree";
471
550
  type CopyRowEntry<T extends Record<string, unknown>> = {
472
551
  row: T;
@@ -482,12 +561,11 @@ type CopyRowEntry<T extends Record<string, unknown>> = {
482
561
  type CopyRenderOptions = {
483
562
  registry?: CellRendererRegistry;
484
563
  root?: ParentNode | null;
564
+ /** Prefix formula-like cells with `'` (see `escapeSpreadsheetFormula`). */
565
+ escapeFormulas?: boolean;
485
566
  };
486
- /**
487
- * Clipboard / Excel paste expects one plain string per cell.
488
- * Avoids `String(object)` → `[object Object]` and joins arrays with `, `.
489
- */
490
- declare function formatCellValue(value: unknown): string;
567
+ /** Prefix formula-like text with `'` so spreadsheets paste it as plain text. */
568
+ declare function escapeSpreadsheetFormula(text: string): string;
491
569
  declare function flattenSubtreeRows<T extends Record<string, unknown>>(row: T): T[];
492
570
  /**
493
571
  * Collects copy rows with tree depth so paste can rebuild parent/child nesting.
@@ -531,7 +609,14 @@ type UseConvertTreeDataParams<T extends Record<string, unknown>> = {
531
609
  startIndex?: number;
532
610
  expandedRows?: Set<string>;
533
611
  onExpandedRowsChange?: (next: Set<string>) => void;
612
+ /**
613
+ * Expand every parent once when data first arrives. Defaults to true.
614
+ * Pass false when the consumer controls `expandedRows`, so its initial
615
+ * value is respected.
616
+ */
617
+ autoExpandOnLoad?: boolean;
534
618
  };
619
+ /** Any row with children can expand, at every depth. */
535
620
  declare function canExpandRow(row: Record<string, unknown>): boolean;
536
621
  declare function toggleExpandedRowId(rowId: string, previous: Set<string>): Set<string>;
537
622
  /**
@@ -542,9 +627,9 @@ declare function toggleExpandedRowId(rowId: string, previous: Set<string>): Set<
542
627
  * (so duplicate keys after paste stay under the pasted parent). Parents must appear
543
628
  * before their children; a child whose parent is later in the array becomes a root.
544
629
  */
545
- declare const useConvertTreeData: <T extends Record<string, unknown>>({ data, enabled, toggleField, childField, flattenField, qtyField, preventExpand, startIndex, expandedRows, onExpandedRowsChange, }: UseConvertTreeDataParams<T>) => T[];
630
+ declare const useConvertTreeData: <T extends Record<string, unknown>>({ data, enabled, toggleField, childField, flattenField, qtyField, preventExpand, startIndex, expandedRows, onExpandedRowsChange, autoExpandOnLoad, }: UseConvertTreeDataParams<T>) => T[];
546
631
 
547
632
  declare function resolveRowSelection(mode: RowSelectionMode, controlledSelection: RowSelectionState | undefined, internalSelection: RowSelectionState): RowSelectionState;
548
633
  declare function applySelectionUpdater(mode: RowSelectionMode, updater: Updater<RowSelectionState>, previous: RowSelectionState): RowSelectionState;
549
634
 
550
- export { BUILTIN_CELL_RENDERERS, CELL_SELECTION_EDGES_CLASS, type CellContextWithUpdate, CellKind, CellRenderContext, CellRenderer, type CellRendererRegistry, type CellSelectionBounds, type ColumnDropEdge, ColumnFreezeOffset, type ColumnLayoutInput, type ColumnRowSpanMap, type CopyRowEntry, type CopySelectionMode, DEFAULT_TREE_CHILDREN_FIELD, DEFAULT_TREE_ID_FIELD, DEFAULT_TREE_PARENT_ID_FIELD, DEFAULT_TREE_QTY_FIELD, DataTableCopyActions, DataTableLabels, DataTableProps, type DragState, type EditingCell, PasteMode, ResolvedTableCell, RowSelectionMode, type RowSpanColumnSpec, type RowSpanInfo, RowsPastePayload, SearchResultItem, SearchStatus, type TreeRow, type UseConvertTreeDataParams, type UseGlideTableOptions, type UseGlideTableResult, type UseInlineSearchOptions, type UseInlineSearchResult, applyCellEdit, applyFillData, applyLeafColumnOrder, applySelectionUpdater, buildColumnRowSpanMap, buildRowsPastePayload, canExpandRow, collectCopyRowEntries, collectCopyRows, collectFillChanges, collectLeafColumnIds, collectRowSpanColumns, commitCellValue, createCellRendererRegistry, flattenSubtreeRows, formatCellValue, formatDefaultCellValue, getCellEditDraftValue, getCellSelectionEdgeStyle, getColumnEditType, getColumnSizeStyle, getRowIndexInMergedCell, hasCellSelectionEdges, isCellInSelection, isColumnEditable, isEditablePasteTarget, measureMergedSpanRowHeights, moveColumnIds, parseCellEditValue, parseClipboardTSV, parseClipboardTSVWithDepths, resolveCellRenderer, resolveColumnLayoutWidths, resolveDropEdge, resolveLeafColumnOrder, resolvePasteColumnIds, resolveRowSelection, resolveRowSpanAt, rowRangeToHeightRatios, serializeCopyRowsToTSV, serializeSelectionToTSV, toggleExpandedRowId, useCellEdit, useCellSelection, useColumnReorder, useConvertTreeData, useGlideTable, useInlineSearch, withCellUpdate, writeSelectionToClipboard };
635
+ export { BUILTIN_CELL_RENDERERS, CELL_SELECTION_EDGES_CLASS, type CellContextWithUpdate, CellKind, CellRenderContext, CellRenderer, type CellRendererRegistry, type CellSelectionBounds, type ColumnDropEdge, ColumnFreezeOffset, type ColumnLayoutInput, type ColumnRowSpanMap, type CopyRowEntry, type CopySelectionMode, DEFAULT_TREE_CHILDREN_FIELD, DEFAULT_TREE_ID_FIELD, DEFAULT_TREE_PARENT_ID_FIELD, DEFAULT_TREE_QTY_FIELD, DataTableCopyActions, DataTableLabels, DataTableProps, type DragState, type EditingCell, PasteMode, ResolvedTableCell, RowSelectionMode, type RowSpanColumnSpec, type RowSpanInfo, RowsPastePayload, SearchResultItem, SearchStatus, type TreeRow, type UseConvertTreeDataParams, type UseGlideTableOptions, type UseGlideTableResult, type UseInlineSearchOptions, type UseInlineSearchResult, applyCellEdit, applyFillData, applyLeafColumnOrder, applySelectionUpdater, buildColumnRowSpanMap, buildRowsPastePayload, canExpandRow, collectCopyRowEntries, collectCopyRows, collectFillChanges, collectLeafColumnIds, collectRowSpanColumns, commitCellValue, createCellRendererRegistry, escapeSpreadsheetFormula, flattenSubtreeRows, formatCellValue, formatDefaultCellValue, getCellEditDraftValue, getCellSelectionEdgeStyle, getColumnEditType, getColumnSizeStyle, getRowIndexInMergedCell, hasCellSelectionEdges, isCellInSelection, isColumnEditable, isEditablePasteTarget, measureMergedSpanRowHeights, moveColumnIds, parseCellEditValue, parseClipboardTSV, parseClipboardTSVWithDepths, resolveCellRenderer, resolveColumnLayoutWidths, resolveDropEdge, resolveLeafColumnOrder, resolvePasteColumnIds, resolveRowSelection, resolveRowSpanAt, rowRangeToHeightRatios, serializeCopyRowsToTSV, serializeSelectionToTSV, toggleExpandedRowId, useCellEdit, useCellSelection, useColumnReorder, useConvertTreeData, useGlideTable, useInlineSearch, withCellUpdate, writeSelectionToClipboard };
package/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { X as CellEditType, c as CellRenderer, C as CellKind, a as CellRenderContext, j as DataTableClassNames, R as RowSelectionMode, h as ColumnFreezeOffset, q as SearchResultItem, r as SearchStatus, m as DataTableProps, l as DataTableLabels, k as DataTableCopyActions, P as PasteMode, p as RowsPastePayload } from './types-hf2ruVdu.js';
2
- export { B as BuiltinCellKind, b as CellRenderFn, d as ColumnCopyValue, e as ColumnFreezeColumnInput, f as ColumnFreezeEdgeSide, g as ColumnFreezeMeta, i as ColumnFreezeSide, D as DEFAULT_DATA_TABLE_LABELS, I as INLINE_SEARCH_MAX_RESULTS, S as SearchCorpusRow, u as buildColumnFreezeOffsets, v as buildFlatSearchCorpus, w as buildSearchMatchKey, x as buildSearchMatchKeys, y as buildTreeSearchCorpus, z as cellValueToSearchText, A as collectAncestorKeysToExpand, E as collectSearchMatchesInRange, F as createSearchRegex, G as escapeSearchRegex, H as formatSearchResultLabel, J as getColumnFreezeEdgeAttr, K as getColumnFreezeStyle, L as mapSearchResultToVisibleItem, M as mapSearchResultsToVisibleKeys, N as nextSearchIndex, O as nextSearchStride, Q as previousSearchIndex, U as resolveColumnFreezeSide, V as resolveDataTableLabels, W as resolveHeaderFreezeOffset } from './types-hf2ruVdu.js';
1
+ import { Z as CellEditType, c as CellRenderer, C as CellKind, a as CellRenderContext, k as DataTableClassNames, R as RowSelectionMode, h as ColumnFreezeOffset, r as SearchResultItem, s as SearchStatus, n as DataTableProps, m as DataTableLabels, l as DataTableCopyActions, P as PasteMode, q as RowsPastePayload } from './types-CecIIMV1.js';
2
+ export { B as BuiltinCellKind, b as CellRenderFn, d as ColumnCopyValue, e as ColumnFreezeColumnInput, f as ColumnFreezeEdgeSide, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as ColumnSearchValue, D as DEFAULT_DATA_TABLE_LABELS, I as INLINE_SEARCH_MAX_RESULTS, S as SearchCorpusRow, v as buildColumnFreezeOffsets, w as buildFlatSearchCorpus, x as buildSearchMatchKey, y as buildSearchMatchKeys, z as buildTreeSearchCorpus, A as cellValueToSearchText, E as collectAncestorKeysToExpand, F as collectSearchMatchesInRange, G as createSearchRegex, H as escapeSearchRegex, J as formatSearchResultLabel, K as getColumnFreezeEdgeAttr, L as getColumnFreezeStyle, M as mapSearchResultToVisibleItem, N as mapSearchResultsToVisibleKeys, O as nextSearchIndex, Q as nextSearchStride, U as previousSearchIndex, V as resolveColumnFreezeSide, W as resolveDataTableLabels, X as resolveHeaderFreezeOffset } from './types-CecIIMV1.js';
3
3
  import { Row, ColumnDef, CellContext, Table, Cell, ColumnOrderState, Updater, RowSelectionState } from '@tanstack/react-table';
4
4
  export { ColumnDef, ColumnOrderState, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
5
5
  import { Virtualizer, VirtualItem } from '@tanstack/react-virtual';
@@ -22,6 +22,7 @@ type ColumnDefLike = {
22
22
  meta?: {
23
23
  editable?: boolean;
24
24
  editType?: CellEditType;
25
+ kind?: unknown;
25
26
  };
26
27
  };
27
28
  declare function isColumnEditable(columnDef: ColumnDefLike): boolean;
@@ -110,6 +111,23 @@ declare function rowRangeToHeightRatios(rowIndex: number, span: number, fromRow:
110
111
  declare function getCellSelectionEdgeStyle(rowIndex: number, colIndex: number, bounds: CellSelectionBounds | null, rowSpan?: number, isVisuallySelectedAt?: (row: number, col: number) => boolean, rowHeights?: number[]): CellSelectionEdgeStyle | undefined;
111
112
  declare function hasCellSelectionEdges(style: CellSelectionEdgeStyle | undefined): boolean;
112
113
 
114
+ /**
115
+ * hover 중인 행 인덱스를 React state가 아닌 외부 store로 관리한다.
116
+ *
117
+ * 이전에는 `hoveredRowIndex`가 `DataTableRowContextValue` 전체를 감싸는 하나의
118
+ * `useMemo`의 의존성이었기 때문에, 마우스가 행 위를 지나갈 때마다 그 memo가
119
+ * 무효화되어 cellSelection/cellEdit/columnFreeze 등 hover와 무관한 필드까지 포함한
120
+ * context 값 전체가 새로 만들어지고, 이를 구독하는 모든 `DataTableRow`가 다시
121
+ * 렌더링됐다. store를 이용하면 store 객체 자체의 참조는 절대 바뀌지 않으므로 hover가
122
+ * context를 무효화하지 않고, 각 행은 `useSyncExternalStore`로 "내 행/그룹이
123
+ * 강조돼야 하는가"만 구독해 그 값이 실제로 바뀔 때만 리렌더된다.
124
+ */
125
+ type RowHoverStore = {
126
+ getHoveredRowIndex: () => number | null;
127
+ setHoveredRowIndex: (rowIndex: number | null) => void;
128
+ subscribe: (listener: () => void) => () => void;
129
+ };
130
+
113
131
  type RowSpanInfo = {
114
132
  /** 0 means skip render (merged into a parent row) */
115
133
  rowSpan: number;
@@ -149,7 +167,12 @@ type DataTableRowContextValue = {
149
167
  primaryRowSpanKey?: string;
150
168
  primaryRowSpanColumnId?: string;
151
169
  columnRowSpanMap: ColumnRowSpanMap;
152
- hoveredRowIndex: number | null;
170
+ /**
171
+ * hover 상태는 store로 별도 관리한다 (참조가 절대 바뀌지 않아 이 context
172
+ * 전체를 무효화하지 않음). 실제 hover 여부는 각 행이 store를 직접 구독해서
173
+ * 계산한다 — rowHover.ts의 설명 참고.
174
+ */
175
+ hoverStore: RowHoverStore;
153
176
  selectedRowIndices: Set<number>;
154
177
  onRowHover: (rowIndex: number, rowData: RowData) => void;
155
178
  };
@@ -163,6 +186,8 @@ type DataTableRowContextValue = {
163
186
  enableCellSelection: boolean;
164
187
  activeSelectionBounds: CellSelectionBounds | null;
165
188
  dragState: DragState;
189
+ /** False when fill could not write anything (no editable column or no write callback). */
190
+ canFill?: boolean;
166
191
  onCellMouseDown: (rowIndex: number, colIndex: number, options?: CellMouseDownOptions) => void;
167
192
  onCellMouseEnter: (rowIndex: number, colIndex: number) => void;
168
193
  onFillHandleMouseDown: (rowIndex: number, colIndex: number) => void;
@@ -170,18 +195,30 @@ type DataTableRowContextValue = {
170
195
  cellEdit: {
171
196
  editingCell: EditingCell | null;
172
197
  draftValue: string;
198
+ /** The browser rejected the typed text (number input `badInput`). */
199
+ draftInvalid?: boolean;
200
+ onDraftInvalidChange?: (invalid: boolean) => void;
173
201
  onDraftValueChange: (value: string) => void;
174
202
  onStartEdit: (rowIndex: number, colIndex: number) => void;
175
203
  onCommitEdit: (raw?: string) => boolean;
204
+ /** Commit, then move the cell selection by `delta` (Enter / Tab). */
205
+ onCommitEditAndMove?: (raw: string, delta: {
206
+ row: number;
207
+ col: number;
208
+ }) => boolean;
176
209
  onCancelEdit: () => void;
177
210
  };
178
211
  cellRender: {
179
212
  registry: CellRendererRegistry;
180
213
  commitValue: (rowId: string, columnId: string, value: unknown) => boolean;
214
+ /** `labels.protectedCell` for `kind: "protected"` cells */
215
+ protectedLabel?: string;
181
216
  };
182
217
  expand: {
183
218
  enableExpand: boolean;
184
219
  toggleField?: string;
220
+ /** Column id that shows the expand toggle */
221
+ expandColumn?: string;
185
222
  expandedRows?: Set<string>;
186
223
  preventExpand: boolean;
187
224
  onToggleExpand?: (rowKey: string) => void;
@@ -222,6 +259,12 @@ type UseInlineSearchOptions = {
222
259
  rowCount: number;
223
260
  columnCount: number;
224
261
  getCellValue: (rowIndex: number, colIndex: number) => unknown;
262
+ /**
263
+ * Any value that changes when the searched content changes (rows edited or
264
+ * re-ordered, columns reordered). A new value re-runs the current search so
265
+ * highlights never point at stale cells.
266
+ */
267
+ contentKey?: unknown;
225
268
  /** Prefer starting the scan near the visible window (virtualized tables). */
226
269
  initialStartRow?: number;
227
270
  showSearch?: boolean;
@@ -253,7 +296,7 @@ type UseInlineSearchResult = {
253
296
  goToNext: () => void;
254
297
  goToPrevious: () => void;
255
298
  };
256
- declare function useInlineSearch({ enabled, rowCount, columnCount, getCellValue, initialStartRow, showSearch: controlledShowSearch, searchValue: controlledSearchValue, searchResults: controlledSearchResults, onSearchValueChange, onSearchClose, onSearchResultsChanged, onNavigateToResult, rootRef, }: UseInlineSearchOptions): UseInlineSearchResult;
299
+ declare function useInlineSearch({ enabled, rowCount, columnCount, getCellValue, contentKey, initialStartRow, showSearch: controlledShowSearch, searchValue: controlledSearchValue, searchResults: controlledSearchResults, onSearchValueChange, onSearchClose, onSearchResultsChanged, onNavigateToResult, rootRef, }: UseInlineSearchOptions): UseInlineSearchResult;
257
300
 
258
301
  type UseGlideTableOptions<T extends Record<string, unknown>> = Omit<DataTableProps<T>, "className" | "classNames" | "slots" | "summary" | "toolbar" | "isPending" | "totalCount" | "filteredCount">;
259
302
  type UseGlideTableResult<T extends Record<string, unknown>> = {
@@ -287,6 +330,8 @@ type UseGlideTableResult<T extends Record<string, unknown>> = {
287
330
  handleToggleSelect: (row: Row<T>) => void;
288
331
  clearHover: () => void;
289
332
  setColumnOrder: (next: ColumnOrderState) => void;
333
+ /** Keyboard focus landed on the table root: select the first cell if none. */
334
+ handleRootFocus: () => void;
290
335
  copySelection: DataTableCopyActions["copySelection"];
291
336
  inlineSearch: {
292
337
  showSearch: boolean;
@@ -315,6 +360,8 @@ type UseCellEditOptions<T extends Record<string, unknown>> = {
315
360
  declare function useCellEdit<T extends Record<string, unknown>>({ data, rows, onDataChange, onCellChange, }: UseCellEditOptions<T>): {
316
361
  editingCell: EditingCell | null;
317
362
  draftValue: string;
363
+ draftInvalid: boolean;
364
+ setDraftInvalid: (invalid: boolean) => void;
318
365
  setDraftValue: react.Dispatch<react.SetStateAction<string>>;
319
366
  startEdit: (rowIndex: number, colIndex: number) => void;
320
367
  commitEdit: (raw?: string) => boolean;
@@ -333,6 +380,8 @@ type CommitCellValueOptions<T extends Record<string, unknown>> = {
333
380
  onDataChange?: (data: T[]) => void;
334
381
  };
335
382
  /**
383
+ * `data` is the consumer's original array (not the flattened tree rows).
384
+ *
336
385
  * Shared commit path for custom `render` updates and built-in cell kinds.
337
386
  * Prefers `onCellChange`; falls back to immutable `onDataChange` patch.
338
387
  */
@@ -419,14 +468,21 @@ type ParsedClipboardTSV = {
419
468
  };
420
469
  /** Parse Excel/Sheets-style TSV from the clipboard. Trailing newlines are ignored. */
421
470
  declare function parseClipboardTSV(text: string): string[][];
471
+ type ParseClipboardOptions = {
472
+ /**
473
+ * `"auto"` (default) reads leading empty cells as subtree depth when the
474
+ * text looks like a subtree copy. `"none"` always keeps them as cells.
475
+ */
476
+ treeDepth?: "auto" | "none";
477
+ };
422
478
  /**
423
479
  * Parse TSV and recover relative tree depth from leading tabs
424
480
  * (encoded by subtree copy as leading empty cells).
425
481
  */
426
- declare function parseClipboardTSVWithDepths(text: string): ParsedClipboardTSV;
482
+ declare function parseClipboardTSVWithDepths(text: string, options?: ParseClipboardOptions): ParsedClipboardTSV;
427
483
  /** Resolve visible column ids starting at `startCol` for `width` columns. */
428
484
  declare function resolvePasteColumnIds<T extends Record<string, unknown>>(rows: Row<T>[], startCol: number, width: number): string[];
429
- declare function buildRowsPastePayload<T extends Record<string, unknown>>(rows: Row<T>[], startRow: number, startCol: number, text: string, mode: PasteMode, endRow?: number): RowsPastePayload | null;
485
+ declare function buildRowsPastePayload<T extends Record<string, unknown>>(rows: Row<T>[], startRow: number, startCol: number, text: string, mode: PasteMode, endRow?: number, options?: ParseClipboardOptions): RowsPastePayload | null;
430
486
  declare function isEditablePasteTarget(target: EventTarget | null): boolean;
431
487
 
432
488
  type CopySelectionOptions = {
@@ -439,8 +495,16 @@ type UseCellSelectionOptions<T extends Record<string, unknown>> = {
439
495
  enabled?: boolean;
440
496
  /** Visible leaf column count used to clamp keyboard navigation. */
441
497
  columnCount?: number;
498
+ /**
499
+ * Visible leaf column ids in order (any stable string). When it changes
500
+ * (columns reordered, added or removed) the index-based selection would
501
+ * point at different columns, so it is cleared.
502
+ */
503
+ columnSignature?: string;
442
504
  /** Enables Ctrl/Cmd+Shift+C subtree copy. Defaults to true when tree expand is enabled. */
443
505
  enableSubtreeCopy?: boolean;
506
+ /** Neutralizes spreadsheet formulas in copied cells. Defaults to false. */
507
+ escapeCopyFormulas?: boolean;
444
508
  /** Enables Ctrl/Cmd+Shift+V insert paste. Defaults to true. */
445
509
  enableInsertPaste?: boolean;
446
510
  onDataChange?: (data: T[]) => void;
@@ -456,8 +520,14 @@ type UseCellSelectionOptions<T extends Record<string, unknown>> = {
456
520
  cellRendererRegistry?: CellRendererRegistry;
457
521
  /** Scopes copy's DOM image-url lookup to this table when several are mounted at once. */
458
522
  rootRef?: RefObject<HTMLElement | null>;
459
- };
460
- declare function useCellSelection<T extends Record<string, unknown>>({ data, rows, enabled, columnCount, enableSubtreeCopy, enableInsertPaste, onDataChange, onBatchChange, onRowsPaste, onCellNavigate, cellRendererRegistry, rootRef, }: UseCellSelectionOptions<T>): {
523
+ /** W/A/S/D act as arrow keys. Defaults to true. */
524
+ enableWasdNavigation?: boolean;
525
+ /** Enter / F2 on the active cell (start editing). */
526
+ onEditKey?: (position: CellPosition) => void;
527
+ /** Delete / Backspace over the selection (clear editable cells). */
528
+ onClearKey?: (bounds: CellSelectionBounds) => void;
529
+ };
530
+ declare function useCellSelection<T extends Record<string, unknown>>({ data, rows, enabled, columnCount, columnSignature, enableSubtreeCopy, escapeCopyFormulas, enableInsertPaste, onDataChange, onBatchChange, onRowsPaste, onCellNavigate, cellRendererRegistry, rootRef, enableWasdNavigation, onEditKey, onClearKey, }: UseCellSelectionOptions<T>): {
461
531
  dragState: DragState;
462
532
  activeSelectionBounds: CellSelectionBounds | null;
463
533
  handleCellMouseDown: (rowIndex: number, colIndex: number, options?: CellMouseDownOptions) => void;
@@ -465,8 +535,17 @@ declare function useCellSelection<T extends Record<string, unknown>>({ data, row
465
535
  handleFillHandleMouseDown: (rowIndex: number, colIndex: number) => void;
466
536
  clearSelection: () => void;
467
537
  copySelection: (options?: CopySelectionOptions) => Promise<boolean>;
538
+ selectCell: (row: number, col: number) => void;
539
+ focusSelection: () => void;
468
540
  };
469
541
 
542
+ /**
543
+ * One plain string per cell, shared by clipboard copy and default display.
544
+ * Avoids `String(object)` → `[object Object]`, joins arrays with `, ` and
545
+ * writes dates as ISO strings (not JSON-quoted).
546
+ */
547
+ declare function formatCellValue(value: unknown): string;
548
+
470
549
  type CopySelectionMode = "visible" | "subtree";
471
550
  type CopyRowEntry<T extends Record<string, unknown>> = {
472
551
  row: T;
@@ -482,12 +561,11 @@ type CopyRowEntry<T extends Record<string, unknown>> = {
482
561
  type CopyRenderOptions = {
483
562
  registry?: CellRendererRegistry;
484
563
  root?: ParentNode | null;
564
+ /** Prefix formula-like cells with `'` (see `escapeSpreadsheetFormula`). */
565
+ escapeFormulas?: boolean;
485
566
  };
486
- /**
487
- * Clipboard / Excel paste expects one plain string per cell.
488
- * Avoids `String(object)` → `[object Object]` and joins arrays with `, `.
489
- */
490
- declare function formatCellValue(value: unknown): string;
567
+ /** Prefix formula-like text with `'` so spreadsheets paste it as plain text. */
568
+ declare function escapeSpreadsheetFormula(text: string): string;
491
569
  declare function flattenSubtreeRows<T extends Record<string, unknown>>(row: T): T[];
492
570
  /**
493
571
  * Collects copy rows with tree depth so paste can rebuild parent/child nesting.
@@ -531,7 +609,14 @@ type UseConvertTreeDataParams<T extends Record<string, unknown>> = {
531
609
  startIndex?: number;
532
610
  expandedRows?: Set<string>;
533
611
  onExpandedRowsChange?: (next: Set<string>) => void;
612
+ /**
613
+ * Expand every parent once when data first arrives. Defaults to true.
614
+ * Pass false when the consumer controls `expandedRows`, so its initial
615
+ * value is respected.
616
+ */
617
+ autoExpandOnLoad?: boolean;
534
618
  };
619
+ /** Any row with children can expand, at every depth. */
535
620
  declare function canExpandRow(row: Record<string, unknown>): boolean;
536
621
  declare function toggleExpandedRowId(rowId: string, previous: Set<string>): Set<string>;
537
622
  /**
@@ -542,9 +627,9 @@ declare function toggleExpandedRowId(rowId: string, previous: Set<string>): Set<
542
627
  * (so duplicate keys after paste stay under the pasted parent). Parents must appear
543
628
  * before their children; a child whose parent is later in the array becomes a root.
544
629
  */
545
- declare const useConvertTreeData: <T extends Record<string, unknown>>({ data, enabled, toggleField, childField, flattenField, qtyField, preventExpand, startIndex, expandedRows, onExpandedRowsChange, }: UseConvertTreeDataParams<T>) => T[];
630
+ declare const useConvertTreeData: <T extends Record<string, unknown>>({ data, enabled, toggleField, childField, flattenField, qtyField, preventExpand, startIndex, expandedRows, onExpandedRowsChange, autoExpandOnLoad, }: UseConvertTreeDataParams<T>) => T[];
546
631
 
547
632
  declare function resolveRowSelection(mode: RowSelectionMode, controlledSelection: RowSelectionState | undefined, internalSelection: RowSelectionState): RowSelectionState;
548
633
  declare function applySelectionUpdater(mode: RowSelectionMode, updater: Updater<RowSelectionState>, previous: RowSelectionState): RowSelectionState;
549
634
 
550
- export { BUILTIN_CELL_RENDERERS, CELL_SELECTION_EDGES_CLASS, type CellContextWithUpdate, CellKind, CellRenderContext, CellRenderer, type CellRendererRegistry, type CellSelectionBounds, type ColumnDropEdge, ColumnFreezeOffset, type ColumnLayoutInput, type ColumnRowSpanMap, type CopyRowEntry, type CopySelectionMode, DEFAULT_TREE_CHILDREN_FIELD, DEFAULT_TREE_ID_FIELD, DEFAULT_TREE_PARENT_ID_FIELD, DEFAULT_TREE_QTY_FIELD, DataTableCopyActions, DataTableLabels, DataTableProps, type DragState, type EditingCell, PasteMode, ResolvedTableCell, RowSelectionMode, type RowSpanColumnSpec, type RowSpanInfo, RowsPastePayload, SearchResultItem, SearchStatus, type TreeRow, type UseConvertTreeDataParams, type UseGlideTableOptions, type UseGlideTableResult, type UseInlineSearchOptions, type UseInlineSearchResult, applyCellEdit, applyFillData, applyLeafColumnOrder, applySelectionUpdater, buildColumnRowSpanMap, buildRowsPastePayload, canExpandRow, collectCopyRowEntries, collectCopyRows, collectFillChanges, collectLeafColumnIds, collectRowSpanColumns, commitCellValue, createCellRendererRegistry, flattenSubtreeRows, formatCellValue, formatDefaultCellValue, getCellEditDraftValue, getCellSelectionEdgeStyle, getColumnEditType, getColumnSizeStyle, getRowIndexInMergedCell, hasCellSelectionEdges, isCellInSelection, isColumnEditable, isEditablePasteTarget, measureMergedSpanRowHeights, moveColumnIds, parseCellEditValue, parseClipboardTSV, parseClipboardTSVWithDepths, resolveCellRenderer, resolveColumnLayoutWidths, resolveDropEdge, resolveLeafColumnOrder, resolvePasteColumnIds, resolveRowSelection, resolveRowSpanAt, rowRangeToHeightRatios, serializeCopyRowsToTSV, serializeSelectionToTSV, toggleExpandedRowId, useCellEdit, useCellSelection, useColumnReorder, useConvertTreeData, useGlideTable, useInlineSearch, withCellUpdate, writeSelectionToClipboard };
635
+ export { BUILTIN_CELL_RENDERERS, CELL_SELECTION_EDGES_CLASS, type CellContextWithUpdate, CellKind, CellRenderContext, CellRenderer, type CellRendererRegistry, type CellSelectionBounds, type ColumnDropEdge, ColumnFreezeOffset, type ColumnLayoutInput, type ColumnRowSpanMap, type CopyRowEntry, type CopySelectionMode, DEFAULT_TREE_CHILDREN_FIELD, DEFAULT_TREE_ID_FIELD, DEFAULT_TREE_PARENT_ID_FIELD, DEFAULT_TREE_QTY_FIELD, DataTableCopyActions, DataTableLabels, DataTableProps, type DragState, type EditingCell, PasteMode, ResolvedTableCell, RowSelectionMode, type RowSpanColumnSpec, type RowSpanInfo, RowsPastePayload, SearchResultItem, SearchStatus, type TreeRow, type UseConvertTreeDataParams, type UseGlideTableOptions, type UseGlideTableResult, type UseInlineSearchOptions, type UseInlineSearchResult, applyCellEdit, applyFillData, applyLeafColumnOrder, applySelectionUpdater, buildColumnRowSpanMap, buildRowsPastePayload, canExpandRow, collectCopyRowEntries, collectCopyRows, collectFillChanges, collectLeafColumnIds, collectRowSpanColumns, commitCellValue, createCellRendererRegistry, escapeSpreadsheetFormula, flattenSubtreeRows, formatCellValue, formatDefaultCellValue, getCellEditDraftValue, getCellSelectionEdgeStyle, getColumnEditType, getColumnSizeStyle, getRowIndexInMergedCell, hasCellSelectionEdges, isCellInSelection, isColumnEditable, isEditablePasteTarget, measureMergedSpanRowHeights, moveColumnIds, parseCellEditValue, parseClipboardTSV, parseClipboardTSVWithDepths, resolveCellRenderer, resolveColumnLayoutWidths, resolveDropEdge, resolveLeafColumnOrder, resolvePasteColumnIds, resolveRowSelection, resolveRowSpanAt, rowRangeToHeightRatios, serializeCopyRowsToTSV, serializeSelectionToTSV, toggleExpandedRowId, useCellEdit, useCellSelection, useColumnReorder, useConvertTreeData, useGlideTable, useInlineSearch, withCellUpdate, writeSelectionToClipboard };