@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.
- package/build/lib/features/ColumnSizing.js +2 -1
- package/build/lib/features/ColumnSizing.js.map +1 -1
- package/build/lib/index.esm.js +5 -1
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.mjs +5 -1
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/utils/document.d.ts +2 -0
- package/build/lib/utils/document.js +18 -0
- package/build/lib/utils/document.js.map +1 -0
- package/build/umd/index.development.js +5 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/ColumnSizing.ts +2 -2
- package/src/utils/document.ts +12 -0
package/build/lib/index.mjs
CHANGED
|
@@ -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
|
|
1355
|
+
const contextDocument = safelyAccessDocument(_contextDocument);
|
|
1352
1356
|
const mouseEvents = {
|
|
1353
1357
|
moveHandler: e => onMove(e.clientX),
|
|
1354
1358
|
upHandler: e => {
|