@atlaskit/table-tree 9.6.12 → 9.6.13
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 +7 -0
- package/dist/cjs/components/row.js +1 -1
- package/dist/es2019/components/row.js +1 -1
- package/dist/esm/components/row.js +1 -1
- package/extract-react-types/table-tree-row.tsx +10 -7
- package/extract-react-types/table-tree-rows.tsx +2 -1
- package/extract-react-types/table-tree.tsx +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 9.6.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72130) [`b037e5451037`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b037e5451037) - Update new button text color fallback for default theme (non-token) to match that of old button current text color
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 9.6.12
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ var treeRowClickableStyles = (0, _react2.css)({
|
|
|
28
28
|
cursor: 'pointer'
|
|
29
29
|
});
|
|
30
30
|
var packageName = "@atlaskit/table-tree";
|
|
31
|
-
var packageVersion = "9.6.
|
|
31
|
+
var packageVersion = "9.6.13";
|
|
32
32
|
var Row = exports.RowWithoutAnalytics = /*#__PURE__*/function (_Component) {
|
|
33
33
|
(0, _inherits2.default)(Row, _Component);
|
|
34
34
|
var _super = _createSuper(Row);
|
|
@@ -12,7 +12,7 @@ const treeRowClickableStyles = css({
|
|
|
12
12
|
cursor: 'pointer'
|
|
13
13
|
});
|
|
14
14
|
const packageName = "@atlaskit/table-tree";
|
|
15
|
-
const packageVersion = "9.6.
|
|
15
|
+
const packageVersion = "9.6.13";
|
|
16
16
|
class Row extends Component {
|
|
17
17
|
constructor(...args) {
|
|
18
18
|
super(...args);
|
|
@@ -20,7 +20,7 @@ var treeRowClickableStyles = css({
|
|
|
20
20
|
cursor: 'pointer'
|
|
21
21
|
});
|
|
22
22
|
var packageName = "@atlaskit/table-tree";
|
|
23
|
-
var packageVersion = "9.6.
|
|
23
|
+
var packageVersion = "9.6.13";
|
|
24
24
|
var Row = /*#__PURE__*/function (_Component) {
|
|
25
25
|
_inherits(Row, _Component);
|
|
26
26
|
var _super = _createSuper(Row);
|
|
@@ -12,7 +12,7 @@ import { Item } from './table-tree';
|
|
|
12
12
|
*/
|
|
13
13
|
type RowProps = {
|
|
14
14
|
/**
|
|
15
|
-
* Whether the row has children
|
|
15
|
+
* Whether the row has children.
|
|
16
16
|
*/
|
|
17
17
|
hasChildren?: boolean;
|
|
18
18
|
/**
|
|
@@ -20,10 +20,10 @@ type RowProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
/**
|
|
23
|
-
* ID for the row item
|
|
23
|
+
* ID for the row item.
|
|
24
24
|
*/
|
|
25
25
|
itemId?: string;
|
|
26
|
-
|
|
26
|
+
/* eslint-disable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
27
27
|
/**
|
|
28
28
|
The data used to render the row and descendants. Pass down from `children` render prop.
|
|
29
29
|
|
|
@@ -32,6 +32,7 @@ type RowProps = {
|
|
|
32
32
|
*/
|
|
33
33
|
// eslint-disable-next-line @repo/internal/react/consistent-props-definitions
|
|
34
34
|
items?: Item[] | null;
|
|
35
|
+
/* eslint-enable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
35
36
|
/**
|
|
36
37
|
* Controls the expanded state of the row.
|
|
37
38
|
*/
|
|
@@ -41,11 +42,11 @@ type RowProps = {
|
|
|
41
42
|
*/
|
|
42
43
|
isDefaultExpanded?: ReactNode;
|
|
43
44
|
/**
|
|
44
|
-
* `aria-label` attached to the expand chevron button
|
|
45
|
+
* `aria-label` attached to the expand chevron button.
|
|
45
46
|
*/
|
|
46
47
|
expandLabel?: string;
|
|
47
48
|
/**
|
|
48
|
-
* `aria-label` attached to the collapse chevron button
|
|
49
|
+
* `aria-label` attached to the collapse chevron button.
|
|
49
50
|
*/
|
|
50
51
|
collapseLabel?: string;
|
|
51
52
|
/**
|
|
@@ -61,13 +62,14 @@ type RowProps = {
|
|
|
61
62
|
* Normally set by parent Item component and does not need to be configured.
|
|
62
63
|
*/
|
|
63
64
|
renderChildren?: () => React.ReactNode;
|
|
64
|
-
|
|
65
|
+
/* eslint-disable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
65
66
|
/**
|
|
66
67
|
Whether a row with children should expand when clicked anywhere within the row. If false or unset, a row with children will only expand when the chevron is clicked.
|
|
67
68
|
|
|
68
69
|
If your cells contain interactive elements, this can cause unexpected expanding or collapsing.
|
|
69
70
|
*/
|
|
70
71
|
shouldExpandOnClick?: boolean;
|
|
72
|
+
/* eslint-enable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
71
73
|
/**
|
|
72
74
|
* Data to render. Passed down by Item and passed into onExpand and onCollapse callbacks.
|
|
73
75
|
* Normally set by parent Item component and does not need to be configured.
|
|
@@ -79,7 +81,7 @@ type RowProps = {
|
|
|
79
81
|
* Normally set by parent Item component and does not need to be configured.
|
|
80
82
|
*/
|
|
81
83
|
depth?: number;
|
|
82
|
-
|
|
84
|
+
/* eslint-disable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
83
85
|
/**
|
|
84
86
|
Adds detail to the expand and collapse row button's aria label by appending the value from the given column. If you don't set this prop, the aria label will read out "Expand `itemId` row".
|
|
85
87
|
|
|
@@ -88,6 +90,7 @@ type RowProps = {
|
|
|
88
90
|
Should be a number when we pass data via `<Rows />` component as children in `<TableTree />`.
|
|
89
91
|
*/
|
|
90
92
|
mainColumnForExpandCollapseLabel?: string | number;
|
|
93
|
+
/* eslint-enable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
91
94
|
};
|
|
92
95
|
|
|
93
96
|
const TableRow = function (props: RowProps) {
|
|
@@ -9,7 +9,7 @@ import { Item } from './table-tree';
|
|
|
9
9
|
* Defining it here for now lets us provide *something* without much headache.
|
|
10
10
|
*/
|
|
11
11
|
type RowsProps = {
|
|
12
|
-
|
|
12
|
+
/* eslint-disable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
13
13
|
/**
|
|
14
14
|
The data used to render the set of rows. Will be passed down via the `children` render prop.
|
|
15
15
|
|
|
@@ -18,6 +18,7 @@ type RowsProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
// eslint-disable-next-line @repo/internal/react/consistent-props-definitions
|
|
20
20
|
items?: Item[] | null;
|
|
21
|
+
/* eslint-enable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
21
22
|
/**
|
|
22
23
|
* Accessible name for loading states spinner. Can be used for internationalization.
|
|
23
24
|
* Default is "Loading".
|
|
@@ -36,7 +36,7 @@ type TableTreeProps = {
|
|
|
36
36
|
* The header text of the respective columns of the table.
|
|
37
37
|
*/
|
|
38
38
|
headers?: string[];
|
|
39
|
-
|
|
39
|
+
/* eslint-disable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
40
40
|
/**
|
|
41
41
|
Whether a row with children should expand when clicked anywhere within the row. If false or unset, a row with children will only expand when the chevron is clicked.
|
|
42
42
|
|
|
@@ -45,7 +45,6 @@ type TableTreeProps = {
|
|
|
45
45
|
If not using the `items` prop, `shouldExpandOnClick` should be used on the row component instead.
|
|
46
46
|
*/
|
|
47
47
|
shouldExpandOnClick?: boolean;
|
|
48
|
-
// eslint-disable-next-line jsdoc/require-asterisk-prefix, jsdoc/check-alignment
|
|
49
48
|
/**
|
|
50
49
|
The data used to render the table.
|
|
51
50
|
|
|
@@ -54,6 +53,7 @@ type TableTreeProps = {
|
|
|
54
53
|
*/
|
|
55
54
|
// eslint-disable-next-line @repo/internal/react/consistent-props-definitions
|
|
56
55
|
items?: Item[] | null;
|
|
56
|
+
/* eslint-enable jsdoc/require-asterisk-prefix, jsdoc/check-alignment */
|
|
57
57
|
/**
|
|
58
58
|
* The value used to extend the expand or collapse button label in cases where `Row` has child rows.
|
|
59
59
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.13",
|
|
4
4
|
"description": "A table tree is an expandable table for showing nested hierarchies of information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/analytics-next": "^9.
|
|
30
|
-
"@atlaskit/button": "^17.
|
|
29
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
30
|
+
"@atlaskit/button": "^17.4.0",
|
|
31
31
|
"@atlaskit/icon": "^22.0.0",
|
|
32
32
|
"@atlaskit/spinner": "^16.0.0",
|
|
33
33
|
"@atlaskit/theme": "^12.6.0",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
34
|
+
"@atlaskit/tokens": "^1.37.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@emotion/react": "^11.7.1",
|
|
37
37
|
"lodash": "^4.17.21"
|