@atlaskit/table-tree 12.1.0 → 12.1.2

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
+ ## 12.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#153593](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153593)
8
+ [`b88120ead0a0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b88120ead0a0e) -
9
+ Fix `className` prop not working with `Cell`.
10
+
11
+ ## 12.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 12.1.0
4
18
 
5
19
  ### Minor Changes
@@ -12,7 +12,6 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migrat
12
12
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right"));
13
13
  var _styled = require("./styled");
14
14
  /* eslint-disable @repo/internal/react/consistent-props-definitions */
15
- /* eslint-disable react/prop-types */
16
15
 
17
16
  /**
18
17
  * Internal chevron component.
@@ -14,7 +14,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
16
  var _colors = require("@atlaskit/theme/colors");
17
- var _excluded = ["indent", "width"];
17
+ var _excluded = ["indent", "width", "className"];
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -26,12 +26,15 @@ var commonStyles = null;
26
26
  var CommonCell = function CommonCell(_ref) {
27
27
  var indent = _ref.indent,
28
28
  width = _ref.width,
29
+ className = _ref.className,
29
30
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
30
31
  return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
31
32
  role: "gridcell"
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
34
+ ,
35
+ className: (0, _runtime.ax)(["_1yt41p08 _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna", className])
32
36
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
33
37
  }, props, {
34
- className: (0, _runtime.ax)(["_1yt41p08 _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna"]),
35
38
  style: _objectSpread(_objectSpread({}, {
36
39
  '--indent': indent,
37
40
  width: width
@@ -13,8 +13,6 @@ var _commonCell = _interopRequireDefault(require("./common-cell"));
13
13
  var _styled = require("./styled");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
- /* eslint-disable react/prop-types */
17
-
18
16
  var LoaderItem = function LoaderItem(_ref) {
19
17
  var _ref$depth = _ref.depth,
20
18
  depth = _ref$depth === void 0 ? 1 : _ref$depth,
@@ -62,7 +62,7 @@ function Row(_ref) {
62
62
  actionSubject: 'tableTree',
63
63
  componentName: 'row',
64
64
  packageName: "@atlaskit/table-tree",
65
- packageVersion: "12.1.0"
65
+ packageVersion: "12.1.2"
66
66
  });
67
67
  var onCollapse = (0, _analyticsNext.usePlatformLeafEventHandler)({
68
68
  fn: function fn(value) {
@@ -72,7 +72,7 @@ function Row(_ref) {
72
72
  actionSubject: 'tableTree',
73
73
  componentName: 'row',
74
74
  packageName: "@atlaskit/table-tree",
75
- packageVersion: "12.1.0"
75
+ packageVersion: "12.1.2"
76
76
  });
77
77
 
78
78
  /**
@@ -17,8 +17,6 @@ var _row = _interopRequireDefault(require("./row"));
17
17
  var _rows = _interopRequireDefault(require("./rows"));
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
- /* eslint-disable react/prop-types */
21
-
22
20
  /**
23
21
  * This is hard-coded here because our actual <TableTree /> has no typings
24
22
  * for its props.
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable @repo/internal/react/consistent-props-definitions */
2
- /* eslint-disable react/prop-types */
3
2
  import React from 'react';
4
3
  import { IconButton } from '@atlaskit/button/new';
5
4
  import __noop from '@atlaskit/ds-lib/noop';
@@ -11,16 +11,18 @@ const commonStyles = null;
11
11
  const CommonCell = ({
12
12
  indent,
13
13
  width,
14
+ className,
14
15
  ...props
15
16
  }) => /*#__PURE__*/React.createElement("div", _extends({
16
17
  role: "gridcell"
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
19
+ ,
20
+ className: ax(["_1yt413wy _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1fxt _ct361wug _1nmz1hna", className])
17
21
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
18
22
  }, props, {
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
20
23
  style: {
21
24
  '--indent': indent,
22
25
  width
23
- },
24
- className: ax(["_1yt413wy _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1fxt _ct361wug _1nmz1hna"])
26
+ }
25
27
  }));
26
28
  export default CommonCell;
@@ -1,4 +1,3 @@
1
- /* eslint-disable react/prop-types */
2
1
  import React, { useEffect, useState } from 'react';
3
2
  import Spinner from '@atlaskit/spinner';
4
3
  import CommonCell from './common-cell';
@@ -47,7 +47,7 @@ function Row({
47
47
  actionSubject: 'tableTree',
48
48
  componentName: 'row',
49
49
  packageName: "@atlaskit/table-tree",
50
- packageVersion: "12.1.0"
50
+ packageVersion: "12.1.2"
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: "12.1.0"
58
+ packageVersion: "12.1.2"
59
59
  });
60
60
 
61
61
  /**
@@ -1,4 +1,3 @@
1
- /* eslint-disable react/prop-types */
2
1
  import React, { useCallback, useMemo, useState } from 'react';
3
2
  import Cell from './cell';
4
3
  import Header from './header';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable @repo/internal/react/consistent-props-definitions */
2
- /* eslint-disable react/prop-types */
3
2
  import React from 'react';
4
3
  import { IconButton } from '@atlaskit/button/new';
5
4
  import __noop from '@atlaskit/ds-lib/noop';
@@ -2,7 +2,7 @@
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";
5
- var _excluded = ["indent", "width"];
5
+ var _excluded = ["indent", "width", "className"];
6
6
  import "./common-cell.compiled.css";
7
7
  import * as React from 'react';
8
8
  import { ax, ix } from "@compiled/react/runtime";
@@ -16,12 +16,15 @@ var commonStyles = null;
16
16
  var CommonCell = function CommonCell(_ref) {
17
17
  var indent = _ref.indent,
18
18
  width = _ref.width,
19
+ className = _ref.className,
19
20
  props = _objectWithoutProperties(_ref, _excluded);
20
21
  return /*#__PURE__*/React.createElement("div", _extends({
21
22
  role: "gridcell"
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
24
+ ,
25
+ className: ax(["_1yt41p08 _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna", className])
22
26
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
23
27
  }, props, {
24
- className: ax(["_1yt41p08 _11c82smr _1e0c1txw _vchhusvi _1tke1ylp _kqswh2mm _4cvr1h6o _syaz1o8f _ct361wug _1nmz1hna"]),
25
28
  style: _objectSpread(_objectSpread({}, {
26
29
  '--indent': indent,
27
30
  width: width
@@ -1,5 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /* eslint-disable react/prop-types */
3
2
  import React, { useEffect, useState } from 'react';
4
3
  import Spinner from '@atlaskit/spinner';
5
4
  import CommonCell from './common-cell';
@@ -52,7 +52,7 @@ function Row(_ref) {
52
52
  actionSubject: 'tableTree',
53
53
  componentName: 'row',
54
54
  packageName: "@atlaskit/table-tree",
55
- packageVersion: "12.1.0"
55
+ packageVersion: "12.1.2"
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: "12.1.0"
65
+ packageVersion: "12.1.2"
66
66
  });
67
67
 
68
68
  /**
@@ -1,6 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- /* eslint-disable react/prop-types */
4
3
  import React, { useCallback, useMemo, useState } from 'react';
5
4
  import Cell from './cell';
6
5
  import Header from './header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table-tree",
3
- "version": "12.1.0",
3
+ "version": "12.1.2",
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/"
@@ -28,29 +28,29 @@
28
28
  "@atlaskit/analytics-next": "^11.0.0",
29
29
  "@atlaskit/button": "^23.0.0",
30
30
  "@atlaskit/ds-lib": "^4.0.0",
31
- "@atlaskit/icon": "^25.5.0",
31
+ "@atlaskit/icon": "^26.0.0",
32
32
  "@atlaskit/spinner": "^18.0.0",
33
33
  "@atlaskit/theme": "^18.0.0",
34
- "@atlaskit/tokens": "^4.6.0",
34
+ "@atlaskit/tokens": "^4.8.0",
35
35
  "@babel/runtime": "^7.0.0",
36
- "@emotion/react": "^11.7.1",
36
+ "@compiled/react": "^0.18.3",
37
37
  "lodash": "^4.17.21"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@af/accessibility-testing": "^2.0.0",
44
- "@af/integration-testing": "^0.5.0",
45
- "@af/visual-regression": "^1.3.0",
43
+ "@af/accessibility-testing": "workspace:^",
44
+ "@af/integration-testing": "workspace:^",
45
+ "@af/visual-regression": "workspace:^",
46
46
  "@atlaskit/docs": "^10.0.0",
47
- "@atlaskit/empty-state": "^9.0.0",
47
+ "@atlaskit/empty-state": "^10.0.0",
48
48
  "@atlaskit/form": "^12.0.0",
49
49
  "@atlaskit/link": "^3.1.0",
50
- "@atlaskit/primitives": "^14.3.0",
50
+ "@atlaskit/primitives": "^14.7.0",
51
51
  "@atlaskit/section-message": "^8.2.0",
52
- "@atlaskit/select": "^20.1.0",
53
- "@atlaskit/ssr": "^0.4.0",
52
+ "@atlaskit/select": "^20.4.0",
53
+ "@atlaskit/ssr": "workspace:^",
54
54
  "@atlaskit/visually-hidden": "^3.0.0",
55
55
  "@atlassian/ssr-tests": "^0.2.0",
56
56
  "@testing-library/react": "^13.4.0",