@commercetools-uikit/data-table 16.12.0 → 17.0.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.
|
@@ -735,7 +735,7 @@ const useManualColumnResizing = tableRef => {
|
|
|
735
735
|
if ((_state$tableRef = state.tableRef) !== null && _state$tableRef !== void 0 && _state$tableRef.current && !state.sizes) {
|
|
736
736
|
var _context;
|
|
737
737
|
const renderedColumnMeasurements = [];
|
|
738
|
-
_forEachInstanceProperty__default["default"](_context = state.tableRef.current.querySelectorAll('th')).call(_context, header => {
|
|
738
|
+
_forEachInstanceProperty__default["default"](_context = state.tableRef.current.querySelectorAll(':scope > thead > tr > th')).call(_context, header => {
|
|
739
739
|
renderedColumnMeasurements.push({
|
|
740
740
|
key: header.getAttribute('data-id'),
|
|
741
741
|
width: header.getBoundingClientRect().width
|
|
@@ -947,7 +947,7 @@ DataTable.displayName = 'DataTable';
|
|
|
947
947
|
var DataTable$1 = DataTable;
|
|
948
948
|
|
|
949
949
|
// NOTE: This string will be replaced on build time with the package version.
|
|
950
|
-
var version = "
|
|
950
|
+
var version = "17.0.0";
|
|
951
951
|
|
|
952
952
|
Object.defineProperty(exports, 'useRowSelection', {
|
|
953
953
|
enumerable: true,
|
|
@@ -569,7 +569,7 @@ const useManualColumnResizing = tableRef => {
|
|
|
569
569
|
if ((_state$tableRef = state.tableRef) !== null && _state$tableRef !== void 0 && _state$tableRef.current && !state.sizes) {
|
|
570
570
|
var _context;
|
|
571
571
|
const renderedColumnMeasurements = [];
|
|
572
|
-
_forEachInstanceProperty__default["default"](_context = state.tableRef.current.querySelectorAll('th')).call(_context, header => {
|
|
572
|
+
_forEachInstanceProperty__default["default"](_context = state.tableRef.current.querySelectorAll(':scope > thead > tr > th')).call(_context, header => {
|
|
573
573
|
renderedColumnMeasurements.push({
|
|
574
574
|
key: header.getAttribute('data-id'),
|
|
575
575
|
width: header.getBoundingClientRect().width
|
|
@@ -750,7 +750,7 @@ DataTable.displayName = 'DataTable';
|
|
|
750
750
|
var DataTable$1 = DataTable;
|
|
751
751
|
|
|
752
752
|
// NOTE: This string will be replaced on build time with the package version.
|
|
753
|
-
var version = "
|
|
753
|
+
var version = "17.0.0";
|
|
754
754
|
|
|
755
755
|
Object.defineProperty(exports, 'useRowSelection', {
|
|
756
756
|
enumerable: true,
|
|
@@ -711,7 +711,7 @@ const useManualColumnResizing = tableRef => {
|
|
|
711
711
|
if ((_state$tableRef = state.tableRef) !== null && _state$tableRef !== void 0 && _state$tableRef.current && !state.sizes) {
|
|
712
712
|
var _context;
|
|
713
713
|
const renderedColumnMeasurements = [];
|
|
714
|
-
_forEachInstanceProperty(_context = state.tableRef.current.querySelectorAll('th')).call(_context, header => {
|
|
714
|
+
_forEachInstanceProperty(_context = state.tableRef.current.querySelectorAll(':scope > thead > tr > th')).call(_context, header => {
|
|
715
715
|
renderedColumnMeasurements.push({
|
|
716
716
|
key: header.getAttribute('data-id'),
|
|
717
717
|
width: header.getBoundingClientRect().width
|
|
@@ -923,6 +923,6 @@ DataTable.displayName = 'DataTable';
|
|
|
923
923
|
var DataTable$1 = DataTable;
|
|
924
924
|
|
|
925
925
|
// NOTE: This string will be replaced on build time with the package version.
|
|
926
|
-
var version = "
|
|
926
|
+
var version = "17.0.0";
|
|
927
927
|
|
|
928
928
|
export { DataTable$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/data-table",
|
|
3
3
|
"description": "A component for rendering tabular data.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "17.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/hooks": "
|
|
27
|
-
"@commercetools-uikit/icons": "
|
|
28
|
-
"@commercetools-uikit/secondary-icon-button": "
|
|
29
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/accessible-button": "17.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "17.0.0",
|
|
26
|
+
"@commercetools-uikit/hooks": "17.0.0",
|
|
27
|
+
"@commercetools-uikit/icons": "17.0.0",
|
|
28
|
+
"@commercetools-uikit/secondary-icon-button": "17.0.0",
|
|
29
|
+
"@commercetools-uikit/utils": "17.0.0",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|