@atlaskit/table-tree 10.0.2 → 10.0.4
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 +14 -0
- package/dist/cjs/components/internal/chevron.js +1 -1
- package/dist/cjs/components/row.js +3 -3
- package/dist/es2019/components/internal/chevron.js +1 -1
- package/dist/es2019/components/row.js +3 -3
- package/dist/esm/components/internal/chevron.js +1 -1
- package/dist/esm/components/row.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 10.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#148468](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148468)
|
|
8
|
+
[`cc44534049fd3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cc44534049fd3) -
|
|
9
|
+
Ensure `aria-controls` is only present on chevron when related element is present in the DOM.
|
|
10
|
+
|
|
11
|
+
## 10.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -36,7 +36,7 @@ var Chevron = function Chevron(_ref) {
|
|
|
36
36
|
onClick: onExpandToggle,
|
|
37
37
|
spacing: "compact",
|
|
38
38
|
icon: isExpanded ? _chevronDown.default : _chevronRight.default,
|
|
39
|
-
"aria-controls": ariaControls,
|
|
39
|
+
"aria-controls": isExpanded ? ariaControls : undefined,
|
|
40
40
|
label: isExpanded ? getLabel(collapseLabel) : getLabel(expandLabel)
|
|
41
41
|
}));
|
|
42
42
|
};
|
|
@@ -69,7 +69,7 @@ function Row(_ref) {
|
|
|
69
69
|
actionSubject: 'tableTree',
|
|
70
70
|
componentName: 'row',
|
|
71
71
|
packageName: "@atlaskit/table-tree",
|
|
72
|
-
packageVersion: "10.0.
|
|
72
|
+
packageVersion: "10.0.4"
|
|
73
73
|
});
|
|
74
74
|
var onCollapse = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
75
75
|
fn: function fn(value) {
|
|
@@ -79,7 +79,7 @@ function Row(_ref) {
|
|
|
79
79
|
actionSubject: 'tableTree',
|
|
80
80
|
componentName: 'row',
|
|
81
81
|
packageName: "@atlaskit/table-tree",
|
|
82
|
-
packageVersion: "10.0.
|
|
82
|
+
packageVersion: "10.0.4"
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -125,7 +125,7 @@ function Row(_ref) {
|
|
|
125
125
|
extendedLabel: extendedLabel,
|
|
126
126
|
isExpanded: isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState,
|
|
127
127
|
onExpandToggle: onExpandToggle,
|
|
128
|
-
ariaControls:
|
|
128
|
+
ariaControls: !!itemId ? (0, _toItemId.default)(itemId) : undefined,
|
|
129
129
|
rowId: !!itemId ? itemId : ''
|
|
130
130
|
})].concat(cellContent);
|
|
131
131
|
}
|
|
@@ -24,7 +24,7 @@ const Chevron = ({
|
|
|
24
24
|
onClick: onExpandToggle,
|
|
25
25
|
spacing: "compact",
|
|
26
26
|
icon: isExpanded ? ChevronDownIcon : ChevronRightIcon,
|
|
27
|
-
"aria-controls": ariaControls,
|
|
27
|
+
"aria-controls": isExpanded ? ariaControls : undefined,
|
|
28
28
|
label: isExpanded ? getLabel(collapseLabel) : getLabel(expandLabel)
|
|
29
29
|
}));
|
|
30
30
|
};
|
|
@@ -53,7 +53,7 @@ function Row({
|
|
|
53
53
|
actionSubject: 'tableTree',
|
|
54
54
|
componentName: 'row',
|
|
55
55
|
packageName: "@atlaskit/table-tree",
|
|
56
|
-
packageVersion: "10.0.
|
|
56
|
+
packageVersion: "10.0.4"
|
|
57
57
|
});
|
|
58
58
|
const onCollapse = usePlatformLeafEventHandler({
|
|
59
59
|
fn: value => providedOnCollapse && providedOnCollapse(value),
|
|
@@ -61,7 +61,7 @@ function Row({
|
|
|
61
61
|
actionSubject: 'tableTree',
|
|
62
62
|
componentName: 'row',
|
|
63
63
|
packageName: "@atlaskit/table-tree",
|
|
64
|
-
packageVersion: "10.0.
|
|
64
|
+
packageVersion: "10.0.4"
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -107,7 +107,7 @@ function Row({
|
|
|
107
107
|
extendedLabel: extendedLabel,
|
|
108
108
|
isExpanded: isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState,
|
|
109
109
|
onExpandToggle: onExpandToggle,
|
|
110
|
-
ariaControls:
|
|
110
|
+
ariaControls: !!itemId ? toItemId(itemId) : undefined,
|
|
111
111
|
rowId: !!itemId ? itemId : ''
|
|
112
112
|
})].concat(cellContent);
|
|
113
113
|
}
|
|
@@ -28,7 +28,7 @@ var Chevron = function Chevron(_ref) {
|
|
|
28
28
|
onClick: onExpandToggle,
|
|
29
29
|
spacing: "compact",
|
|
30
30
|
icon: isExpanded ? ChevronDownIcon : ChevronRightIcon,
|
|
31
|
-
"aria-controls": ariaControls,
|
|
31
|
+
"aria-controls": isExpanded ? ariaControls : undefined,
|
|
32
32
|
label: isExpanded ? getLabel(collapseLabel) : getLabel(expandLabel)
|
|
33
33
|
}));
|
|
34
34
|
};
|
|
@@ -58,7 +58,7 @@ function Row(_ref) {
|
|
|
58
58
|
actionSubject: 'tableTree',
|
|
59
59
|
componentName: 'row',
|
|
60
60
|
packageName: "@atlaskit/table-tree",
|
|
61
|
-
packageVersion: "10.0.
|
|
61
|
+
packageVersion: "10.0.4"
|
|
62
62
|
});
|
|
63
63
|
var onCollapse = usePlatformLeafEventHandler({
|
|
64
64
|
fn: function fn(value) {
|
|
@@ -68,7 +68,7 @@ function Row(_ref) {
|
|
|
68
68
|
actionSubject: 'tableTree',
|
|
69
69
|
componentName: 'row',
|
|
70
70
|
packageName: "@atlaskit/table-tree",
|
|
71
|
-
packageVersion: "10.0.
|
|
71
|
+
packageVersion: "10.0.4"
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
/**
|
|
@@ -114,7 +114,7 @@ function Row(_ref) {
|
|
|
114
114
|
extendedLabel: extendedLabel,
|
|
115
115
|
isExpanded: isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState,
|
|
116
116
|
onExpandToggle: onExpandToggle,
|
|
117
|
-
ariaControls:
|
|
117
|
+
ariaControls: !!itemId ? toItemId(itemId) : undefined,
|
|
118
118
|
rowId: !!itemId ? itemId : ''
|
|
119
119
|
})].concat(cellContent);
|
|
120
120
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4",
|
|
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/"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
27
27
|
"@atlaskit/button": "^20.2.0",
|
|
28
|
-
"@atlaskit/ds-lib": "^
|
|
29
|
-
"@atlaskit/icon": "^22.
|
|
28
|
+
"@atlaskit/ds-lib": "^3.0.0",
|
|
29
|
+
"@atlaskit/icon": "^22.22.0",
|
|
30
30
|
"@atlaskit/spinner": "^16.3.0",
|
|
31
31
|
"@atlaskit/theme": "^13.0.0",
|
|
32
32
|
"@atlaskit/tokens": "^2.0.0",
|