@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.dev.mjs CHANGED
@@ -73,7 +73,7 @@ function debounce(fn, { wait }) {
73
73
  }
74
74
 
75
75
  // src/components/InfiniteTable/index.tsx
76
- import * as React70 from "react";
76
+ import * as React71 from "react";
77
77
 
78
78
  // src/utils/join.ts
79
79
  var join = (...args) => args.filter((x) => !!`${x}`).join(" ");
@@ -22984,7 +22984,7 @@ var useLicense = (licenseKey = "") => {
22984
22984
  }
22985
22985
  let valid2 = isValidLicense(licenseKey, {
22986
22986
  publishedAt: 1624970570587,
22987
- version: "6.1.0-canary.0"
22987
+ version: "6.1.0"
22988
22988
  });
22989
22989
  if (!licenseKey && !valid2 && isInsidePlayground) {
22990
22990
  return true;
@@ -26374,7 +26374,63 @@ function useColumnFilterOperatorMenu() {
26374
26374
  import { useEffect as useEffect35 } from "react";
26375
26375
 
26376
26376
  // src/components/InfiniteTable/utils/getCellContextMenu.tsx
26377
+ import * as React68 from "react";
26378
+
26379
+ // src/components/InfiniteTable/utils/contextMenuUtils.tsx
26377
26380
  import * as React67 from "react";
26381
+ function getMenuItemsAndColumns(menuDefinition) {
26382
+ let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26383
+ const columns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26384
+ return {
26385
+ items,
26386
+ columns
26387
+ };
26388
+ }
26389
+ function getMenuDefaultProps(config) {
26390
+ const onRootMouseDown = (event) => {
26391
+ event.__insideMenu = true;
26392
+ };
26393
+ const onHide = (state) => {
26394
+ state.domRef.current?.parentNode?.removeEventListener(
26395
+ "mousedown",
26396
+ onRootMouseDown
26397
+ );
26398
+ };
26399
+ const menuDefaultProps = {
26400
+ columns: [],
26401
+ items: [],
26402
+ autoFocus: true,
26403
+ onShow: (state) => {
26404
+ state.domRef.current?.parentNode?.addEventListener(
26405
+ "mousedown",
26406
+ onRootMouseDown
26407
+ );
26408
+ },
26409
+ onHide,
26410
+ onHideIntent: (state) => {
26411
+ onHide(state);
26412
+ config.onHideIntent?.();
26413
+ }
26414
+ };
26415
+ return menuDefaultProps;
26416
+ }
26417
+ function getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp) {
26418
+ if (!menuDefinition) {
26419
+ return null;
26420
+ }
26421
+ const updater = buildSubscriptionCallback();
26422
+ menuDefinition.then((menuDefinition2) => {
26423
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition2);
26424
+ if (items && items.length) {
26425
+ updater(
26426
+ /* @__PURE__ */ React67.createElement(MenuCmp, { ...menuDefaultProps, items: items || [], columns })
26427
+ );
26428
+ }
26429
+ });
26430
+ return /* @__PURE__ */ React67.createElement(AvoidReactDiff, { updater });
26431
+ }
26432
+
26433
+ // src/components/InfiniteTable/utils/getCellContextMenu.tsx
26378
26434
  function getCellContextMenu(cellLocation, context, onHideIntent) {
26379
26435
  const { columnId, rowIndex, event } = cellLocation;
26380
26436
  const { getComputed, getState } = context;
@@ -26397,42 +26453,25 @@ function getCellContextMenu(cellLocation, context, onHideIntent) {
26397
26453
  preventDefault: false
26398
26454
  };
26399
26455
  }
26456
+ const menuDefaultProps = getMenuDefaultProps({
26457
+ onHideIntent
26458
+ });
26400
26459
  const menuDefinition = getCellContextMenuItems(cellContext, context);
26401
- let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26402
- const menuColumns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26403
- const onRootMouseDown = (event2) => {
26404
- event2.__insideMenu = true;
26405
- };
26406
- const onHide = (state) => {
26407
- state.domRef.current?.parentNode?.removeEventListener(
26408
- "mousedown",
26409
- onRootMouseDown
26410
- );
26411
- };
26460
+ const preventDefault = menuDefinition instanceof Promise ? true : Array.isArray(menuDefinition) ? true : !!(menuDefinition && Array.isArray(menuDefinition.items));
26461
+ if (menuDefinition instanceof Promise) {
26462
+ return {
26463
+ cellContext,
26464
+ menu: getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp),
26465
+ preventDefault
26466
+ };
26467
+ }
26468
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition);
26412
26469
  if (!items || !items.length) {
26413
26470
  return { cellContext, menu: null, preventDefault: Array.isArray(items) };
26414
26471
  }
26415
26472
  return {
26416
- preventDefault: true,
26417
- menu: /* @__PURE__ */ React67.createElement(
26418
- MenuCmp,
26419
- {
26420
- columns: menuColumns,
26421
- autoFocus: true,
26422
- items,
26423
- onShow: (state) => {
26424
- state.domRef.current?.parentNode?.addEventListener(
26425
- "mousedown",
26426
- onRootMouseDown
26427
- );
26428
- },
26429
- onHide,
26430
- onHideIntent: (state) => {
26431
- onHide(state);
26432
- onHideIntent?.();
26433
- }
26434
- }
26435
- ),
26473
+ preventDefault,
26474
+ menu: /* @__PURE__ */ React68.createElement(MenuCmp, { ...menuDefaultProps, columns, items }),
26436
26475
  cellContext
26437
26476
  };
26438
26477
  }
@@ -26453,42 +26492,25 @@ function getTableContextMenu(menuLocation, context, onHideIntent) {
26453
26492
  if (!getContextMenuItems) {
26454
26493
  return { cellContext, menu: null, preventDefault: false };
26455
26494
  }
26456
- let menuDefinition = getContextMenuItems(cellContext, context);
26457
- let items = menuDefinition ? Array.isArray(menuDefinition) ? menuDefinition : menuDefinition.items : null;
26458
- const menuColumns = menuDefinition && !Array.isArray(menuDefinition) ? menuDefinition.columns : void 0;
26459
- const onRootMouseDown = (event) => {
26460
- event.__insideMenu = true;
26461
- };
26462
- const onHide = (state) => {
26463
- state.domRef.current?.parentNode?.removeEventListener(
26464
- "mousedown",
26465
- onRootMouseDown
26466
- );
26467
- };
26495
+ const menuDefaultProps = getMenuDefaultProps({
26496
+ onHideIntent
26497
+ });
26498
+ const menuDefinition = getContextMenuItems(cellContext, context);
26499
+ const preventDefault = menuDefinition instanceof Promise ? true : Array.isArray(menuDefinition) ? true : !!(menuDefinition && Array.isArray(menuDefinition.items));
26500
+ if (menuDefinition instanceof Promise) {
26501
+ return {
26502
+ cellContext,
26503
+ menu: getLazyMenu(menuDefinition, menuDefaultProps, MenuCmp),
26504
+ preventDefault
26505
+ };
26506
+ }
26507
+ const { items, columns } = getMenuItemsAndColumns(menuDefinition);
26468
26508
  if (!items || !items.length) {
26469
26509
  return { cellContext, menu: null, preventDefault: Array.isArray(items) };
26470
26510
  }
26471
26511
  return {
26472
- preventDefault: true,
26473
- menu: /* @__PURE__ */ React67.createElement(
26474
- MenuCmp,
26475
- {
26476
- columns: menuColumns,
26477
- autoFocus: true,
26478
- items,
26479
- onShow: (state) => {
26480
- state.domRef.current?.parentNode?.addEventListener(
26481
- "mousedown",
26482
- onRootMouseDown
26483
- );
26484
- },
26485
- onHide,
26486
- onHideIntent: (state) => {
26487
- onHide(state);
26488
- onHideIntent?.();
26489
- }
26490
- }
26491
- ),
26512
+ preventDefault,
26513
+ menu: /* @__PURE__ */ React68.createElement(MenuCmp, { ...menuDefaultProps, columns, items }),
26492
26514
  cellContext
26493
26515
  };
26494
26516
  }
@@ -26680,7 +26702,7 @@ function useTableContextMenu() {
26680
26702
 
26681
26703
  // src/components/InfiniteTable/components/HScrollSyncContent.tsx
26682
26704
  import { useRef as useRef30 } from "react";
26683
- import * as React68 from "react";
26705
+ import * as React69 from "react";
26684
26706
 
26685
26707
  // src/components/InfiniteTable/hooks/useGridScroll.ts
26686
26708
  import { useCallback as useCallback28, useEffect as useEffect36 } from "react";
@@ -26726,7 +26748,7 @@ function HScrollSyncContent(props) {
26726
26748
  } else if (maxWidth === "viewport") {
26727
26749
  style2.maxWidth = ThemeVars.runtime.bodyWidth;
26728
26750
  }
26729
- return /* @__PURE__ */ React68.createElement(
26751
+ return /* @__PURE__ */ React69.createElement(
26730
26752
  "div",
26731
26753
  {
26732
26754
  ref: domRef,
@@ -26827,7 +26849,7 @@ function useHorizontalLayout() {
26827
26849
  }
26828
26850
 
26829
26851
  // src/components/InfiniteTable/hooks/useDebugMode.ts
26830
- import * as React69 from "react";
26852
+ import * as React70 from "react";
26831
26853
  var logWarning = once(() => {
26832
26854
  console.warn(
26833
26855
  `It appears you have not loaded the CSS file for InfiniteTable.
@@ -26841,7 +26863,7 @@ import '@infinite-table/infinite-react/index.css'
26841
26863
  var cssFileLoadedVarName = stripVar(ThemeVars.loaded);
26842
26864
  function useDebugMode() {
26843
26865
  const { getState } = useInfiniteTable();
26844
- React69.useEffect(() => {
26866
+ React70.useEffect(() => {
26845
26867
  runDebugMode(getState);
26846
26868
  }, []);
26847
26869
  }
@@ -26897,7 +26919,7 @@ function InfiniteTableHeader2() {
26897
26919
  const { state: componentState, getComputed } = context;
26898
26920
  const { header, brain, headerBrain, wrapRowsHorizontally } = componentState;
26899
26921
  const { scrollbars } = getComputed();
26900
- return header ? /* @__PURE__ */ React70.createElement(
26922
+ return header ? /* @__PURE__ */ React71.createElement(
26901
26923
  TableHeaderWrapper,
26902
26924
  {
26903
26925
  wrapRowsHorizontally: !!wrapRowsHorizontally,
@@ -26914,7 +26936,7 @@ var InfiniteTableBodyCls = join(
26914
26936
  transformTranslateZero
26915
26937
  );
26916
26938
  function InfiniteTableBodyContainer(props) {
26917
- return /* @__PURE__ */ React70.createElement(
26939
+ return /* @__PURE__ */ React71.createElement(
26918
26940
  "div",
26919
26941
  {
26920
26942
  ...props,
@@ -26951,7 +26973,7 @@ function InfiniteTableBody() {
26951
26973
  const {
26952
26974
  componentState: { loading }
26953
26975
  } = useDataSourceContextValue();
26954
- const onContextMenu = React70.useCallback((event) => {
26976
+ const onContextMenu = React71.useCallback((event) => {
26955
26977
  const state = context.getState();
26956
26978
  const target = event.target;
26957
26979
  if (!masterContext && event._from_row_detail) {
@@ -26997,7 +27019,7 @@ function InfiniteTableBody() {
26997
27019
  });
26998
27020
  const { autoFocus, tabIndex } = domProps ?? {};
26999
27021
  useToggleWrapRowsHorizontally();
27000
- return /* @__PURE__ */ React70.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React70.createElement(
27022
+ return /* @__PURE__ */ React71.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React71.createElement(
27001
27023
  HeadlessTable,
27002
27024
  {
27003
27025
  forceRerenderTimestamp: componentState.forceBodyRerenderTimestamp,
@@ -27018,9 +27040,9 @@ function InfiniteTableBody() {
27018
27040
  cellHoverClassNames: showHoverRows ? HOVERED_CLASS_NAMES : void 0,
27019
27041
  scrollerDOMRef
27020
27042
  }
27021
- ), /* @__PURE__ */ React70.createElement(LoadMaskCmp, { visible: loading }, loadingText));
27043
+ ), /* @__PURE__ */ React71.createElement(LoadMaskCmp, { visible: loading }, loadingText));
27022
27044
  }
27023
- var InfiniteTableComponent = React70.memo(
27045
+ var InfiniteTableComponent = React71.memo(
27024
27046
  function InfiniteTableComponent2() {
27025
27047
  const context = useInfiniteTable();
27026
27048
  const masterContext = useMasterDetailContext();
@@ -27052,7 +27074,7 @@ var InfiniteTableComponent = React70.memo(
27052
27074
  useScrollToActiveRow(activeRowIndex, dataArray.length, api);
27053
27075
  useScrollToActiveCell(activeCellIndex, dataArray.length, api);
27054
27076
  const { onKeyDown: onKeyDown2 } = useDOMEventHandlers();
27055
- React70.useEffect(() => {
27077
+ React71.useEffect(() => {
27056
27078
  const dataSourceState = getDataSourceState();
27057
27079
  const onChange = debounce(
27058
27080
  (renderRange) => {
@@ -27075,7 +27097,7 @@ var InfiniteTableComponent = React70.memo(
27075
27097
  ...initialDOMProps
27076
27098
  } = componentState.domProps ?? {};
27077
27099
  const domProps = useDOMProps(initialDOMProps);
27078
- React70.useEffect(() => {
27100
+ React71.useEffect(() => {
27079
27101
  brain.setScrollStopDelay(scrollStopDelay);
27080
27102
  dataSourceActions.scrollStopDelayUpdatedByTable = scrollStopDelay;
27081
27103
  }, [scrollStopDelay]);
@@ -27086,7 +27108,7 @@ var InfiniteTableComponent = React70.memo(
27086
27108
  const { menuPortal: cellContextMenuPortal } = useCellContextMenu();
27087
27109
  const { menuPortal: tableContextMenuPortal } = useTableContextMenu();
27088
27110
  const { menuPortal: filterOperatorMenuPortal } = useColumnFilterOperatorMenu();
27089
- React70.useEffect(() => {
27111
+ React71.useEffect(() => {
27090
27112
  if (typeof globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY === "function") {
27091
27113
  globalThis.__DO_NOT_USE_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_IS_READY(
27092
27114
  componentState.id,
@@ -27100,13 +27122,13 @@ var InfiniteTableComponent = React70.memo(
27100
27122
  }
27101
27123
  }, [componentState.ready]);
27102
27124
  useDebugMode();
27103
- React70.useEffect(() => {
27125
+ React71.useEffect(() => {
27104
27126
  if (masterContext) {
27105
27127
  portalDOMRef.current = masterContext.getMasterState().portalDOMRef.current;
27106
27128
  }
27107
27129
  }, []);
27108
- const children = initialChildren ?? /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(InfiniteTableHeader2, null), /* @__PURE__ */ React70.createElement(InfiniteTableBody, null));
27109
- return /* @__PURE__ */ React70.createElement("div", { onKeyDown: onKeyDown2, ref: domRef, ...domProps }, children, /* @__PURE__ */ React70.createElement(
27130
+ const children = initialChildren ?? /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(InfiniteTableHeader2, null), /* @__PURE__ */ React71.createElement(InfiniteTableBody, null));
27131
+ return /* @__PURE__ */ React71.createElement("div", { onKeyDown: onKeyDown2, ref: domRef, ...domProps }, children, /* @__PURE__ */ React71.createElement(
27110
27132
  "div",
27111
27133
  {
27112
27134
  ref: portalDOMRef,
@@ -27122,14 +27144,14 @@ var InfiniteTableComponent = React70.memo(
27122
27144
  cellContextMenuPortal,
27123
27145
  tableContextMenuPortal,
27124
27146
  filterOperatorMenuPortal
27125
- ), rowHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27147
+ ), rowHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27126
27148
  CSSNumericVariableWatch,
27127
27149
  {
27128
27150
  key: "row-height",
27129
27151
  varName: rowHeightCSSVar,
27130
27152
  onChange: onRowHeightCSSVarChange
27131
27153
  }
27132
- ) : null, /* @__PURE__ */ React70.createElement(
27154
+ ) : null, /* @__PURE__ */ React71.createElement(
27133
27155
  CSSNumericVariableWatch,
27134
27156
  {
27135
27157
  key: "flashing-duration",
@@ -27137,21 +27159,21 @@ var InfiniteTableComponent = React70.memo(
27137
27159
  varName: ThemeVars.components.Cell.flashingDuration,
27138
27160
  onChange: onFlashingDurationCSSVarChange
27139
27161
  }
27140
- ), rowDetailHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27162
+ ), rowDetailHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27141
27163
  CSSNumericVariableWatch,
27142
27164
  {
27143
27165
  key: "row-detail-height",
27144
27166
  varName: rowDetailHeightCSSVar,
27145
27167
  onChange: onRowDetailHeightCSSVarChange
27146
27168
  }
27147
- ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React70.createElement(
27169
+ ) : null, columnHeaderHeightCSSVar ? /* @__PURE__ */ React71.createElement(
27148
27170
  CSSNumericVariableWatch,
27149
27171
  {
27150
27172
  key: "column-header-height",
27151
27173
  varName: columnHeaderHeightCSSVar,
27152
27174
  onChange: onColumnHeaderHeightCSSVarChange
27153
27175
  }
27154
- ) : null, licenseValid ? null : /* @__PURE__ */ React70.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React70.createElement(FocusDetect, null));
27176
+ ) : null, licenseValid ? null : /* @__PURE__ */ React71.createElement(InfiniteTableLicenseFooter, null), /* @__PURE__ */ React71.createElement(FocusDetect, null));
27155
27177
  }
27156
27178
  );
27157
27179
  function InfiniteTableContextProvider({
@@ -27175,7 +27197,7 @@ function InfiniteTableContextProvider({
27175
27197
  getDataSourceMasterContext,
27176
27198
  api: dataSourceApi
27177
27199
  } = useDataSourceContextValue();
27178
- const [imperativeApi] = React70.useState(() => {
27200
+ const [imperativeApi] = React71.useState(() => {
27179
27201
  return getImperativeApi({
27180
27202
  getComputed,
27181
27203
  getState,
@@ -27211,20 +27233,20 @@ function InfiniteTableContextProvider({
27211
27233
  },
27212
27234
  { earlyAttach: true, debounce: 50 }
27213
27235
  );
27214
- React70.useEffect(() => {
27236
+ React71.useEffect(() => {
27215
27237
  if (scrollerDOMRef.current) {
27216
27238
  scrollerDOMRef.current.scrollTop = 0;
27217
27239
  }
27218
27240
  }, [scrollTopKey, scrollerDOMRef]);
27219
27241
  const TableContext2 = getInfiniteTableContext();
27220
- return /* @__PURE__ */ React70.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React70.createElement(InfiniteTableComponent, null));
27242
+ return /* @__PURE__ */ React71.createElement(TableContext2.Provider, { value: contextValue }, /* @__PURE__ */ React71.createElement(InfiniteTableComponent, null));
27221
27243
  }
27222
27244
  var DEFAULT_ROW_HEIGHT = 40;
27223
27245
  var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(columnHeaderHeightName);
27224
27246
  var InfiniteTable = function(props) {
27225
27247
  const table = (
27226
27248
  //@ts-ignore
27227
- /* @__PURE__ */ React70.createElement(
27249
+ /* @__PURE__ */ React71.createElement(
27228
27250
  InfiniteTableRoot,
27229
27251
  {
27230
27252
  repeatWrappedGroupRows: !!props.wrapRowsHorizontally,
@@ -27232,30 +27254,30 @@ var InfiniteTable = function(props) {
27232
27254
  columnHeaderHeight: DEFAULT_COLUMN_HEADER_HEIGHT,
27233
27255
  ...props
27234
27256
  },
27235
- /* @__PURE__ */ React70.createElement(InfiniteTableContextProvider, { children: props.children })
27257
+ /* @__PURE__ */ React71.createElement(InfiniteTableContextProvider, { children: props.children })
27236
27258
  )
27237
27259
  );
27238
27260
  if (false) {
27239
- return /* @__PURE__ */ React70.createElement(React70.StrictMode, null, table);
27261
+ return /* @__PURE__ */ React71.createElement(React71.StrictMode, null, table);
27240
27262
  }
27241
27263
  return table;
27242
27264
  };
27243
27265
  InfiniteTable.Header = InfiniteTableHeader2;
27244
27266
  InfiniteTable.Body = InfiniteTableBody;
27245
27267
  InfiniteTable.HScrollSyncContent = HScrollSyncContent;
27246
- InfiniteTable.Footer = () => /* @__PURE__ */ React70.createElement(InfiniteTableFooter, null);
27268
+ InfiniteTable.Footer = () => /* @__PURE__ */ React71.createElement(InfiniteTableFooter, null);
27247
27269
 
27248
27270
  // src/components/TreeGrid/TreeDataSource.tsx
27249
- import * as React71 from "react";
27271
+ import * as React72 from "react";
27250
27272
  function TreeDataSource(props) {
27251
27273
  const { DataSource: DataSourceComponent } = useDataSourceInternal({ nodesKey: "children", ...props });
27252
- return /* @__PURE__ */ React71.createElement(DataSourceComponent, null, props.children ?? null);
27274
+ return /* @__PURE__ */ React72.createElement(DataSourceComponent, null, props.children ?? null);
27253
27275
  }
27254
27276
 
27255
27277
  // src/components/TreeGrid/TreeGrid.tsx
27256
- import * as React72 from "react";
27278
+ import * as React73 from "react";
27257
27279
  function TreeGrid(props) {
27258
- return /* @__PURE__ */ React72.createElement(InfiniteTable, { ...props });
27280
+ return /* @__PURE__ */ React73.createElement(InfiniteTable, { ...props });
27259
27281
  }
27260
27282
 
27261
27283
  // src/components/DataSource/DataLoader/DataQuery.ts
@@ -27722,12 +27744,12 @@ var useEffectWhen = (callback, options) => {
27722
27744
  };
27723
27745
 
27724
27746
  // src/components/InfiniteTable/components/InfiniteTableRow/FlashingColumnCell.tsx
27725
- import * as React73 from "react";
27747
+ import * as React74 from "react";
27726
27748
  var currentFlashingDurationVar = stripVar(
27727
27749
  InternalVars.currentFlashingDuration
27728
27750
  );
27729
27751
  var defaultRender = ({ children }) => {
27730
- return /* @__PURE__ */ React73.createElement(React73.Fragment, null, children);
27752
+ return /* @__PURE__ */ React74.createElement(React74.Fragment, null, children);
27731
27753
  };
27732
27754
  var DEFAULT_FLASH_DURATION = 1e3;
27733
27755
  var INTERNAL_FLASH_CLS_FOR_DIRECTION = {
@@ -27749,7 +27771,7 @@ var createFlashingColumnCellComponent = (options = {}) => {
27749
27771
  // fadeClassName,
27750
27772
  render = defaultRender
27751
27773
  } = options;
27752
- const FlashingColumnCell2 = React73.forwardRef(
27774
+ const FlashingColumnCell2 = React74.forwardRef(
27753
27775
  (props, _ref) => {
27754
27776
  const cellContext = useInfiniteColumnCell();
27755
27777
  const {
@@ -27759,13 +27781,13 @@ var createFlashingColumnCellComponent = (options = {}) => {
27759
27781
  const { domRef, value, column, rowInfo, htmlElementRef } = cellContext;
27760
27782
  const rowId = rowInfo.id;
27761
27783
  const columnId = column.id;
27762
- const initialRef = React73.useRef(true);
27763
- const oldValueRef = React73.useRef(value);
27784
+ const initialRef = React74.useRef(true);
27785
+ const oldValueRef = React74.useRef(value);
27764
27786
  const oldValue = initialRef.current ? null : oldValueRef.current;
27765
27787
  initialRef.current = false;
27766
- const flashTimeoutIdRef = React73.useRef();
27767
- const flashDirectionRef = React73.useRef();
27768
- const fadeTimeoutIdRef = React73.useRef();
27788
+ const flashTimeoutIdRef = React74.useRef();
27789
+ const flashDirectionRef = React74.useRef();
27790
+ const fadeTimeoutIdRef = React74.useRef();
27769
27791
  useEffectWhen(
27770
27792
  () => {
27771
27793
  if (value === oldValueRef.current) {
@@ -27812,7 +27834,7 @@ var createFlashingColumnCellComponent = (options = {}) => {
27812
27834
  different: [value]
27813
27835
  }
27814
27836
  );
27815
- return /* @__PURE__ */ React73.createElement("div", { ref: domRef, ...props, className: join(props.className) }, render({ children: props.children, oldValue }));
27837
+ return /* @__PURE__ */ React74.createElement("div", { ref: domRef, ...props, className: join(props.className) }, render({ children: props.children, oldValue }));
27816
27838
  }
27817
27839
  );
27818
27840
  return FlashingColumnCell2;