@atlaskit/table-tree 9.2.1 → 9.2.3

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,17 @@
1
1
  # @atlaskit/table-tree
2
2
 
3
+ ## 9.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
14
+
3
15
  ## 9.2.1
4
16
 
5
17
  ### 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.1";
47
+ var packageVersion = "9.2.3";
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.1",
3
+ "version": "9.2.3",
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.1";
11
+ const packageVersion = "9.2.3";
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.1",
3
+ "version": "9.2.3",
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.1";
21
+ var packageVersion = "9.2.3";
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.1",
3
+ "version": "9.2.3",
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.1",
3
+ "version": "9.2.3",
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/"
@@ -16,6 +16,7 @@
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "homepage": "https://atlassian.design/components/table-tree/",
18
18
  "atlassian": {
19
+ "disableProductCI": true,
19
20
  "team": "Design System Team",
20
21
  "releaseModel": "scheduled",
21
22
  "website": {
@@ -28,11 +29,11 @@
28
29
  },
29
30
  "dependencies": {
30
31
  "@atlaskit/analytics-next": "^8.2.0",
31
- "@atlaskit/button": "^16.3.0",
32
- "@atlaskit/icon": "^21.10.0",
33
- "@atlaskit/spinner": "^15.0.0",
32
+ "@atlaskit/button": "^16.4.0",
33
+ "@atlaskit/icon": "^21.11.0",
34
+ "@atlaskit/spinner": "^15.2.0",
34
35
  "@atlaskit/theme": "^12.2.0",
35
- "@atlaskit/tokens": "^0.10.0",
36
+ "@atlaskit/tokens": "^0.11.0",
36
37
  "@babel/runtime": "^7.0.0",
37
38
  "@emotion/react": "^11.7.1",
38
39
  "lodash": "^4.17.21",
@@ -45,7 +46,7 @@
45
46
  "@atlaskit/docs": "*",
46
47
  "@atlaskit/ds-lib": "^2.0.1",
47
48
  "@atlaskit/empty-state": "^7.4.0",
48
- "@atlaskit/section-message": "^6.2.0",
49
+ "@atlaskit/section-message": "^6.3.0",
49
50
  "@atlaskit/select": "^15.7.0",
50
51
  "@atlaskit/ssr": "*",
51
52
  "@atlaskit/visual-regression": "*",
@@ -77,6 +78,7 @@
77
78
  "emotion"
78
79
  ],
79
80
  "analytics": "analytics-next",
81
+ "design-tokens": "spacing",
80
82
  "theming": "tokens",
81
83
  "deprecation": "no-deprecated-imports"
82
84
  }
package/report.api.md CHANGED
@@ -2,12 +2,19 @@
2
2
 
3
3
  > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
4
 
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
8
+
9
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
10
+
5
11
  ```ts
6
12
  /// <reference types="react" />
7
13
 
8
14
  import { Component } from 'react';
9
15
  import { Context } from 'react';
10
16
  import { ErrorInfo } from 'react';
17
+ import { jsx } from '@emotion/react';
11
18
  import PropTypes from 'prop-types';
12
19
  import { default as React_2 } from 'react';
13
20
  import { ReactInstance } from 'react';
@@ -16,7 +23,8 @@ import { Validator } from 'prop-types';
16
23
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
17
24
  import { WithContextProps } from '@atlaskit/analytics-next';
18
25
 
19
- export declare const Cell: {
26
+ // @public (undocumented)
27
+ export const Cell: {
20
28
  new (props: Readonly<CellProps & CellWithColumnWidthProps>): {
21
29
  UNSAFE_componentWillMount(): void;
22
30
  setColumnWidth(width?: string | number | undefined): void;
@@ -141,31 +149,24 @@ export declare const Cell: {
141
149
  contextType?: React_2.Context<any> | undefined;
142
150
  };
143
151
 
144
- export declare interface CellProps {
145
- /**
146
- * Whether the cell contents should wrap or display on a single line and be concatenated.
147
- */
148
- singleLine?: boolean;
149
- /**
150
- * Indent level for the cell. Each indent level adds 25px to the left padding.
151
- */
152
+ // @public (undocumented)
153
+ export interface CellProps {
154
+ className?: string;
152
155
  indentLevel?: number;
153
- /**
154
- * Width of the header item. Takes a string or a number representing the width in pixels.
155
- */
156
+ singleLine?: boolean;
156
157
  width?: number | string;
157
- /**
158
- * Class name to apply to cell.
159
- */
160
- className?: string;
161
158
  }
162
159
 
163
- export declare interface CellWithColumnWidthProps {
164
- width?: number | string;
160
+ // @public (undocumented)
161
+ export interface CellWithColumnWidthProps {
162
+ // (undocumented)
165
163
  columnIndex?: number;
164
+ // (undocumented)
165
+ width?: number | string;
166
166
  }
167
167
 
168
- export declare const Header: {
168
+ // @public (undocumented)
169
+ export const Header: {
169
170
  new (props: Readonly<any>): {
170
171
  UNSAFE_componentWillMount(): void;
171
172
  setColumnWidth(width?: string | number | undefined): void;
@@ -290,12 +291,15 @@ export declare const Header: {
290
291
  contextType?: Context<any> | undefined;
291
292
  };
292
293
 
293
- declare class Headers_2 extends Component<any> {
294
- render(): JSX.Element;
294
+ // @public (undocumented)
295
+ class Headers_2 extends Component<any> {
296
+ // (undocumented)
297
+ render(): jsx.JSX.Element;
295
298
  }
296
299
  export { Headers_2 as Headers };
297
300
 
298
- export declare const Row: React_2.ForwardRefExoticComponent<
301
+ // @public (undocumented)
302
+ export const Row: React_2.ForwardRefExoticComponent<
299
303
  Pick<
300
304
  Pick<Omit<any, keyof WithAnalyticsEventsProps>, string | number | symbol> &
301
305
  React_2.RefAttributes<any> &
@@ -305,27 +309,35 @@ export declare const Row: React_2.ForwardRefExoticComponent<
305
309
  React_2.RefAttributes<any>
306
310
  >;
307
311
 
308
- export declare class Rows<T> extends Component<RowsProps<T>> {
312
+ // @public (undocumented)
313
+ export class Rows<T> extends Component<RowsProps<T>> {
314
+ // (undocumented)
309
315
  render(): JSX.Element;
310
316
  }
311
317
 
312
- export declare interface RowsProps<T> {
318
+ // @public (undocumented)
319
+ export interface RowsProps<T> {
320
+ // (undocumented)
313
321
  items?: WithChildren<T>[];
322
+ // (undocumented)
314
323
  render: (args: WithChildren<T>) => React_2.ReactNode;
315
324
  }
316
325
 
317
- declare interface State {
326
+ // @public (undocumented)
327
+ interface State {
328
+ // (undocumented)
318
329
  columnWidths: number[];
319
330
  }
320
331
 
321
- declare class TableTree extends Component<any, State> {
332
+ // @public (undocumented)
333
+ class TableTree extends Component<any, State> {
334
+ // (undocumented)
322
335
  static childContextTypes: {
323
336
  tableTree: PropTypes.Validator<object>;
324
337
  };
325
- state: State;
338
+ // (undocumented)
326
339
  componentDidMount(): void;
327
- setColumnWidth: (columnIndex: number, width: number) => void;
328
- getColumnWidth: (columnIndex: any) => number | null;
340
+ // (undocumented)
329
341
  getChildContext(): {
330
342
  tableTree: {
331
343
  columnWidths: number[];
@@ -333,37 +345,34 @@ declare class TableTree extends Component<any, State> {
333
345
  getColumnWidth: (columnIndex: any) => number | null;
334
346
  };
335
347
  };
348
+ // (undocumented)
349
+ getColumnWidth: (columnIndex: any) => number | null;
350
+ // (undocumented)
336
351
  render(): JSX.Element;
352
+ // (undocumented)
353
+ setColumnWidth: (columnIndex: number, width: number) => void;
354
+ // (undocumented)
355
+ state: State;
337
356
  }
338
357
  export default TableTree;
339
358
 
340
- /**
341
- * This helper class will create a cache of all the id's in the items object and
342
- * path to the object.
343
- * Example:
344
- * [{
345
- * // item 1,
346
- * id: 1,
347
- * children:[{
348
- * // item 1.1,
349
- * id: '2'
350
- * }]
351
- * }]
352
- *
353
- * Cache will look something like:
354
- * {1: 0, 2: '0.children[0]'}
355
- */
356
- export declare class TableTreeDataHelper<T extends any = any> {
359
+ // @public
360
+ export class TableTreeDataHelper<T extends any = any> {
361
+ constructor({ key }?: { key?: keyof T | undefined });
362
+ // (undocumented)
363
+ appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
364
+ // (undocumented)
357
365
  key: keyof T;
366
+ // (undocumented)
358
367
  keysCache: any;
359
- constructor({ key }?: { key?: keyof T | undefined });
368
+ // (undocumented)
360
369
  updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
361
- appendItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
362
370
  }
363
371
 
364
- declare type WithChildren<T> = T & {
372
+ // @public (undocumented)
373
+ type WithChildren<T> = T & {
365
374
  children?: T[] | null;
366
375
  };
367
376
 
368
- export {};
377
+ // (No @packageDocumentation comment for this package)
369
378
  ```