@atlaskit/table-tree 9.9.0 → 9.10.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 +667 -657
- package/README.md +2 -1
- package/dist/cjs/components/cell.js +3 -1
- package/dist/cjs/components/header.js +3 -1
- package/dist/cjs/components/headers.js +4 -2
- package/dist/cjs/components/internal/common-cell.js +6 -0
- package/dist/cjs/components/internal/item.js +3 -1
- package/dist/cjs/components/internal/overflow-container.js +7 -5
- package/dist/cjs/components/internal/styled.js +8 -6
- package/dist/cjs/components/row.js +4 -2
- package/dist/es2019/components/cell.js +3 -1
- package/dist/es2019/components/header.js +5 -0
- package/dist/es2019/components/headers.js +6 -1
- package/dist/es2019/components/internal/common-cell.js +6 -0
- package/dist/es2019/components/internal/item.js +5 -0
- package/dist/es2019/components/internal/overflow-container.js +6 -3
- package/dist/es2019/components/internal/styled.js +6 -3
- package/dist/es2019/components/row.js +6 -1
- package/dist/esm/components/cell.js +3 -1
- package/dist/esm/components/header.js +5 -0
- package/dist/esm/components/headers.js +6 -1
- package/dist/esm/components/internal/common-cell.js +6 -0
- package/dist/esm/components/internal/item.js +5 -0
- package/dist/esm/components/internal/overflow-container.js +7 -5
- package/dist/esm/components/internal/styled.js +8 -6
- package/dist/esm/components/row.js +6 -1
- package/dist/types/components/cell.d.ts +1 -1
- package/dist/types/components/headers.d.ts +3 -0
- package/dist/types/components/internal/common-cell.d.ts +3 -0
- package/dist/types/components/internal/item.d.ts +3 -0
- package/dist/types/components/internal/overflow-container.d.ts +3 -0
- package/dist/types/components/internal/styled.d.ts +3 -0
- package/dist/types/components/row.d.ts +3 -0
- package/dist/types-ts4.5/components/cell.d.ts +1 -1
- package/dist/types-ts4.5/components/headers.d.ts +3 -0
- package/dist/types-ts4.5/components/internal/common-cell.d.ts +3 -0
- package/dist/types-ts4.5/components/internal/item.d.ts +3 -0
- package/dist/types-ts4.5/components/internal/overflow-container.d.ts +3 -0
- package/dist/types-ts4.5/components/internal/styled.d.ts +3 -0
- package/dist/types-ts4.5/components/row.d.ts +3 -0
- package/extract-react-types/table-tree-cell.tsx +2 -2
- package/extract-react-types/table-tree-header.tsx +5 -5
- package/extract-react-types/table-tree-row.tsx +64 -64
- package/extract-react-types/table-tree-rows.tsx +17 -17
- package/extract-react-types/table-tree.tsx +46 -47
- package/package.json +97 -99
- package/report.api.md +49 -48
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/table-tree"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -29,19 +30,19 @@ export const Cell: (props: CellProps & CellWithColumnWidthProps) => JSX.Element;
|
|
|
29
30
|
|
|
30
31
|
// @public (undocumented)
|
|
31
32
|
export interface CellProps {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
indentLevel?: number;
|
|
36
|
+
singleLine?: boolean;
|
|
37
|
+
width?: number | string;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
// @public (undocumented)
|
|
40
41
|
export interface CellWithColumnWidthProps {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
// (undocumented)
|
|
43
|
+
columnIndex?: number;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
width?: number | string;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
// @public (undocumented)
|
|
@@ -52,73 +53,73 @@ export const Header: (props: any) => JSX.Element;
|
|
|
52
53
|
|
|
53
54
|
// @public (undocumented)
|
|
54
55
|
class Headers_2 extends Component<any> {
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
// (undocumented)
|
|
57
|
+
render(): jsx.JSX.Element;
|
|
57
58
|
}
|
|
58
59
|
export { Headers_2 as Headers };
|
|
59
60
|
|
|
60
61
|
// @public (undocumented)
|
|
61
62
|
export const Row: React_2.ForwardRefExoticComponent<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
Pick<
|
|
64
|
+
Pick<Omit<any, keyof WithAnalyticsEventsProps>, number | string | symbol> &
|
|
65
|
+
React_2.RefAttributes<any> &
|
|
66
|
+
WithContextProps,
|
|
67
|
+
number | string | symbol
|
|
68
|
+
> &
|
|
69
|
+
React_2.RefAttributes<any>
|
|
69
70
|
>;
|
|
70
71
|
|
|
71
72
|
// @public (undocumented)
|
|
72
73
|
export class Rows<T> extends Component<RowsProps<T>> {
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
// (undocumented)
|
|
75
|
+
render(): JSX.Element;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
// @public (undocumented)
|
|
78
79
|
export interface RowsProps<T> {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
// (undocumented)
|
|
81
|
+
items?: WithChildren<T>[];
|
|
82
|
+
// (undocumented)
|
|
83
|
+
render: (args: WithChildren<T>) => React_2.ReactNode;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
// @public (undocumented)
|
|
86
87
|
interface State {
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
// (undocumented)
|
|
89
|
+
columnWidths: ColumnWidth[];
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
// @public (undocumented)
|
|
92
93
|
class TableTree extends Component<any, State> {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
// (undocumented)
|
|
95
|
+
componentDidMount(): void;
|
|
96
|
+
// (undocumented)
|
|
97
|
+
getColumnWidth: (columnIndex: any) => ColumnWidth | null;
|
|
98
|
+
// (undocumented)
|
|
99
|
+
render(): JSX.Element;
|
|
100
|
+
// (undocumented)
|
|
101
|
+
setColumnWidth: (columnIndex: number, width: ColumnWidth) => void;
|
|
102
|
+
// (undocumented)
|
|
103
|
+
state: State;
|
|
103
104
|
}
|
|
104
105
|
export default TableTree;
|
|
105
106
|
|
|
106
107
|
// @public
|
|
107
108
|
export class TableTreeDataHelper<T extends any = any> {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
constructor({ key }?: { key?: keyof T | undefined });
|
|
110
|
+
// (undocumented)
|
|
111
|
+
appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
112
|
+
// (undocumented)
|
|
113
|
+
key: keyof T;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
keysCache: any;
|
|
116
|
+
// (undocumented)
|
|
117
|
+
updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
// @public (undocumented)
|
|
120
121
|
type WithChildren<T> = T & {
|
|
121
|
-
|
|
122
|
+
children?: T[] | null;
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
// (No @packageDocumentation comment for this package)
|
|
@@ -132,7 +133,7 @@ type WithChildren<T> = T & {
|
|
|
132
133
|
|
|
133
134
|
```json
|
|
134
135
|
{
|
|
135
|
-
|
|
136
|
+
"react": "^16.8.0"
|
|
136
137
|
}
|
|
137
138
|
```
|
|
138
139
|
|