@atlaskit/table-tree 9.1.3 → 9.1.6
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 +18 -0
- package/README.md +1 -1
- package/dist/cjs/components/internal/with-column-width.js +3 -3
- package/dist/cjs/components/row.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/internal/with-column-width.js +3 -3
- package/dist/es2019/components/row.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/internal/with-column-width.js +3 -3
- package/dist/esm/components/row.js +1 -1
- package/dist/esm/version.json +1 -1
- package/extract-react-types/table-tree.tsx +51 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/table-tree
|
|
2
2
|
|
|
3
|
+
## 9.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ae03dc85756`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae03dc85756) - Moved homepage to atlassian.design.
|
|
14
|
+
|
|
15
|
+
## 9.1.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 9.1.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -10,4 +10,4 @@ yarn add @atlaskit/table-tree
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and
|
|
13
|
+
Detailed docs and examples can be found in the [Atlassian Design System documentation](https://atlassian.design/components/table-tree/).
|
|
@@ -40,9 +40,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
40
40
|
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; } }
|
|
41
41
|
|
|
42
42
|
function withColumnWidth(Cell) {
|
|
43
|
-
var _class
|
|
43
|
+
var _class;
|
|
44
44
|
|
|
45
|
-
return
|
|
45
|
+
return _class = /*#__PURE__*/function (_Component) {
|
|
46
46
|
(0, _inherits2.default)(CellWithColumnWidth, _Component);
|
|
47
47
|
|
|
48
48
|
var _super = _createSuper(CellWithColumnWidth);
|
|
@@ -85,5 +85,5 @@ function withColumnWidth(Cell) {
|
|
|
85
85
|
return CellWithColumnWidth;
|
|
86
86
|
}(_react.Component), (0, _defineProperty2.default)(_class, "contextTypes", {
|
|
87
87
|
tableTree: _propTypes.default.object.isRequired
|
|
88
|
-
}),
|
|
88
|
+
}), _class;
|
|
89
89
|
}
|
|
@@ -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.1.
|
|
47
|
+
var packageVersion = "9.1.6";
|
|
48
48
|
|
|
49
49
|
var Row = /*#__PURE__*/function (_Component) {
|
|
50
50
|
(0, _inherits2.default)(Row, _Component);
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,9 +5,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
export default function withColumnWidth(Cell) {
|
|
8
|
-
var _class
|
|
8
|
+
var _class;
|
|
9
9
|
|
|
10
|
-
return
|
|
10
|
+
return _class = class CellWithColumnWidth extends Component {
|
|
11
11
|
UNSAFE_componentWillMount() {
|
|
12
12
|
this.setColumnWidth(this.props.width);
|
|
13
13
|
}
|
|
@@ -36,5 +36,5 @@ export default function withColumnWidth(Cell) {
|
|
|
36
36
|
|
|
37
37
|
}, _defineProperty(_class, "contextTypes", {
|
|
38
38
|
tableTree: PropTypes.object.isRequired
|
|
39
|
-
}),
|
|
39
|
+
}), _class;
|
|
40
40
|
}
|
|
@@ -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.1.
|
|
11
|
+
const packageVersion = "9.1.6";
|
|
12
12
|
|
|
13
13
|
class Row extends Component {
|
|
14
14
|
constructor(...args) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -16,9 +16,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
16
16
|
import React, { Component } from 'react';
|
|
17
17
|
import PropTypes from 'prop-types';
|
|
18
18
|
export default function withColumnWidth(Cell) {
|
|
19
|
-
var _class
|
|
19
|
+
var _class;
|
|
20
20
|
|
|
21
|
-
return
|
|
21
|
+
return _class = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(CellWithColumnWidth, _Component);
|
|
23
23
|
|
|
24
24
|
var _super = _createSuper(CellWithColumnWidth);
|
|
@@ -64,5 +64,5 @@ export default function withColumnWidth(Cell) {
|
|
|
64
64
|
return CellWithColumnWidth;
|
|
65
65
|
}(Component), _defineProperty(_class, "contextTypes", {
|
|
66
66
|
tableTree: PropTypes.object.isRequired
|
|
67
|
-
}),
|
|
67
|
+
}), _class;
|
|
68
68
|
}
|
|
@@ -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.1.
|
|
21
|
+
var packageVersion = "9.1.6";
|
|
22
22
|
|
|
23
23
|
var Row = /*#__PURE__*/function (_Component) {
|
|
24
24
|
_inherits(Row, _Component);
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
class Content extends Object {}
|
|
4
|
+
|
|
5
|
+
type Item = {
|
|
6
|
+
id: string;
|
|
7
|
+
content: Content;
|
|
8
|
+
hasChildren: boolean;
|
|
9
|
+
children?: Item[];
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This is hard-coded here because our actual <TableTree /> has no typings
|
|
14
|
+
* for its props.
|
|
15
|
+
*
|
|
16
|
+
* Adding types for real *might* break things so will need a little care.
|
|
17
|
+
*
|
|
18
|
+
* Defining it here for now lets us provide *something* without much headache.
|
|
19
|
+
*/
|
|
20
|
+
type TableTreeProps = {
|
|
21
|
+
/**
|
|
22
|
+
* The contents of the table,
|
|
23
|
+
* used when composing `Cell`, `Header`, `Headers`, `Row`, and `Rows` components.
|
|
24
|
+
* For basic usage, you can instead specify table contents with the `items` prop.
|
|
25
|
+
*/
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Each column component is used to render the cells in that column.
|
|
29
|
+
* A cell's `content` value, specified in the data passed to `items`, is provided as props.
|
|
30
|
+
*/
|
|
31
|
+
columns?: ElementType<Content>[];
|
|
32
|
+
/**
|
|
33
|
+
* The widths of the respective columns in the table.
|
|
34
|
+
*/
|
|
35
|
+
columnWidths?: (string | number)[];
|
|
36
|
+
/**
|
|
37
|
+
* The header text of the respective columns of the table.
|
|
38
|
+
*/
|
|
39
|
+
headers?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* The data used to render the table.
|
|
42
|
+
* The type of `content` can be whatever you would like, and its value will be
|
|
43
|
+
* provided as props when rendering each cell.
|
|
44
|
+
*/
|
|
45
|
+
// eslint-disable-next-line @repo/internal/react/consistent-props-definitions
|
|
46
|
+
items?: Item[] | null;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default function (props: TableTreeProps) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "9.1.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "9.1.6",
|
|
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/"
|
|
7
7
|
},
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"homepage": "https://atlassian.design/components/table-tree/",
|
|
17
18
|
"atlassian": {
|
|
18
19
|
"team": "Design System Team",
|
|
19
20
|
"releaseModel": "scheduled",
|
|
20
21
|
"website": {
|
|
21
|
-
"name": "Table
|
|
22
|
+
"name": "Table tree"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
"af:exports": {
|
|
@@ -26,11 +27,11 @@
|
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
29
|
-
"@atlaskit/button": "^16.
|
|
30
|
+
"@atlaskit/button": "^16.2.0",
|
|
30
31
|
"@atlaskit/icon": "^21.10.0",
|
|
31
32
|
"@atlaskit/spinner": "^15.0.0",
|
|
32
33
|
"@atlaskit/theme": "^12.1.0",
|
|
33
|
-
"@atlaskit/tokens": "^0.
|
|
34
|
+
"@atlaskit/tokens": "^0.8.0",
|
|
34
35
|
"@babel/runtime": "^7.0.0",
|
|
35
36
|
"@emotion/core": "^10.0.9",
|
|
36
37
|
"lodash": "^4.17.21",
|