@atlaskit/table-tree 12.2.21 → 12.2.23
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 +12 -0
- package/dist/cjs/components/header.js +1 -1
- package/dist/cjs/components/headers.js +1 -1
- package/dist/cjs/components/internal/common-cell.js +1 -1
- package/dist/cjs/components/internal/overflow-container.js +1 -1
- package/dist/cjs/components/internal/styled.js +1 -1
- package/dist/cjs/components/row.js +3 -3
- package/dist/es2019/components/header.js +1 -1
- package/dist/es2019/components/headers.js +1 -1
- package/dist/es2019/components/internal/common-cell.js +1 -1
- package/dist/es2019/components/internal/overflow-container.js +1 -1
- package/dist/es2019/components/internal/styled.js +1 -1
- package/dist/es2019/components/row.js +3 -3
- package/dist/esm/components/header.js +1 -1
- package/dist/esm/components/headers.js +1 -1
- package/dist/esm/components/internal/common-cell.js +1 -1
- package/dist/esm/components/internal/overflow-container.js +1 -1
- package/dist/esm/components/internal/styled.js +1 -1
- package/dist/esm/components/row.js +3 -3
- package/dist/types/utils/table-tree-data-helper.d.ts +1 -1
- package/dist/types-ts4.5/utils/table-tree-data-helper.d.ts +1 -1
- package/package.json +9 -8
- package/table-tree.docs.tsx +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* row.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* row.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -61,7 +61,7 @@ function Row(_ref) {
|
|
|
61
61
|
actionSubject: 'tableTree',
|
|
62
62
|
componentName: 'row',
|
|
63
63
|
packageName: "@atlaskit/table-tree",
|
|
64
|
-
packageVersion: "
|
|
64
|
+
packageVersion: "0.0.0-development"
|
|
65
65
|
});
|
|
66
66
|
var onCollapse = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
67
67
|
fn: function fn(value) {
|
|
@@ -71,7 +71,7 @@ function Row(_ref) {
|
|
|
71
71
|
actionSubject: 'tableTree',
|
|
72
72
|
componentName: 'row',
|
|
73
73
|
packageName: "@atlaskit/table-tree",
|
|
74
|
-
packageVersion: "
|
|
74
|
+
packageVersion: "0.0.0-development"
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* overflow-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* overflow-container.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./overflow-container.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* row.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* row.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./row.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { Fragment, useEffect, useState } from 'react';
|
|
@@ -47,7 +47,7 @@ function Row({
|
|
|
47
47
|
actionSubject: 'tableTree',
|
|
48
48
|
componentName: 'row',
|
|
49
49
|
packageName: "@atlaskit/table-tree",
|
|
50
|
-
packageVersion: "
|
|
50
|
+
packageVersion: "0.0.0-development"
|
|
51
51
|
});
|
|
52
52
|
const onCollapse = usePlatformLeafEventHandler({
|
|
53
53
|
fn: value => providedOnCollapse && providedOnCollapse(value),
|
|
@@ -55,7 +55,7 @@ function Row({
|
|
|
55
55
|
actionSubject: 'tableTree',
|
|
56
56
|
componentName: 'row',
|
|
57
57
|
packageName: "@atlaskit/table-tree",
|
|
58
|
-
packageVersion: "
|
|
58
|
+
packageVersion: "0.0.0-development"
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* common-cell.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* common-cell.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* overflow-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* overflow-container.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["isSingleLine"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* styled.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
var _excluded = ["isRoot"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* row.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* row.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./row.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -52,7 +52,7 @@ function Row(_ref) {
|
|
|
52
52
|
actionSubject: 'tableTree',
|
|
53
53
|
componentName: 'row',
|
|
54
54
|
packageName: "@atlaskit/table-tree",
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "0.0.0-development"
|
|
56
56
|
});
|
|
57
57
|
var onCollapse = usePlatformLeafEventHandler({
|
|
58
58
|
fn: function fn(value) {
|
|
@@ -62,7 +62,7 @@ function Row(_ref) {
|
|
|
62
62
|
actionSubject: 'tableTree',
|
|
63
63
|
componentName: 'row',
|
|
64
64
|
packageName: "@atlaskit/table-tree",
|
|
65
|
-
packageVersion: "
|
|
65
|
+
packageVersion: "0.0.0-development"
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export default class TableTreeDataHelper<T extends any = any> {
|
|
18
18
|
key: keyof T;
|
|
19
19
|
keysCache: any;
|
|
20
|
-
constructor({ key }?: {
|
|
20
|
+
constructor({ key, }?: {
|
|
21
21
|
key?: keyof T | undefined;
|
|
22
22
|
});
|
|
23
23
|
updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export default class TableTreeDataHelper<T extends any = any> {
|
|
18
18
|
key: keyof T;
|
|
19
19
|
keysCache: any;
|
|
20
|
-
constructor({ key }?: {
|
|
20
|
+
constructor({ key, }?: {
|
|
21
21
|
key?: keyof T | undefined;
|
|
22
22
|
});
|
|
23
23
|
updateItems(items: T[], allItems?: T[], parentItem?: T | null): T[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table-tree",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.23",
|
|
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/"
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
28
28
|
"@atlaskit/button": "^23.10.0",
|
|
29
|
-
"@atlaskit/ds-lib": "^
|
|
30
|
-
"@atlaskit/icon": "^
|
|
29
|
+
"@atlaskit/ds-lib": "^6.0.0",
|
|
30
|
+
"@atlaskit/icon": "^33.0.0",
|
|
31
31
|
"@atlaskit/spinner": "^19.0.0",
|
|
32
32
|
"@atlaskit/theme": "^22.0.0",
|
|
33
|
-
"@atlaskit/tokens": "^11.
|
|
33
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
|
-
"@compiled/react": "^0.
|
|
35
|
+
"@compiled/react": "^0.20.0",
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -42,15 +42,16 @@
|
|
|
42
42
|
"@af/accessibility-testing": "workspace:^",
|
|
43
43
|
"@af/integration-testing": "workspace:^",
|
|
44
44
|
"@af/visual-regression": "workspace:^",
|
|
45
|
-
"@atlaskit/docs": "^11.
|
|
45
|
+
"@atlaskit/docs": "^11.7.0",
|
|
46
46
|
"@atlaskit/empty-state": "^10.1.0",
|
|
47
|
-
"@atlaskit/form": "^15.
|
|
47
|
+
"@atlaskit/form": "^15.4.0",
|
|
48
48
|
"@atlaskit/link": "^3.3.0",
|
|
49
49
|
"@atlaskit/primitives": "^18.0.0",
|
|
50
50
|
"@atlaskit/section-message": "^8.12.0",
|
|
51
|
-
"@atlaskit/select": "^21.
|
|
51
|
+
"@atlaskit/select": "^21.8.0",
|
|
52
52
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
53
53
|
"@atlassian/ssr-tests": "workspace:^",
|
|
54
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
54
55
|
"@testing-library/react": "^16.3.0",
|
|
55
56
|
"@testing-library/user-event": "^14.4.3",
|
|
56
57
|
"react-dom": "^18.2.0"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
4
|
+
|
|
5
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
6
|
+
{
|
|
7
|
+
name: 'Table tree',
|
|
8
|
+
description:
|
|
9
|
+
'A table tree is an expandable table for showing nested hierarchies of information.',
|
|
10
|
+
status: 'general-availability',
|
|
11
|
+
import: {
|
|
12
|
+
name: 'TableTree',
|
|
13
|
+
package: '@atlaskit/table-tree',
|
|
14
|
+
type: 'default',
|
|
15
|
+
packagePath: path.resolve(__dirname),
|
|
16
|
+
packageJson: require('./package.json'),
|
|
17
|
+
},
|
|
18
|
+
examples: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Controlled Expanded State',
|
|
21
|
+
description: 'Controlled expanded state example',
|
|
22
|
+
source: path.resolve(__dirname, './examples/controlled-expanded-state.tsx'),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
keywords: ['table-tree', 'table', 'tree', 'expandable', 'nested', 'hierarchy', 'rows'],
|
|
26
|
+
categories: ['text and data display', 'data'],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export default documentation;
|