@atlaskit/table-tree 10.0.10 → 10.1.1

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,23 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 10.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
14
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
15
+ Update `React` from v16 to v18
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 10.0.10
4
22
 
5
23
  ### Patch Changes
@@ -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.10"
72
+ packageVersion: "10.1.1"
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.10"
82
+ packageVersion: "10.1.1"
83
83
  });
84
84
 
85
85
  /**
@@ -53,7 +53,7 @@ function Row({
53
53
  actionSubject: 'tableTree',
54
54
  componentName: 'row',
55
55
  packageName: "@atlaskit/table-tree",
56
- packageVersion: "10.0.10"
56
+ packageVersion: "10.1.1"
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.10"
64
+ packageVersion: "10.1.1"
65
65
  });
66
66
 
67
67
  /**
@@ -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.10"
61
+ packageVersion: "10.1.1"
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.10"
71
+ packageVersion: "10.1.1"
72
72
  });
73
73
 
74
74
  /**
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  export interface CellProps {
3
3
  /**
4
4
  * Sets whether the cell contents should wrap or display on a single line and be truncated. For accessibility reasons, wrapping the content is strongly recommended.
@@ -21,5 +21,5 @@ export interface CellProps {
21
21
  */
22
22
  children?: ReactNode;
23
23
  }
24
- declare const Cell: (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps) => JSX.Element;
24
+ declare const Cell: (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps) => React.JSX.Element;
25
25
  export default Cell;
@@ -24,5 +24,5 @@ export type HeaderProps = {
24
24
  id?: string;
25
25
  role?: string;
26
26
  };
27
- declare const Header: (props: HeaderProps & import("./internal/with-column-width").CellWithColumnWidthProps) => JSX.Element;
27
+ declare const Header: (props: HeaderProps & import("./internal/with-column-width").CellWithColumnWidthProps) => import("react").JSX.Element;
28
28
  export default Header;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ChevronProps {
3
3
  /**
4
4
  * @default 'Expand'
@@ -17,5 +17,5 @@ interface ChevronProps {
17
17
  /**
18
18
  * Internal chevron component.
19
19
  */
20
- declare const Chevron: ({ isExpanded, ariaControls, collapseLabel, expandLabel, rowId, extendedLabel, onExpandToggle, }: ChevronProps) => JSX.Element;
20
+ declare const Chevron: ({ isExpanded, ariaControls, collapseLabel, expandLabel, rowId, extendedLabel, onExpandToggle, }: ChevronProps) => React.JSX.Element;
21
21
  export default Chevron;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  import { type RowProps } from '../row';
3
3
  export interface ItemsProps<Item> {
4
4
  depth?: number;
@@ -10,5 +10,5 @@ export interface ItemsProps<Item> {
10
10
  }
11
11
  declare function Items<Item extends {
12
12
  id: string;
13
- }>({ depth, items, loadingLabel, render, }: ItemsProps<Item>): JSX.Element;
13
+ }>({ depth, items, loadingLabel, render, }: ItemsProps<Item>): React.JSX.Element;
14
14
  export default Items;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LoaderItemProps {
3
3
  /**
4
4
  * @default 1
@@ -8,5 +8,5 @@ interface LoaderItemProps {
8
8
  isCompleting?: boolean;
9
9
  loadingLabel?: string;
10
10
  }
11
- declare const LoaderItem: ({ depth, loadingLabel, isCompleting, onComplete }: LoaderItemProps) => JSX.Element | null;
11
+ declare const LoaderItem: ({ depth, loadingLabel, isCompleting, onComplete }: LoaderItemProps) => React.JSX.Element | null;
12
12
  export default LoaderItem;
@@ -3,4 +3,4 @@ export interface CellWithColumnWidthProps {
3
3
  width?: string | number;
4
4
  columnIndex?: number;
5
5
  }
6
- export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): (props: T & CellWithColumnWidthProps) => JSX.Element;
6
+ export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): (props: T & CellWithColumnWidthProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  import { type RowProps } from './row';
3
3
  type Content = {
4
4
  title: string;
@@ -28,5 +28,5 @@ export interface RowsProps<Item> {
28
28
  }
29
29
  declare function Rows<T extends {
30
30
  id: string;
31
- }>({ items, render, loadingLabel }: RowsProps<T>): JSX.Element;
31
+ }>({ items, render, loadingLabel }: RowsProps<T>): React.JSX.Element;
32
32
  export default Rows;
@@ -1,4 +1,4 @@
1
- import { type ElementType, type ReactNode } from 'react';
1
+ import React, { type ElementType, type ReactNode } from 'react';
2
2
  import { type ColumnWidth } from './internal/context';
3
3
  /**
4
4
  * This is hard-coded here because our actual <TableTree /> has no typings
@@ -62,5 +62,5 @@ export interface TableTreeProps<Item> {
62
62
  }
63
63
  declare function TableTree<Item extends {
64
64
  id: string;
65
- }>({ children, columns, columnWidths: defaultColumnWidths, headers, shouldExpandOnClick, items, mainColumnForExpandCollapseLabel, label, referencedLabel, }: TableTreeProps<Item>): JSX.Element;
65
+ }>({ children, columns, columnWidths: defaultColumnWidths, headers, shouldExpandOnClick, items, mainColumnForExpandCollapseLabel, label, referencedLabel, }: TableTreeProps<Item>): React.JSX.Element;
66
66
  export default TableTree;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  export interface CellProps {
3
3
  /**
4
4
  * Sets whether the cell contents should wrap or display on a single line and be truncated. For accessibility reasons, wrapping the content is strongly recommended.
@@ -21,5 +21,5 @@ export interface CellProps {
21
21
  */
22
22
  children?: ReactNode;
23
23
  }
24
- declare const Cell: (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps) => JSX.Element;
24
+ declare const Cell: (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps) => React.JSX.Element;
25
25
  export default Cell;
@@ -24,5 +24,5 @@ export type HeaderProps = {
24
24
  id?: string;
25
25
  role?: string;
26
26
  };
27
- declare const Header: (props: HeaderProps & import("./internal/with-column-width").CellWithColumnWidthProps) => JSX.Element;
27
+ declare const Header: (props: HeaderProps & import("./internal/with-column-width").CellWithColumnWidthProps) => import("react").JSX.Element;
28
28
  export default Header;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ChevronProps {
3
3
  /**
4
4
  * @default 'Expand'
@@ -17,5 +17,5 @@ interface ChevronProps {
17
17
  /**
18
18
  * Internal chevron component.
19
19
  */
20
- declare const Chevron: ({ isExpanded, ariaControls, collapseLabel, expandLabel, rowId, extendedLabel, onExpandToggle, }: ChevronProps) => JSX.Element;
20
+ declare const Chevron: ({ isExpanded, ariaControls, collapseLabel, expandLabel, rowId, extendedLabel, onExpandToggle, }: ChevronProps) => React.JSX.Element;
21
21
  export default Chevron;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  import { type RowProps } from '../row';
3
3
  export interface ItemsProps<Item> {
4
4
  depth?: number;
@@ -10,5 +10,5 @@ export interface ItemsProps<Item> {
10
10
  }
11
11
  declare function Items<Item extends {
12
12
  id: string;
13
- }>({ depth, items, loadingLabel, render, }: ItemsProps<Item>): JSX.Element;
13
+ }>({ depth, items, loadingLabel, render, }: ItemsProps<Item>): React.JSX.Element;
14
14
  export default Items;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LoaderItemProps {
3
3
  /**
4
4
  * @default 1
@@ -8,5 +8,5 @@ interface LoaderItemProps {
8
8
  isCompleting?: boolean;
9
9
  loadingLabel?: string;
10
10
  }
11
- declare const LoaderItem: ({ depth, loadingLabel, isCompleting, onComplete }: LoaderItemProps) => JSX.Element | null;
11
+ declare const LoaderItem: ({ depth, loadingLabel, isCompleting, onComplete }: LoaderItemProps) => React.JSX.Element | null;
12
12
  export default LoaderItem;
@@ -3,4 +3,4 @@ export interface CellWithColumnWidthProps {
3
3
  width?: string | number;
4
4
  columnIndex?: number;
5
5
  }
6
- export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): (props: T & CellWithColumnWidthProps) => JSX.Element;
6
+ export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): (props: T & CellWithColumnWidthProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  import { type RowProps } from './row';
3
3
  type Content = {
4
4
  title: string;
@@ -28,5 +28,5 @@ export interface RowsProps<Item> {
28
28
  }
29
29
  declare function Rows<T extends {
30
30
  id: string;
31
- }>({ items, render, loadingLabel }: RowsProps<T>): JSX.Element;
31
+ }>({ items, render, loadingLabel }: RowsProps<T>): React.JSX.Element;
32
32
  export default Rows;
@@ -1,4 +1,4 @@
1
- import { type ElementType, type ReactNode } from 'react';
1
+ import React, { type ElementType, type ReactNode } from 'react';
2
2
  import { type ColumnWidth } from './internal/context';
3
3
  /**
4
4
  * This is hard-coded here because our actual <TableTree /> has no typings
@@ -62,5 +62,5 @@ export interface TableTreeProps<Item> {
62
62
  }
63
63
  declare function TableTree<Item extends {
64
64
  id: string;
65
- }>({ children, columns, columnWidths: defaultColumnWidths, headers, shouldExpandOnClick, items, mainColumnForExpandCollapseLabel, label, referencedLabel, }: TableTreeProps<Item>): JSX.Element;
65
+ }>({ children, columns, columnWidths: defaultColumnWidths, headers, shouldExpandOnClick, items, mainColumnForExpandCollapseLabel, label, referencedLabel, }: TableTreeProps<Item>): React.JSX.Element;
66
66
  export default TableTree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "10.0.10",
3
+ "version": "10.1.1",
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,13 +25,13 @@
25
25
  "runReact18": true
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/analytics-next": "^10.2.0",
29
- "@atlaskit/button": "^20.3.0",
30
- "@atlaskit/ds-lib": "^3.3.0",
31
- "@atlaskit/icon": "^23.4.0",
32
- "@atlaskit/spinner": "^17.0.0",
33
- "@atlaskit/theme": "^14.0.0",
34
- "@atlaskit/tokens": "^3.2.0",
28
+ "@atlaskit/analytics-next": "^10.3.0",
29
+ "@atlaskit/button": "^20.5.0",
30
+ "@atlaskit/ds-lib": "^3.5.0",
31
+ "@atlaskit/icon": "^23.7.0",
32
+ "@atlaskit/spinner": "^17.1.0",
33
+ "@atlaskit/theme": "^15.0.0",
34
+ "@atlaskit/tokens": "^3.3.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/react": "^11.7.1",
37
37
  "lodash": "^4.17.21"
@@ -45,13 +45,13 @@
45
45
  "@af/visual-regression": "*",
46
46
  "@atlaskit/ssr": "*",
47
47
  "@atlaskit/visual-regression": "*",
48
- "@atlaskit/visually-hidden": "^1.5.0",
48
+ "@atlaskit/visually-hidden": "^1.6.0",
49
49
  "@emotion/styled": "^11.0.0",
50
- "@testing-library/react": "^12.1.5",
50
+ "@testing-library/react": "^13.4.0",
51
51
  "@testing-library/user-event": "^14.4.3",
52
52
  "@types/react-redux": "^5.0.0",
53
53
  "exenv": "^1.2.2",
54
- "react-dom": "^16.8.0",
54
+ "react-dom": "^18.2.0",
55
55
  "react-redux": "^5.1.2",
56
56
  "redux": "^3.7.2",
57
57
  "redux-thunk": "^2.3.0"