@tanstack/svelte-table 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.
@@ -1224,6 +1224,10 @@
1224
1224
  }
1225
1225
  };
1226
1226
 
1227
+ function safelyAccessDocument(_document) {
1228
+ return _document || (typeof document !== 'undefined' ? document : null);
1229
+ }
1230
+
1227
1231
  //
1228
1232
 
1229
1233
  //
@@ -1363,7 +1367,7 @@
1363
1367
  columnSizingStart: []
1364
1368
  }));
1365
1369
  };
1366
- const contextDocument = _contextDocument || typeof document !== 'undefined' ? document : null;
1370
+ const contextDocument = safelyAccessDocument(_contextDocument);
1367
1371
  const mouseEvents = {
1368
1372
  moveHandler: e => onMove(e.clientX),
1369
1373
  upHandler: e => {