@atlaskit/table-tree 10.0.3 → 10.0.5

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 10.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#148468](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148468)
14
+ [`cc44534049fd3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cc44534049fd3) -
15
+ Ensure `aria-controls` is only present on chevron when related element is present in the DOM.
16
+
3
17
  ## 10.0.3
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.3"
72
+ packageVersion: "10.0.5"
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.3"
82
+ packageVersion: "10.0.5"
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: (isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState) && !!itemId ? (0, _toItemId.default)(itemId) : undefined,
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.3"
56
+ packageVersion: "10.0.5"
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.3"
64
+ packageVersion: "10.0.5"
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: (isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState) && !!itemId ? toItemId(itemId) : undefined,
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.3"
61
+ packageVersion: "10.0.5"
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.3"
71
+ packageVersion: "10.0.5"
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: (isProvidedExpanded !== undefined ? isProvidedExpanded : isExpandedState) && !!itemId ? toItemId(itemId) : undefined,
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",
3
+ "version": "10.0.5",
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,10 +25,10 @@
25
25
  "dependencies": {
26
26
  "@atlaskit/analytics-next": "^10.1.0",
27
27
  "@atlaskit/button": "^20.2.0",
28
- "@atlaskit/ds-lib": "^3.0.0",
29
- "@atlaskit/icon": "^22.20.0",
28
+ "@atlaskit/ds-lib": "^3.1.0",
29
+ "@atlaskit/icon": "^22.22.0",
30
30
  "@atlaskit/spinner": "^16.3.0",
31
- "@atlaskit/theme": "^13.0.0",
31
+ "@atlaskit/theme": "^14.0.0",
32
32
  "@atlaskit/tokens": "^2.0.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@emotion/react": "^11.7.1",