@tanstack/table-core 8.21.2 → 8.21.3

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.
@@ -1209,6 +1209,10 @@ const ColumnPinning = {
1209
1209
  }
1210
1210
  };
1211
1211
 
1212
+ function safelyAccessDocument(_document) {
1213
+ return _document || (typeof document !== 'undefined' ? document : null);
1214
+ }
1215
+
1212
1216
  //
1213
1217
 
1214
1218
  //
@@ -1348,7 +1352,7 @@ const ColumnSizing = {
1348
1352
  columnSizingStart: []
1349
1353
  }));
1350
1354
  };
1351
- const contextDocument = _contextDocument || typeof document !== 'undefined' ? document : null;
1355
+ const contextDocument = safelyAccessDocument(_contextDocument);
1352
1356
  const mouseEvents = {
1353
1357
  moveHandler: e => onMove(e.clientX),
1354
1358
  upHandler: e => {