@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 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 && isExpandedState !== isDefaultExpanded) {
53
+ if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
54
54
  setIsExpandedState(isDefaultExpanded);
55
55
  }
56
- }, [isDefaultExpanded, isProvidedExpanded, isExpandedState]);
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.2"
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.2"
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 && isExpandedState !== isDefaultExpanded) {
40
+ if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
41
41
  setIsExpandedState(isDefaultExpanded);
42
42
  }
43
- }, [isDefaultExpanded, isProvidedExpanded, isExpandedState]);
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.2"
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.2"
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 && isExpandedState !== isDefaultExpanded) {
43
+ if (isProvidedExpanded === undefined && isDefaultExpanded !== undefined) {
44
44
  setIsExpandedState(isDefaultExpanded);
45
45
  }
46
- }, [isDefaultExpanded, isProvidedExpanded, isExpandedState]);
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.2"
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.2"
65
+ packageVersion: "12.1.3"
66
66
  });
67
67
 
68
68
  /**
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { FC, HTMLAttributes, ReactNode } from 'react';
5
+ import type { FC, HTMLAttributes, ReactNode } from 'react';
6
6
  interface CommonCellProps {
7
7
  indent?: string;
8
8
  width?: string | number;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { FC, HTMLAttributes, ReactNode } from 'react';
5
+ import type { FC, HTMLAttributes, ReactNode } from 'react';
6
6
  /**
7
7
  * __Tree row container__
8
8
  */
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { FC, HTMLAttributes, ReactNode } from 'react';
5
+ import type { FC, HTMLAttributes, ReactNode } from 'react';
6
6
  interface CommonCellProps {
7
7
  indent?: string;
8
8
  width?: string | number;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { FC, HTMLAttributes, ReactNode } from 'react';
5
+ import type { FC, HTMLAttributes, ReactNode } from 'react';
6
6
  /**
7
7
  * __Tree row container__
8
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "12.1.2",
3
+ "version": "12.1.3",
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/"