@atlaskit/table-tree 9.2.2 → 9.2.4

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,19 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 9.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb8f8e76d25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb8f8e76d25) - Update types for react-select and @atlaskit/select upgrade
8
+ Update commerce-ui entrypoints that caused a pipeline issue.
9
+ - Updated dependencies
10
+
11
+ ## 9.2.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 9.2.2
4
18
 
5
19
  ### Patch Changes
@@ -44,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
44
44
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
45
 
46
46
  var packageName = "@atlaskit/table-tree";
47
- var packageVersion = "9.2.2";
47
+ var packageVersion = "9.2.4";
48
48
 
49
49
  var Row = /*#__PURE__*/function (_Component) {
50
50
  (0, _inherits2.default)(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -8,7 +8,7 @@ import toItemId from '../utils/to-item-id';
8
8
  import Chevron from './internal/chevron';
9
9
  import { TreeRowContainer } from './internal/styled';
10
10
  const packageName = "@atlaskit/table-tree";
11
- const packageVersion = "9.2.2";
11
+ const packageVersion = "9.2.4";
12
12
 
13
13
  class Row extends Component {
14
14
  constructor(...args) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -18,7 +18,7 @@ import toItemId from '../utils/to-item-id';
18
18
  import Chevron from './internal/chevron';
19
19
  import { TreeRowContainer } from './internal/styled';
20
20
  var packageName = "@atlaskit/table-tree";
21
- var packageVersion = "9.2.2";
21
+ var packageVersion = "9.2.4";
22
22
 
23
23
  var Row = /*#__PURE__*/function (_Component) {
24
24
  _inherits(Row, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
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/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*",
19
- "dist/types-ts4.0/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "homepage": "https://atlassian.design/components/table-tree/",
@@ -37,11 +29,11 @@
37
29
  },
38
30
  "dependencies": {
39
31
  "@atlaskit/analytics-next": "^8.2.0",
40
- "@atlaskit/button": "^16.3.0",
32
+ "@atlaskit/button": "^16.5.0",
41
33
  "@atlaskit/icon": "^21.11.0",
42
- "@atlaskit/spinner": "^15.0.0",
34
+ "@atlaskit/spinner": "^15.3.0",
43
35
  "@atlaskit/theme": "^12.2.0",
44
- "@atlaskit/tokens": "^0.10.0",
36
+ "@atlaskit/tokens": "^0.11.0",
45
37
  "@babel/runtime": "^7.0.0",
46
38
  "@emotion/react": "^11.7.1",
47
39
  "lodash": "^4.17.21",
@@ -55,7 +47,7 @@
55
47
  "@atlaskit/ds-lib": "^2.0.1",
56
48
  "@atlaskit/empty-state": "^7.4.0",
57
49
  "@atlaskit/section-message": "^6.3.0",
58
- "@atlaskit/select": "^15.7.0",
50
+ "@atlaskit/select": "^16.0.0",
59
51
  "@atlaskit/ssr": "*",
60
52
  "@atlaskit/visual-regression": "*",
61
53
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
package/report.api.md CHANGED
@@ -1,8 +1,17 @@
1
- ## API Report File for "@atlaskit/table-tree".
1
+ <!-- API Report Version: 2.2 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/table-tree"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
6
15
 
7
16
  ```ts
8
17
  /// <reference types="react" />
@@ -19,22 +28,23 @@ import { Validator } from 'prop-types';
19
28
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
20
29
  import { WithContextProps } from '@atlaskit/analytics-next';
21
30
 
22
- export declare const Cell: {
31
+ // @public (undocumented)
32
+ export const Cell: {
23
33
  new (props: Readonly<CellProps & CellWithColumnWidthProps>): {
24
34
  UNSAFE_componentWillMount(): void;
25
- setColumnWidth(width?: string | number | undefined): void;
35
+ setColumnWidth(width?: number | string | undefined): void;
26
36
  UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
27
37
  render(): JSX.Element;
28
38
  context: any;
29
39
  setState<K extends never>(
30
40
  state:
31
- | {}
32
41
  | ((
33
42
  prevState: Readonly<{}>,
34
43
  props: Readonly<CellProps & CellWithColumnWidthProps>,
35
- ) => {} | Pick<{}, K> | null)
44
+ ) => Pick<{}, K> | null | {})
36
45
  | Pick<{}, K>
37
- | null,
46
+ | null
47
+ | {},
38
48
  callback?: (() => void) | undefined,
39
49
  ): void;
40
50
  forceUpdate(callBack?: (() => void) | undefined): void;
@@ -81,19 +91,19 @@ export declare const Cell: {
81
91
  };
82
92
  new (props: CellProps & CellWithColumnWidthProps, context?: any): {
83
93
  UNSAFE_componentWillMount(): void;
84
- setColumnWidth(width?: string | number | undefined): void;
94
+ setColumnWidth(width?: number | string | undefined): void;
85
95
  UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
86
96
  render(): JSX.Element;
87
97
  context: any;
88
98
  setState<K extends never>(
89
99
  state:
90
- | {}
91
100
  | ((
92
101
  prevState: Readonly<{}>,
93
102
  props: Readonly<CellProps & CellWithColumnWidthProps>,
94
- ) => {} | Pick<{}, K> | null)
103
+ ) => Pick<{}, K> | null | {})
95
104
  | Pick<{}, K>
96
- | null,
105
+ | null
106
+ | {},
97
107
  callback?: (() => void) | undefined,
98
108
  ): void;
99
109
  forceUpdate(callBack?: (() => void) | undefined): void;
@@ -144,46 +154,39 @@ export declare const Cell: {
144
154
  contextType?: React_2.Context<any> | undefined;
145
155
  };
146
156
 
147
- export declare interface CellProps {
148
- /**
149
- * Whether the cell contents should wrap or display on a single line and be concatenated.
150
- */
151
- singleLine?: boolean;
152
- /**
153
- * Indent level for the cell. Each indent level adds 25px to the left padding.
154
- */
157
+ // @public (undocumented)
158
+ export interface CellProps {
159
+ className?: string;
155
160
  indentLevel?: number;
156
- /**
157
- * Width of the header item. Takes a string or a number representing the width in pixels.
158
- */
161
+ singleLine?: boolean;
159
162
  width?: number | string;
160
- /**
161
- * Class name to apply to cell.
162
- */
163
- className?: string;
164
163
  }
165
164
 
166
- export declare interface CellWithColumnWidthProps {
167
- width?: number | string;
165
+ // @public (undocumented)
166
+ export interface CellWithColumnWidthProps {
167
+ // (undocumented)
168
168
  columnIndex?: number;
169
+ // (undocumented)
170
+ width?: number | string;
169
171
  }
170
172
 
171
- export declare const Header: {
173
+ // @public (undocumented)
174
+ export const Header: {
172
175
  new (props: Readonly<any>): {
173
176
  UNSAFE_componentWillMount(): void;
174
- setColumnWidth(width?: string | number | undefined): void;
177
+ setColumnWidth(width?: number | string | undefined): void;
175
178
  UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
176
179
  render(): JSX.Element;
177
180
  context: any;
178
181
  setState<K extends never>(
179
182
  state:
180
- | {}
181
183
  | ((
182
184
  prevState: Readonly<{}>,
183
185
  props: Readonly<any>,
184
- ) => {} | Pick<{}, K> | null)
186
+ ) => Pick<{}, K> | null | {})
185
187
  | Pick<{}, K>
186
- | null,
188
+ | null
189
+ | {},
187
190
  callback?: (() => void) | undefined,
188
191
  ): void;
189
192
  forceUpdate(callBack?: (() => void) | undefined): void;
@@ -230,19 +233,19 @@ export declare const Header: {
230
233
  };
231
234
  new (props: any, context?: any): {
232
235
  UNSAFE_componentWillMount(): void;
233
- setColumnWidth(width?: string | number | undefined): void;
236
+ setColumnWidth(width?: number | string | undefined): void;
234
237
  UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
235
238
  render(): JSX.Element;
236
239
  context: any;
237
240
  setState<K extends never>(
238
241
  state:
239
- | {}
240
242
  | ((
241
243
  prevState: Readonly<{}>,
242
244
  props: Readonly<any>,
243
- ) => {} | Pick<{}, K> | null)
245
+ ) => Pick<{}, K> | null | {})
244
246
  | Pick<{}, K>
245
- | null,
247
+ | null
248
+ | {},
246
249
  callback?: (() => void) | undefined,
247
250
  ): void;
248
251
  forceUpdate(callBack?: (() => void) | undefined): void;
@@ -293,80 +296,90 @@ export declare const Header: {
293
296
  contextType?: Context<any> | undefined;
294
297
  };
295
298
 
296
- declare class Headers_2 extends Component<any> {
299
+ // @public (undocumented)
300
+ class Headers_2 extends Component<any> {
301
+ // (undocumented)
297
302
  render(): jsx.JSX.Element;
298
303
  }
299
304
  export { Headers_2 as Headers };
300
305
 
301
- export declare const Row: React_2.ForwardRefExoticComponent<
306
+ // @public (undocumented)
307
+ export const Row: React_2.ForwardRefExoticComponent<
302
308
  Pick<
303
- Pick<Omit<any, keyof WithAnalyticsEventsProps>, string | number | symbol> &
309
+ Pick<Omit<any, keyof WithAnalyticsEventsProps>, number | string | symbol> &
304
310
  React_2.RefAttributes<any> &
305
311
  WithContextProps,
306
- string | number | symbol
312
+ number | string | symbol
307
313
  > &
308
314
  React_2.RefAttributes<any>
309
315
  >;
310
316
 
311
- export declare class Rows<T> extends Component<RowsProps<T>> {
317
+ // @public (undocumented)
318
+ export class Rows<T> extends Component<RowsProps<T>> {
319
+ // (undocumented)
312
320
  render(): JSX.Element;
313
321
  }
314
322
 
315
- export declare interface RowsProps<T> {
323
+ // @public (undocumented)
324
+ export interface RowsProps<T> {
325
+ // (undocumented)
316
326
  items?: WithChildren<T>[];
327
+ // (undocumented)
317
328
  render: (args: WithChildren<T>) => React_2.ReactNode;
318
329
  }
319
330
 
320
- declare interface State {
331
+ // @public (undocumented)
332
+ interface State {
333
+ // (undocumented)
321
334
  columnWidths: number[];
322
335
  }
323
336
 
324
- declare class TableTree extends Component<any, State> {
337
+ // @public (undocumented)
338
+ class TableTree extends Component<any, State> {
339
+ // (undocumented)
325
340
  static childContextTypes: {
326
341
  tableTree: PropTypes.Validator<object>;
327
342
  };
328
- state: State;
343
+ // (undocumented)
329
344
  componentDidMount(): void;
330
- setColumnWidth: (columnIndex: number, width: number) => void;
331
- getColumnWidth: (columnIndex: any) => number | null;
345
+ // (undocumented)
332
346
  getChildContext(): {
333
347
  tableTree: {
334
348
  columnWidths: number[];
335
349
  setColumnWidth: (columnIndex: number, width: number) => void;
336
- getColumnWidth: (columnIndex: any) => number | null;
350
+ getColumnWidth: (columnIndex: any) => null | number;
337
351
  };
338
352
  };
353
+ // (undocumented)
354
+ getColumnWidth: (columnIndex: any) => null | number;
355
+ // (undocumented)
339
356
  render(): JSX.Element;
357
+ // (undocumented)
358
+ setColumnWidth: (columnIndex: number, width: number) => void;
359
+ // (undocumented)
360
+ state: State;
340
361
  }
341
362
  export default TableTree;
342
363
 
343
- /**
344
- * This helper class will create a cache of all the id's in the items object and
345
- * path to the object.
346
- * Example:
347
- * [{
348
- * // item 1,
349
- * id: 1,
350
- * children:[{
351
- * // item 1.1,
352
- * id: '2'
353
- * }]
354
- * }]
355
- *
356
- * Cache will look something like:
357
- * {1: 0, 2: '0.children[0]'}
358
- */
359
- export declare class TableTreeDataHelper<T extends any = any> {
364
+ // @public
365
+ export class TableTreeDataHelper<T extends any = any> {
366
+ constructor({ key }?: { key?: keyof T | undefined });
367
+ // (undocumented)
368
+ appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
369
+ // (undocumented)
360
370
  key: keyof T;
371
+ // (undocumented)
361
372
  keysCache: any;
362
- constructor({ key }?: { key?: keyof T | undefined });
373
+ // (undocumented)
363
374
  updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
364
- appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
365
375
  }
366
376
 
367
- declare type WithChildren<T> = T & {
377
+ // @public (undocumented)
378
+ type WithChildren<T> = T & {
368
379
  children?: T[] | null;
369
380
  };
370
381
 
371
- export {};
382
+ // (No @packageDocumentation comment for this package)
372
383
  ```
384
+
385
+ <!--SECTION END: Main Entry Types-->
@@ -1,78 +0,0 @@
1
- import React from 'react';
2
- export interface CellProps {
3
- /**
4
- * Whether the cell contents should wrap or display on a single line and be concatenated.
5
- */
6
- singleLine?: boolean;
7
- /**
8
- * Indent level for the cell. Each indent level adds 25px to the left padding.
9
- */
10
- indentLevel?: number;
11
- /**
12
- * Width of the header item. Takes a string or a number representing the width in pixels.
13
- */
14
- width?: number | string;
15
- /**
16
- * Class name to apply to cell.
17
- */
18
- className?: string;
19
- }
20
- declare const _default: {
21
- new (props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>): {
22
- UNSAFE_componentWillMount(): void;
23
- setColumnWidth(width?: string | number | undefined): void;
24
- UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
25
- render(): JSX.Element;
26
- context: any;
27
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
28
- forceUpdate(callBack?: (() => void) | undefined): void;
29
- readonly props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps> & Readonly<{
30
- children?: React.ReactNode;
31
- }>;
32
- state: Readonly<{}>;
33
- refs: {
34
- [key: string]: React.ReactInstance;
35
- };
36
- componentDidMount?(): void;
37
- shouldComponentUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
38
- componentWillUnmount?(): void;
39
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
40
- getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
41
- componentDidUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
42
- componentWillMount?(): void;
43
- componentWillReceiveProps?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextContext: any): void;
44
- componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
45
- UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
46
- };
47
- new (props: CellProps & import("./internal/with-column-width").CellWithColumnWidthProps, context?: any): {
48
- UNSAFE_componentWillMount(): void;
49
- setColumnWidth(width?: string | number | undefined): void;
50
- UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
51
- render(): JSX.Element;
52
- context: any;
53
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
54
- forceUpdate(callBack?: (() => void) | undefined): void;
55
- readonly props: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps> & Readonly<{
56
- children?: React.ReactNode;
57
- }>;
58
- state: Readonly<{}>;
59
- refs: {
60
- [key: string]: React.ReactInstance;
61
- };
62
- componentDidMount?(): void;
63
- shouldComponentUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
64
- componentWillUnmount?(): void;
65
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
66
- getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
67
- componentDidUpdate?(prevProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
68
- componentWillMount?(): void;
69
- componentWillReceiveProps?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextContext: any): void;
70
- componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
71
- UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps & import("./internal/with-column-width").CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
72
- };
73
- contextTypes: {
74
- tableTree: import("prop-types").Validator<object>;
75
- };
76
- contextType?: React.Context<any> | undefined;
77
- };
78
- export default _default;
@@ -1,60 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- new (props: Readonly<any>): {
4
- UNSAFE_componentWillMount(): void;
5
- setColumnWidth(width?: string | number | undefined): void;
6
- UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
7
- render(): JSX.Element;
8
- context: any;
9
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
10
- forceUpdate(callBack?: (() => void) | undefined): void;
11
- readonly props: Readonly<any> & Readonly<{
12
- children?: import("react").ReactNode;
13
- }>;
14
- state: Readonly<{}>;
15
- refs: {
16
- [key: string]: import("react").ReactInstance;
17
- };
18
- componentDidMount?(): void;
19
- shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): boolean;
20
- componentWillUnmount?(): void;
21
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
22
- getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>): any;
23
- componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>, snapshot?: any): void;
24
- componentWillMount?(): void;
25
- componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
26
- componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
27
- UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
28
- };
29
- new (props: any, context?: any): {
30
- UNSAFE_componentWillMount(): void;
31
- setColumnWidth(width?: string | number | undefined): void;
32
- UNSAFE_componentWillReceiveProps(nextProps: import("./internal/with-column-width").CellWithColumnWidthProps): void;
33
- render(): JSX.Element;
34
- context: any;
35
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
- forceUpdate(callBack?: (() => void) | undefined): void;
37
- readonly props: Readonly<any> & Readonly<{
38
- children?: import("react").ReactNode;
39
- }>;
40
- state: Readonly<{}>;
41
- refs: {
42
- [key: string]: import("react").ReactInstance;
43
- };
44
- componentDidMount?(): void;
45
- shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): boolean;
46
- componentWillUnmount?(): void;
47
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
48
- getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>): any;
49
- componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<{}>, snapshot?: any): void;
50
- componentWillMount?(): void;
51
- componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
52
- componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
53
- UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<{}>, nextContext: any): void;
54
- };
55
- contextTypes: {
56
- tableTree: import("prop-types").Validator<object>;
57
- };
58
- contextType?: import("react").Context<any> | undefined;
59
- };
60
- export default _default;
@@ -1,6 +0,0 @@
1
- /** @jsx jsx */
2
- import { Component } from 'react';
3
- import { jsx } from '@emotion/react';
4
- export default class Headers extends Component<any> {
5
- render(): jsx.JSX.Element;
6
- }
@@ -1,17 +0,0 @@
1
- import { Component } from 'react';
2
- interface ChevronProps {
3
- expandLabel: string;
4
- collapseLabel: string;
5
- isExpanded?: boolean;
6
- ariaControls?: string;
7
- onExpandToggle?: Function;
8
- }
9
- export default class Chevron extends Component<ChevronProps> {
10
- static defaultProps: {
11
- expandLabel: string;
12
- collapseLabel: string;
13
- };
14
- handleClick: () => void;
15
- render(): JSX.Element;
16
- }
17
- export {};
@@ -1,11 +0,0 @@
1
- /** @jsx jsx */
2
- import { FC, HTMLAttributes } from 'react';
3
- interface CommonCellProps {
4
- indent?: string;
5
- width?: string | number;
6
- }
7
- /**
8
- * __Common cell__
9
- */
10
- declare const CommonCell: FC<HTMLAttributes<HTMLDivElement> & CommonCellProps>;
11
- export default CommonCell;
@@ -1,13 +0,0 @@
1
- /** @jsx jsx */
2
- import { Component } from 'react';
3
- import { jsx } from '@emotion/react';
4
- export default class Item extends Component<any> {
5
- static defaultProps: {
6
- depth: number;
7
- };
8
- render(): import("react").FunctionComponentElement<{
9
- depth: any;
10
- data: any;
11
- renderChildren: () => jsx.JSX.Element;
12
- }> | null;
13
- }
@@ -1,24 +0,0 @@
1
- import React, { Component } from 'react';
2
- interface ItemsProps<Item = any> {
3
- parentData?: any;
4
- depth: number;
5
- items?: Item[];
6
- render: (arg: Item) => React.ReactNode;
7
- }
8
- interface State {
9
- isLoaderShown: boolean;
10
- }
11
- export default class Items<Item> extends Component<ItemsProps<Item>, State> {
12
- static defaultProps: {
13
- depth: number;
14
- };
15
- state: State;
16
- static getDerivedStateFromProps(nextProps: any, prevState: any): {
17
- isLoaderShown: boolean;
18
- } | null;
19
- handleLoaderComplete: () => void;
20
- renderLoader(): JSX.Element;
21
- renderItems(): JSX.Element[] | undefined;
22
- render(): JSX.Element;
23
- }
24
- export {};
@@ -1,20 +0,0 @@
1
- import { Component } from 'react';
2
- interface LoaderItemProps {
3
- depth: number;
4
- onComplete: (...args: any[]) => void;
5
- isCompleting?: boolean;
6
- }
7
- export default class LoaderItem extends Component<LoaderItemProps, any> {
8
- static defaultProps: {
9
- depth: number;
10
- };
11
- state: {
12
- phase: string;
13
- };
14
- static getDerivedStateFromProps(nextProps: any, prevState: any): {
15
- phase: string;
16
- } | null;
17
- componentDidUpdate(prevProps: any, prevState: any): void;
18
- render(): JSX.Element | null;
19
- }
20
- export {};
@@ -1,10 +0,0 @@
1
- /** @jsx jsx */
2
- import { FC, HTMLAttributes } from 'react';
3
- interface OverflowContainerProps {
4
- isSingleLine?: boolean;
5
- }
6
- /**
7
- * __Overflow container__
8
- */
9
- declare const OverflowContainer: FC<OverflowContainerProps & HTMLAttributes<HTMLSpanElement>>;
10
- export default OverflowContainer;
@@ -1,25 +0,0 @@
1
- /** @jsx jsx */
2
- import { FC, HTMLAttributes } from 'react';
3
- export declare const iconColor: "var(--ds-text)";
4
- /**
5
- * __Tree row container__
6
- */
7
- export declare const TreeRowContainer: FC<HTMLAttributes<HTMLDivElement>>;
8
- /**
9
- * __Chevron container__
10
- */
11
- export declare const ChevronContainer: FC<HTMLAttributes<HTMLSpanElement>>;
12
- /**
13
- * __Chevron icon container__
14
- *
15
- * A chevron icon container.
16
- */
17
- export declare const ChevronIconContainer: FC<HTMLAttributes<HTMLSpanElement>>;
18
- /**
19
- * __Loader item container__
20
- *
21
- * A loader item container.
22
- */
23
- export declare const LoaderItemContainer: FC<{
24
- isRoot?: boolean;
25
- }>;
@@ -1,64 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- export interface CellWithColumnWidthProps {
4
- width?: number | string;
5
- columnIndex?: number;
6
- }
7
- export default function withColumnWidth<T extends object>(Cell: React.ComponentType<T>): {
8
- new (props: Readonly<T & CellWithColumnWidthProps>): {
9
- UNSAFE_componentWillMount(): void;
10
- setColumnWidth(width?: string | number | undefined): void;
11
- UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
12
- render(): JSX.Element;
13
- context: any;
14
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T & CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
15
- forceUpdate(callBack?: (() => void) | undefined): void;
16
- readonly props: Readonly<T & CellWithColumnWidthProps> & Readonly<{
17
- children?: React.ReactNode;
18
- }>;
19
- state: Readonly<{}>;
20
- refs: {
21
- [key: string]: React.ReactInstance;
22
- };
23
- componentDidMount?(): void;
24
- shouldComponentUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
25
- componentWillUnmount?(): void;
26
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
27
- getSnapshotBeforeUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
28
- componentDidUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
29
- componentWillMount?(): void;
30
- componentWillReceiveProps?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextContext: any): void;
31
- componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
32
- UNSAFE_componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
33
- };
34
- new (props: T & CellWithColumnWidthProps, context?: any): {
35
- UNSAFE_componentWillMount(): void;
36
- setColumnWidth(width?: string | number | undefined): void;
37
- UNSAFE_componentWillReceiveProps(nextProps: CellWithColumnWidthProps): void;
38
- render(): JSX.Element;
39
- context: any;
40
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T & CellWithColumnWidthProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
41
- forceUpdate(callBack?: (() => void) | undefined): void;
42
- readonly props: Readonly<T & CellWithColumnWidthProps> & Readonly<{
43
- children?: React.ReactNode;
44
- }>;
45
- state: Readonly<{}>;
46
- refs: {
47
- [key: string]: React.ReactInstance;
48
- };
49
- componentDidMount?(): void;
50
- shouldComponentUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): boolean;
51
- componentWillUnmount?(): void;
52
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
53
- getSnapshotBeforeUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>): any;
54
- componentDidUpdate?(prevProps: Readonly<T & CellWithColumnWidthProps>, prevState: Readonly<{}>, snapshot?: any): void;
55
- componentWillMount?(): void;
56
- componentWillReceiveProps?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextContext: any): void;
57
- componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
58
- UNSAFE_componentWillUpdate?(nextProps: Readonly<T & CellWithColumnWidthProps>, nextState: Readonly<{}>, nextContext: any): void;
59
- };
60
- contextTypes: {
61
- tableTree: PropTypes.Validator<object>;
62
- };
63
- contextType?: React.Context<any> | undefined;
64
- };
@@ -1,19 +0,0 @@
1
- import React, { Component } from 'react';
2
- declare class Row extends Component<any, any> {
3
- state: {
4
- isExpanded: any;
5
- };
6
- componentDidUpdate(prevProps: any): void;
7
- onExpandStateChange(isExpanded: boolean): void;
8
- onExpandToggle: () => void;
9
- isExpanded(): any;
10
- renderCell(cell: any, cellIndex: number): React.FunctionComponentElement<{
11
- key: number;
12
- columnIndex: number;
13
- indentLevel: any;
14
- }>;
15
- render(): JSX.Element;
16
- }
17
- export { Row as RowWithoutAnalytics };
18
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<any, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, string | number | symbol> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, string | number | symbol> & React.RefAttributes<any>>;
19
- export default _default;
@@ -1,12 +0,0 @@
1
- import React, { Component } from 'react';
2
- declare type WithChildren<T> = T & {
3
- children?: T[] | null;
4
- };
5
- export interface RowsProps<T> {
6
- items?: WithChildren<T>[];
7
- render: (args: WithChildren<T>) => React.ReactNode;
8
- }
9
- export default class Rows<T> extends Component<RowsProps<T>> {
10
- render(): JSX.Element;
11
- }
12
- export {};
@@ -1,23 +0,0 @@
1
- import { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
- interface State {
4
- columnWidths: number[];
5
- }
6
- export default class TableTree extends Component<any, State> {
7
- static childContextTypes: {
8
- tableTree: PropTypes.Validator<object>;
9
- };
10
- state: State;
11
- componentDidMount(): void;
12
- setColumnWidth: (columnIndex: number, width: number) => void;
13
- getColumnWidth: (columnIndex: any) => number | null;
14
- getChildContext(): {
15
- tableTree: {
16
- columnWidths: number[];
17
- setColumnWidth: (columnIndex: number, width: number) => void;
18
- getColumnWidth: (columnIndex: any) => number | null;
19
- };
20
- };
21
- render(): JSX.Element;
22
- }
23
- export {};
@@ -1,10 +0,0 @@
1
- export { default } from './components/table-tree';
2
- export { default as Headers } from './components/headers';
3
- export { default as Header } from './components/header';
4
- export { default as Cell } from './components/cell';
5
- export { default as Rows } from './components/rows';
6
- export { default as Row } from './components/row';
7
- export { default as TableTreeDataHelper } from './utils/table-tree-data-helper';
8
- export type { CellWithColumnWidthProps } from './components/internal/with-column-width';
9
- export type { CellProps } from './components/cell';
10
- export type { RowsProps } from './components/rows';
@@ -1,25 +0,0 @@
1
- /**
2
- * This helper class will create a cache of all the id's in the items object and
3
- * path to the object.
4
- * Example:
5
- * [{
6
- * // item 1,
7
- * id: 1,
8
- * children:[{
9
- * // item 1.1,
10
- * id: '2'
11
- * }]
12
- * }]
13
- *
14
- * Cache will look something like:
15
- * {1: 0, 2: '0.children[0]'}
16
- */
17
- export default class TableTreeDataHelper<T extends any = any> {
18
- key: keyof T;
19
- keysCache: any;
20
- constructor({ key }?: {
21
- key?: keyof T | undefined;
22
- });
23
- updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
24
- appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
25
- }
@@ -1 +0,0 @@
1
- export default function toItemId(id: string): string;