@atlaskit/table 0.10.0 → 0.11.0

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
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 0.10.0
4
22
 
5
23
  ### Minor Changes
@@ -8,5 +8,5 @@ type ExpandableRowContentProps = {
8
8
  * Contains expandable content. Uses a context provider to allow children
9
9
  * to identify if they are expandable content.
10
10
  */
11
- declare const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => JSX.Element;
11
+ declare const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => React.JSX.Element;
12
12
  export default ExpandableRowContent;
@@ -15,5 +15,5 @@ type ExpandableRowProps = {
15
15
  *
16
16
  * A context provider for `<Row>` to support expandable content.
17
17
  */
18
- declare const ExpandableRow: ({ children, isExpanded, isDefaultExpanded }: ExpandableRowProps) => JSX.Element;
18
+ declare const ExpandableRow: ({ children, isExpanded, isDefaultExpanded }: ExpandableRowProps) => React.JSX.Element;
19
19
  export default ExpandableRow;
@@ -10,6 +10,6 @@ declare const ExpandContentContext: React.Context<ExpandContentContext>;
10
10
  */
11
11
  export declare const ExpandContentContextProvider: ({ children }: {
12
12
  children: React.ReactNode;
13
- }) => JSX.Element;
13
+ }) => React.JSX.Element;
14
14
  declare const useExpandContent: () => ExpandContentContext;
15
15
  export default useExpandContent;
@@ -12,6 +12,6 @@ export declare const ExpandContextProvider: ({ children, isExpanded: isExpandedP
12
12
  children: React.ReactNode;
13
13
  isExpanded?: boolean | undefined;
14
14
  isDefaultExpanded?: boolean | undefined;
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;
16
16
  declare const useExpand: () => ExpandContextState;
17
17
  export default useExpand;
@@ -18,5 +18,5 @@ export type TableContext<T, K extends keyof T = keyof T> = {
18
18
  export declare function TableProvider<T extends object>({ children, state, }: {
19
19
  children: React.ReactNode;
20
20
  state: TableContext<T>;
21
- }): JSX.Element;
21
+ }): React.JSX.Element;
22
22
  export declare const useTable: <TableItem extends object>() => TableContext<TableItem, keyof TableItem>;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type ExpandableCellProps = {
3
3
  as: 'td' | 'th';
4
4
  children?: ReactNode;
@@ -8,5 +8,5 @@ type ExpandableCellProps = {
8
8
  *
9
9
  * An expandable cell primitive designed to be used for light weight composition.
10
10
  */
11
- export declare const ExpandableCell: ({ children, as }: ExpandableCellProps) => JSX.Element;
11
+ export declare const ExpandableCell: ({ children, as }: ExpandableCellProps) => React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type SelectableCellProps = {
3
3
  as: 'td' | 'th';
4
4
  children?: ReactNode;
@@ -8,5 +8,5 @@ type SelectableCellProps = {
8
8
  *
9
9
  * A selectable cell primitive designed to be used for light weight composition.
10
10
  */
11
- export declare const SelectableCell: ({ children, as }: SelectableCellProps) => JSX.Element;
11
+ export declare const SelectableCell: ({ children, as }: SelectableCellProps) => React.JSX.Element;
12
12
  export {};
@@ -8,5 +8,5 @@ type ExpandableRowContentProps = {
8
8
  * Contains expandable content. Uses a context provider to allow children
9
9
  * to identify if they are expandable content.
10
10
  */
11
- declare const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => JSX.Element;
11
+ declare const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => React.JSX.Element;
12
12
  export default ExpandableRowContent;
@@ -15,5 +15,5 @@ type ExpandableRowProps = {
15
15
  *
16
16
  * A context provider for `<Row>` to support expandable content.
17
17
  */
18
- declare const ExpandableRow: ({ children, isExpanded, isDefaultExpanded }: ExpandableRowProps) => JSX.Element;
18
+ declare const ExpandableRow: ({ children, isExpanded, isDefaultExpanded }: ExpandableRowProps) => React.JSX.Element;
19
19
  export default ExpandableRow;
@@ -10,6 +10,6 @@ declare const ExpandContentContext: React.Context<ExpandContentContext>;
10
10
  */
11
11
  export declare const ExpandContentContextProvider: ({ children }: {
12
12
  children: React.ReactNode;
13
- }) => JSX.Element;
13
+ }) => React.JSX.Element;
14
14
  declare const useExpandContent: () => ExpandContentContext;
15
15
  export default useExpandContent;
@@ -12,6 +12,6 @@ export declare const ExpandContextProvider: ({ children, isExpanded: isExpandedP
12
12
  children: React.ReactNode;
13
13
  isExpanded?: boolean | undefined;
14
14
  isDefaultExpanded?: boolean | undefined;
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;
16
16
  declare const useExpand: () => ExpandContextState;
17
17
  export default useExpand;
@@ -18,5 +18,5 @@ export type TableContext<T, K extends keyof T = keyof T> = {
18
18
  export declare function TableProvider<T extends object>({ children, state, }: {
19
19
  children: React.ReactNode;
20
20
  state: TableContext<T>;
21
- }): JSX.Element;
21
+ }): React.JSX.Element;
22
22
  export declare const useTable: <TableItem extends object>() => TableContext<TableItem, keyof TableItem>;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type ExpandableCellProps = {
3
3
  as: 'td' | 'th';
4
4
  children?: ReactNode;
@@ -8,5 +8,5 @@ type ExpandableCellProps = {
8
8
  *
9
9
  * An expandable cell primitive designed to be used for light weight composition.
10
10
  */
11
- export declare const ExpandableCell: ({ children, as }: ExpandableCellProps) => JSX.Element;
11
+ export declare const ExpandableCell: ({ children, as }: ExpandableCellProps) => React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type SelectableCellProps = {
3
3
  as: 'td' | 'th';
4
4
  children?: ReactNode;
@@ -8,5 +8,5 @@ type SelectableCellProps = {
8
8
  *
9
9
  * A selectable cell primitive designed to be used for light weight composition.
10
10
  */
11
- export declare const SelectableCell: ({ children, as }: SelectableCellProps) => JSX.Element;
11
+ export declare const SelectableCell: ({ children, as }: SelectableCellProps) => React.JSX.Element;
12
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,21 +41,21 @@
41
41
  "./primitives": "./src/ui/index.tsx"
42
42
  },
43
43
  "dependencies": {
44
- "@atlaskit/button": "^20.4.0",
45
- "@atlaskit/checkbox": "^15.3.0",
46
- "@atlaskit/ds-lib": "^3.5.0",
47
- "@atlaskit/focus-ring": "^2.1.0",
48
- "@atlaskit/icon": "^23.5.0",
49
- "@atlaskit/primitives": "^13.4.0",
50
- "@atlaskit/tokens": "^3.3.0",
51
- "@atlaskit/tooltip": "^19.1.0",
52
- "@atlaskit/visually-hidden": "^1.6.0",
44
+ "@atlaskit/button": "^21.0.0",
45
+ "@atlaskit/checkbox": "^16.0.0",
46
+ "@atlaskit/ds-lib": "^4.0.0",
47
+ "@atlaskit/focus-ring": "^3.0.0",
48
+ "@atlaskit/icon": "^24.0.0",
49
+ "@atlaskit/primitives": "^14.0.0",
50
+ "@atlaskit/tokens": "^4.0.0",
51
+ "@atlaskit/tooltip": "^20.0.0",
52
+ "@atlaskit/visually-hidden": "^2.0.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
55
55
  "tiny-invariant": "^1.2.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
58
+ "react": "^18.2.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@af/accessibility-testing": "*",