@infinite-table/infinite-react 10.1.5 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,27 @@
1
- import * as React$1 from 'react';
2
- import React__default, { CSSProperties, HTMLProps, KeyboardEvent, HTMLAttributes, MutableRefObject, MouseEvent, ReactNode, EffectCallback, DependencyList } from 'react';
1
+ import * as React from 'react';
2
+ import React__default, { CSSProperties, HTMLAttributes, MutableRefObject, ComponentType, HTMLProps, RefCallback, KeyboardEvent, MouseEvent, ReactNode, FocusEvent, EffectCallback, DependencyList } from 'react';
3
+
4
+ /**
5
+ * The UI-framework types that the shared type declarations are written
6
+ * against: nodes, components, inline styles, DOM props, events and refs.
7
+ *
8
+ * This is the React flavour. Each framework build resolves this module to
9
+ * its own sibling (FrameworkTypes.vue.ts, ...) via `moduleSuffixes` (see
10
+ * tsconfig.vue.json) and the esbuild framework-resolve-plugin, so the public
11
+ * types of a build only ever mention that build's framework.
12
+ *
13
+ * Shared code must import these from here - never from 'react' directly and
14
+ * never through the global `React` namespace.
15
+ */
16
+
17
+ /**
18
+ * Anything the framework can render.
19
+ */
20
+ type Renderable = React.ReactNode | React.JSX.Element;
21
+ /**
22
+ * A component passed as an override, eg in the `components` prop.
23
+ */
24
+ type ComponentOverride<P> = (props: P) => React.JSX.Element | null;
3
25
 
4
26
  type ManagedComponentStateContextValue<T_STATE, T_ACTIONS> = {
5
27
  getComponentState: () => T_STATE;
@@ -306,7 +328,7 @@ type TreeDataSourceOnlyProps<T> = {
306
328
  type DataSourcePropsNotAvailableInTreeDataSource = keyof Pick<DataSourceProps<any>, 'groupBy' | 'defaultGroupBy' | 'nodesKey' | 'defaultGroupRowsState' | 'groupRowsState' | 'onGroupRowsStateChange' | 'onGroupByChange' | 'collapseGroupRowsOnDataFunctionChange' | 'livePagination' | 'onLivePaginationCursorChange' | 'filterFunction' | 'onPivotByChange' | 'pivotBy' | 'defaultPivotBy' | 'selectionMode' | 'rowSelection' | 'defaultRowSelection'>;
307
329
  type TreeDataSourceProps<T> = Omit<DataSourceProps<T>, DataSourcePropsNotAvailableInTreeDataSource> & TreeDataSourceOnlyProps<T>;
308
330
 
309
- declare function TreeDataSource<T>(props: TreeDataSourceProps<T>): React$1.JSX.Element;
331
+ declare function TreeDataSource<T>(props: TreeDataSourceProps<T>): React.JSX.Element;
310
332
 
311
333
  type NodePath = any[];
312
334
  type TreeSelectionStateObject = {
@@ -929,7 +951,7 @@ type ForwardPropsToStateFnResult<TYPE_PROPS, TYPE_RESULT, COMPONENT_SETUP_STATE>
929
951
  type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE = {}, COMPONENT_DERIVED_STATE = {}, T_ACTIONS = {}, T_PARENT_STATE = {}> = {
930
952
  debugName?: string | ((props: T_PROPS) => string);
931
953
  initSetupState?: (props: T_PROPS) => COMPONENT_SETUP_STATE;
932
- Context?: React$1.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
954
+ Context?: React.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
933
955
  layoutEffect?: boolean;
934
956
  forwardProps?: (setupState: COMPONENT_SETUP_STATE, props: T_PROPS) => ForwardPropsToStateFnResult<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE>;
935
957
  allowedControlledPropOverrides?: Record<keyof T_PROPS, true>;
@@ -958,14 +980,14 @@ type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_S
958
980
  updatedProps: Partial<T_PROPS> | null;
959
981
  parentState: T_PARENT_STATE | null;
960
982
  }) => COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
961
- getReducerActions?: (dispatch: React$1.Dispatch<any>) => T_ACTIONS;
983
+ getReducerActions?: (dispatch: React.Dispatch<any>) => T_ACTIONS;
962
984
  getParentState?: () => T_PARENT_STATE;
963
985
  cleanup?: (state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE) => void;
964
986
  onControlledPropertyChange?: (name: string, newValue: any, oldValue: any) => void | ((value: any, oldValue: any) => any);
965
987
  };
966
988
  declare function buildManagedComponent<T_PROPS extends object, COMPONENT_MAPPED_STATE extends object, COMPONENT_SETUP_STATE extends object = {}, COMPONENT_DERIVED_STATE extends object = {}, T_ACTIONS = {}, T_PARENT_STATE = {}>(config: ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE, COMPONENT_DERIVED_STATE, T_ACTIONS, T_PARENT_STATE>): {
967
- ManagedComponentContextProvider: React$1.NamedExoticComponent<T_PROPS & {
968
- children?: React$1.ReactNode;
989
+ ManagedComponentContextProvider: React.NamedExoticComponent<T_PROPS & {
990
+ children?: React.ReactNode;
969
991
  }>;
970
992
  useManagedComponent: (props: T_PROPS) => {
971
993
  contextValue: {
@@ -975,10 +997,10 @@ declare function buildManagedComponent<T_PROPS extends object, COMPONENT_MAPPED_
975
997
  replaceState: (newState: COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE) => void;
976
998
  assignState: (newState: Partial<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>) => void;
977
999
  };
978
- ContextComponent: React$1.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
1000
+ ContextComponent: React.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
979
1001
  };
980
1002
  };
981
- declare function useManagedComponentState<COMPONENT_STATE>(Context?: React$1.Context<ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateActions<COMPONENT_STATE>>>): ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateGeneratedActions<COMPONENT_STATE>>;
1003
+ declare function useManagedComponentState<COMPONENT_STATE>(Context?: React.Context<ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateActions<COMPONENT_STATE>>>): ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateGeneratedActions<COMPONENT_STATE>>;
982
1004
 
983
1005
  type PerfMarkerDetails = {
984
1006
  name: string;
@@ -1044,18 +1066,6 @@ interface RowInfoStore<T> {
1044
1066
  clear(): void;
1045
1067
  }
1046
1068
 
1047
- /**
1048
- * The type of a UI node the grid can render.
1049
- *
1050
- * NOTE (multi-framework): this file is the single intentional React type leak
1051
- * in the shared tree. When the first non-React framework lands (Phase 2 of the
1052
- * multi-framework plan), this gains framework siblings (Renderable.vue.ts, ...)
1053
- * resolved via `moduleSuffixes` (see tsconfig.react.json / tsconfig.vue.json)
1054
- * and the esbuild framework-resolve-plugin. Shared code must only treat
1055
- * Renderable as an opaque value to pass around — never inspect it.
1056
- */
1057
- type Renderable = React$1.ReactNode | React$1.JSX.Element;
1058
-
1059
1069
  type DiscriminatedUnion<A, B> = (A & {
1060
1070
  [K in keyof B]?: undefined;
1061
1071
  }) | (B & {
@@ -1107,15 +1117,14 @@ type Prettify<T> = {
1107
1117
 
1108
1118
  type MenuIconProps = {
1109
1119
  lineWidth?: number;
1110
- lineStyle?: React$1.CSSProperties;
1111
- style?: React$1.CSSProperties;
1120
+ lineStyle?: CSSProperties;
1121
+ style?: CSSProperties;
1112
1122
  className?: string;
1113
- domProps?: React$1.HTMLAttributes<HTMLDivElement>;
1123
+ domProps?: HTMLAttributes<HTMLDivElement>;
1114
1124
  reserveSpaceWhenHidden?: boolean;
1115
1125
  menuVisible?: boolean;
1116
- children?: React$1.ReactNode;
1126
+ children?: Renderable;
1117
1127
  };
1118
- declare function MenuIcon(props: MenuIconProps): React$1.JSX.Element;
1119
1128
 
1120
1129
  type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
1121
1130
  type InfiniteTableToggleTreeNodeFn = (nodePath: any[]) => void;
@@ -1147,7 +1156,7 @@ type InfiniteTableColumnHeaderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedC
1147
1156
  };
1148
1157
  } & ({
1149
1158
  domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
1150
- htmlElementRef: React$1.MutableRefObject<HTMLElement | null>;
1159
+ htmlElementRef: MutableRefObject<HTMLElement | null>;
1151
1160
  renderLocation: 'column-header';
1152
1161
  } | {
1153
1162
  renderLocation: 'grouping-toolbar' | 'column-menu' | 'column-filter';
@@ -1162,7 +1171,7 @@ type InfiniteTableColumnRenderBag = {
1162
1171
  };
1163
1172
  type InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
1164
1173
  domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
1165
- htmlElementRef: React$1.MutableRefObject<HTMLElement | null>;
1174
+ htmlElementRef: MutableRefObject<HTMLElement | null>;
1166
1175
  rowIndexInHorizontalLayoutPage: null | number;
1167
1176
  horizontalLayoutPageIndex: null | number;
1168
1177
  value: string | number | Renderable;
@@ -1262,9 +1271,9 @@ type InfiniteTableColumnStylingFnParams<T> = {
1262
1271
  rowHasSelectedCells: boolean;
1263
1272
  editError: InfiniteTableColumnRenderParamBase<T>['editError'];
1264
1273
  } & InfiniteTableRowInfoDataDiscriminator<T>;
1265
- type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined | React$1.CSSProperties;
1274
+ type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined | CSSProperties;
1266
1275
  type InfiniteTableColumnHeaderClassNameFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined | string;
1267
- type InfiniteTableColumnHeaderStyleFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined | React$1.CSSProperties;
1276
+ type InfiniteTableColumnHeaderStyleFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined | CSSProperties;
1268
1277
  type InfiniteTableColumnClassNameFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined | string;
1269
1278
  type InfiniteTableColumnStyle<T> = CSSProperties | InfiniteTableColumnStyleFn<T>;
1270
1279
  type InfiniteTableColumnAlign<T> = InfiniteTableColumnAlignValues | InfiniteTableColumnAlignFn<T>;
@@ -1380,12 +1389,12 @@ type InfiniteTableColumn<DATA_TYPE> = {
1380
1389
  renderMenuIcon?: boolean | InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
1381
1390
  renderHeaderSelectionCheckBox?: boolean | InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
1382
1391
  components?: {
1383
- ColumnCell?: React$1.ComponentType<HTMLProps<HTMLDivElement>>;
1384
- HeaderCell?: React$1.ComponentType<HTMLProps<HTMLDivElement>>;
1385
- Editor?: React$1.ComponentType<HTMLProps<HTMLDivElement>>;
1386
- FilterEditor?: React$1.ComponentType<HTMLProps<HTMLDivElement>>;
1387
- FilterOperatorSwitch?: React$1.ComponentType<HTMLProps<HTMLDivElement>>;
1388
- MenuIcon?: React$1.ComponentType<MenuIconProps>;
1392
+ ColumnCell?: ComponentType<HTMLProps<HTMLDivElement>>;
1393
+ HeaderCell?: ComponentType<HTMLProps<HTMLDivElement>>;
1394
+ Editor?: ComponentType<HTMLProps<HTMLDivElement>>;
1395
+ FilterEditor?: ComponentType<HTMLProps<HTMLDivElement>>;
1396
+ FilterOperatorSwitch?: ComponentType<HTMLProps<HTMLDivElement>>;
1397
+ MenuIcon?: ComponentType<MenuIconProps>;
1389
1398
  };
1390
1399
  };
1391
1400
  type InfiniteTableGeneratedGroupColumn<T> = Omit<InfiniteTableColumn<T>, 'defaultSortable'> & {
@@ -1459,7 +1468,7 @@ type InfiniteTableBaseCellProps<T> = {
1459
1468
  align?: InfiniteTableColumnAlignValues;
1460
1469
  horizontalLayoutPageIndex: number | null;
1461
1470
  rowId?: any;
1462
- renderChildren: React.ReactNode | (() => Renderable);
1471
+ renderChildren: Renderable | (() => Renderable);
1463
1472
  width: number;
1464
1473
  cssEllipsis?: boolean;
1465
1474
  contentStyle?: CSSProperties;
@@ -1469,7 +1478,7 @@ type InfiniteTableBaseCellProps<T> = {
1469
1478
  beforeChildren?: Renderable;
1470
1479
  afterChildren?: Renderable;
1471
1480
  cssPosition?: CSSProperties['position'];
1472
- domRef?: React.RefCallback<HTMLElement>;
1481
+ domRef?: RefCallback<HTMLElement>;
1473
1482
  repaintId?: number | string;
1474
1483
  };
1475
1484
  type InfiniteTableCellProps<T> = ({
@@ -1478,6 +1487,8 @@ type InfiniteTableCellProps<T> = ({
1478
1487
  cellType: 'body';
1479
1488
  } & InfiniteTableBaseCellProps<T>);
1480
1489
 
1490
+ declare function MenuIcon(props: MenuIconProps): React.JSX.Element;
1491
+
1481
1492
  declare function useInfiniteHeaderCell<T>(): {
1482
1493
  dragging: boolean;
1483
1494
  column: InfiniteTableComputedColumn<T>;
@@ -1504,11 +1515,11 @@ declare function useInfiniteHeaderCell<T>(): {
1504
1515
  };
1505
1516
  } & {
1506
1517
  domRef: InfiniteTableCellProps<DATA_TYPE>["domRef"];
1507
- htmlElementRef: React$1.MutableRefObject<HTMLElement | null>;
1518
+ htmlElementRef: React.MutableRefObject<HTMLElement | null>;
1508
1519
  renderLocation: "column-header";
1509
1520
  } & {
1510
1521
  domRef: InfiniteTableCellProps<DATA_TYPE_1>["domRef"];
1511
- htmlElementRef: React$1.MutableRefObject<HTMLElement | null>;
1522
+ htmlElementRef: React.MutableRefObject<HTMLElement | null>;
1512
1523
  renderLocation: "column-header";
1513
1524
  };
1514
1525
 
@@ -1549,7 +1560,7 @@ declare function HScrollSyncContent(props: HTMLAttributes<HTMLDivElement> & {
1549
1560
  maxWidth?: 'viewport' | 'column';
1550
1561
  minWidth?: 'viewport' | 'column';
1551
1562
  scrollable?: boolean;
1552
- }): React$1.JSX.Element;
1563
+ }): React.JSX.Element;
1553
1564
 
1554
1565
  declare function useGridScroll(onScroll: (scrollPosition: ScrollPosition) => void, deps: any[]): void;
1555
1566
 
@@ -1568,21 +1579,21 @@ declare function HostDefault(props: {
1568
1579
  active: boolean;
1569
1580
  orientation: 'horizontal' | 'vertical';
1570
1581
  rejectDrop: boolean;
1571
- domProps?: React$1.HTMLAttributes<HTMLDivElement>;
1572
- }): React$1.JSX.Element;
1582
+ domProps?: React.HTMLAttributes<HTMLDivElement>;
1583
+ }): React.JSX.Element;
1573
1584
  declare function PlaceholderDefault<T = any>(props: {
1574
1585
  draggingInProgress: boolean;
1575
1586
  active: boolean;
1576
1587
  groupBy: DataSourcePropGroupBy<T>;
1577
- }): React$1.ReactNode;
1588
+ }): React.ReactNode;
1578
1589
  declare function GroupingToolbarItemDefault<T = any>(props: {
1579
- domProps?: React$1.HTMLAttributes<HTMLDivElement>;
1590
+ domProps?: React.HTMLAttributes<HTMLDivElement>;
1580
1591
  column: InfiniteTableComputedColumn<T> | undefined;
1581
1592
  field: string | number | undefined;
1582
1593
  active: boolean;
1583
- label: React$1.ReactNode;
1594
+ label: React.ReactNode;
1584
1595
  onClear: () => void;
1585
- }): React$1.JSX.Element;
1596
+ }): React.JSX.Element;
1586
1597
 
1587
1598
  type GroupingToolbarProps = {
1588
1599
  orientation?: 'horizontal' | 'vertical';
@@ -1590,15 +1601,15 @@ type GroupingToolbarProps = {
1590
1601
  draggingInProgress: boolean;
1591
1602
  active: boolean;
1592
1603
  groupBy: DataSourcePropGroupBy<T>;
1593
- }) => React$1.ReactNode;
1594
- domProps?: React$1.HTMLAttributes<HTMLDivElement>;
1604
+ }) => React.ReactNode;
1605
+ domProps?: React.HTMLAttributes<HTMLDivElement>;
1595
1606
  components?: {
1596
1607
  Host?: typeof HostDefault;
1597
1608
  Placeholder?: typeof PlaceholderDefault;
1598
1609
  ToolbarItem?: typeof GroupingToolbarItemDefault;
1599
1610
  };
1600
1611
  };
1601
- declare function GroupingToolbar<T = any>(props: GroupingToolbarProps): React$1.JSX.Element;
1612
+ declare function GroupingToolbar<T = any>(props: GroupingToolbarProps): React.JSX.Element;
1602
1613
 
1603
1614
  type InfiniteTableHeaderProps<_T> = {
1604
1615
  allowColumnHideWhileDragging?: boolean;
@@ -1608,7 +1619,7 @@ type InfiniteTableBodyProps<_T> = {
1608
1619
  rowHoverClassName?: string | string[];
1609
1620
  };
1610
1621
 
1611
- declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React$1.JSX.Element;
1622
+ declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React.JSX.Element;
1612
1623
  declare namespace InfiniteTableBody {
1613
1624
  var rowHoverClassName: string[];
1614
1625
  }
@@ -1618,13 +1629,13 @@ declare function useInfiniteTableApi<T>(): InfiniteTableApi<T>;
1618
1629
  declare function useInfiniteColumnApi<T = unknown>(columnId: string): InfiniteTableColumnApi<T> | null;
1619
1630
 
1620
1631
  declare const InfiniteTableClassName: string;
1621
- declare const InfiniteTableComponent: React$1.MemoExoticComponent<(<T>() => React$1.JSX.Element)>;
1632
+ declare const InfiniteTableComponent: React.MemoExoticComponent<(<T>() => React.JSX.Element)>;
1622
1633
  type InfiniteTableComponent = {
1623
- <T>(props: InfiniteTableProps<T>): React$1.JSX.Element;
1634
+ <T>(props: InfiniteTableProps<T>): React.JSX.Element;
1624
1635
  licenseKey?: string;
1625
- Header: <T = any>(props: InfiniteTableHeaderProps<T>) => React$1.JSX.Element | null;
1636
+ Header: <T = any>(props: InfiniteTableHeaderProps<T>) => React.JSX.Element | null;
1626
1637
  Body: typeof InfiniteTableBody;
1627
- Footer: () => React$1.JSX.Element | null;
1638
+ Footer: () => React.JSX.Element | null;
1628
1639
  HScrollSyncContent: typeof HScrollSyncContent;
1629
1640
  GroupingToolbar: typeof GroupingToolbar;
1630
1641
  };
@@ -1978,6 +1989,16 @@ declare class GridRenderer extends Logger {
1978
1989
  private scrolling;
1979
1990
  cellHoverClassNames: string[];
1980
1991
  cellDetachedClassNames: string[];
1992
+ /**
1993
+ * Inside InfiniteTable, the table owns the CSS vars that position the
1994
+ * cells horizontally (one offset var per column, plus the scroll position
1995
+ * vars used by pinned cells) and sets them on its root node.
1996
+ *
1997
+ * A HeadlessTable used on its own has nobody to set them. With this on,
1998
+ * the renderer writes each cell's x from the brain, and sets the scroll
1999
+ * position vars itself, on the parent node of the cells.
2000
+ */
2001
+ ownsPositionVars: boolean;
1981
2002
  cellManager: GridCellManager<GridCellAdditionalInfo>;
1982
2003
  protected rowManager: ListRowManager;
1983
2004
  private lastEnteredRow;
@@ -2005,8 +2026,20 @@ declare class GridRenderer extends Logger {
2005
2026
  * as the scroll layer transform, which uses the new origin too.
2006
2027
  */
2007
2028
  private onScrollOriginChange;
2029
+ /**
2030
+ * While a render pass is in progress, the cells it detaches are collected
2031
+ * here and only get the detached class names when the pass ends - if they
2032
+ * are still detached by then.
2033
+ *
2034
+ * Most of the cells detached by a render pass (while scrolling, all of
2035
+ * them) are re-attached at another position by the same pass, so they
2036
+ * would get the class names added and then removed, with no visible effect
2037
+ * - only the cost of the DOM writes and of the style invalidations.
2038
+ */
2039
+ private cellsDetachedInRenderPass;
2008
2040
  private onCellAttached;
2009
2041
  private onCellDetached;
2042
+ private addDetachedClassNames;
2010
2043
  private onRowAttached;
2011
2044
  private onRowDetached;
2012
2045
  getFullyVisibleRowsRange: () => {
@@ -2043,7 +2076,8 @@ declare class GridRenderer extends Logger {
2043
2076
  rendered: boolean;
2044
2077
  mapped: boolean;
2045
2078
  };
2046
- renderRange(range: TableRenderRange, { renderCell, renderDetailRow, force, onRender }: RenderRangeOptions): Renderable[];
2079
+ renderRange(range: TableRenderRange, options: RenderRangeOptions): Renderable[];
2080
+ private renderRangeInternal;
2047
2081
  getFixedRanges: (currentRenderRange: TableRenderRange) => TableRenderRange[];
2048
2082
  protected isCellFixed: (rowIndex: number, colIndex: number) => {
2049
2083
  row: FixedPosition;
@@ -2077,6 +2111,13 @@ declare class GridRenderer extends Logger {
2077
2111
  private updateDetailElementPosition;
2078
2112
  private onScrollStart;
2079
2113
  private onScrollStop;
2114
+ /**
2115
+ * Where a fixed (pinned) cell goes: its x and/or y relative to the viewport
2116
+ * (`scrollLeft` / `scrollTop: true` - see setTransform), and its z-index:
2117
+ * the corners above the pinned rows and columns, those above the cells
2118
+ * scrolling under them. null for a cell that is not fixed.
2119
+ */
2120
+ private getFixedCellPlacement;
2080
2121
  adjustFixedElementsOnScroll: (scrollPosition?: ScrollPosition) => void;
2081
2122
  flushPendingAfterCommitWork: () => void;
2082
2123
  destroy: () => void;
@@ -2217,11 +2258,11 @@ type CellContextMenuLocation = {
2217
2258
  colIndex: number;
2218
2259
  };
2219
2260
  type CellContextMenuLocationWithEvent = CellContextMenuLocation & {
2220
- event: React.MouseEvent;
2261
+ event: MouseEvent;
2221
2262
  target: HTMLElement;
2222
2263
  };
2223
2264
  type ContextMenuLocationWithEvent = Partial<CellContextMenuLocation> & {
2224
- event: React.MouseEvent;
2265
+ event: MouseEvent;
2225
2266
  target: HTMLElement;
2226
2267
  };
2227
2268
  interface InfiniteTableSetupState<T> {
@@ -2409,7 +2450,7 @@ interface InfiniteTableMappedState<T> {
2409
2450
  rowHeight: number | ((rowInfo: InfiniteTableRowInfo<T>) => number);
2410
2451
  rowDetailHeight: number | ((rowInfo: InfiniteTableRowInfo<T>) => number);
2411
2452
  columnHeaderHeight: number;
2412
- licenseKey: NonUndefined<InfiniteTableProps<T>['licenseKey']>;
2453
+ licenseKey: InfiniteTableProps<T>['licenseKey'];
2413
2454
  columnVisibility: InfiniteTablePropColumnVisibility;
2414
2455
  columnGroupVisibility: NonUndefined<InfiniteTableProps<T>['columnGroupVisibility']>;
2415
2456
  columnSizing: InfiniteTablePropColumnSizing;
@@ -2928,7 +2969,7 @@ type OnCellClickContext<T> = InfiniteTableCellClickEventHandlerContext<T> & Infi
2928
2969
  interface InfiniteTableContextValue<T> extends InfiniteTableStableContextValue<T> {
2929
2970
  state: InfiniteTableState<T>;
2930
2971
  computed: InfiniteTableComputedValues<T>;
2931
- children?: React.ReactNode;
2972
+ children?: Renderable;
2932
2973
  }
2933
2974
  interface InfiniteTableStableContextValue<T> {
2934
2975
  api: InfiniteTableApi<T>;
@@ -3858,7 +3899,7 @@ interface DataSourceAction<T> {
3858
3899
 
3859
3900
  declare const withSelectedLeafNodesOnly: (callback: (treeSelectionObject: TreeSelectionStateObject) => void) => DataSourcePropOnTreeSelectionChange_MultiNode;
3860
3901
 
3861
- declare function TreeGrid<T>(props: TreeGridProps<T>): React$1.JSX.Element;
3902
+ declare function TreeGrid<T>(props: TreeGridProps<T>): React.JSX.Element;
3862
3903
 
3863
3904
  declare const defaultFilterTypes: Record<string, DataSourceFilterType<any>>;
3864
3905
 
@@ -6048,7 +6089,7 @@ declare const useManagedDataSource: (props: object) => {
6048
6089
  rowDisabledState: never;
6049
6090
  }>) => void;
6050
6091
  };
6051
- ContextComponent: React$1.Context<ManagedComponentStateContextValue<{
6092
+ ContextComponent: React.Context<ManagedComponentStateContextValue<{
6052
6093
  logger: DebugLogger;
6053
6094
  forceRerenderTimestamp: number;
6054
6095
  devToolsDetected: never;
@@ -6896,7 +6937,7 @@ declare const useManagedDataSource: (props: object) => {
6896
6937
  rowDisabledState: never;
6897
6938
  }>>>;
6898
6939
  };
6899
- declare function DataSource<T>(props: DataSourceProps<T>): React$1.JSX.Element;
6940
+ declare function DataSource<T>(props: DataSourceProps<T>): React.JSX.Element;
6900
6941
  declare function useRowInfoReducers(): Record<string, any> | undefined;
6901
6942
 
6902
6943
  type AggregationReducer<T, AggregationResultType = any> = DataSourceAggregationReducer<T, AggregationResultType> & {
@@ -7302,9 +7343,8 @@ type InfiniteCheckBoxProps = {
7302
7343
  checked?: InfiniteCheckBoxPropChecked;
7303
7344
  defaultChecked?: InfiniteCheckBoxPropChecked;
7304
7345
  onChange?: (checked: InfiniteCheckBoxPropChecked) => void;
7305
- domProps?: React$1.HTMLProps<HTMLElement>;
7346
+ domProps?: HTMLProps<HTMLElement>;
7306
7347
  };
7307
- declare function InfiniteCheckBox(props: InfiniteCheckBoxProps): React$1.JSX.Element;
7308
7348
 
7309
7349
  type ArrayWithAtLeast3<T> = [T, T, T, ...T[]];
7310
7350
 
@@ -7411,13 +7451,13 @@ type OverlayParams = {
7411
7451
  *
7412
7452
  * @param portalContainer
7413
7453
  */
7414
- declare function useOverlayPortal(content: ReactNode, portalContainer?: ElementContainerGetter | null | false): string | number | bigint | boolean | React$1.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
7454
+ declare function useOverlayPortal(content: ReactNode, portalContainer?: ElementContainerGetter | null | false): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
7415
7455
  type UpdateOverlayContentFn = (content: ReactNode | (() => ReactNode), options?: {
7416
7456
  skipRealign?: boolean;
7417
7457
  }) => void;
7418
7458
  type ShowOverlayFn = (content: ReactNode | (() => ReactNode), params: OverlayShowParams) => UpdateOverlayContentFn;
7419
7459
  declare function useOverlay(params: OverlayParams): {
7420
- portal: string | number | bigint | boolean | React$1.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
7460
+ portal: string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
7421
7461
  hideOverlay: (id: string) => void;
7422
7462
  clearAll: () => void;
7423
7463
  rerenderOverlays: () => void;
@@ -7541,7 +7581,7 @@ type MenuItemObject = {
7541
7581
  menu?: MenuItemSubMenu | (() => MenuItemSubMenu);
7542
7582
  style?: CSSProperties;
7543
7583
  className?: string;
7544
- onClick?: (event: React.MouseEvent) => void;
7584
+ onClick?: (event: MouseEvent) => void;
7545
7585
  onAction?: (params: MenuItemActionContext) => void;
7546
7586
  hideMenuOnAction?: boolean;
7547
7587
  [k: string]: any;
@@ -7578,10 +7618,10 @@ type InfiniteTableRowStylingFnParams<T> = {
7578
7618
  visibleColumnIds: string[];
7579
7619
  allColumnIds: string[];
7580
7620
  } & InfiniteTableRowInfoDataDiscriminator<T>;
7581
- type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => undefined | React$1.CSSProperties;
7621
+ type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => undefined | CSSProperties;
7582
7622
  type InfiniteTableRowClassNameFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => string | undefined;
7583
7623
  type InfiniteTableCellClassNameFn<T> = InfiniteTableColumn<T>['className'];
7584
- type InfiniteTablePropRowStyle<T> = React$1.CSSProperties | InfiniteTableRowStyleFn<T>;
7624
+ type InfiniteTablePropRowStyle<T> = CSSProperties | InfiniteTableRowStyleFn<T>;
7585
7625
  type InfiniteTablePropCellStyle<T> = InfiniteTableColumn<T>['style'];
7586
7626
  type InfiniteTablePropRepaintCellsKeyFnParams<T> = {
7587
7627
  rowInfo: InfiniteTableRowInfo<T>;
@@ -7825,11 +7865,11 @@ type InfiniteTableColumnGroupHeaderRenderParams = {
7825
7865
  horizontalLayoutPageIndex: number | null;
7826
7866
  };
7827
7867
  type InfiniteTableColumnGroupHeaderRenderFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => Renderable;
7828
- type InfiniteTableColumnGroupStyleFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => React$1.CSSProperties;
7868
+ type InfiniteTableColumnGroupStyleFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => CSSProperties;
7829
7869
  type InfiniteTableColumnGroup = {
7830
7870
  columnGroup?: string;
7831
7871
  header?: Renderable | InfiniteTableColumnGroupHeaderRenderFunction;
7832
- style?: React$1.CSSProperties | InfiniteTableColumnGroupStyleFunction;
7872
+ style?: CSSProperties | InfiniteTableColumnGroupStyleFunction;
7833
7873
  };
7834
7874
  type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
7835
7875
  id: string;
@@ -7870,15 +7910,15 @@ type RowDetailComponentProps<T = any> = {
7870
7910
  cache: RowDetailCacheStorageForCurrentRow<RowDetailCacheEntry>;
7871
7911
  };
7872
7912
  interface InfiniteTablePropComponents<T = any> {
7873
- LoadMask?: (props: LoadMaskProps & {
7874
- children?: React$1.ReactNode | undefined;
7875
- }) => React$1.JSX.Element | null;
7876
- CheckBox?: (props: InfiniteCheckBoxProps) => React$1.JSX.Element | null;
7877
- Menu?: (props: MenuProps & {
7878
- children?: React$1.ReactNode | undefined;
7879
- }) => React$1.JSX.Element | null;
7880
- MenuIcon?: (props: MenuIconProps) => React$1.JSX.Element | null;
7881
- RowDetail?: (props: RowDetailComponentProps<T>) => React$1.JSX.Element | null;
7913
+ LoadMask?: ComponentOverride<LoadMaskProps & {
7914
+ children?: Renderable | undefined;
7915
+ }>;
7916
+ CheckBox?: ComponentOverride<InfiniteCheckBoxProps>;
7917
+ Menu?: ComponentOverride<MenuProps & {
7918
+ children?: Renderable | undefined;
7919
+ }>;
7920
+ MenuIcon?: ComponentOverride<MenuIconProps>;
7921
+ RowDetail?: ComponentOverride<RowDetailComponentProps<T>>;
7882
7922
  }
7883
7923
  type ScrollStopInfo = {
7884
7924
  scrollTop: number;
@@ -7931,7 +7971,7 @@ interface InfiniteTableProps<T> {
7931
7971
  debugId?: string;
7932
7972
  columns: InfiniteTablePropColumns<T>;
7933
7973
  pivotColumns?: InfiniteTablePropColumns<T, InfiniteTablePivotColumn<T>>;
7934
- children?: React$1.JSX.Element | React$1.JSX.Element[] | React$1.ReactNode;
7974
+ children?: Renderable;
7935
7975
  loadingText?: Renderable;
7936
7976
  components?: InfiniteTablePropComponents<T>;
7937
7977
  wrapRowsHorizontally?: boolean;
@@ -8021,15 +8061,15 @@ interface InfiniteTableProps<T> {
8021
8061
  columnHeaderHeight?: number | string;
8022
8062
  onKeyDown?: (context: InfiniteTablePublicContext<T> & {
8023
8063
  actions: InfiniteTableEventHandlerContext<T>['actions'];
8024
- }, event: React$1.KeyboardEvent) => void | InfiniteTablePropOnKeyDownResult;
8025
- onCellClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: React$1.MouseEvent) => void;
8026
- onCellDoubleClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: React$1.MouseEvent) => void | InfiniteTablePropOnCellDoubleClickResult;
8064
+ }, event: KeyboardEvent) => void | InfiniteTablePropOnKeyDownResult;
8065
+ onCellClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: MouseEvent) => void;
8066
+ onCellDoubleClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: MouseEvent) => void | InfiniteTablePropOnCellDoubleClickResult;
8027
8067
  onContextMenu?: (context: InfiniteTablePublicContext<T> & {
8028
- event: React$1.MouseEvent;
8029
- } & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, event: React$1.MouseEvent) => void;
8068
+ event: MouseEvent;
8069
+ } & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, event: MouseEvent) => void;
8030
8070
  onCellContextMenu?: (context: InfiniteTablePublicContext<T> & InfiniteTableRowInfoDataDiscriminatorWithColumn<T> & {
8031
- event: React$1.MouseEvent;
8032
- }, event: React$1.MouseEvent) => void;
8071
+ event: MouseEvent;
8072
+ }, event: MouseEvent) => void;
8033
8073
  /**
8034
8074
  * Properties to be sent directly to the DOM element underlying InfiniteTable.
8035
8075
  *
@@ -8037,7 +8077,7 @@ interface InfiniteTableProps<T> {
8037
8077
  * on some event handlers (eg: onKeyDown), you might want to use dedicated props that give you access
8038
8078
  * to component state as well.
8039
8079
  */
8040
- domProps?: React$1.HTMLAttributes<HTMLDivElement>;
8080
+ domProps?: HTMLAttributes<HTMLDivElement>;
8041
8081
  /**
8042
8082
  * A unique identifier for the table instance. Will not be passed to the DOM.
8043
8083
  */
@@ -8071,8 +8111,8 @@ interface InfiniteTableProps<T> {
8071
8111
  headerOptions?: InfiniteTablePropHeaderOptions;
8072
8112
  focusedClassName?: string;
8073
8113
  focusedWithinClassName?: string;
8074
- focusedStyle?: React$1.CSSProperties;
8075
- focusedWithinStyle?: React$1.CSSProperties;
8114
+ focusedStyle?: CSSProperties;
8115
+ focusedWithinStyle?: CSSProperties;
8076
8116
  columnCssEllipsis?: boolean;
8077
8117
  columnHeaderCssEllipsis?: boolean;
8078
8118
  columnDefaultWidth?: number;
@@ -8083,10 +8123,10 @@ interface InfiniteTableProps<T> {
8083
8123
  resizableColumns?: boolean;
8084
8124
  virtualizeColumns?: InfiniteTablePropVirtualizeColumns<T>;
8085
8125
  virtualizeRows?: boolean;
8086
- onSelfFocus?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
8087
- onSelfBlur?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
8088
- onFocusWithin?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
8089
- onBlurWithin?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
8126
+ onSelfFocus?: (event: FocusEvent<HTMLDivElement>) => void;
8127
+ onSelfBlur?: (event: FocusEvent<HTMLDivElement>) => void;
8128
+ onFocusWithin?: (event: FocusEvent<HTMLDivElement>) => void;
8129
+ onBlurWithin?: (event: FocusEvent<HTMLDivElement>) => void;
8090
8130
  /**
8091
8131
  * When a column is hidden by using the column menu, the column menu will stay open,
8092
8132
  * so it needs (generally) to be realigned to the correct location. This prop
@@ -8105,13 +8145,23 @@ interface InfiniteTableProps<T> {
8105
8145
  columnOrder?: InfiniteTablePropColumnOrder;
8106
8146
  onColumnOrderChange?: (columnOrder: InfiniteTablePropColumnOrderNormalized) => void;
8107
8147
  onRowHeightChange?: (rowHeight: number) => void;
8108
- onRowMouseEnter?: (context: InfiniteTableRowContext<T>, event: React$1.MouseEvent) => void;
8109
- onRowMouseLeave?: (context: InfiniteTableRowContext<T>, event: React$1.MouseEvent) => void;
8148
+ onRowMouseEnter?: (context: InfiniteTableRowContext<T>, event: MouseEvent) => void;
8149
+ onRowMouseLeave?: (context: InfiniteTableRowContext<T>, event: MouseEvent) => void;
8110
8150
  onReady?: ({ api, dataSourceApi, }: {
8111
8151
  api: InfiniteTableApi<T>;
8112
8152
  dataSourceApi: DataSourceApi<T>;
8113
8153
  }) => void;
8114
- rowProps?: React$1.HTMLProps<HTMLDivElement> | ((rowArgs: InfiniteTableRowStylingFnParams<T>) => React$1.HTMLProps<HTMLDivElement>);
8154
+ rowProps?: HTMLProps<HTMLDivElement> | ((rowArgs: InfiniteTableRowStylingFnParams<T>) => HTMLProps<HTMLDivElement>);
8155
+ /**
8156
+ * The license key for Infinite Table.
8157
+ *
8158
+ * When not specified (`undefined`), the global `InfiniteTable.licenseKey` is used.
8159
+ * If specified, this key will be used.
8160
+ * If the license key is invalid it will show a "Invalid Infinite Table license. See console for details. Powered by Infinite Table" footer
8161
+ * If the license key is empty (either undefined or empty string) the grid shows the "Powered by Infinite Table" footer.
8162
+ *
8163
+ * So you will be better of with an empty license rather than an invalid one.
8164
+ */
8115
8165
  licenseKey?: string;
8116
8166
  scrollTopKey?: string | number;
8117
8167
  autoSizeColumnsKey?: InfiniteTablePropAutoSizeColumnsKey;
@@ -8145,10 +8195,10 @@ type GetContextMenuItemsReturnType = MenuProps['items'] | null | {
8145
8195
  columns: MenuColumn[];
8146
8196
  };
8147
8197
  type InfiniteTablePropGetCellContextMenuItems<T> = (info: InfiniteTableRowInfoDataDiscriminatorWithColumn<T> & {
8148
- event: React$1.MouseEvent;
8198
+ event: MouseEvent;
8149
8199
  }, params: InfiniteTablePublicContext<T>) => Promise<GetContextMenuItemsReturnType> | GetContextMenuItemsReturnType;
8150
8200
  type InfiniteTablePropGetContextMenuItems<T> = (param: {
8151
- event: React$1.MouseEvent;
8201
+ event: MouseEvent;
8152
8202
  } & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, params: InfiniteTablePublicContext<T>) => Promise<GetContextMenuItemsReturnType> | GetContextMenuItemsReturnType;
8153
8203
  type InfiniteTablePropGetFilterOperatorMenuItems<T> = (defaultItems: Exclude<MenuProps['items'], undefined>, params: {
8154
8204
  column: InfiniteTableComputedColumn<T>;
@@ -8202,7 +8252,7 @@ declare function debounce(fn: Function, { wait }: {
8202
8252
  wait: number;
8203
8253
  }): (...args: any[]) => void;
8204
8254
 
8205
- type DataSourceChildren<T> = React$1.ReactNode | ((values: DataSourceState<T>) => React$1.ReactNode);
8255
+ type DataSourceChildren<T> = React.ReactNode | ((values: DataSourceState<T>) => React.ReactNode);
8206
8256
 
8207
8257
  declare function useDataSourceInternal<T, PROPS_TYPE = DataSourceProps<T>>(props: Omit<PROPS_TYPE, 'children'>): {
8208
8258
  DataSource: ({ children }: {
@@ -8269,7 +8319,7 @@ type DataClientOptions = {
8269
8319
  cache?: boolean;
8270
8320
  };
8271
8321
 
8272
- declare function Menu(props: MenuProps & HTMLProps<HTMLDivElement>): React$1.JSX.Element;
8322
+ declare function Menu(props: MenuProps & HTMLProps<HTMLDivElement>): React.JSX.Element;
8273
8323
  declare namespace Menu {
8274
8324
  var __is_infinite_menu_component: boolean;
8275
8325
  }
@@ -8286,8 +8336,8 @@ type DragDropProviderContextValue = DragDropSourceAndTarget & {
8286
8336
  };
8287
8337
  declare const useDragDropProvider: () => DragDropProviderContextValue;
8288
8338
  declare const DragDropProvider: (props: {
8289
- children: React$1.ReactNode | ((context: DragDropProviderContextValue) => React$1.ReactNode);
8290
- }) => React$1.JSX.Element;
8339
+ children: React.ReactNode | ((context: DragDropProviderContextValue) => React.ReactNode);
8340
+ }) => React.JSX.Element;
8291
8341
 
8292
8342
  type EventHandler<T extends (...args: any[]) => void> = T;
8293
8343
  declare class EventEmitter<Events extends Record<string, (...args: any[]) => void>> {
@@ -8390,16 +8440,7 @@ declare class DragInteractionTarget extends EventEmitter<DragInteractionTargetEv
8390
8440
  drop(params: DragInteractionTargetMoveEvent): void;
8391
8441
  }
8392
8442
 
8393
- type DragListContextValue = {
8394
- dragItemId: string | number | null;
8395
- onDragItemPointerDown: (e: React$1.PointerEvent) => void;
8396
- draggingInProgress: boolean;
8397
- dragListId: string;
8398
- dragSourceListId: string | null;
8399
- dropTargetListId: string | null;
8400
- status: 'accepted' | 'rejected';
8401
- };
8402
- declare const useDragListContext: () => DragListContextValue;
8443
+ declare const DRAG_ITEM_ATTRIBUTE = "data-drag-item-id";
8403
8444
  type DragProxySetupParams = {
8404
8445
  dragItemNode: HTMLElement;
8405
8446
  dragItemId: string;
@@ -8428,6 +8469,23 @@ type DragProxyMoveParams = {
8428
8469
  dx: number;
8429
8470
  dy: number;
8430
8471
  };
8472
+ /**
8473
+ * Creates the default proxy element: clones the node, applies fixed-position
8474
+ * styles, and appends it to document.body.
8475
+ */
8476
+ declare function createDefaultProxy(dragItemNode: HTMLElement, initialRect: DOMRect): HTMLElement;
8477
+ declare function defaultDragProxyMove({ proxyElement, dx, dy, }: DragProxyMoveParams): void;
8478
+
8479
+ type DragListContextValue = {
8480
+ dragItemId: string | number | null;
8481
+ onDragItemPointerDown: (e: React.PointerEvent) => void;
8482
+ draggingInProgress: boolean;
8483
+ dragListId: string;
8484
+ dragSourceListId: string | null;
8485
+ dropTargetListId: string | null;
8486
+ status: 'accepted' | 'rejected';
8487
+ };
8488
+ declare const useDragListContext: () => DragListContextValue;
8431
8489
  type DragProxyRenderParams = {
8432
8490
  /**
8433
8491
  * The id of the item being dragged. `null` on the final cleanup call
@@ -8438,11 +8496,11 @@ type DragProxyRenderParams = {
8438
8496
  dx: number;
8439
8497
  dy: number;
8440
8498
  /** Must be passed to the root element of the rendered proxy. */
8441
- ref: React$1.RefCallback<HTMLElement>;
8499
+ ref: React.RefCallback<HTMLElement>;
8442
8500
  };
8443
8501
  type DragListProps = {
8444
8502
  dragListId: string;
8445
- children: (domProps: React$1.HTMLProps<HTMLDivElement>, context: DragListContextValue) => React$1.ReactNode;
8503
+ children: (domProps: React.HTMLProps<HTMLDivElement>, context: DragListContextValue) => React.ReactNode;
8446
8504
  orientation: 'horizontal' | 'vertical';
8447
8505
  acceptDropsFrom?: string[];
8448
8506
  removeOnDropOutside?: boolean;
@@ -8502,22 +8560,16 @@ type DragListProps = {
8502
8560
  * The original DOM node is hidden automatically.
8503
8561
  * Called with dragItemId: null on drop/cancel — return null to unmount.
8504
8562
  */
8505
- renderDragProxy?: (params: DragProxyRenderParams) => React$1.ReactNode;
8563
+ renderDragProxy?: (params: DragProxyRenderParams) => React.ReactNode;
8506
8564
  /**
8507
8565
  * When true, the space occupied by the dragged item in the source list
8508
8566
  * is preserved (not collapsed) while dragging outside the list.
8509
8567
  */
8510
8568
  preserveDragSpace?: boolean;
8511
8569
  };
8512
- /**
8513
- * Creates the default proxy element: clones the node, applies fixed-position
8514
- * styles, and appends it to document.body.
8515
- */
8516
- declare function createDefaultProxy(dragItemNode: HTMLElement, initialRect: DOMRect): HTMLElement;
8517
- declare function defaultDragProxyMove({ proxyElement, dx, dy, }: DragProxyMoveParams): void;
8518
8570
  declare const DragList: {
8519
- (props: DragListProps): React$1.JSX.Element;
8520
- DraggableItem: (props: DraggableItemProps) => React$1.JSX.Element;
8571
+ (props: DragListProps): React.JSX.Element;
8572
+ DraggableItem: (props: DraggableItemProps) => React.JSX.Element;
8521
8573
  };
8522
8574
  type DragItemContextValue = {
8523
8575
  dragItemId: string | number;
@@ -8530,9 +8582,8 @@ type DragItemContextValue = {
8530
8582
  type DraggableItemProps = {
8531
8583
  id: string | number;
8532
8584
  dragListId?: string;
8533
- children: React$1.ReactNode | ((domProps: React$1.HTMLAttributes<HTMLDivElement>, context: DragItemContextValue) => React$1.ReactNode);
8585
+ children: React.ReactNode | ((domProps: React.HTMLAttributes<HTMLDivElement>, context: DragItemContextValue) => React.ReactNode);
8534
8586
  };
8535
- declare const DRAG_ITEM_ATTRIBUTE = "data-drag-item-id";
8536
8587
 
8537
8588
  type AutoScrollerConfig = {
8538
8589
  startFromPercentage: number;
@@ -8574,8 +8625,10 @@ declare function useEffectWithChanges<T>(fn: (changes: Record<keyof T, any>, pre
8574
8625
  declare function useLayoutEffectWithChanges<T>(fn: (changes: Record<keyof T, any>, prevValues: Record<string, any>) => void | (() => void), deps: Record<keyof T, any>): void;
8575
8626
  declare function useEffectWithObject(fn: EffectCallback, deps: Record<string, any>): void;
8576
8627
 
8577
- declare function StringFilterEditor<T>(): React$1.JSX.Element;
8578
- declare function NumberFilterEditor<T>(): React$1.JSX.Element;
8628
+ declare function InfiniteCheckBox(props: InfiniteCheckBoxProps): React.JSX.Element;
8629
+
8630
+ declare function StringFilterEditor<T>(): React.JSX.Element;
8631
+ declare function NumberFilterEditor<T>(): React.JSX.Element;
8579
8632
 
8580
8633
  declare const keyboardShortcuts: {
8581
8634
  instantEdit: InfiniteTablePropKeyboardShorcut;
@@ -8635,21 +8688,21 @@ type FlashingCellOptions = {
8635
8688
  flashDuration?: number;
8636
8689
  flashClassName?: string;
8637
8690
  render?: (props: {
8638
- children: React$1.ReactNode;
8691
+ children: React.ReactNode;
8639
8692
  oldValue: any;
8640
- }) => React$1.ReactNode;
8693
+ }) => React.ReactNode;
8641
8694
  };
8642
- declare const createFlashingColumnCellComponent: (options?: FlashingCellOptions) => React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
8643
- declare const FlashingColumnCell: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
8695
+ declare const createFlashingColumnCellComponent: (options?: FlashingCellOptions) => React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8696
+ declare const FlashingColumnCell: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8644
8697
 
8645
8698
  type MatrixDebuggerProps = {
8646
8699
  debugTarget: string;
8647
8700
  };
8648
- declare function INTERNAL_MatrixDebugger(props: MatrixDebuggerProps): React$1.JSX.Element | null;
8701
+ declare function INTERNAL_MatrixDebugger(props: MatrixDebuggerProps): React.JSX.Element | null;
8649
8702
 
8650
8703
  declare const components: {
8651
8704
  CheckBox: typeof InfiniteCheckBox;
8652
- LoadMask: (props: LoadMaskProps) => React$1.JSX.Element;
8705
+ LoadMask: (props: LoadMaskProps) => React.JSX.Element;
8653
8706
  MenuIcon: typeof MenuIcon;
8654
8707
  StringFilterEditor: typeof StringFilterEditor;
8655
8708
  NumberFilterEditor: typeof NumberFilterEditor;