@atlaskit/table-tree 12.1.2 → 12.1.3
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/row.js +4 -4
- package/dist/es2019/components/row.js +4 -4
- package/dist/esm/components/row.js +4 -4
- package/dist/types/components/internal/common-cell.d.ts +1 -1
- package/dist/types/components/internal/styled.d.ts +1 -1
- package/dist/types-ts4.5/components/internal/common-cell.d.ts +1 -1
- package/dist/types-ts4.5/components/internal/styled.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 12.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#154904](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154904)
|
|
8
|
+
[`44926dab289a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44926dab289a0) -
|
|
9
|
+
Fixed default expanded option preventing expanding/collapsing row
|
|
10
|
+
|
|
3
11
|
## 12.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -50,10 +50,10 @@ function Row(_ref) {
|
|
|
50
50
|
isExpandedState = _useState2[0],
|
|
51
51
|
setIsExpandedState = _useState2[1];
|
|
52
52
|
(0, _react.useEffect)(function () {
|
|
53
|
-
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined
|
|
53
|
+
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
|
|
54
54
|
setIsExpandedState(isDefaultExpanded);
|
|
55
55
|
}
|
|
56
|
-
}, [isDefaultExpanded, isProvidedExpanded
|
|
56
|
+
}, [isDefaultExpanded, isProvidedExpanded]);
|
|
57
57
|
var onExpand = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
58
58
|
fn: function fn(value) {
|
|
59
59
|
return providedOnExpand && providedOnExpand(value);
|
|
@@ -62,7 +62,7 @@ function Row(_ref) {
|
|
|
62
62
|
actionSubject: 'tableTree',
|
|
63
63
|
componentName: 'row',
|
|
64
64
|
packageName: "@atlaskit/table-tree",
|
|
65
|
-
packageVersion: "12.1.
|
|
65
|
+
packageVersion: "12.1.3"
|
|
66
66
|
});
|
|
67
67
|
var onCollapse = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
68
68
|
fn: function fn(value) {
|
|
@@ -72,7 +72,7 @@ function Row(_ref) {
|
|
|
72
72
|
actionSubject: 'tableTree',
|
|
73
73
|
componentName: 'row',
|
|
74
74
|
packageName: "@atlaskit/table-tree",
|
|
75
|
-
packageVersion: "12.1.
|
|
75
|
+
packageVersion: "12.1.3"
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -37,17 +37,17 @@ function Row({
|
|
|
37
37
|
}) {
|
|
38
38
|
const [isExpandedState, setIsExpandedState] = useState(isDefaultExpanded || false);
|
|
39
39
|
useEffect(() => {
|
|
40
|
-
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined
|
|
40
|
+
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
|
|
41
41
|
setIsExpandedState(isDefaultExpanded);
|
|
42
42
|
}
|
|
43
|
-
}, [isDefaultExpanded, isProvidedExpanded
|
|
43
|
+
}, [isDefaultExpanded, isProvidedExpanded]);
|
|
44
44
|
const onExpand = usePlatformLeafEventHandler({
|
|
45
45
|
fn: value => providedOnExpand && providedOnExpand(value),
|
|
46
46
|
action: 'expanded',
|
|
47
47
|
actionSubject: 'tableTree',
|
|
48
48
|
componentName: 'row',
|
|
49
49
|
packageName: "@atlaskit/table-tree",
|
|
50
|
-
packageVersion: "12.1.
|
|
50
|
+
packageVersion: "12.1.3"
|
|
51
51
|
});
|
|
52
52
|
const onCollapse = usePlatformLeafEventHandler({
|
|
53
53
|
fn: value => providedOnCollapse && providedOnCollapse(value),
|
|
@@ -55,7 +55,7 @@ function Row({
|
|
|
55
55
|
actionSubject: 'tableTree',
|
|
56
56
|
componentName: 'row',
|
|
57
57
|
packageName: "@atlaskit/table-tree",
|
|
58
|
-
packageVersion: "12.1.
|
|
58
|
+
packageVersion: "12.1.3"
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -40,10 +40,10 @@ function Row(_ref) {
|
|
|
40
40
|
isExpandedState = _useState2[0],
|
|
41
41
|
setIsExpandedState = _useState2[1];
|
|
42
42
|
useEffect(function () {
|
|
43
|
-
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined
|
|
43
|
+
if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
|
|
44
44
|
setIsExpandedState(isDefaultExpanded);
|
|
45
45
|
}
|
|
46
|
-
}, [isDefaultExpanded, isProvidedExpanded
|
|
46
|
+
}, [isDefaultExpanded, isProvidedExpanded]);
|
|
47
47
|
var onExpand = usePlatformLeafEventHandler({
|
|
48
48
|
fn: function fn(value) {
|
|
49
49
|
return providedOnExpand && providedOnExpand(value);
|
|
@@ -52,7 +52,7 @@ function Row(_ref) {
|
|
|
52
52
|
actionSubject: 'tableTree',
|
|
53
53
|
componentName: 'row',
|
|
54
54
|
packageName: "@atlaskit/table-tree",
|
|
55
|
-
packageVersion: "12.1.
|
|
55
|
+
packageVersion: "12.1.3"
|
|
56
56
|
});
|
|
57
57
|
var onCollapse = usePlatformLeafEventHandler({
|
|
58
58
|
fn: function fn(value) {
|
|
@@ -62,7 +62,7 @@ function Row(_ref) {
|
|
|
62
62
|
actionSubject: 'tableTree',
|
|
63
63
|
componentName: 'row',
|
|
64
64
|
packageName: "@atlaskit/table-tree",
|
|
65
|
-
packageVersion: "12.1.
|
|
65
|
+
packageVersion: "12.1.3"
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
/**
|
package/package.json
CHANGED