@infinite-table/infinite-react 3.2.3 → 3.2.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.
package/index.dev.js CHANGED
@@ -149,6 +149,7 @@ __export(src_exports, {
149
149
  useInfiniteColumnEditor: () => useInfiniteColumnEditor,
150
150
  useInfiniteColumnFilterEditor: () => useInfiniteColumnFilterEditor,
151
151
  useInfiniteHeaderCell: () => useInfiniteHeaderCell,
152
+ useMasterRowInfo: () => useMasterRowInfo,
152
153
  useOverlay: () => useOverlay,
153
154
  useOverlayPortal: () => useOverlayPortal,
154
155
  useRowInfoReducers: () => useRowInfoReducers
@@ -170,7 +171,7 @@ function debounce(fn, { wait }) {
170
171
  }
171
172
 
172
173
  // src/components/InfiniteTable/index.tsx
173
- var React66 = __toESM(require("react"));
174
+ var React67 = __toESM(require("react"));
174
175
 
175
176
  // src/utils/join.ts
176
177
  var join = (...args) => args.filter((x) => !!`${x}`).join(" ");
@@ -4841,6 +4842,7 @@ var position = { relative: "utilities_position_relative__16lm1iw1", absolute: "u
4841
4842
  var top = { "0": "utilities_top_0__16lm1iw1c", "100%": "utilities_top_100%__16lm1iw1d" };
4842
4843
  var transformTranslateZero = "utilities_transformTranslateZero__16lm1iwe";
4843
4844
  var userSelect = { none: "utilities_userSelect_none__16lm1iw17" };
4845
+ var visibility = { visible: "utilities_visibility_visible__16lm1iw20", hidden: "utilities_visibility_hidden__16lm1iw21" };
4844
4846
  var zIndex = { "1": "utilities_zIndex_1__16lm1iwo", "10": "utilities_zIndex_10__16lm1iwp", "100": "utilities_zIndex_100__16lm1iwq", "1000": "utilities_zIndex_1000__16lm1iwr", "10000": "utilities_zIndex_10000__16lm1iws", "100000": "utilities_zIndex_100000__16lm1iwt", "1000000": "utilities_zIndex_1000000__16lm1iwu", "10000000": "utilities_zIndex_10000000__16lm1iwv", "1k": "utilities_zIndex_1k__16lm1iww", "10k": "utilities_zIndex_10k__16lm1iwx", "100k": "utilities_zIndex_100k__16lm1iwy" };
4845
4847
 
4846
4848
  // src/components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody.tsx
@@ -5945,7 +5947,7 @@ var getComputedColumns = ({
5945
5947
  contentFocusable: colType.contentFocusable,
5946
5948
  renderMenuIcon: colType.renderMenuIcon,
5947
5949
  renderSortIcon: colType.renderSortIcon,
5948
- renderRowDetailsIcon: colType.renderRowDetailsIcon,
5950
+ renderRowDetailIcon: colType.renderRowDetailIcon,
5949
5951
  renderSelectionCheckBox: colType.renderSelectionCheckBox,
5950
5952
  renderHeaderSelectionCheckBox: colType.renderHeaderSelectionCheckBox,
5951
5953
  headerStyle: colType.headerStyle,
@@ -7953,7 +7955,7 @@ function getColumnRenderingParams(options) {
7953
7955
  renderFunctions: {
7954
7956
  renderGroupIcon: column.renderGroupIcon || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupIcon),
7955
7957
  renderSelectionCheckBox: column.renderSelectionCheckBox,
7956
- renderRowDetailsIcon: column.renderRowDetailsIcon,
7958
+ renderRowDetailIcon: column.renderRowDetailIcon,
7957
7959
  renderValue: column.renderValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderValue),
7958
7960
  renderGroupValue: column.renderGroupValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupValue),
7959
7961
  renderLeafValue: column.renderLeafValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderLeafValue)
@@ -8266,7 +8268,7 @@ var { rootClassName: rootClassName6 } = internalProps;
8266
8268
  var columnZIndexAtIndex4 = stripVar(InternalVars.columnZIndexAtIndex);
8267
8269
  var InfiniteTableColumnCellContext = React37.createContext(null);
8268
8270
  var InfiniteTableColumnCellClassName = `${rootClassName6}ColumnCell`;
8269
- var defaultRenderRowDetailsIcon = (params) => {
8271
+ var defaultRenderRowDetailIcon = (params) => {
8270
8272
  const { toggleCurrentRowDetails, rowDetailState } = params;
8271
8273
  return /* @__PURE__ */ React37.createElement(
8272
8274
  ExpanderIcon,
@@ -8482,21 +8484,21 @@ function InfiniteTableColumnCellFn(props) {
8482
8484
  );
8483
8485
  }
8484
8486
  }
8485
- if (renderFunctions.renderRowDetailsIcon) {
8487
+ if (renderFunctions.renderRowDetailIcon) {
8486
8488
  renderParam.renderBag.rowDetailsIcon = /* @__PURE__ */ React37.createElement(
8487
8489
  RenderCellHookComponent,
8488
8490
  {
8489
- render: defaultRenderRowDetailsIcon,
8491
+ render: defaultRenderRowDetailIcon,
8490
8492
  renderParam: __spreadProps(__spreadValues({}, renderParam), {
8491
8493
  renderBag: __spreadValues({}, renderParam.renderBag)
8492
8494
  })
8493
8495
  }
8494
8496
  );
8495
- if (typeof renderFunctions.renderRowDetailsIcon === "function") {
8497
+ if (typeof renderFunctions.renderRowDetailIcon === "function") {
8496
8498
  renderParam.renderBag.rowDetailsIcon = /* @__PURE__ */ React37.createElement(
8497
8499
  RenderCellHookComponent,
8498
8500
  {
8499
- render: renderFunctions.renderRowDetailsIcon,
8501
+ render: renderFunctions.renderRowDetailIcon,
8500
8502
  renderParam: __spreadProps(__spreadValues({}, renderParam), {
8501
8503
  renderBag: __spreadValues({}, renderParam.renderBag)
8502
8504
  })
@@ -15084,12 +15086,21 @@ function DataSourceCmp({
15084
15086
  }
15085
15087
  function DataSource(props) {
15086
15088
  const masterContext = useMasterDetailContext();
15087
- return /* @__PURE__ */ React51.createElement(DataSourceRoot, __spreadValues({}, props), /* @__PURE__ */ React51.createElement(DataSourceCmp, { children: props.children, isDetail: !!masterContext }));
15089
+ const isDetail = !!masterContext;
15090
+ const key = isDetail ? masterContext.masterRowInfo.id : "master";
15091
+ return /* @__PURE__ */ React51.createElement(DataSourceRoot, __spreadProps(__spreadValues({}, props), { key }), /* @__PURE__ */ React51.createElement(DataSourceCmp, { children: props.children, isDetail }));
15088
15092
  }
15089
15093
  function useRowInfoReducers() {
15090
15094
  const { rowInfoReducerResults } = useDataSource();
15091
15095
  return rowInfoReducerResults;
15092
15096
  }
15097
+ function useMasterRowInfo() {
15098
+ const context = useMasterDetailContext();
15099
+ if (!context) {
15100
+ return void 0;
15101
+ }
15102
+ return context.masterRowInfo;
15103
+ }
15093
15104
 
15094
15105
  // src/components/InfiniteTable/api/realignColumnContextMenu.ts
15095
15106
  function realignColumnContextMenu(param) {
@@ -16527,6 +16538,7 @@ function useRegisterDetail(props) {
16527
16538
  getState: getMasterDataSourceState,
16528
16539
  componentActions: masterActions
16529
16540
  } = useDataSourceContextValue();
16541
+ const { getState: getMasterState } = useInfiniteTable();
16530
16542
  const { currentRowCache, cacheCalledByRowDetailRenderer } = useCurrentRowCache(rowInfo.id, rowDetailsCache);
16531
16543
  const masterDetailContextValue = (0, import_react38.useMemo)(() => {
16532
16544
  const shouldRestoreState = getMasterDataSourceState().detailDataSourcesStateToRestore.has(
@@ -16576,6 +16588,8 @@ function useRegisterDetail(props) {
16576
16588
  };
16577
16589
  }, [rowInfo.id, currentRowCache]);
16578
16590
  masterDetailContextValue.masterRowInfo = rowInfo;
16591
+ masterDetailContextValue.getMasterDataSourceState = getMasterDataSourceState;
16592
+ masterDetailContextValue.getMasterState = getMasterState;
16579
16593
  return { masterDetailContextValue, currentRowCache };
16580
16594
  }
16581
16595
 
@@ -16802,7 +16816,7 @@ function useCellRendering(param) {
16802
16816
  const dataArray2 = getData();
16803
16817
  const rowInfo = dataArray2[rowIndex];
16804
16818
  if (!rowInfo || !isRowDetailsExpanded(rowInfo) || !computedRowSizeCacheForDetails) {
16805
- return null;
16819
+ return /* @__PURE__ */ React53.createElement("div", { ref: domRef, className: visibility.hidden });
16806
16820
  }
16807
16821
  const { rowDetailHeight: rowDetailHeight2, rowHeight: rowHeight2 } = computedRowSizeCacheForDetails.getSize(rowIndex);
16808
16822
  return /* @__PURE__ */ React53.createElement(
@@ -17255,6 +17269,14 @@ function toMap(mapOrObject, weakMapCache) {
17255
17269
  return result;
17256
17270
  }
17257
17271
 
17272
+ // src/components/InfiniteTable/state/rowDetailRendererFromComponent.tsx
17273
+ var React54 = __toESM(require("react"));
17274
+ function getRowDetailRendererFromComponent(RowDetail) {
17275
+ return (rowInfo, cache) => {
17276
+ return /* @__PURE__ */ React54.createElement(RowDetail, { key: rowInfo.id, rowInfo, cache });
17277
+ };
17278
+ }
17279
+
17258
17280
  // src/components/InfiniteTable/state/getInitialState.ts
17259
17281
  function createRenderer2(brain) {
17260
17282
  const renderer = new ReactHeadlessTableRenderer(brain);
@@ -17386,7 +17408,6 @@ var forwardProps4 = (setupState) => {
17386
17408
  columnDefaultEditable: 1,
17387
17409
  columnDefaultFilterable: 1,
17388
17410
  columnDefaultSortable: 1,
17389
- rowDetailRenderer: 1,
17390
17411
  rowStyle: 1,
17391
17412
  cellStyle: 1,
17392
17413
  rowProps: 1,
@@ -17501,7 +17522,7 @@ function getGroupByMap(groupBy) {
17501
17522
  }
17502
17523
  var weakMap = /* @__PURE__ */ new WeakMap();
17503
17524
  var mapPropsToState = (params) => {
17504
- var _a, _b, _c, _d;
17525
+ var _a, _b, _c, _d, _e;
17505
17526
  const { props, state, oldState, parentState } = params;
17506
17527
  const computedColumnGroups = state.pivotColumnGroups || state.columnGroups;
17507
17528
  const columnGroupsDepthsMap = state.columnGroups && state.columnGroups != (oldState == null ? void 0 : oldState.columnGroups) || state.pivotColumnGroups && state.pivotColumnGroups != (oldState == null ? void 0 : oldState.pivotColumnGroups) ? computeColumnGroupsDepths(computedColumnGroups) : state.columnGroupsDepthsMap;
@@ -17512,7 +17533,17 @@ var mapPropsToState = (params) => {
17512
17533
  groupColumn: props.groupColumn
17513
17534
  });
17514
17535
  let rowDetailState = void 0;
17515
- if (props.rowDetailRenderer) {
17536
+ let rowDetailRenderer = props.rowDetailRenderer;
17537
+ const RowDetailComponent = (_a = props.components) == null ? void 0 : _a.RowDetail;
17538
+ if (!rowDetailRenderer && RowDetailComponent) {
17539
+ let rowDetailRendererFromComponent = weakMap.get(RowDetailComponent);
17540
+ if (!rowDetailRendererFromComponent) {
17541
+ rowDetailRendererFromComponent = getRowDetailRendererFromComponent(RowDetailComponent);
17542
+ weakMap.set(RowDetailComponent, rowDetailRendererFromComponent);
17543
+ }
17544
+ rowDetailRenderer = rowDetailRendererFromComponent;
17545
+ }
17546
+ if (rowDetailRenderer) {
17516
17547
  rowDetailState = props.rowDetailState || state.rowDetailState || props.defaultRowDetailState;
17517
17548
  if (rowDetailState && !(rowDetailState instanceof RowDetailState)) {
17518
17549
  rowDetailState = new RowDetailState(rowDetailState);
@@ -17534,19 +17565,20 @@ var mapPropsToState = (params) => {
17534
17565
  }
17535
17566
  }
17536
17567
  }
17537
- const isRowDetailEnabled = !props.rowDetailRenderer ? false : props.isRowDetailEnabled || true;
17568
+ const isRowDetailEnabled = !rowDetailRenderer ? false : props.isRowDetailEnabled || true;
17538
17569
  return {
17570
+ rowDetailRenderer,
17539
17571
  rowDetailState,
17540
17572
  isRowDetailExpanded,
17541
17573
  isRowDetailEnabled,
17542
- showColumnFilters: (_a = props.showColumnFilters) != null ? _a : !!parentState.filterValue,
17574
+ showColumnFilters: (_b = props.showColumnFilters) != null ? _b : !!parentState.filterValue,
17543
17575
  controlledColumnVisibility: !!props.columnVisibility,
17544
17576
  groupRenderStrategy,
17545
17577
  groupBy,
17546
17578
  computedColumns,
17547
17579
  initialColumns: props.columns,
17548
- keyboardNavigation: (_b = props.keyboardNavigation) != null ? _b : state.activeCellIndex != null ? "cell" : state.activeRowIndex != null ? "row" : "cell",
17549
- columnHeaderCssEllipsis: (_d = (_c = props.columnHeaderCssEllipsis) != null ? _c : props.columnCssEllipsis) != null ? _d : true,
17580
+ keyboardNavigation: (_c = props.keyboardNavigation) != null ? _c : state.activeCellIndex != null ? "cell" : state.activeRowIndex != null ? "row" : "cell",
17581
+ columnHeaderCssEllipsis: (_e = (_d = props.columnHeaderCssEllipsis) != null ? _d : props.columnCssEllipsis) != null ? _e : true,
17550
17582
  columnGroupsDepthsMap,
17551
17583
  columnGroupsMaxDepth: columnGroupsDepthsMap != state.columnGroupsDepthsMap ? Math.max(...columnGroupsDepthsMap.values(), 0) : state.columnGroupsMaxDepth,
17552
17584
  computedColumnGroups,
@@ -18731,7 +18763,7 @@ var useLicense = (licenseKey = "") => {
18731
18763
  const valid = (0, import_react53.useMemo)(() => {
18732
18764
  let valid2 = isValidLicense(licenseKey, {
18733
18765
  publishedAt: 1624970570587,
18734
- version: "3.2.3"
18766
+ version: "3.2.5"
18735
18767
  });
18736
18768
  if (!licenseKey && !valid2 && isInsidePlayground) {
18737
18769
  return true;
@@ -19630,7 +19662,7 @@ function useDOMEventHandlers() {
19630
19662
  var import_react61 = require("react");
19631
19663
 
19632
19664
  // src/components/hooks/useOverlay/index.tsx
19633
- var React54 = __toESM(require("react"));
19665
+ var React55 = __toESM(require("react"));
19634
19666
  var import_react57 = require("react");
19635
19667
  var import_react_dom2 = require("react-dom");
19636
19668
 
@@ -20016,10 +20048,10 @@ function retrieveElement(elementGetter) {
20016
20048
  });
20017
20049
  }
20018
20050
  function DefaultOverlayPortal(props) {
20019
- return /* @__PURE__ */ React54.createElement("div", { style: { position: "fixed", top: 0, left: 0 } }, props.children);
20051
+ return /* @__PURE__ */ React55.createElement("div", { style: { position: "fixed", top: 0, left: 0 } }, props.children);
20020
20052
  }
20021
20053
  function OverlayContent(props) {
20022
- const nodeRef = React54.useRef(null);
20054
+ const nodeRef = React55.useRef(null);
20023
20055
  (0, import_react57.useEffect)(() => {
20024
20056
  return props.realign.onChange((handle) => {
20025
20057
  if (nodeRef.current && handle) {
@@ -20027,7 +20059,7 @@ function OverlayContent(props) {
20027
20059
  }
20028
20060
  });
20029
20061
  }, [props.realign]);
20030
- return /* @__PURE__ */ React54.createElement(
20062
+ return /* @__PURE__ */ React55.createElement(
20031
20063
  "div",
20032
20064
  {
20033
20065
  style: { position: "absolute", top: 0, left: 0 },
@@ -20098,22 +20130,22 @@ function useOverlayPortal(content, portalContainer) {
20098
20130
  }, [portalContainer]);
20099
20131
  return portalContainer ? container ? (0, import_react_dom2.createPortal)(content, container) : (
20100
20132
  // we're probably still fetching the container
20101
- /* @__PURE__ */ React54.createElement(React54.Fragment, null)
20102
- ) : portalContainer === null || portalContainer === false ? content : /* @__PURE__ */ React54.createElement(DefaultOverlayPortal, null, content);
20133
+ /* @__PURE__ */ React55.createElement(React55.Fragment, null)
20134
+ ) : portalContainer === null || portalContainer === false ? content : /* @__PURE__ */ React55.createElement(DefaultOverlayPortal, null, content);
20103
20135
  }
20104
20136
  function getIdForReactOnlyChild(children) {
20105
- if (React54.Children.count(children) === 1) {
20106
- const child = React54.Children.only(children);
20107
- if (React54.isValidElement(child)) {
20137
+ if (React55.Children.count(children) === 1) {
20138
+ const child = React55.Children.only(children);
20139
+ if (React55.isValidElement(child)) {
20108
20140
  return child.props.id || child.key;
20109
20141
  }
20110
20142
  }
20111
20143
  return null;
20112
20144
  }
20113
20145
  function injectPortalContainerAndConstrainInMenuChild(children, portalContainer, constrainTo) {
20114
- if (React54.Children.count(children) === 1) {
20115
- const child = React54.Children.only(children);
20116
- if (React54.isValidElement(child) && child.props[propToIdentifyMenu]) {
20146
+ if (React55.Children.count(children) === 1) {
20147
+ const child = React55.Children.only(children);
20148
+ if (React55.isValidElement(child) && child.props[propToIdentifyMenu]) {
20117
20149
  const newProps = {};
20118
20150
  if (child.props.portalContainer === void 0) {
20119
20151
  newProps.portalContainer = portalContainer;
@@ -20121,7 +20153,7 @@ function injectPortalContainerAndConstrainInMenuChild(children, portalContainer,
20121
20153
  if (child.props.constrainTo === void 0) {
20122
20154
  newProps.constrainTo = constrainTo;
20123
20155
  }
20124
- return React54.cloneElement(child, newProps);
20156
+ return React55.cloneElement(child, newProps);
20125
20157
  }
20126
20158
  }
20127
20159
  return children;
@@ -20137,7 +20169,7 @@ function useOverlay(params) {
20137
20169
  const contentForPortal = [];
20138
20170
  for (const [_2, handle] of handles) {
20139
20171
  contentForPortal.push(
20140
- /* @__PURE__ */ React54.createElement(OverlayContent, __spreadProps(__spreadValues({}, handle), { key: handle.key }))
20172
+ /* @__PURE__ */ React55.createElement(OverlayContent, __spreadProps(__spreadValues({}, handle), { key: handle.key }))
20141
20173
  );
20142
20174
  }
20143
20175
  return contentForPortal;
@@ -20182,7 +20214,7 @@ function useOverlay(params) {
20182
20214
  },
20183
20215
  [handles, rootParams.portalContainer, updateContent]
20184
20216
  );
20185
- React54.useEffect(() => {
20217
+ React55.useEffect(() => {
20186
20218
  if (handleToRealign) {
20187
20219
  const handle = handles.get(handleToRealign);
20188
20220
  if (handle) {
@@ -20201,7 +20233,7 @@ function useOverlay(params) {
20201
20233
  handles.clear();
20202
20234
  updateContent();
20203
20235
  };
20204
- React54.useEffect(() => {
20236
+ React55.useEffect(() => {
20205
20237
  }, []);
20206
20238
  return {
20207
20239
  portal,
@@ -20213,16 +20245,16 @@ function useOverlay(params) {
20213
20245
  }
20214
20246
 
20215
20247
  // src/components/InfiniteTable/utils/getMenuForColumn.tsx
20216
- var React60 = __toESM(require("react"));
20248
+ var React61 = __toESM(require("react"));
20217
20249
 
20218
20250
  // src/components/Menu/index.tsx
20219
- var React58 = __toESM(require("react"));
20251
+ var React59 = __toESM(require("react"));
20220
20252
 
20221
20253
  // src/components/Menu/getMenuState.tsx
20222
- var React56 = __toESM(require("react"));
20254
+ var React57 = __toESM(require("react"));
20223
20255
 
20224
20256
  // src/components/Menu/childrenToRuntimeItems.tsx
20225
- var React55 = __toESM(require("react"));
20257
+ var React56 = __toESM(require("react"));
20226
20258
 
20227
20259
  // src/components/Menu/MenuCls.css.ts
20228
20260
  var MenuCls = "MenuCls_MenuCls__db3arf0 utilities_boxSizingBorderBox__16lm1iw0 utilities_position_relative__16lm1iw1 utilities_display_inlineGrid__16lm1iw16 utilities_flexFlow_column__16lm1iw1m utilities_margin_none__16lm1iw8";
@@ -20233,7 +20265,7 @@ var MenuSeparatorCls = "MenuCls_MenuSeparatorCls__db3arfd";
20233
20265
  // src/components/Menu/childrenToRuntimeItems.tsx
20234
20266
  var SEPARATOR = "-";
20235
20267
  function MenuSeparator() {
20236
- return /* @__PURE__ */ React55.createElement("hr", { className: MenuSeparatorCls });
20268
+ return /* @__PURE__ */ React56.createElement("hr", { className: MenuSeparatorCls });
20237
20269
  }
20238
20270
  var toRuntimeItem = ({
20239
20271
  columns,
@@ -20242,7 +20274,7 @@ var toRuntimeItem = ({
20242
20274
  menuId
20243
20275
  }, item) => {
20244
20276
  const menuItem = item && (item.key != null || item.label != null) ? item : null;
20245
- const menuDecoration = menuItem === null ? item === SEPARATOR ? /* @__PURE__ */ React55.createElement(MenuSeparator, null) : item : null;
20277
+ const menuDecoration = menuItem === null ? item === SEPARATOR ? /* @__PURE__ */ React56.createElement(MenuSeparator, null) : item : null;
20246
20278
  const runtimeItem = menuItem != null ? {
20247
20279
  type: "item",
20248
20280
  parentMenuId: menuId,
@@ -20270,7 +20302,7 @@ var toRuntimeItem = ({
20270
20302
  return runtimeItem;
20271
20303
  };
20272
20304
  function childrenToRuntimeItems(context, children) {
20273
- return React55.Children.map(children, (child) => {
20305
+ return React56.Children.map(children, (child) => {
20274
20306
  if (child == null ? void 0 : child.props.__is_menu_item) {
20275
20307
  const itemProps = __spreadValues({}, child.props);
20276
20308
  if (!itemProps.key) {
@@ -20291,7 +20323,7 @@ function childrenToRuntimeItems(context, children) {
20291
20323
  // src/components/Menu/getMenuState.tsx
20292
20324
  var SUBMENU_COL_NAME = "submenu";
20293
20325
  function getInitialMenuState() {
20294
- const domRef = React56.createRef();
20326
+ const domRef = React57.createRef();
20295
20327
  return {
20296
20328
  keyboardActiveItemKey: null,
20297
20329
  activeItemKey: null,
@@ -20346,7 +20378,7 @@ var deriveStateFromProps2 = (params) => {
20346
20378
  columns.push({
20347
20379
  name: SUBMENU_COL_NAME,
20348
20380
  render: ({ domProps, item }) => {
20349
- return item.menu ? /* @__PURE__ */ React56.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React56.createElement(ExpanderIcon, { expanded: false })) : /* @__PURE__ */ React56.createElement("div", __spreadValues({}, domProps));
20381
+ return item.menu ? /* @__PURE__ */ React57.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React57.createElement(ExpanderIcon, { expanded: false })) : /* @__PURE__ */ React57.createElement("div", __spreadValues({}, domProps));
20350
20382
  }
20351
20383
  });
20352
20384
  }
@@ -20363,7 +20395,7 @@ var deriveStateFromProps2 = (params) => {
20363
20395
  };
20364
20396
 
20365
20397
  // src/components/Menu/Menu.tsx
20366
- var React57 = __toESM(require("react"));
20398
+ var React58 = __toESM(require("react"));
20367
20399
  var import_react60 = require("react");
20368
20400
 
20369
20401
  // src/utils/pageGeometry/Triangle.ts
@@ -20623,7 +20655,7 @@ function renderSubmenuForItem(item, config) {
20623
20655
  if (typeof itemMenu === "function") {
20624
20656
  itemMenu = itemMenu();
20625
20657
  }
20626
- return /* @__PURE__ */ React57.createElement(
20658
+ return /* @__PURE__ */ React58.createElement(
20627
20659
  Menu,
20628
20660
  __spreadProps(__spreadValues({
20629
20661
  key: overlayId,
@@ -20836,7 +20868,7 @@ function MenuComponent(props) {
20836
20868
  setActiveItemKey(key);
20837
20869
  }
20838
20870
  });
20839
- renderedChildren = runtimeItems.map((runtimeItem, index) => /* @__PURE__ */ React57.createElement(
20871
+ renderedChildren = runtimeItems.map((runtimeItem, index) => /* @__PURE__ */ React58.createElement(
20840
20872
  RuntimeItemRenderer,
20841
20873
  {
20842
20874
  key: runtimeItem.type === "item" ? runtimeItem.key : index,
@@ -21021,7 +21053,7 @@ function MenuComponent(props) {
21021
21053
  domRef.current = node;
21022
21054
  }
21023
21055
  }, []);
21024
- const result = /* @__PURE__ */ React57.createElement("div", { className: display.contents }, /* @__PURE__ */ React57.createElement(
21056
+ const result = /* @__PURE__ */ React58.createElement("div", { className: display.contents }, /* @__PURE__ */ React58.createElement(
21025
21057
  "div",
21026
21058
  __spreadProps(__spreadValues({}, domProps), {
21027
21059
  "data-menu-id": menuId,
@@ -21053,12 +21085,12 @@ function MenuComponent(props) {
21053
21085
  return destroyed ? null : result;
21054
21086
  }
21055
21087
  function RuntimeItemRenderer(props) {
21056
- const [pressed, setPressed] = React57.useState(false);
21088
+ const [pressed, setPressed] = React58.useState(false);
21057
21089
  const { columns, item, index, active, keyboardActive } = props;
21058
21090
  const key = item.type === "item" ? item.value.key : index;
21059
21091
  let content = null;
21060
21092
  if (item.type === "decoration") {
21061
- content = /* @__PURE__ */ React57.createElement("div", { style: item.style }, item.value);
21093
+ content = /* @__PURE__ */ React58.createElement("div", { style: item.style }, item.value);
21062
21094
  } else {
21063
21095
  let spanIndex = 0;
21064
21096
  content = columns.map((col, i) => {
@@ -21119,7 +21151,7 @@ function RuntimeItemRenderer(props) {
21119
21151
  }
21120
21152
  }
21121
21153
  };
21122
- return col.render ? /* @__PURE__ */ React57.createElement(
21154
+ return col.render ? /* @__PURE__ */ React58.createElement(
21123
21155
  RenderHookComponent,
21124
21156
  {
21125
21157
  key: `${key}-${field}`,
@@ -21131,10 +21163,10 @@ function RuntimeItemRenderer(props) {
21131
21163
  domProps
21132
21164
  }
21133
21165
  }
21134
- ) : /* @__PURE__ */ React57.createElement("div", __spreadValues({ key: `${key}-${field}` }, domProps), target[field]);
21166
+ ) : /* @__PURE__ */ React58.createElement("div", __spreadValues({ key: `${key}-${field}` }, domProps), target[field]);
21135
21167
  }).filter(Boolean);
21136
21168
  }
21137
- return /* @__PURE__ */ React57.createElement("div", { className: MenuRowCls }, content);
21169
+ return /* @__PURE__ */ React58.createElement("div", { className: MenuRowCls }, content);
21138
21170
  }
21139
21171
  function MenuItem(_props) {
21140
21172
  return null;
@@ -21154,12 +21186,12 @@ var MenuRoot = getComponentStateRoot({
21154
21186
  function MenuContextProvider(props) {
21155
21187
  const { componentActions, componentState } = useComponentState();
21156
21188
  const getState = useLatest(componentState);
21157
- return /* @__PURE__ */ React58.createElement(
21189
+ return /* @__PURE__ */ React59.createElement(
21158
21190
  MenuContext.Provider,
21159
21191
  {
21160
21192
  value: { componentActions, componentState, getState }
21161
21193
  },
21162
- /* @__PURE__ */ React58.createElement(MenuComponent, { domProps: props.domProps })
21194
+ /* @__PURE__ */ React59.createElement(MenuComponent, { domProps: props.domProps })
21163
21195
  );
21164
21196
  }
21165
21197
  function Menu(props) {
@@ -21201,9 +21233,9 @@ function Menu(props) {
21201
21233
  //@ts-ignore
21202
21234
  "__is_infinite_menu_component"
21203
21235
  ]);
21204
- const menu = /* @__PURE__ */ React58.createElement(MenuRoot, __spreadValues({}, props), /* @__PURE__ */ React58.createElement(MenuContextProvider, { domProps }));
21236
+ const menu = /* @__PURE__ */ React59.createElement(MenuRoot, __spreadValues({}, props), /* @__PURE__ */ React59.createElement(MenuContextProvider, { domProps }));
21205
21237
  if (false) {
21206
- return /* @__PURE__ */ React58.createElement(React58.StrictMode, null, menu);
21238
+ return /* @__PURE__ */ React59.createElement(React59.StrictMode, null, menu);
21207
21239
  }
21208
21240
  return menu;
21209
21241
  }
@@ -21220,7 +21252,7 @@ var menuDefaultProps = {
21220
21252
  Menu.defaultProps = menuDefaultProps;
21221
21253
 
21222
21254
  // src/components/InfiniteTable/utils/defaultGetColumnMenuItems.tsx
21223
- var React59 = __toESM(require("react"));
21255
+ var React60 = __toESM(require("react"));
21224
21256
  function defaultGetColumnMenuItems(_items, params) {
21225
21257
  const { columnApi, column, getComputed, api } = params;
21226
21258
  const sortable = columnApi.isSortable();
@@ -21307,7 +21339,7 @@ function defaultGetColumnMenuItems(_items, params) {
21307
21339
  colItems.push({
21308
21340
  key: id,
21309
21341
  label,
21310
- check: /* @__PURE__ */ React59.createElement(
21342
+ check: /* @__PURE__ */ React60.createElement(
21311
21343
  InfiniteCheckBox,
21312
21344
  {
21313
21345
  key: col.id,
@@ -21370,7 +21402,7 @@ function getMenuForColumn(columnId, context, onHideIntent) {
21370
21402
  if (!items || !items.length) {
21371
21403
  return null;
21372
21404
  }
21373
- return /* @__PURE__ */ React60.createElement(
21405
+ return /* @__PURE__ */ React61.createElement(
21374
21406
  MenuCmp,
21375
21407
  {
21376
21408
  autoFocus: true,
@@ -21432,13 +21464,14 @@ function showMenuForColumn(options) {
21432
21464
  }
21433
21465
  function useColumnMenu() {
21434
21466
  const context = useInfiniteTable();
21467
+ const masterContext = useMasterDetailContext();
21435
21468
  const { getState, actions } = context;
21436
21469
  const {
21437
21470
  showOverlay,
21438
21471
  portal: menuPortal,
21439
21472
  clearAll
21440
21473
  } = useOverlay({
21441
- portalContainer: false
21474
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
21442
21475
  });
21443
21476
  (0, import_react61.useEffect)(() => {
21444
21477
  const { actions: actions2, getState: getState2 } = context;
@@ -21489,7 +21522,7 @@ function useColumnMenu() {
21489
21522
  }
21490
21523
 
21491
21524
  // src/components/InfiniteTable/components/FocusDetect.tsx
21492
- var React61 = __toESM(require("react"));
21525
+ var React62 = __toESM(require("react"));
21493
21526
  var import_react62 = require("react");
21494
21527
  var style = {
21495
21528
  width: 0,
@@ -21523,7 +21556,7 @@ function FocusDetect() {
21523
21556
  };
21524
21557
  focusLastFocusableCell(context);
21525
21558
  }), []);
21526
- return /* @__PURE__ */ React61.createElement(
21559
+ return /* @__PURE__ */ React62.createElement(
21527
21560
  "div",
21528
21561
  {
21529
21562
  onFocus,
@@ -21654,18 +21687,18 @@ function useEditingCallbackProps() {
21654
21687
  var import_react64 = require("react");
21655
21688
 
21656
21689
  // src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
21657
- var React64 = __toESM(require("react"));
21690
+ var React65 = __toESM(require("react"));
21658
21691
 
21659
21692
  // src/components/InfiniteTable/components/icons/ClearIcon.tsx
21660
- var React62 = __toESM(require("react"));
21693
+ var React63 = __toESM(require("react"));
21661
21694
  var ClearIcon = (props) => {
21662
- return /* @__PURE__ */ React62.createElement(Icon, __spreadValues({}, props), /* @__PURE__ */ React62.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }));
21695
+ return /* @__PURE__ */ React63.createElement(Icon, __spreadValues({}, props), /* @__PURE__ */ React63.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }));
21663
21696
  };
21664
21697
 
21665
21698
  // src/components/InfiniteTable/components/icons/DoneIcon.tsx
21666
- var React63 = __toESM(require("react"));
21699
+ var React64 = __toESM(require("react"));
21667
21700
  var DoneIcon = (props) => {
21668
- return /* @__PURE__ */ React63.createElement(Icon, __spreadValues({}, props), /* @__PURE__ */ React63.createElement("path", { d: "m9.55 19-6.725-6.725L5.25 9.85l4.3 4.325 9.225-9.225 2.425 2.4Z" }));
21701
+ return /* @__PURE__ */ React64.createElement(Icon, __spreadValues({}, props), /* @__PURE__ */ React64.createElement("path", { d: "m9.55 19-6.725-6.725L5.25 9.85l4.3 4.325 9.225-9.225 2.425 2.4Z" }));
21669
21702
  };
21670
21703
 
21671
21704
  // src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
@@ -21711,12 +21744,12 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21711
21744
  const IconCmp = (_b = (_a2 = operator.components) == null ? void 0 : _a2.Icon) != null ? _b : FilterIcon;
21712
21745
  return {
21713
21746
  key,
21714
- icon: /* @__PURE__ */ React64.createElement(IconCmp, null),
21715
- label: /* @__PURE__ */ React64.createElement(React64.Fragment, null, (_c = operator.label) != null ? _c : operator.name),
21747
+ icon: /* @__PURE__ */ React65.createElement(IconCmp, null),
21748
+ label: /* @__PURE__ */ React65.createElement(React65.Fragment, null, (_c = operator.label) != null ? _c : operator.name),
21716
21749
  onAction: () => {
21717
21750
  api.setColumnFilterOperator(columnId, key);
21718
21751
  },
21719
- checked: checked ? /* @__PURE__ */ React64.createElement(DoneIcon, { size: 16 }) : null
21752
+ checked: checked ? /* @__PURE__ */ React65.createElement(DoneIcon, { size: 16 }) : null
21720
21753
  };
21721
21754
  });
21722
21755
  const firstItems = [
@@ -21731,7 +21764,7 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21731
21764
  {
21732
21765
  key: "reset",
21733
21766
  label: "Reset",
21734
- icon: /* @__PURE__ */ React64.createElement(ClearIcon, null),
21767
+ icon: /* @__PURE__ */ React65.createElement(ClearIcon, null),
21735
21768
  disabled: !column.computedFiltered,
21736
21769
  onAction: () => {
21737
21770
  api.clearColumnFilter(columnId);
@@ -21753,7 +21786,7 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21753
21786
  filterTypes
21754
21787
  };
21755
21788
  const items = getFilterOperatorMenuItems ? getFilterOperatorMenuItems(defaultItems, param) : defaultItems;
21756
- return /* @__PURE__ */ React64.createElement(
21789
+ return /* @__PURE__ */ React65.createElement(
21757
21790
  MenuCmp,
21758
21791
  {
21759
21792
  autoFocus: true,
@@ -21785,13 +21818,14 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21785
21818
  var OFFSET2 = 10;
21786
21819
  function useColumnFilterOperatorMenu() {
21787
21820
  const context = useInfiniteTable();
21821
+ const masterContext = useMasterDetailContext();
21788
21822
  const { getState, actions } = context;
21789
21823
  const {
21790
21824
  showOverlay,
21791
21825
  portal: menuPortal,
21792
21826
  clearAll
21793
21827
  } = useOverlay({
21794
- portalContainer: false
21828
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
21795
21829
  });
21796
21830
  (0, import_react64.useEffect)(() => {
21797
21831
  const { actions: actions2, getState: getState2 } = context;
@@ -21859,7 +21893,7 @@ function useColumnFilterOperatorMenu() {
21859
21893
  var import_react65 = require("react");
21860
21894
 
21861
21895
  // src/components/InfiniteTable/utils/getCellContextMenu.tsx
21862
- var React65 = __toESM(require("react"));
21896
+ var React66 = __toESM(require("react"));
21863
21897
  function getCellContextMenu(cellLocation, context, onHideIntent) {
21864
21898
  var _a;
21865
21899
  const { columnId, rowIndex, event } = cellLocation;
@@ -21899,7 +21933,7 @@ function getCellContextMenu(cellLocation, context, onHideIntent) {
21899
21933
  }
21900
21934
  return {
21901
21935
  preventDefault: true,
21902
- menu: /* @__PURE__ */ React65.createElement(
21936
+ menu: /* @__PURE__ */ React66.createElement(
21903
21937
  MenuCmp,
21904
21938
  {
21905
21939
  columns: menuColumns,
@@ -21954,7 +21988,7 @@ function getTableContextMenu(menuLocation, context, onHideIntent) {
21954
21988
  }
21955
21989
  return {
21956
21990
  preventDefault: true,
21957
- menu: /* @__PURE__ */ React65.createElement(
21991
+ menu: /* @__PURE__ */ React66.createElement(
21958
21992
  MenuCmp,
21959
21993
  {
21960
21994
  columns: menuColumns,
@@ -21992,13 +22026,14 @@ var ALIGN_POSITIONS = [
21992
22026
  ];
21993
22027
  function useCellContextMenu() {
21994
22028
  const context = useInfiniteTable();
22029
+ const masterContext = useMasterDetailContext();
21995
22030
  const { getState, actions } = context;
21996
22031
  const {
21997
22032
  showOverlay,
21998
22033
  portal: menuPortal,
21999
22034
  clearAll
22000
22035
  } = useOverlay({
22001
- portalContainer: false
22036
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
22002
22037
  });
22003
22038
  (0, import_react65.useEffect)(() => {
22004
22039
  const { actions: actions2, getState: getState2, getDataSourceState } = context;
@@ -22077,13 +22112,14 @@ function useCellContextMenu() {
22077
22112
  }
22078
22113
  function useTableContextMenu() {
22079
22114
  const context = useInfiniteTable();
22115
+ const masterContext = useMasterDetailContext();
22080
22116
  const { getState, actions } = context;
22081
22117
  const {
22082
22118
  showOverlay,
22083
22119
  portal: menuPortal,
22084
22120
  clearAll
22085
22121
  } = useOverlay({
22086
- portalContainer: false
22122
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
22087
22123
  });
22088
22124
  (0, import_react65.useEffect)(() => {
22089
22125
  const { actions: actions2, getState: getState2 } = context;
@@ -22177,10 +22213,11 @@ var InfiniteTableRoot = getComponentStateRoot({
22177
22213
  getParentState: () => useDataSource(),
22178
22214
  debugName: "InfiniteTable"
22179
22215
  });
22180
- var InfiniteTableComponent = React66.memo(
22216
+ var InfiniteTableComponent = React67.memo(
22181
22217
  function InfiniteTableComponent2() {
22182
22218
  var _a;
22183
22219
  const context = useInfiniteTable();
22220
+ const masterContext = useMasterDetailContext();
22184
22221
  const { state: componentState, getComputed, computed, api } = context;
22185
22222
  const {
22186
22223
  componentState: { loading, dataArray },
@@ -22225,7 +22262,7 @@ var InfiniteTableComponent = React66.memo(
22225
22262
  bodySize,
22226
22263
  computed
22227
22264
  });
22228
- React66.useEffect(() => {
22265
+ React67.useEffect(() => {
22229
22266
  const dataSourceState = getDataSourceState();
22230
22267
  const onChange = debounce(
22231
22268
  (renderRange) => {
@@ -22241,7 +22278,7 @@ var InfiniteTableComponent = React66.memo(
22241
22278
  const licenseValid = useLicense(licenseKey);
22242
22279
  const domProps = useDOMProps(componentState.domProps);
22243
22280
  const LoadMaskCmp = (_a = components2 == null ? void 0 : components2.LoadMask) != null ? _a : LoadMask;
22244
- React66.useEffect(() => {
22281
+ React67.useEffect(() => {
22245
22282
  brain.setScrollStopDelay(scrollStopDelay);
22246
22283
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
22247
22284
  }, [scrollStopDelay]);
@@ -22251,7 +22288,7 @@ var InfiniteTableComponent = React66.memo(
22251
22288
  const { menuPortal: cellContextMenuPortal } = useCellContextMenu();
22252
22289
  const { menuPortal: tableContextMenuPortal } = useTableContextMenu();
22253
22290
  const { menuPortal: filterOperatorMenuPortal } = useColumnFilterOperatorMenu();
22254
- React66.useEffect(() => {
22291
+ React67.useEffect(() => {
22255
22292
  if (typeof globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY === "function") {
22256
22293
  globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY(
22257
22294
  componentState.id,
@@ -22264,9 +22301,15 @@ var InfiniteTableComponent = React66.memo(
22264
22301
  globalThis.infiniteApi = context.api;
22265
22302
  }
22266
22303
  }, [componentState.ready]);
22267
- const onContextMenu = React66.useCallback((event) => {
22304
+ const onContextMenu = React67.useCallback((event) => {
22268
22305
  const state = context.getState();
22269
22306
  const target = event.target;
22307
+ if (!masterContext && event._from_row_detail) {
22308
+ return;
22309
+ }
22310
+ if (masterContext) {
22311
+ event._from_row_detail = true;
22312
+ }
22270
22313
  const cell = selectParentUntil(
22271
22314
  target,
22272
22315
  getCellSelector(),
@@ -22295,14 +22338,19 @@ var InfiniteTableComponent = React66.memo(
22295
22338
  }
22296
22339
  state.contextMenu(param);
22297
22340
  }, []);
22298
- return /* @__PURE__ */ React66.createElement("div", __spreadValues({ onKeyDown: onKeyDown2, ref: domRef }, domProps), header ? /* @__PURE__ */ React66.createElement(
22341
+ React67.useEffect(() => {
22342
+ if (masterContext) {
22343
+ portalDOMRef.current = masterContext.getMasterState().portalDOMRef.current;
22344
+ }
22345
+ }, []);
22346
+ return /* @__PURE__ */ React67.createElement("div", __spreadValues({ onKeyDown: onKeyDown2, ref: domRef }, domProps), header ? /* @__PURE__ */ React67.createElement(
22299
22347
  TableHeaderWrapper,
22300
22348
  {
22301
22349
  bodyBrain: brain,
22302
22350
  headerBrain,
22303
22351
  scrollbars
22304
22352
  }
22305
- ) : null, /* @__PURE__ */ React66.createElement(InfiniteTableBody, { onContextMenu }, /* @__PURE__ */ React66.createElement(
22353
+ ) : null, /* @__PURE__ */ React67.createElement(InfiniteTableBody, { onContextMenu }, /* @__PURE__ */ React67.createElement(
22306
22354
  HeadlessTable,
22307
22355
  {
22308
22356
  debugId,
@@ -22320,7 +22368,7 @@ var InfiniteTableComponent = React66.memo(
22320
22368
  cellHoverClassNames: HOVERED_CLASS_NAMES,
22321
22369
  scrollerDOMRef
22322
22370
  }
22323
- ), /* @__PURE__ */ React66.createElement(LoadMaskCmp, { visible: loading }, loadingText)), /* @__PURE__ */ React66.createElement(
22371
+ ), /* @__PURE__ */ React67.createElement(LoadMaskCmp, { visible: loading }, loadingText)), /* @__PURE__ */ React67.createElement(
22324
22372
  "div",
22325
22373
  {
22326
22374
  ref: portalDOMRef,
@@ -22336,25 +22384,25 @@ var InfiniteTableComponent = React66.memo(
22336
22384
  cellContextMenuPortal,
22337
22385
  tableContextMenuPortal,
22338
22386
  filterOperatorMenuPortal
22339
- ), rowHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22387
+ ), rowHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22340
22388
  CSSNumericVariableWatch,
22341
22389
  {
22342
22390
  varName: rowHeightCSSVar,
22343
22391
  onChange: onRowHeightCSSVarChange
22344
22392
  }
22345
- ) : null, rowDetailHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22393
+ ) : null, rowDetailHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22346
22394
  CSSNumericVariableWatch,
22347
22395
  {
22348
22396
  varName: rowDetailHeightCSSVar,
22349
22397
  onChange: onRowDetailHeightCSSVarChange
22350
22398
  }
22351
- ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22399
+ ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22352
22400
  CSSNumericVariableWatch,
22353
22401
  {
22354
22402
  varName: columnHeaderHeightCSSVar,
22355
22403
  onChange: onColumnHeaderHeightCSSVarChange
22356
22404
  }
22357
- ) : null, /* @__PURE__ */ React66.createElement(InfiniteTableFooter, null), licenseValid ? null : /* @__PURE__ */ React66.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React66.createElement(FocusDetect, null));
22405
+ ) : null, /* @__PURE__ */ React67.createElement(InfiniteTableFooter, null), licenseValid ? null : /* @__PURE__ */ React67.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React67.createElement(FocusDetect, null));
22358
22406
  }
22359
22407
  );
22360
22408
  function InfiniteTableContextProvider() {
@@ -22368,6 +22416,7 @@ function InfiniteTableContextProvider() {
22368
22416
  globalThis.getState = getState;
22369
22417
  globalThis.getComputed = getComputed;
22370
22418
  globalThis.componentActions = componentActions;
22419
+ globalThis.masterBrain = componentState.brain;
22371
22420
  }
22372
22421
  const {
22373
22422
  getState: getDataSourceState,
@@ -22375,7 +22424,7 @@ function InfiniteTableContextProvider() {
22375
22424
  getDataSourceMasterContext,
22376
22425
  api: dataSourceApi
22377
22426
  } = useDataSourceContextValue();
22378
- const [imperativeApi] = React66.useState(() => {
22427
+ const [imperativeApi] = React67.useState(() => {
22379
22428
  return getImperativeApi({
22380
22429
  getComputed,
22381
22430
  getState,
@@ -22410,21 +22459,21 @@ function InfiniteTableContextProvider() {
22410
22459
  },
22411
22460
  { earlyAttach: true, debounce: 50 }
22412
22461
  );
22413
- React66.useEffect(() => {
22462
+ React67.useEffect(() => {
22414
22463
  if (scrollerDOMRef.current) {
22415
22464
  scrollerDOMRef.current.scrollTop = 0;
22416
22465
  }
22417
22466
  }, [scrollTopKey, scrollerDOMRef]);
22418
22467
  const TableContext2 = getInfiniteTableContext();
22419
- return /* @__PURE__ */ React66.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React66.createElement(InfiniteTableComponent, null));
22468
+ return /* @__PURE__ */ React67.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React67.createElement(InfiniteTableComponent, null));
22420
22469
  }
22421
22470
  function InfiniteTable(props) {
22422
22471
  const table = (
22423
22472
  //@ts-ignore
22424
- /* @__PURE__ */ React66.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React66.createElement(InfiniteTableContextProvider, null))
22473
+ /* @__PURE__ */ React67.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React67.createElement(InfiniteTableContextProvider, null))
22425
22474
  );
22426
22475
  if (false) {
22427
- return /* @__PURE__ */ React66.createElement(React66.StrictMode, null, table);
22476
+ return /* @__PURE__ */ React67.createElement(React67.StrictMode, null, table);
22428
22477
  }
22429
22478
  return table;
22430
22479
  }
@@ -22594,6 +22643,7 @@ var components = {
22594
22643
  useInfiniteColumnEditor,
22595
22644
  useInfiniteColumnFilterEditor,
22596
22645
  useInfiniteHeaderCell,
22646
+ useMasterRowInfo,
22597
22647
  useOverlay,
22598
22648
  useOverlayPortal,
22599
22649
  useRowInfoReducers