@atlaskit/table 0.10.0 → 0.11.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,29 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
14
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
15
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
16
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
17
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
18
+ React 17 may come via non-major semver releases.
19
+
20
+ Please refer this community post for more details:
21
+ 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
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 0.10.0
4
28
 
5
29
  ### 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.1",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,8 @@
14
14
  "name": "Table",
15
15
  "category": "Text and data display",
16
16
  "status": {
17
- "type": "alpha"
17
+ "type": "alpha",
18
+ "description": "This package is an experiment, and is currently deprioritised. It is not recommended for use in production, and we are not providing support for it at this time. Consider using [@atlaskit/dynamic-table](/components/dynamic-table) instead."
18
19
  }
19
20
  },
20
21
  "runReact18": true
@@ -41,21 +42,21 @@
41
42
  "./primitives": "./src/ui/index.tsx"
42
43
  },
43
44
  "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",
45
+ "@atlaskit/button": "^21.1.0",
46
+ "@atlaskit/checkbox": "^17.0.0",
47
+ "@atlaskit/ds-lib": "^4.0.0",
48
+ "@atlaskit/focus-ring": "^3.0.0",
49
+ "@atlaskit/icon": "^24.1.0",
50
+ "@atlaskit/primitives": "^14.1.0",
51
+ "@atlaskit/tokens": "^4.2.0",
52
+ "@atlaskit/tooltip": "^20.0.0",
53
+ "@atlaskit/visually-hidden": "^2.0.0",
53
54
  "@babel/runtime": "^7.0.0",
54
55
  "@emotion/react": "^11.7.1",
55
56
  "tiny-invariant": "^1.2.0"
56
57
  },
57
58
  "peerDependencies": {
58
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
59
+ "react": "^18.2.0"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@af/accessibility-testing": "*",