@infinite-table/infinite-react 3.2.4 → 3.2.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/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
@@ -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) {
@@ -15381,6 +15392,20 @@ function getRowDetailApi(param) {
15381
15392
  const expanded = isRowDetailExpanded(rowInfo);
15382
15393
  return !expanded;
15383
15394
  },
15395
+ isRowDetailEnabledForRow(pk) {
15396
+ const { isRowDetailEnabled } = getState();
15397
+ if (!isRowDetailEnabled) {
15398
+ return false;
15399
+ }
15400
+ if (typeof isRowDetailEnabled === "function") {
15401
+ const rowInfo = dataSourceApi.getRowInfoByPrimaryKey(pk);
15402
+ if (!rowInfo) {
15403
+ return false;
15404
+ }
15405
+ return isRowDetailEnabled(rowInfo);
15406
+ }
15407
+ return true;
15408
+ },
15384
15409
  isRowDetailExpanded(pk) {
15385
15410
  return !rowDetailApi.isRowDetailCollapsed(pk);
15386
15411
  },
@@ -16527,6 +16552,7 @@ function useRegisterDetail(props) {
16527
16552
  getState: getMasterDataSourceState,
16528
16553
  componentActions: masterActions
16529
16554
  } = useDataSourceContextValue();
16555
+ const { getState: getMasterState } = useInfiniteTable();
16530
16556
  const { currentRowCache, cacheCalledByRowDetailRenderer } = useCurrentRowCache(rowInfo.id, rowDetailsCache);
16531
16557
  const masterDetailContextValue = (0, import_react38.useMemo)(() => {
16532
16558
  const shouldRestoreState = getMasterDataSourceState().detailDataSourcesStateToRestore.has(
@@ -16576,6 +16602,8 @@ function useRegisterDetail(props) {
16576
16602
  };
16577
16603
  }, [rowInfo.id, currentRowCache]);
16578
16604
  masterDetailContextValue.masterRowInfo = rowInfo;
16605
+ masterDetailContextValue.getMasterDataSourceState = getMasterDataSourceState;
16606
+ masterDetailContextValue.getMasterState = getMasterState;
16579
16607
  return { masterDetailContextValue, currentRowCache };
16580
16608
  }
16581
16609
 
@@ -16802,7 +16830,7 @@ function useCellRendering(param) {
16802
16830
  const dataArray2 = getData();
16803
16831
  const rowInfo = dataArray2[rowIndex];
16804
16832
  if (!rowInfo || !isRowDetailsExpanded(rowInfo) || !computedRowSizeCacheForDetails) {
16805
- return null;
16833
+ return /* @__PURE__ */ React53.createElement("div", { ref: domRef, className: visibility.hidden });
16806
16834
  }
16807
16835
  const { rowDetailHeight: rowDetailHeight2, rowHeight: rowHeight2 } = computedRowSizeCacheForDetails.getSize(rowIndex);
16808
16836
  return /* @__PURE__ */ React53.createElement(
@@ -17255,6 +17283,14 @@ function toMap(mapOrObject, weakMapCache) {
17255
17283
  return result;
17256
17284
  }
17257
17285
 
17286
+ // src/components/InfiniteTable/state/rowDetailRendererFromComponent.tsx
17287
+ var React54 = __toESM(require("react"));
17288
+ function getRowDetailRendererFromComponent(RowDetail) {
17289
+ return (rowInfo, cache) => {
17290
+ return /* @__PURE__ */ React54.createElement(RowDetail, { key: rowInfo.id, rowInfo, cache });
17291
+ };
17292
+ }
17293
+
17258
17294
  // src/components/InfiniteTable/state/getInitialState.ts
17259
17295
  function createRenderer2(brain) {
17260
17296
  const renderer = new ReactHeadlessTableRenderer(brain);
@@ -17386,7 +17422,6 @@ var forwardProps4 = (setupState) => {
17386
17422
  columnDefaultEditable: 1,
17387
17423
  columnDefaultFilterable: 1,
17388
17424
  columnDefaultSortable: 1,
17389
- rowDetailRenderer: 1,
17390
17425
  rowStyle: 1,
17391
17426
  cellStyle: 1,
17392
17427
  rowProps: 1,
@@ -17501,7 +17536,7 @@ function getGroupByMap(groupBy) {
17501
17536
  }
17502
17537
  var weakMap = /* @__PURE__ */ new WeakMap();
17503
17538
  var mapPropsToState = (params) => {
17504
- var _a, _b, _c, _d;
17539
+ var _a, _b, _c, _d, _e;
17505
17540
  const { props, state, oldState, parentState } = params;
17506
17541
  const computedColumnGroups = state.pivotColumnGroups || state.columnGroups;
17507
17542
  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 +17547,17 @@ var mapPropsToState = (params) => {
17512
17547
  groupColumn: props.groupColumn
17513
17548
  });
17514
17549
  let rowDetailState = void 0;
17515
- if (props.rowDetailRenderer) {
17550
+ let rowDetailRenderer = props.rowDetailRenderer;
17551
+ const RowDetailComponent = (_a = props.components) == null ? void 0 : _a.RowDetail;
17552
+ if (!rowDetailRenderer && RowDetailComponent) {
17553
+ let rowDetailRendererFromComponent = weakMap.get(RowDetailComponent);
17554
+ if (!rowDetailRendererFromComponent) {
17555
+ rowDetailRendererFromComponent = getRowDetailRendererFromComponent(RowDetailComponent);
17556
+ weakMap.set(RowDetailComponent, rowDetailRendererFromComponent);
17557
+ }
17558
+ rowDetailRenderer = rowDetailRendererFromComponent;
17559
+ }
17560
+ if (rowDetailRenderer) {
17516
17561
  rowDetailState = props.rowDetailState || state.rowDetailState || props.defaultRowDetailState;
17517
17562
  if (rowDetailState && !(rowDetailState instanceof RowDetailState)) {
17518
17563
  rowDetailState = new RowDetailState(rowDetailState);
@@ -17534,19 +17579,20 @@ var mapPropsToState = (params) => {
17534
17579
  }
17535
17580
  }
17536
17581
  }
17537
- const isRowDetailEnabled = !props.rowDetailRenderer ? false : props.isRowDetailEnabled || true;
17582
+ const isRowDetailEnabled = !rowDetailRenderer ? false : props.isRowDetailEnabled || true;
17538
17583
  return {
17584
+ rowDetailRenderer,
17539
17585
  rowDetailState,
17540
17586
  isRowDetailExpanded,
17541
17587
  isRowDetailEnabled,
17542
- showColumnFilters: (_a = props.showColumnFilters) != null ? _a : !!parentState.filterValue,
17588
+ showColumnFilters: (_b = props.showColumnFilters) != null ? _b : !!parentState.filterValue,
17543
17589
  controlledColumnVisibility: !!props.columnVisibility,
17544
17590
  groupRenderStrategy,
17545
17591
  groupBy,
17546
17592
  computedColumns,
17547
17593
  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,
17594
+ keyboardNavigation: (_c = props.keyboardNavigation) != null ? _c : state.activeCellIndex != null ? "cell" : state.activeRowIndex != null ? "row" : "cell",
17595
+ columnHeaderCssEllipsis: (_e = (_d = props.columnHeaderCssEllipsis) != null ? _d : props.columnCssEllipsis) != null ? _e : true,
17550
17596
  columnGroupsDepthsMap,
17551
17597
  columnGroupsMaxDepth: columnGroupsDepthsMap != state.columnGroupsDepthsMap ? Math.max(...columnGroupsDepthsMap.values(), 0) : state.columnGroupsMaxDepth,
17552
17598
  computedColumnGroups,
@@ -18731,7 +18777,7 @@ var useLicense = (licenseKey = "") => {
18731
18777
  const valid = (0, import_react53.useMemo)(() => {
18732
18778
  let valid2 = isValidLicense(licenseKey, {
18733
18779
  publishedAt: 1624970570587,
18734
- version: "3.2.4"
18780
+ version: "3.2.6"
18735
18781
  });
18736
18782
  if (!licenseKey && !valid2 && isInsidePlayground) {
18737
18783
  return true;
@@ -18966,6 +19012,9 @@ function handleRowNavigation(options, event) {
18966
19012
  if (rowInfo && rowInfo.isGroupRow) {
18967
19013
  return api.collapseGroupRow(rowInfo.groupKeys);
18968
19014
  }
19015
+ if (rowInfo && api.rowDetailApi.isRowDetailEnabledForRow(rowInfo.id)) {
19016
+ return api.rowDetailApi.collapseRowDetail(rowInfo.id);
19017
+ }
18969
19018
  return false;
18970
19019
  },
18971
19020
  ArrowRight: () => {
@@ -18973,6 +19022,9 @@ function handleRowNavigation(options, event) {
18973
19022
  if (rowInfo && rowInfo.isGroupRow) {
18974
19023
  return api.expandGroupRow(rowInfo.groupKeys);
18975
19024
  }
19025
+ if (rowInfo && api.rowDetailApi.isRowDetailEnabledForRow(rowInfo.id)) {
19026
+ return api.rowDetailApi.expandRowDetail(rowInfo.id);
19027
+ }
18976
19028
  return false;
18977
19029
  },
18978
19030
  Enter: () => {
@@ -18980,6 +19032,12 @@ function handleRowNavigation(options, event) {
18980
19032
  if (rowInfo && rowInfo.isGroupRow) {
18981
19033
  return api.toggleGroupRow(rowInfo.groupKeys);
18982
19034
  }
19035
+ const hasRowDetail = api.rowDetailApi.isRowDetailEnabledForRow(
19036
+ rowInfo.id
19037
+ );
19038
+ if (hasRowDetail) {
19039
+ return api.rowDetailApi.toggleRowDetail(rowInfo.id);
19040
+ }
18983
19041
  return false;
18984
19042
  },
18985
19043
  PageDown: () => {
@@ -19070,6 +19128,9 @@ function handleCellNavigation(options, event) {
19070
19128
  if (rowInfo && rowInfo.isGroupRow) {
19071
19129
  return api.toggleGroupRow(rowInfo.groupKeys);
19072
19130
  }
19131
+ if (rowInfo && api.rowDetailApi.isRowDetailEnabledForRow(rowInfo.id)) {
19132
+ return api.rowDetailApi.toggleRowDetail(rowInfo.id);
19133
+ }
19073
19134
  return false;
19074
19135
  },
19075
19136
  PageDown: () => {
@@ -19630,7 +19691,7 @@ function useDOMEventHandlers() {
19630
19691
  var import_react61 = require("react");
19631
19692
 
19632
19693
  // src/components/hooks/useOverlay/index.tsx
19633
- var React54 = __toESM(require("react"));
19694
+ var React55 = __toESM(require("react"));
19634
19695
  var import_react57 = require("react");
19635
19696
  var import_react_dom2 = require("react-dom");
19636
19697
 
@@ -20016,10 +20077,10 @@ function retrieveElement(elementGetter) {
20016
20077
  });
20017
20078
  }
20018
20079
  function DefaultOverlayPortal(props) {
20019
- return /* @__PURE__ */ React54.createElement("div", { style: { position: "fixed", top: 0, left: 0 } }, props.children);
20080
+ return /* @__PURE__ */ React55.createElement("div", { style: { position: "fixed", top: 0, left: 0 } }, props.children);
20020
20081
  }
20021
20082
  function OverlayContent(props) {
20022
- const nodeRef = React54.useRef(null);
20083
+ const nodeRef = React55.useRef(null);
20023
20084
  (0, import_react57.useEffect)(() => {
20024
20085
  return props.realign.onChange((handle) => {
20025
20086
  if (nodeRef.current && handle) {
@@ -20027,7 +20088,7 @@ function OverlayContent(props) {
20027
20088
  }
20028
20089
  });
20029
20090
  }, [props.realign]);
20030
- return /* @__PURE__ */ React54.createElement(
20091
+ return /* @__PURE__ */ React55.createElement(
20031
20092
  "div",
20032
20093
  {
20033
20094
  style: { position: "absolute", top: 0, left: 0 },
@@ -20098,22 +20159,22 @@ function useOverlayPortal(content, portalContainer) {
20098
20159
  }, [portalContainer]);
20099
20160
  return portalContainer ? container ? (0, import_react_dom2.createPortal)(content, container) : (
20100
20161
  // 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);
20162
+ /* @__PURE__ */ React55.createElement(React55.Fragment, null)
20163
+ ) : portalContainer === null || portalContainer === false ? content : /* @__PURE__ */ React55.createElement(DefaultOverlayPortal, null, content);
20103
20164
  }
20104
20165
  function getIdForReactOnlyChild(children) {
20105
- if (React54.Children.count(children) === 1) {
20106
- const child = React54.Children.only(children);
20107
- if (React54.isValidElement(child)) {
20166
+ if (React55.Children.count(children) === 1) {
20167
+ const child = React55.Children.only(children);
20168
+ if (React55.isValidElement(child)) {
20108
20169
  return child.props.id || child.key;
20109
20170
  }
20110
20171
  }
20111
20172
  return null;
20112
20173
  }
20113
20174
  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]) {
20175
+ if (React55.Children.count(children) === 1) {
20176
+ const child = React55.Children.only(children);
20177
+ if (React55.isValidElement(child) && child.props[propToIdentifyMenu]) {
20117
20178
  const newProps = {};
20118
20179
  if (child.props.portalContainer === void 0) {
20119
20180
  newProps.portalContainer = portalContainer;
@@ -20121,7 +20182,7 @@ function injectPortalContainerAndConstrainInMenuChild(children, portalContainer,
20121
20182
  if (child.props.constrainTo === void 0) {
20122
20183
  newProps.constrainTo = constrainTo;
20123
20184
  }
20124
- return React54.cloneElement(child, newProps);
20185
+ return React55.cloneElement(child, newProps);
20125
20186
  }
20126
20187
  }
20127
20188
  return children;
@@ -20137,7 +20198,7 @@ function useOverlay(params) {
20137
20198
  const contentForPortal = [];
20138
20199
  for (const [_2, handle] of handles) {
20139
20200
  contentForPortal.push(
20140
- /* @__PURE__ */ React54.createElement(OverlayContent, __spreadProps(__spreadValues({}, handle), { key: handle.key }))
20201
+ /* @__PURE__ */ React55.createElement(OverlayContent, __spreadProps(__spreadValues({}, handle), { key: handle.key }))
20141
20202
  );
20142
20203
  }
20143
20204
  return contentForPortal;
@@ -20182,7 +20243,7 @@ function useOverlay(params) {
20182
20243
  },
20183
20244
  [handles, rootParams.portalContainer, updateContent]
20184
20245
  );
20185
- React54.useEffect(() => {
20246
+ React55.useEffect(() => {
20186
20247
  if (handleToRealign) {
20187
20248
  const handle = handles.get(handleToRealign);
20188
20249
  if (handle) {
@@ -20201,7 +20262,7 @@ function useOverlay(params) {
20201
20262
  handles.clear();
20202
20263
  updateContent();
20203
20264
  };
20204
- React54.useEffect(() => {
20265
+ React55.useEffect(() => {
20205
20266
  }, []);
20206
20267
  return {
20207
20268
  portal,
@@ -20213,16 +20274,16 @@ function useOverlay(params) {
20213
20274
  }
20214
20275
 
20215
20276
  // src/components/InfiniteTable/utils/getMenuForColumn.tsx
20216
- var React60 = __toESM(require("react"));
20277
+ var React61 = __toESM(require("react"));
20217
20278
 
20218
20279
  // src/components/Menu/index.tsx
20219
- var React58 = __toESM(require("react"));
20280
+ var React59 = __toESM(require("react"));
20220
20281
 
20221
20282
  // src/components/Menu/getMenuState.tsx
20222
- var React56 = __toESM(require("react"));
20283
+ var React57 = __toESM(require("react"));
20223
20284
 
20224
20285
  // src/components/Menu/childrenToRuntimeItems.tsx
20225
- var React55 = __toESM(require("react"));
20286
+ var React56 = __toESM(require("react"));
20226
20287
 
20227
20288
  // src/components/Menu/MenuCls.css.ts
20228
20289
  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 +20294,7 @@ var MenuSeparatorCls = "MenuCls_MenuSeparatorCls__db3arfd";
20233
20294
  // src/components/Menu/childrenToRuntimeItems.tsx
20234
20295
  var SEPARATOR = "-";
20235
20296
  function MenuSeparator() {
20236
- return /* @__PURE__ */ React55.createElement("hr", { className: MenuSeparatorCls });
20297
+ return /* @__PURE__ */ React56.createElement("hr", { className: MenuSeparatorCls });
20237
20298
  }
20238
20299
  var toRuntimeItem = ({
20239
20300
  columns,
@@ -20242,7 +20303,7 @@ var toRuntimeItem = ({
20242
20303
  menuId
20243
20304
  }, item) => {
20244
20305
  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;
20306
+ const menuDecoration = menuItem === null ? item === SEPARATOR ? /* @__PURE__ */ React56.createElement(MenuSeparator, null) : item : null;
20246
20307
  const runtimeItem = menuItem != null ? {
20247
20308
  type: "item",
20248
20309
  parentMenuId: menuId,
@@ -20270,7 +20331,7 @@ var toRuntimeItem = ({
20270
20331
  return runtimeItem;
20271
20332
  };
20272
20333
  function childrenToRuntimeItems(context, children) {
20273
- return React55.Children.map(children, (child) => {
20334
+ return React56.Children.map(children, (child) => {
20274
20335
  if (child == null ? void 0 : child.props.__is_menu_item) {
20275
20336
  const itemProps = __spreadValues({}, child.props);
20276
20337
  if (!itemProps.key) {
@@ -20291,7 +20352,7 @@ function childrenToRuntimeItems(context, children) {
20291
20352
  // src/components/Menu/getMenuState.tsx
20292
20353
  var SUBMENU_COL_NAME = "submenu";
20293
20354
  function getInitialMenuState() {
20294
- const domRef = React56.createRef();
20355
+ const domRef = React57.createRef();
20295
20356
  return {
20296
20357
  keyboardActiveItemKey: null,
20297
20358
  activeItemKey: null,
@@ -20346,7 +20407,7 @@ var deriveStateFromProps2 = (params) => {
20346
20407
  columns.push({
20347
20408
  name: SUBMENU_COL_NAME,
20348
20409
  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));
20410
+ return item.menu ? /* @__PURE__ */ React57.createElement("div", __spreadValues({}, domProps), /* @__PURE__ */ React57.createElement(ExpanderIcon, { expanded: false })) : /* @__PURE__ */ React57.createElement("div", __spreadValues({}, domProps));
20350
20411
  }
20351
20412
  });
20352
20413
  }
@@ -20363,7 +20424,7 @@ var deriveStateFromProps2 = (params) => {
20363
20424
  };
20364
20425
 
20365
20426
  // src/components/Menu/Menu.tsx
20366
- var React57 = __toESM(require("react"));
20427
+ var React58 = __toESM(require("react"));
20367
20428
  var import_react60 = require("react");
20368
20429
 
20369
20430
  // src/utils/pageGeometry/Triangle.ts
@@ -20623,7 +20684,7 @@ function renderSubmenuForItem(item, config) {
20623
20684
  if (typeof itemMenu === "function") {
20624
20685
  itemMenu = itemMenu();
20625
20686
  }
20626
- return /* @__PURE__ */ React57.createElement(
20687
+ return /* @__PURE__ */ React58.createElement(
20627
20688
  Menu,
20628
20689
  __spreadProps(__spreadValues({
20629
20690
  key: overlayId,
@@ -20836,7 +20897,7 @@ function MenuComponent(props) {
20836
20897
  setActiveItemKey(key);
20837
20898
  }
20838
20899
  });
20839
- renderedChildren = runtimeItems.map((runtimeItem, index) => /* @__PURE__ */ React57.createElement(
20900
+ renderedChildren = runtimeItems.map((runtimeItem, index) => /* @__PURE__ */ React58.createElement(
20840
20901
  RuntimeItemRenderer,
20841
20902
  {
20842
20903
  key: runtimeItem.type === "item" ? runtimeItem.key : index,
@@ -21021,7 +21082,7 @@ function MenuComponent(props) {
21021
21082
  domRef.current = node;
21022
21083
  }
21023
21084
  }, []);
21024
- const result = /* @__PURE__ */ React57.createElement("div", { className: display.contents }, /* @__PURE__ */ React57.createElement(
21085
+ const result = /* @__PURE__ */ React58.createElement("div", { className: display.contents }, /* @__PURE__ */ React58.createElement(
21025
21086
  "div",
21026
21087
  __spreadProps(__spreadValues({}, domProps), {
21027
21088
  "data-menu-id": menuId,
@@ -21053,12 +21114,12 @@ function MenuComponent(props) {
21053
21114
  return destroyed ? null : result;
21054
21115
  }
21055
21116
  function RuntimeItemRenderer(props) {
21056
- const [pressed, setPressed] = React57.useState(false);
21117
+ const [pressed, setPressed] = React58.useState(false);
21057
21118
  const { columns, item, index, active, keyboardActive } = props;
21058
21119
  const key = item.type === "item" ? item.value.key : index;
21059
21120
  let content = null;
21060
21121
  if (item.type === "decoration") {
21061
- content = /* @__PURE__ */ React57.createElement("div", { style: item.style }, item.value);
21122
+ content = /* @__PURE__ */ React58.createElement("div", { style: item.style }, item.value);
21062
21123
  } else {
21063
21124
  let spanIndex = 0;
21064
21125
  content = columns.map((col, i) => {
@@ -21119,7 +21180,7 @@ function RuntimeItemRenderer(props) {
21119
21180
  }
21120
21181
  }
21121
21182
  };
21122
- return col.render ? /* @__PURE__ */ React57.createElement(
21183
+ return col.render ? /* @__PURE__ */ React58.createElement(
21123
21184
  RenderHookComponent,
21124
21185
  {
21125
21186
  key: `${key}-${field}`,
@@ -21131,10 +21192,10 @@ function RuntimeItemRenderer(props) {
21131
21192
  domProps
21132
21193
  }
21133
21194
  }
21134
- ) : /* @__PURE__ */ React57.createElement("div", __spreadValues({ key: `${key}-${field}` }, domProps), target[field]);
21195
+ ) : /* @__PURE__ */ React58.createElement("div", __spreadValues({ key: `${key}-${field}` }, domProps), target[field]);
21135
21196
  }).filter(Boolean);
21136
21197
  }
21137
- return /* @__PURE__ */ React57.createElement("div", { className: MenuRowCls }, content);
21198
+ return /* @__PURE__ */ React58.createElement("div", { className: MenuRowCls }, content);
21138
21199
  }
21139
21200
  function MenuItem(_props) {
21140
21201
  return null;
@@ -21154,12 +21215,12 @@ var MenuRoot = getComponentStateRoot({
21154
21215
  function MenuContextProvider(props) {
21155
21216
  const { componentActions, componentState } = useComponentState();
21156
21217
  const getState = useLatest(componentState);
21157
- return /* @__PURE__ */ React58.createElement(
21218
+ return /* @__PURE__ */ React59.createElement(
21158
21219
  MenuContext.Provider,
21159
21220
  {
21160
21221
  value: { componentActions, componentState, getState }
21161
21222
  },
21162
- /* @__PURE__ */ React58.createElement(MenuComponent, { domProps: props.domProps })
21223
+ /* @__PURE__ */ React59.createElement(MenuComponent, { domProps: props.domProps })
21163
21224
  );
21164
21225
  }
21165
21226
  function Menu(props) {
@@ -21201,9 +21262,9 @@ function Menu(props) {
21201
21262
  //@ts-ignore
21202
21263
  "__is_infinite_menu_component"
21203
21264
  ]);
21204
- const menu = /* @__PURE__ */ React58.createElement(MenuRoot, __spreadValues({}, props), /* @__PURE__ */ React58.createElement(MenuContextProvider, { domProps }));
21265
+ const menu = /* @__PURE__ */ React59.createElement(MenuRoot, __spreadValues({}, props), /* @__PURE__ */ React59.createElement(MenuContextProvider, { domProps }));
21205
21266
  if (false) {
21206
- return /* @__PURE__ */ React58.createElement(React58.StrictMode, null, menu);
21267
+ return /* @__PURE__ */ React59.createElement(React59.StrictMode, null, menu);
21207
21268
  }
21208
21269
  return menu;
21209
21270
  }
@@ -21220,7 +21281,7 @@ var menuDefaultProps = {
21220
21281
  Menu.defaultProps = menuDefaultProps;
21221
21282
 
21222
21283
  // src/components/InfiniteTable/utils/defaultGetColumnMenuItems.tsx
21223
- var React59 = __toESM(require("react"));
21284
+ var React60 = __toESM(require("react"));
21224
21285
  function defaultGetColumnMenuItems(_items, params) {
21225
21286
  const { columnApi, column, getComputed, api } = params;
21226
21287
  const sortable = columnApi.isSortable();
@@ -21307,7 +21368,7 @@ function defaultGetColumnMenuItems(_items, params) {
21307
21368
  colItems.push({
21308
21369
  key: id,
21309
21370
  label,
21310
- check: /* @__PURE__ */ React59.createElement(
21371
+ check: /* @__PURE__ */ React60.createElement(
21311
21372
  InfiniteCheckBox,
21312
21373
  {
21313
21374
  key: col.id,
@@ -21370,7 +21431,7 @@ function getMenuForColumn(columnId, context, onHideIntent) {
21370
21431
  if (!items || !items.length) {
21371
21432
  return null;
21372
21433
  }
21373
- return /* @__PURE__ */ React60.createElement(
21434
+ return /* @__PURE__ */ React61.createElement(
21374
21435
  MenuCmp,
21375
21436
  {
21376
21437
  autoFocus: true,
@@ -21432,13 +21493,14 @@ function showMenuForColumn(options) {
21432
21493
  }
21433
21494
  function useColumnMenu() {
21434
21495
  const context = useInfiniteTable();
21496
+ const masterContext = useMasterDetailContext();
21435
21497
  const { getState, actions } = context;
21436
21498
  const {
21437
21499
  showOverlay,
21438
21500
  portal: menuPortal,
21439
21501
  clearAll
21440
21502
  } = useOverlay({
21441
- portalContainer: false
21503
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
21442
21504
  });
21443
21505
  (0, import_react61.useEffect)(() => {
21444
21506
  const { actions: actions2, getState: getState2 } = context;
@@ -21489,7 +21551,7 @@ function useColumnMenu() {
21489
21551
  }
21490
21552
 
21491
21553
  // src/components/InfiniteTable/components/FocusDetect.tsx
21492
- var React61 = __toESM(require("react"));
21554
+ var React62 = __toESM(require("react"));
21493
21555
  var import_react62 = require("react");
21494
21556
  var style = {
21495
21557
  width: 0,
@@ -21523,7 +21585,7 @@ function FocusDetect() {
21523
21585
  };
21524
21586
  focusLastFocusableCell(context);
21525
21587
  }), []);
21526
- return /* @__PURE__ */ React61.createElement(
21588
+ return /* @__PURE__ */ React62.createElement(
21527
21589
  "div",
21528
21590
  {
21529
21591
  onFocus,
@@ -21654,18 +21716,18 @@ function useEditingCallbackProps() {
21654
21716
  var import_react64 = require("react");
21655
21717
 
21656
21718
  // src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
21657
- var React64 = __toESM(require("react"));
21719
+ var React65 = __toESM(require("react"));
21658
21720
 
21659
21721
  // src/components/InfiniteTable/components/icons/ClearIcon.tsx
21660
- var React62 = __toESM(require("react"));
21722
+ var React63 = __toESM(require("react"));
21661
21723
  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" }));
21724
+ 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
21725
  };
21664
21726
 
21665
21727
  // src/components/InfiniteTable/components/icons/DoneIcon.tsx
21666
- var React63 = __toESM(require("react"));
21728
+ var React64 = __toESM(require("react"));
21667
21729
  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" }));
21730
+ 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
21731
  };
21670
21732
 
21671
21733
  // src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
@@ -21711,12 +21773,12 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21711
21773
  const IconCmp = (_b = (_a2 = operator.components) == null ? void 0 : _a2.Icon) != null ? _b : FilterIcon;
21712
21774
  return {
21713
21775
  key,
21714
- icon: /* @__PURE__ */ React64.createElement(IconCmp, null),
21715
- label: /* @__PURE__ */ React64.createElement(React64.Fragment, null, (_c = operator.label) != null ? _c : operator.name),
21776
+ icon: /* @__PURE__ */ React65.createElement(IconCmp, null),
21777
+ label: /* @__PURE__ */ React65.createElement(React65.Fragment, null, (_c = operator.label) != null ? _c : operator.name),
21716
21778
  onAction: () => {
21717
21779
  api.setColumnFilterOperator(columnId, key);
21718
21780
  },
21719
- checked: checked ? /* @__PURE__ */ React64.createElement(DoneIcon, { size: 16 }) : null
21781
+ checked: checked ? /* @__PURE__ */ React65.createElement(DoneIcon, { size: 16 }) : null
21720
21782
  };
21721
21783
  });
21722
21784
  const firstItems = [
@@ -21731,7 +21793,7 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21731
21793
  {
21732
21794
  key: "reset",
21733
21795
  label: "Reset",
21734
- icon: /* @__PURE__ */ React64.createElement(ClearIcon, null),
21796
+ icon: /* @__PURE__ */ React65.createElement(ClearIcon, null),
21735
21797
  disabled: !column.computedFiltered,
21736
21798
  onAction: () => {
21737
21799
  api.clearColumnFilter(columnId);
@@ -21753,7 +21815,7 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21753
21815
  filterTypes
21754
21816
  };
21755
21817
  const items = getFilterOperatorMenuItems ? getFilterOperatorMenuItems(defaultItems, param) : defaultItems;
21756
- return /* @__PURE__ */ React64.createElement(
21818
+ return /* @__PURE__ */ React65.createElement(
21757
21819
  MenuCmp,
21758
21820
  {
21759
21821
  autoFocus: true,
@@ -21785,13 +21847,14 @@ function getFilterOperatorMenuForColumn(columnId, context, onHideIntent) {
21785
21847
  var OFFSET2 = 10;
21786
21848
  function useColumnFilterOperatorMenu() {
21787
21849
  const context = useInfiniteTable();
21850
+ const masterContext = useMasterDetailContext();
21788
21851
  const { getState, actions } = context;
21789
21852
  const {
21790
21853
  showOverlay,
21791
21854
  portal: menuPortal,
21792
21855
  clearAll
21793
21856
  } = useOverlay({
21794
- portalContainer: false
21857
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
21795
21858
  });
21796
21859
  (0, import_react64.useEffect)(() => {
21797
21860
  const { actions: actions2, getState: getState2 } = context;
@@ -21859,7 +21922,7 @@ function useColumnFilterOperatorMenu() {
21859
21922
  var import_react65 = require("react");
21860
21923
 
21861
21924
  // src/components/InfiniteTable/utils/getCellContextMenu.tsx
21862
- var React65 = __toESM(require("react"));
21925
+ var React66 = __toESM(require("react"));
21863
21926
  function getCellContextMenu(cellLocation, context, onHideIntent) {
21864
21927
  var _a;
21865
21928
  const { columnId, rowIndex, event } = cellLocation;
@@ -21899,7 +21962,7 @@ function getCellContextMenu(cellLocation, context, onHideIntent) {
21899
21962
  }
21900
21963
  return {
21901
21964
  preventDefault: true,
21902
- menu: /* @__PURE__ */ React65.createElement(
21965
+ menu: /* @__PURE__ */ React66.createElement(
21903
21966
  MenuCmp,
21904
21967
  {
21905
21968
  columns: menuColumns,
@@ -21954,7 +22017,7 @@ function getTableContextMenu(menuLocation, context, onHideIntent) {
21954
22017
  }
21955
22018
  return {
21956
22019
  preventDefault: true,
21957
- menu: /* @__PURE__ */ React65.createElement(
22020
+ menu: /* @__PURE__ */ React66.createElement(
21958
22021
  MenuCmp,
21959
22022
  {
21960
22023
  columns: menuColumns,
@@ -21992,13 +22055,14 @@ var ALIGN_POSITIONS = [
21992
22055
  ];
21993
22056
  function useCellContextMenu() {
21994
22057
  const context = useInfiniteTable();
22058
+ const masterContext = useMasterDetailContext();
21995
22059
  const { getState, actions } = context;
21996
22060
  const {
21997
22061
  showOverlay,
21998
22062
  portal: menuPortal,
21999
22063
  clearAll
22000
22064
  } = useOverlay({
22001
- portalContainer: false
22065
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
22002
22066
  });
22003
22067
  (0, import_react65.useEffect)(() => {
22004
22068
  const { actions: actions2, getState: getState2, getDataSourceState } = context;
@@ -22077,13 +22141,14 @@ function useCellContextMenu() {
22077
22141
  }
22078
22142
  function useTableContextMenu() {
22079
22143
  const context = useInfiniteTable();
22144
+ const masterContext = useMasterDetailContext();
22080
22145
  const { getState, actions } = context;
22081
22146
  const {
22082
22147
  showOverlay,
22083
22148
  portal: menuPortal,
22084
22149
  clearAll
22085
22150
  } = useOverlay({
22086
- portalContainer: false
22151
+ portalContainer: masterContext ? masterContext.getMasterState().portalDOMRef.current : false
22087
22152
  });
22088
22153
  (0, import_react65.useEffect)(() => {
22089
22154
  const { actions: actions2, getState: getState2 } = context;
@@ -22177,10 +22242,11 @@ var InfiniteTableRoot = getComponentStateRoot({
22177
22242
  getParentState: () => useDataSource(),
22178
22243
  debugName: "InfiniteTable"
22179
22244
  });
22180
- var InfiniteTableComponent = React66.memo(
22245
+ var InfiniteTableComponent = React67.memo(
22181
22246
  function InfiniteTableComponent2() {
22182
22247
  var _a;
22183
22248
  const context = useInfiniteTable();
22249
+ const masterContext = useMasterDetailContext();
22184
22250
  const { state: componentState, getComputed, computed, api } = context;
22185
22251
  const {
22186
22252
  componentState: { loading, dataArray },
@@ -22225,7 +22291,7 @@ var InfiniteTableComponent = React66.memo(
22225
22291
  bodySize,
22226
22292
  computed
22227
22293
  });
22228
- React66.useEffect(() => {
22294
+ React67.useEffect(() => {
22229
22295
  const dataSourceState = getDataSourceState();
22230
22296
  const onChange = debounce(
22231
22297
  (renderRange) => {
@@ -22241,7 +22307,7 @@ var InfiniteTableComponent = React66.memo(
22241
22307
  const licenseValid = useLicense(licenseKey);
22242
22308
  const domProps = useDOMProps(componentState.domProps);
22243
22309
  const LoadMaskCmp = (_a = components2 == null ? void 0 : components2.LoadMask) != null ? _a : LoadMask;
22244
- React66.useEffect(() => {
22310
+ React67.useEffect(() => {
22245
22311
  brain.setScrollStopDelay(scrollStopDelay);
22246
22312
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
22247
22313
  }, [scrollStopDelay]);
@@ -22251,7 +22317,7 @@ var InfiniteTableComponent = React66.memo(
22251
22317
  const { menuPortal: cellContextMenuPortal } = useCellContextMenu();
22252
22318
  const { menuPortal: tableContextMenuPortal } = useTableContextMenu();
22253
22319
  const { menuPortal: filterOperatorMenuPortal } = useColumnFilterOperatorMenu();
22254
- React66.useEffect(() => {
22320
+ React67.useEffect(() => {
22255
22321
  if (typeof globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY === "function") {
22256
22322
  globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY(
22257
22323
  componentState.id,
@@ -22264,9 +22330,15 @@ var InfiniteTableComponent = React66.memo(
22264
22330
  globalThis.infiniteApi = context.api;
22265
22331
  }
22266
22332
  }, [componentState.ready]);
22267
- const onContextMenu = React66.useCallback((event) => {
22333
+ const onContextMenu = React67.useCallback((event) => {
22268
22334
  const state = context.getState();
22269
22335
  const target = event.target;
22336
+ if (!masterContext && event._from_row_detail) {
22337
+ return;
22338
+ }
22339
+ if (masterContext) {
22340
+ event._from_row_detail = true;
22341
+ }
22270
22342
  const cell = selectParentUntil(
22271
22343
  target,
22272
22344
  getCellSelector(),
@@ -22295,14 +22367,19 @@ var InfiniteTableComponent = React66.memo(
22295
22367
  }
22296
22368
  state.contextMenu(param);
22297
22369
  }, []);
22298
- return /* @__PURE__ */ React66.createElement("div", __spreadValues({ onKeyDown: onKeyDown2, ref: domRef }, domProps), header ? /* @__PURE__ */ React66.createElement(
22370
+ React67.useEffect(() => {
22371
+ if (masterContext) {
22372
+ portalDOMRef.current = masterContext.getMasterState().portalDOMRef.current;
22373
+ }
22374
+ }, []);
22375
+ return /* @__PURE__ */ React67.createElement("div", __spreadValues({ onKeyDown: onKeyDown2, ref: domRef }, domProps), header ? /* @__PURE__ */ React67.createElement(
22299
22376
  TableHeaderWrapper,
22300
22377
  {
22301
22378
  bodyBrain: brain,
22302
22379
  headerBrain,
22303
22380
  scrollbars
22304
22381
  }
22305
- ) : null, /* @__PURE__ */ React66.createElement(InfiniteTableBody, { onContextMenu }, /* @__PURE__ */ React66.createElement(
22382
+ ) : null, /* @__PURE__ */ React67.createElement(InfiniteTableBody, { onContextMenu }, /* @__PURE__ */ React67.createElement(
22306
22383
  HeadlessTable,
22307
22384
  {
22308
22385
  debugId,
@@ -22320,7 +22397,7 @@ var InfiniteTableComponent = React66.memo(
22320
22397
  cellHoverClassNames: HOVERED_CLASS_NAMES,
22321
22398
  scrollerDOMRef
22322
22399
  }
22323
- ), /* @__PURE__ */ React66.createElement(LoadMaskCmp, { visible: loading }, loadingText)), /* @__PURE__ */ React66.createElement(
22400
+ ), /* @__PURE__ */ React67.createElement(LoadMaskCmp, { visible: loading }, loadingText)), /* @__PURE__ */ React67.createElement(
22324
22401
  "div",
22325
22402
  {
22326
22403
  ref: portalDOMRef,
@@ -22336,25 +22413,25 @@ var InfiniteTableComponent = React66.memo(
22336
22413
  cellContextMenuPortal,
22337
22414
  tableContextMenuPortal,
22338
22415
  filterOperatorMenuPortal
22339
- ), rowHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22416
+ ), rowHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22340
22417
  CSSNumericVariableWatch,
22341
22418
  {
22342
22419
  varName: rowHeightCSSVar,
22343
22420
  onChange: onRowHeightCSSVarChange
22344
22421
  }
22345
- ) : null, rowDetailHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22422
+ ) : null, rowDetailHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22346
22423
  CSSNumericVariableWatch,
22347
22424
  {
22348
22425
  varName: rowDetailHeightCSSVar,
22349
22426
  onChange: onRowDetailHeightCSSVarChange
22350
22427
  }
22351
- ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React66.createElement(
22428
+ ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React67.createElement(
22352
22429
  CSSNumericVariableWatch,
22353
22430
  {
22354
22431
  varName: columnHeaderHeightCSSVar,
22355
22432
  onChange: onColumnHeaderHeightCSSVarChange
22356
22433
  }
22357
- ) : null, /* @__PURE__ */ React66.createElement(InfiniteTableFooter, null), licenseValid ? null : /* @__PURE__ */ React66.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React66.createElement(FocusDetect, null));
22434
+ ) : null, /* @__PURE__ */ React67.createElement(InfiniteTableFooter, null), licenseValid ? null : /* @__PURE__ */ React67.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React67.createElement(FocusDetect, null));
22358
22435
  }
22359
22436
  );
22360
22437
  function InfiniteTableContextProvider() {
@@ -22368,6 +22445,7 @@ function InfiniteTableContextProvider() {
22368
22445
  globalThis.getState = getState;
22369
22446
  globalThis.getComputed = getComputed;
22370
22447
  globalThis.componentActions = componentActions;
22448
+ globalThis.masterBrain = componentState.brain;
22371
22449
  }
22372
22450
  const {
22373
22451
  getState: getDataSourceState,
@@ -22375,7 +22453,7 @@ function InfiniteTableContextProvider() {
22375
22453
  getDataSourceMasterContext,
22376
22454
  api: dataSourceApi
22377
22455
  } = useDataSourceContextValue();
22378
- const [imperativeApi] = React66.useState(() => {
22456
+ const [imperativeApi] = React67.useState(() => {
22379
22457
  return getImperativeApi({
22380
22458
  getComputed,
22381
22459
  getState,
@@ -22410,21 +22488,21 @@ function InfiniteTableContextProvider() {
22410
22488
  },
22411
22489
  { earlyAttach: true, debounce: 50 }
22412
22490
  );
22413
- React66.useEffect(() => {
22491
+ React67.useEffect(() => {
22414
22492
  if (scrollerDOMRef.current) {
22415
22493
  scrollerDOMRef.current.scrollTop = 0;
22416
22494
  }
22417
22495
  }, [scrollTopKey, scrollerDOMRef]);
22418
22496
  const TableContext2 = getInfiniteTableContext();
22419
- return /* @__PURE__ */ React66.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React66.createElement(InfiniteTableComponent, null));
22497
+ return /* @__PURE__ */ React67.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React67.createElement(InfiniteTableComponent, null));
22420
22498
  }
22421
22499
  function InfiniteTable(props) {
22422
22500
  const table = (
22423
22501
  //@ts-ignore
22424
- /* @__PURE__ */ React66.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React66.createElement(InfiniteTableContextProvider, null))
22502
+ /* @__PURE__ */ React67.createElement(InfiniteTableRoot, __spreadValues({}, props), /* @__PURE__ */ React67.createElement(InfiniteTableContextProvider, null))
22425
22503
  );
22426
22504
  if (false) {
22427
- return /* @__PURE__ */ React66.createElement(React66.StrictMode, null, table);
22505
+ return /* @__PURE__ */ React67.createElement(React67.StrictMode, null, table);
22428
22506
  }
22429
22507
  return table;
22430
22508
  }
@@ -22594,6 +22672,7 @@ var components = {
22594
22672
  useInfiniteColumnEditor,
22595
22673
  useInfiniteColumnFilterEditor,
22596
22674
  useInfiniteHeaderCell,
22675
+ useMasterRowInfo,
22597
22676
  useOverlay,
22598
22677
  useOverlayPortal,
22599
22678
  useRowInfoReducers