@infinite-table/infinite-react 6.1.0-canary.0 → 6.1.0

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.js CHANGED
@@ -143,7 +143,7 @@ function debounce(fn, { wait }) {
143
143
  }
144
144
 
145
145
  // src/components/InfiniteTable/index.tsx
146
- var React70 = __toESM(require("react"));
146
+ var React71 = __toESM(require("react"));
147
147
 
148
148
  // src/utils/join.ts
149
149
  var join = (...args) => args.filter((x) => !!`${x}`).join(" ");
@@ -23026,7 +23026,7 @@ var useLicense = (licenseKey = "") => {
23026
23026
  }
23027
23027
  let valid2 = isValidLicense(licenseKey, {
23028
23028
  publishedAt: 1624970570587,
23029
- version: "6.1.0-canary.0"
23029
+ version: "6.1.0"
23030
23030
  });
23031
23031
  if (!licenseKey && !valid2 && isInsidePlayground) {
23032
23032
  return true;
@@ -26406,7 +26406,63 @@ function useColumnFilterOperatorMenu() {
26406
26406
  var import_react62 = require("react");
26407
26407
 
26408
26408
  // src/components/InfiniteTable/utils/getCellContextMenu.tsx
26409
+ var React68 = __toESM(require("react"));
26410
+
26411
+ // src/components/InfiniteTable/utils/contextMenuUtils.tsx
26409
26412
  var React67 = __toESM(require("react"));
26413
+ function getMenuItemsAndColumns(menuDefinition) {
26414
+ let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26415
+ const columns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26416
+ return {
26417
+ items,
26418
+ columns
26419
+ };
26420
+ }
26421
+ function getMenuDefaultProps(config) {
26422
+ const onRootMouseDown = (event) => {
26423
+ event.__insideMenu = true;
26424
+ };
26425
+ const onHide = (state) => {
26426
+ state.domRef.current?.parentNode?.removeEventListener(
26427
+ "mousedown",
26428
+ onRootMouseDown
26429
+ );
26430
+ };
26431
+ const menuDefaultProps = {
26432
+ columns: [],
26433
+ items: [],
26434
+ autoFocus: true,
26435
+ onShow: (state) => {
26436
+ state.domRef.current?.parentNode?.addEventListener(
26437
+ "mousedown",
26438
+ onRootMouseDown
26439
+ );
26440
+ },
26441
+ onHide,
26442
+ onHideIntent: (state) => {
26443
+ onHide(state);
26444
+ config.onHideIntent?.();
26445
+ }
26446
+ };
26447
+ return menuDefaultProps;
26448
+ }
26449
+ function getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp) {
26450
+ if (!menuDefinition) {
26451
+ return null;
26452
+ }
26453
+ const updater = buildSubscriptionCallback();
26454
+ menuDefinition.then((menuDefinition2) => {
26455
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition2);
26456
+ if (items && items.length) {
26457
+ updater(
26458
+ /* @__PURE__ */ React67.createElement(MenuCmp, { ...menuDefaultProps, items: items || [], columns })
26459
+ );
26460
+ }
26461
+ });
26462
+ return /* @__PURE__ */ React67.createElement(AvoidReactDiff, { updater });
26463
+ }
26464
+
26465
+ // src/components/InfiniteTable/utils/getCellContextMenu.tsx
26410
26466
  function getCellContextMenu(cellLocation, context, onHideIntent) {
26411
26467
  const { columnId, rowIndex, event } = cellLocation;
26412
26468
  const { getComputed, getState } = context;
@@ -26429,42 +26485,25 @@ function getCellContextMenu(cellLocation, context, onHideIntent) {
26429
26485
  preventDefault: false
26430
26486
  };
26431
26487
  }
26488
+ const menuDefaultProps = getMenuDefaultProps({
26489
+ onHideIntent
26490
+ });
26432
26491
  const menuDefinition = getCellContextMenuItems(cellContext, context);
26433
- let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26434
- const menuColumns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26435
- const onRootMouseDown = (event2) => {
26436
- event2.__insideMenu = true;
26437
- };
26438
- const onHide = (state) => {
26439
- state.domRef.current?.parentNode?.removeEventListener(
26440
- "mousedown",
26441
- onRootMouseDown
26442
- );
26443
- };
26492
+ const preventDefault = menuDefinition instanceof Promise ? true : Array.isArray(menuDefinition) ? true : !!(menuDefinition && Array.isArray(menuDefinition.items));
26493
+ if (menuDefinition instanceof Promise) {
26494
+ return {
26495
+ cellContext,
26496
+ menu: getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp),
26497
+ preventDefault
26498
+ };
26499
+ }
26500
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition);
26444
26501
  if (!items || !items.length) {
26445
26502
  return { cellContext, menu: null, preventDefault: Array.isArray(items) };
26446
26503
  }
26447
26504
  return {
26448
- preventDefault: true,
26449
- menu: /* @__PURE__ */ React67.createElement(
26450
- MenuCmp,
26451
- {
26452
- columns: menuColumns,
26453
- autoFocus: true,
26454
- items,
26455
- onShow: (state) => {
26456
- state.domRef.current?.parentNode?.addEventListener(
26457
- "mousedown",
26458
- onRootMouseDown
26459
- );
26460
- },
26461
- onHide,
26462
- onHideIntent: (state) => {
26463
- onHide(state);
26464
- onHideIntent?.();
26465
- }
26466
- }
26467
- ),
26505
+ preventDefault,
26506
+ menu: /* @__PURE__ */ React68.createElement(MenuCmp, { ...menuDefaultProps, columns, items }),
26468
26507
  cellContext
26469
26508
  };
26470
26509
  }
@@ -26485,42 +26524,25 @@ function getTableContextMenu(menuLocation, context, onHideIntent) {
26485
26524
  if (!getContextMenuItems) {
26486
26525
  return { cellContext, menu: null, preventDefault: false };
26487
26526
  }
26488
- let menuDefinition = getContextMenuItems(cellContext, context);
26489
- let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26490
- const menuColumns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26491
- const onRootMouseDown = (event) => {
26492
- event.__insideMenu = true;
26493
- };
26494
- const onHide = (state) => {
26495
- state.domRef.current?.parentNode?.removeEventListener(
26496
- "mousedown",
26497
- onRootMouseDown
26498
- );
26499
- };
26527
+ const menuDefaultProps = getMenuDefaultProps({
26528
+ onHideIntent
26529
+ });
26530
+ const menuDefinition = getContextMenuItems(cellContext, context);
26531
+ const preventDefault = menuDefinition instanceof Promise ? true : Array.isArray(menuDefinition) ? true : !!(menuDefinition && Array.isArray(menuDefinition.items));
26532
+ if (menuDefinition instanceof Promise) {
26533
+ return {
26534
+ cellContext,
26535
+ menu: getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp),
26536
+ preventDefault
26537
+ };
26538
+ }
26539
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition);
26500
26540
  if (!items || !items.length) {
26501
26541
  return { cellContext, menu: null, preventDefault: Array.isArray(items) };
26502
26542
  }
26503
26543
  return {
26504
- preventDefault: true,
26505
- menu: /* @__PURE__ */ React67.createElement(
26506
- MenuCmp,
26507
- {
26508
- columns: menuColumns,
26509
- autoFocus: true,
26510
- items,
26511
- onShow: (state) => {
26512
- state.domRef.current?.parentNode?.addEventListener(
26513
- "mousedown",
26514
- onRootMouseDown
26515
- );
26516
- },
26517
- onHide,
26518
- onHideIntent: (state) => {
26519
- onHide(state);
26520
- onHideIntent?.();
26521
- }
26522
- }
26523
- ),
26544
+ preventDefault,
26545
+ menu: /* @__PURE__ */ React68.createElement(MenuCmp, { ...menuDefaultProps, columns, items }),
26524
26546
  cellContext
26525
26547
  };
26526
26548
  }
@@ -26712,7 +26734,7 @@ function useTableContextMenu() {
26712
26734
 
26713
26735
  // src/components/InfiniteTable/components/HScrollSyncContent.tsx
26714
26736
  var import_react64 = require("react");
26715
- var React68 = __toESM(require("react"));
26737
+ var React69 = __toESM(require("react"));
26716
26738
 
26717
26739
  // src/components/InfiniteTable/hooks/useGridScroll.ts
26718
26740
  var import_react63 = require("react");
@@ -26758,7 +26780,7 @@ function HScrollSyncContent(props) {
26758
26780
  } else if (maxWidth === "viewport") {
26759
26781
  style2.maxWidth = ThemeVars.runtime.bodyWidth;
26760
26782
  }
26761
- return /* @__PURE__ */ React68.createElement(
26783
+ return /* @__PURE__ */ React69.createElement(
26762
26784
  "div",
26763
26785
  {
26764
26786
  ref: domRef,
@@ -26859,7 +26881,7 @@ function useHorizontalLayout() {
26859
26881
  }
26860
26882
 
26861
26883
  // src/components/InfiniteTable/hooks/useDebugMode.ts
26862
- var React69 = __toESM(require("react"));
26884
+ var React70 = __toESM(require("react"));
26863
26885
  var logWarning = once(() => {
26864
26886
  console.warn(
26865
26887
  `It appears you have not loaded the CSS file for InfiniteTable.
@@ -26873,7 +26895,7 @@ import '@infinite-table/infinite-react/index.css'
26873
26895
  var cssFileLoadedVarName = stripVar(ThemeVars.loaded);
26874
26896
  function useDebugMode() {
26875
26897
  const { getState } = useInfiniteTable();
26876
- React69.useEffect(() => {
26898
+ React70.useEffect(() => {
26877
26899
  runDebugMode(getState);
26878
26900
  }, []);
26879
26901
  }
@@ -26929,7 +26951,7 @@ function InfiniteTableHeader2() {
26929
26951
  const { state: componentState, getComputed } = context;
26930
26952
  const { header, brain, headerBrain, wrapRowsHorizontally } = componentState;
26931
26953
  const { scrollbars } = getComputed();
26932
- return header ? /* @__PURE__ */ React70.createElement(
26954
+ return header ? /* @__PURE__ */ React71.createElement(
26933
26955
  TableHeaderWrapper,
26934
26956
  {
26935
26957
  wrapRowsHorizontally: !!wrapRowsHorizontally,
@@ -26946,7 +26968,7 @@ var InfiniteTableBodyCls = join(
26946
26968
  transformTranslateZero
26947
26969
  );
26948
26970
  function InfiniteTableBodyContainer(props) {
26949
- return /* @__PURE__ */ React70.createElement(
26971
+ return /* @__PURE__ */ React71.createElement(
26950
26972
  "div",
26951
26973
  {
26952
26974
  ...props,
@@ -26983,7 +27005,7 @@ function InfiniteTableBody() {
26983
27005
  const {
26984
27006
  componentState: { loading }
26985
27007
  } = useDataSourceContextValue();
26986
- const onContextMenu = React70.useCallback((event) => {
27008
+ const onContextMenu = React71.useCallback((event) => {
26987
27009
  const state = context.getState();
26988
27010
  const target = event.target;
26989
27011
  if (!masterContext && event._from_row_detail) {
@@ -27029,7 +27051,7 @@ function InfiniteTableBody() {
27029
27051
  });
27030
27052
  const { autoFocus, tabIndex } = domProps ?? {};
27031
27053
  useToggleWrapRowsHorizontally();
27032
- return /* @__PURE__ */ React70.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React70.createElement(
27054
+ return /* @__PURE__ */ React71.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React71.createElement(
27033
27055
  HeadlessTable,
27034
27056
  {
27035
27057
  forceRerenderTimestamp: componentState.forceBodyRerenderTimestamp,
@@ -27050,9 +27072,9 @@ function InfiniteTableBody() {
27050
27072
  cellHoverClassNames: showHoverRows ? HOVERED_CLASS_NAMES : void 0,
27051
27073
  scrollerDOMRef
27052
27074
  }
27053
- ), /* @__PURE__ */ React70.createElement(LoadMaskCmp, { visible: loading }, loadingText));
27075
+ ), /* @__PURE__ */ React71.createElement(LoadMaskCmp, { visible: loading }, loadingText));
27054
27076
  }
27055
- var InfiniteTableComponent = React70.memo(
27077
+ var InfiniteTableComponent = React71.memo(
27056
27078
  function InfiniteTableComponent2() {
27057
27079
  const context = useInfiniteTable();
27058
27080
  const masterContext = useMasterDetailContext();
@@ -27084,7 +27106,7 @@ var InfiniteTableComponent = React70.memo(
27084
27106
  useScrollToActiveRow(activeRowIndex, dataArray.length, api);
27085
27107
  useScrollToActiveCell(activeCellIndex, dataArray.length, api);
27086
27108
  const { onKeyDown: onKeyDown2 } = useDOMEventHandlers();
27087
- React70.useEffect(() => {
27109
+ React71.useEffect(() => {
27088
27110
  const dataSourceState = getDataSourceState();
27089
27111
  const onChange = debounce(
27090
27112
  (renderRange) => {
@@ -27107,7 +27129,7 @@ var InfiniteTableComponent = React70.memo(
27107
27129
  ...initialDOMProps
27108
27130
  } = componentState.domProps ?? {};
27109
27131
  const domProps = useDOMProps(initialDOMProps);
27110
- React70.useEffect(() => {
27132
+ React71.useEffect(() => {
27111
27133
  brain.setScrollStopDelay(scrollStopDelay);
27112
27134
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
27113
27135
  }, [scrollStopDelay]);
@@ -27118,7 +27140,7 @@ var InfiniteTableComponent = React70.memo(
27118
27140
  const { menuPortal: cellContextMenuPortal } = useCellContextMenu();
27119
27141
  const { menuPortal: tableContextMenuPortal } = useTableContextMenu();
27120
27142
  const { menuPortal: filterOperatorMenuPortal } = useColumnFilterOperatorMenu();
27121
- React70.useEffect(() => {
27143
+ React71.useEffect(() => {
27122
27144
  if (typeof globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY === "function") {
27123
27145
  globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY(
27124
27146
  componentState.id,
@@ -27132,13 +27154,13 @@ var InfiniteTableComponent = React70.memo(
27132
27154
  }
27133
27155
  }, [componentState.ready]);
27134
27156
  useDebugMode();
27135
- React70.useEffect(() => {
27157
+ React71.useEffect(() => {
27136
27158
  if (masterContext) {
27137
27159
  portalDOMRef.current = masterContext.getMasterState().portalDOMRef.current;
27138
27160
  }
27139
27161
  }, []);
27140
- const children = initialChildren ?? /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(InfiniteTableHeader2, null), /* @__PURE__ */ React70.createElement(InfiniteTableBody, null));
27141
- return /* @__PURE__ */ React70.createElement("div", { onKeyDown: onKeyDown2, ref: domRef, ...domProps }, children, /* @__PURE__ */ React70.createElement(
27162
+ const children = initialChildren ?? /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(InfiniteTableHeader2, null), /* @__PURE__ */ React71.createElement(InfiniteTableBody, null));
27163
+ return /* @__PURE__ */ React71.createElement("div", { onKeyDown: onKeyDown2, ref: domRef, ...domProps }, children, /* @__PURE__ */ React71.createElement(
27142
27164
  "div",
27143
27165
  {
27144
27166
  ref: portalDOMRef,
@@ -27154,14 +27176,14 @@ var InfiniteTableComponent = React70.memo(
27154
27176
  cellContextMenuPortal,
27155
27177
  tableContextMenuPortal,
27156
27178
  filterOperatorMenuPortal
27157
- ), rowHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27179
+ ), rowHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27158
27180
  CSSNumericVariableWatch,
27159
27181
  {
27160
27182
  key: "row-height",
27161
27183
  varName: rowHeightCSSVar,
27162
27184
  onChange: onRowHeightCSSVarChange
27163
27185
  }
27164
- ) : null, /* @__PURE__ */ React70.createElement(
27186
+ ) : null, /* @__PURE__ */ React71.createElement(
27165
27187
  CSSNumericVariableWatch,
27166
27188
  {
27167
27189
  key: "flashing-duration",
@@ -27169,21 +27191,21 @@ var InfiniteTableComponent = React70.memo(
27169
27191
  varName: ThemeVars.components.Cell.flashingDuration,
27170
27192
  onChange: onFlashingDurationCSSVarChange
27171
27193
  }
27172
- ), rowDetailHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27194
+ ), rowDetailHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27173
27195
  CSSNumericVariableWatch,
27174
27196
  {
27175
27197
  key: "row-detail-height",
27176
27198
  varName: rowDetailHeightCSSVar,
27177
27199
  onChange: onRowDetailHeightCSSVarChange
27178
27200
  }
27179
- ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27201
+ ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27180
27202
  CSSNumericVariableWatch,
27181
27203
  {
27182
27204
  key: "column-header-height",
27183
27205
  varName: columnHeaderHeightCSSVar,
27184
27206
  onChange: onColumnHeaderHeightCSSVarChange
27185
27207
  }
27186
- ) : null, licenseValid ? null : /* @__PURE__ */ React70.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React70.createElement(FocusDetect, null));
27208
+ ) : null, licenseValid ? null : /* @__PURE__ */ React71.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React71.createElement(FocusDetect, null));
27187
27209
  }
27188
27210
  );
27189
27211
  function InfiniteTableContextProvider({
@@ -27207,7 +27229,7 @@ function InfiniteTableContextProvider({
27207
27229
  getDataSourceMasterContext,
27208
27230
  api: dataSourceApi
27209
27231
  } = useDataSourceContextValue();
27210
- const [imperativeApi] = React70.useState(() => {
27232
+ const [imperativeApi] = React71.useState(() => {
27211
27233
  return getImperativeApi({
27212
27234
  getComputed,
27213
27235
  getState,
@@ -27243,20 +27265,20 @@ function InfiniteTableContextProvider({
27243
27265
  },
27244
27266
  { earlyAttach: true, debounce: 50 }
27245
27267
  );
27246
- React70.useEffect(() => {
27268
+ React71.useEffect(() => {
27247
27269
  if (scrollerDOMRef.current) {
27248
27270
  scrollerDOMRef.current.scrollTop = 0;
27249
27271
  }
27250
27272
  }, [scrollTopKey, scrollerDOMRef]);
27251
27273
  const TableContext2 = getInfiniteTableContext();
27252
- return /* @__PURE__ */ React70.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React70.createElement(InfiniteTableComponent, null));
27274
+ return /* @__PURE__ */ React71.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React71.createElement(InfiniteTableComponent, null));
27253
27275
  }
27254
27276
  var DEFAULT_ROW_HEIGHT = 40;
27255
27277
  var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(columnHeaderHeightName);
27256
27278
  var InfiniteTable = function(props) {
27257
27279
  const table = (
27258
27280
  //@ts-ignore
27259
- /* @__PURE__ */ React70.createElement(
27281
+ /* @__PURE__ */ React71.createElement(
27260
27282
  InfiniteTableRoot,
27261
27283
  {
27262
27284
  repeatWrappedGroupRows: !!props.wrapRowsHorizontally,
@@ -27264,30 +27286,30 @@ var InfiniteTable = function(props) {
27264
27286
  columnHeaderHeight: DEFAULT_COLUMN_HEADER_HEIGHT,
27265
27287
  ...props
27266
27288
  },
27267
- /* @__PURE__ */ React70.createElement(InfiniteTableContextProvider, { children: props.children })
27289
+ /* @__PURE__ */ React71.createElement(InfiniteTableContextProvider, { children: props.children })
27268
27290
  )
27269
27291
  );
27270
27292
  if (false) {
27271
- return /* @__PURE__ */ React70.createElement(React70.StrictMode, null, table);
27293
+ return /* @__PURE__ */ React71.createElement(React71.StrictMode, null, table);
27272
27294
  }
27273
27295
  return table;
27274
27296
  };
27275
27297
  InfiniteTable.Header = InfiniteTableHeader2;
27276
27298
  InfiniteTable.Body = InfiniteTableBody;
27277
27299
  InfiniteTable.HScrollSyncContent = HScrollSyncContent;
27278
- InfiniteTable.Footer = () => /* @__PURE__ */ React70.createElement(InfiniteTableFooter, null);
27300
+ InfiniteTable.Footer = () => /* @__PURE__ */ React71.createElement(InfiniteTableFooter, null);
27279
27301
 
27280
27302
  // src/components/TreeGrid/TreeDataSource.tsx
27281
- var React71 = __toESM(require("react"));
27303
+ var React72 = __toESM(require("react"));
27282
27304
  function TreeDataSource(props) {
27283
27305
  const { DataSource: DataSourceComponent } = useDataSourceInternal({ nodesKey: "children", ...props });
27284
- return /* @__PURE__ */ React71.createElement(DataSourceComponent, null, props.children ?? null);
27306
+ return /* @__PURE__ */ React72.createElement(DataSourceComponent, null, props.children ?? null);
27285
27307
  }
27286
27308
 
27287
27309
  // src/components/TreeGrid/TreeGrid.tsx
27288
- var React72 = __toESM(require("react"));
27310
+ var React73 = __toESM(require("react"));
27289
27311
  function TreeGrid(props) {
27290
- return /* @__PURE__ */ React72.createElement(InfiniteTable, { ...props });
27312
+ return /* @__PURE__ */ React73.createElement(InfiniteTable, { ...props });
27291
27313
  }
27292
27314
 
27293
27315
  // src/components/DataSource/DataLoader/DataQuery.ts
@@ -27754,12 +27776,12 @@ var useEffectWhen = (callback, options) => {
27754
27776
  };
27755
27777
 
27756
27778
  // src/components/InfiniteTable/components/InfiniteTableRow/FlashingColumnCell.tsx
27757
- var React73 = __toESM(require("react"));
27779
+ var React74 = __toESM(require("react"));
27758
27780
  var currentFlashingDurationVar = stripVar(
27759
27781
  InternalVars.currentFlashingDuration
27760
27782
  );
27761
27783
  var defaultRender = ({ children }) => {
27762
- return /* @__PURE__ */ React73.createElement(React73.Fragment, null, children);
27784
+ return /* @__PURE__ */ React74.createElement(React74.Fragment, null, children);
27763
27785
  };
27764
27786
  var DEFAULT_FLASH_DURATION = 1e3;
27765
27787
  var INTERNAL_FLASH_CLS_FOR_DIRECTION = {
@@ -27781,7 +27803,7 @@ var createFlashingColumnCellComponent = (options = {}) => {
27781
27803
  // fadeClassName,
27782
27804
  render = defaultRender
27783
27805
  } = options;
27784
- const FlashingColumnCell2 = React73.forwardRef(
27806
+ const FlashingColumnCell2 = React74.forwardRef(
27785
27807
  (props, _ref) => {
27786
27808
  const cellContext = useInfiniteColumnCell();
27787
27809
  const {
@@ -27791,13 +27813,13 @@ var createFlashingColumnCellComponent = (options = {}) => {
27791
27813
  const { domRef, value, column, rowInfo, htmlElementRef } = cellContext;
27792
27814
  const rowId = rowInfo.id;
27793
27815
  const columnId = column.id;
27794
- const initialRef = React73.useRef(true);
27795
- const oldValueRef = React73.useRef(value);
27816
+ const initialRef = React74.useRef(true);
27817
+ const oldValueRef = React74.useRef(value);
27796
27818
  const oldValue = initialRef.current ? null : oldValueRef.current;
27797
27819
  initialRef.current = false;
27798
- const flashTimeoutIdRef = React73.useRef();
27799
- const flashDirectionRef = React73.useRef();
27800
- const fadeTimeoutIdRef = React73.useRef();
27820
+ const flashTimeoutIdRef = React74.useRef();
27821
+ const flashDirectionRef = React74.useRef();
27822
+ const fadeTimeoutIdRef = React74.useRef();
27801
27823
  useEffectWhen(
27802
27824
  () => {
27803
27825
  if (value === oldValueRef.current) {
@@ -27844,7 +27866,7 @@ var createFlashingColumnCellComponent = (options = {}) => {
27844
27866
  different: [value]
27845
27867
  }
27846
27868
  );
27847
- return /* @__PURE__ */ React73.createElement("div", { ref: domRef, ...props, className: join(props.className) }, render({ children: props.children, oldValue }));
27869
+ return /* @__PURE__ */ React74.createElement("div", { ref: domRef, ...props, className: join(props.className) }, render({ children: props.children, oldValue }));
27848
27870
  }
27849
27871
  );
27850
27872
  return FlashingColumnCell2;