@atlaskit/dynamic-table 18.2.17 → 18.2.18
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/CHANGELOG.md +8 -0
- package/dist/cjs/components/rankable/body.js +1 -1
- package/dist/cjs/components/stateless.js +2 -2
- package/dist/es2019/components/rankable/body.js +1 -1
- package/dist/es2019/components/stateless.js +2 -2
- package/dist/esm/components/rankable/body.js +1 -1
- package/dist/esm/components/stateless.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 18.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f218cd4f78537`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f218cd4f78537) -
|
|
8
|
+
Fix for rankable tables when highlighting row at index 0 with a single numeric value using the
|
|
9
|
+
`highlightedRowIndex` prop.
|
|
10
|
+
|
|
3
11
|
## 18.2.17
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -110,7 +110,7 @@ var RankableBody = exports.RankableBody = /*#__PURE__*/function (_React$Componen
|
|
|
110
110
|
rowIndex: rowIndex,
|
|
111
111
|
row: row,
|
|
112
112
|
isRankingDisabled: isRankingDisabled,
|
|
113
|
-
isHighlighted:
|
|
113
|
+
isHighlighted: highlightedRowIndex !== undefined && (typeof highlightedRowIndex === 'number' ? highlightedRowIndex === rowIndex : highlightedRowIndex.indexOf(rowIndex) > -1),
|
|
114
114
|
testId: testId && "".concat(testId, "--").concat(row.key, "--rankable--table--row")
|
|
115
115
|
});
|
|
116
116
|
}), provided.placeholder);
|
|
@@ -85,14 +85,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
85
85
|
action: 'sorted',
|
|
86
86
|
componentName: 'dynamicTable',
|
|
87
87
|
packageName: "@atlaskit/dynamic-table",
|
|
88
|
-
packageVersion: "
|
|
88
|
+
packageVersion: "0.0.0-development"
|
|
89
89
|
});
|
|
90
90
|
var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
91
91
|
fn: providedOnRankEnd,
|
|
92
92
|
action: 'ranked',
|
|
93
93
|
componentName: 'dynamicTable',
|
|
94
94
|
packageName: "@atlaskit/dynamic-table",
|
|
95
|
-
packageVersion: "
|
|
95
|
+
packageVersion: "0.0.0-development"
|
|
96
96
|
});
|
|
97
97
|
(0, _react.useEffect)(function () {
|
|
98
98
|
(0, _helpers.validateSortKey)(sortKey, head);
|
|
@@ -103,7 +103,7 @@ export class RankableBody extends React.Component {
|
|
|
103
103
|
rowIndex: rowIndex,
|
|
104
104
|
row: row,
|
|
105
105
|
isRankingDisabled: isRankingDisabled,
|
|
106
|
-
isHighlighted:
|
|
106
|
+
isHighlighted: highlightedRowIndex !== undefined && (typeof highlightedRowIndex === 'number' ? highlightedRowIndex === rowIndex : highlightedRowIndex.indexOf(rowIndex) > -1),
|
|
107
107
|
testId: testId && `${testId}--${row.key}--rankable--table--row`
|
|
108
108
|
})), provided.placeholder)));
|
|
109
109
|
}
|
|
@@ -60,14 +60,14 @@ const DynamicTable = ({
|
|
|
60
60
|
action: 'sorted',
|
|
61
61
|
componentName: 'dynamicTable',
|
|
62
62
|
packageName: "@atlaskit/dynamic-table",
|
|
63
|
-
packageVersion: "
|
|
63
|
+
packageVersion: "0.0.0-development"
|
|
64
64
|
});
|
|
65
65
|
const onRankEnd = usePlatformLeafEventHandler({
|
|
66
66
|
fn: providedOnRankEnd,
|
|
67
67
|
action: 'ranked',
|
|
68
68
|
componentName: 'dynamicTable',
|
|
69
69
|
packageName: "@atlaskit/dynamic-table",
|
|
70
|
-
packageVersion: "
|
|
70
|
+
packageVersion: "0.0.0-development"
|
|
71
71
|
});
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
validateSortKey(sortKey, head);
|
|
@@ -105,7 +105,7 @@ export var RankableBody = /*#__PURE__*/function (_React$Component) {
|
|
|
105
105
|
rowIndex: rowIndex,
|
|
106
106
|
row: row,
|
|
107
107
|
isRankingDisabled: isRankingDisabled,
|
|
108
|
-
isHighlighted:
|
|
108
|
+
isHighlighted: highlightedRowIndex !== undefined && (typeof highlightedRowIndex === 'number' ? highlightedRowIndex === rowIndex : highlightedRowIndex.indexOf(rowIndex) > -1),
|
|
109
109
|
testId: testId && "".concat(testId, "--").concat(row.key, "--rankable--table--row")
|
|
110
110
|
});
|
|
111
111
|
}), provided.placeholder);
|
|
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
76
76
|
action: 'sorted',
|
|
77
77
|
componentName: 'dynamicTable',
|
|
78
78
|
packageName: "@atlaskit/dynamic-table",
|
|
79
|
-
packageVersion: "
|
|
79
|
+
packageVersion: "0.0.0-development"
|
|
80
80
|
});
|
|
81
81
|
var onRankEnd = usePlatformLeafEventHandler({
|
|
82
82
|
fn: providedOnRankEnd,
|
|
83
83
|
action: 'ranked',
|
|
84
84
|
componentName: 'dynamicTable',
|
|
85
85
|
packageName: "@atlaskit/dynamic-table",
|
|
86
|
-
packageVersion: "
|
|
86
|
+
packageVersion: "0.0.0-development"
|
|
87
87
|
});
|
|
88
88
|
useEffect(function () {
|
|
89
89
|
validateSortKey(sortKey, head);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.18",
|
|
4
4
|
"description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|