@atlaskit/dynamic-table 14.18.3 → 14.19.0

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/components/rankable/table-row.js +3 -1
  3. package/dist/cjs/components/stateless.js +1 -1
  4. package/dist/cjs/styled/dynamic-table.js +1 -1
  5. package/dist/cjs/styled/empty-body.js +1 -1
  6. package/dist/cjs/styled/loading-container-advanced.js +1 -1
  7. package/dist/cjs/styled/loading-container.js +1 -1
  8. package/dist/cjs/styled/rankable/table-cell.js +1 -1
  9. package/dist/cjs/styled/rankable/table-row.js +1 -1
  10. package/dist/cjs/styled/table-cell.js +1 -1
  11. package/dist/cjs/styled/table-head.js +1 -1
  12. package/dist/cjs/styled/table-row.js +1 -1
  13. package/dist/es2019/components/rankable/table-row.js +3 -1
  14. package/dist/es2019/components/stateless.js +1 -1
  15. package/dist/es2019/styled/dynamic-table.js +1 -1
  16. package/dist/es2019/styled/empty-body.js +1 -1
  17. package/dist/es2019/styled/loading-container-advanced.js +1 -1
  18. package/dist/es2019/styled/loading-container.js +1 -1
  19. package/dist/es2019/styled/rankable/table-cell.js +1 -1
  20. package/dist/es2019/styled/rankable/table-row.js +1 -1
  21. package/dist/es2019/styled/table-cell.js +1 -1
  22. package/dist/es2019/styled/table-head.js +1 -1
  23. package/dist/es2019/styled/table-row.js +1 -1
  24. package/dist/esm/components/rankable/table-row.js +3 -1
  25. package/dist/esm/components/stateless.js +1 -1
  26. package/dist/esm/styled/dynamic-table.js +1 -1
  27. package/dist/esm/styled/empty-body.js +1 -1
  28. package/dist/esm/styled/loading-container-advanced.js +1 -1
  29. package/dist/esm/styled/loading-container.js +1 -1
  30. package/dist/esm/styled/rankable/table-cell.js +1 -1
  31. package/dist/esm/styled/rankable/table-row.js +1 -1
  32. package/dist/esm/styled/table-cell.js +1 -1
  33. package/dist/esm/styled/table-head.js +1 -1
  34. package/dist/esm/styled/table-row.js +1 -1
  35. package/dist/types/components/table-head-cell.d.ts +2 -2
  36. package/dist/types/hoc/with-dimensions.d.ts +2 -2
  37. package/dist/types/styled/constants.d.ts +2 -2
  38. package/dist/types/styled/dynamic-table.d.ts +1 -1
  39. package/dist/types/styled/empty-body.d.ts +1 -1
  40. package/dist/types/styled/loading-container-advanced.d.ts +1 -1
  41. package/dist/types/styled/loading-container.d.ts +1 -1
  42. package/dist/types/styled/rankable/table-cell.d.ts +1 -1
  43. package/dist/types/styled/rankable/table-row.d.ts +1 -1
  44. package/dist/types/styled/table-cell.d.ts +1 -1
  45. package/dist/types/styled/table-head.d.ts +1 -1
  46. package/dist/types/styled/table-row.d.ts +1 -1
  47. package/dist/types-ts4.5/components/table-head-cell.d.ts +2 -2
  48. package/dist/types-ts4.5/hoc/with-dimensions.d.ts +2 -2
  49. package/dist/types-ts4.5/styled/constants.d.ts +2 -2
  50. package/dist/types-ts4.5/styled/dynamic-table.d.ts +1 -1
  51. package/dist/types-ts4.5/styled/empty-body.d.ts +1 -1
  52. package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +1 -1
  53. package/dist/types-ts4.5/styled/loading-container.d.ts +1 -1
  54. package/dist/types-ts4.5/styled/rankable/table-cell.d.ts +1 -1
  55. package/dist/types-ts4.5/styled/rankable/table-row.d.ts +1 -1
  56. package/dist/types-ts4.5/styled/table-cell.d.ts +1 -1
  57. package/dist/types-ts4.5/styled/table-head.d.ts +1 -1
  58. package/dist/types-ts4.5/styled/table-row.d.ts +1 -1
  59. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 14.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8b8090800a35d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b8090800a35d) -
8
+ Bump peer dependency for react-dom to include version 17 and 18.
9
+
10
+ ## 14.18.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 14.18.3
4
17
 
5
18
  ### Patch Changes
@@ -77,7 +77,9 @@ var RankableTableRow = exports.RankableTableRow = /*#__PURE__*/function (_React$
77
77
  var _provided$dragHandleP;
78
78
  return /*#__PURE__*/_react.default.createElement(_tableRow.RankableTableBodyRow, (0, _extends2.default)({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
79
79
  // It is necessary to prevent the passing of aria-labelledby
80
- "aria-labelledby": undefined,
80
+ "aria-labelledby": undefined
81
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
82
+ ,
81
83
  "aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
82
84
  ref: _this2.innerRef(provided.innerRef)
83
85
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -35,7 +35,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
35
35
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
36
36
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
37
37
  var packageName = "@atlaskit/dynamic-table";
38
- var packageVersion = "14.18.3";
38
+ var packageVersion = "14.19.0";
39
39
  function toggleSortOrder(currentSortOrder) {
40
40
  switch (currentSortOrder) {
41
41
  case _constants.DESC:
@@ -16,8 +16,8 @@ var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"]
16
16
  /* eslint-disable @repo/internal/react/require-jsdoc */
17
17
  /**
18
18
  * @jsxRuntime classic
19
+ * @jsx jsx
19
20
  */
20
- /** @jsx jsx */
21
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  // CSS vars for table row
23
23
  // these are declared here to avoid being re-declared in each table row
@@ -8,8 +8,8 @@ var _react = require("@emotion/react");
8
8
  /* eslint-disable @repo/internal/react/require-jsdoc */
9
9
  /**
10
10
  * @jsxRuntime classic
11
+ * @jsx jsx
11
12
  */
12
- /** @jsx jsx */
13
13
 
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
15
 
@@ -13,8 +13,8 @@ var _excluded = ["children", "testId"];
13
13
  /* eslint-disable @repo/internal/react/require-jsdoc */
14
14
  /**
15
15
  * @jsxRuntime classic
16
+ * @jsx jsx
16
17
  */
17
- /** @jsx jsx */
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
  var containerStyles = (0, _react2.css)({
20
20
  position: 'relative',
@@ -10,8 +10,8 @@ var _react = require("@emotion/react");
10
10
  /* eslint-disable @repo/internal/react/require-jsdoc */
11
11
  /**
12
12
  * @jsxRuntime classic
13
+ * @jsx jsx
13
14
  */
14
- /** @jsx jsx */
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
 
@@ -12,8 +12,8 @@ var _tableCell = require("../table-cell");
12
12
  var _excluded = ["isRanking", "innerRef"];
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
  var rankingStyles = (0, _react.css)({
19
19
  boxSizing: 'border-box'
@@ -14,8 +14,8 @@ var _tableRow = require("../table-row");
14
14
  var _excluded = ["isRanking", "isRankingItem", "testId"];
15
15
  /**
16
16
  * @jsxRuntime classic
17
+ * @jsx jsx
17
18
  */
18
- /** @jsx jsx */
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
20
  var rankingStyles = (0, _react2.css)({
21
21
  display: 'block'
@@ -12,8 +12,8 @@ var _constants = require("./constants");
12
12
  var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
19
19
  var TableBodyCell = exports.TableBodyCell = function TableBodyCell(_ref) {
@@ -20,8 +20,8 @@ var _excluded = ["isRanking", "testId"],
20
20
  /* eslint-disable @repo/internal/react/require-jsdoc */
21
21
  /**
22
22
  * @jsxRuntime classic
23
+ * @jsx jsx
23
24
  */
24
- /** @jsx jsx */
25
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  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; }
27
27
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -13,8 +13,8 @@ var _dynamicTable = require("./dynamic-table");
13
13
  var _excluded = ["isHighlighted", "children", "style", "testId"];
14
14
  /**
15
15
  * @jsxRuntime classic
16
+ * @jsx jsx
16
17
  */
17
- /** @jsx jsx */
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
  var rowStyles = (0, _react2.css)({
20
20
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
@@ -51,7 +51,9 @@ export class RankableTableRow extends React.Component {
51
51
  var _provided$dragHandleP;
52
52
  return /*#__PURE__*/React.createElement(RankableTableBodyRow, _extends({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
53
53
  // It is necessary to prevent the passing of aria-labelledby
54
- "aria-labelledby": undefined,
54
+ "aria-labelledby": undefined
55
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
56
+ ,
55
57
  "aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
56
58
  ref: this.innerRef(provided.innerRef)
57
59
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -14,7 +14,7 @@ import LoadingContainerAdvanced from './loading-container-advanced';
14
14
  import ManagedPagination from './managed-pagination';
15
15
  import TableHead from './table-head';
16
16
  const packageName = "@atlaskit/dynamic-table";
17
- const packageVersion = "14.18.3";
17
+ const packageVersion = "14.19.0";
18
18
  function toggleSortOrder(currentSortOrder) {
19
19
  switch (currentSortOrder) {
20
20
  case DESC:
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /* eslint-disable @repo/internal/react/require-jsdoc */
3
3
  /**
4
4
  * @jsxRuntime classic
5
+ * @jsx jsx
5
6
  */
6
- /** @jsx jsx */
7
7
  import { forwardRef } from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @repo/internal/react/require-jsdoc */
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /* eslint-disable @repo/internal/react/require-jsdoc */
3
3
  /**
4
4
  * @jsxRuntime classic
5
+ * @jsx jsx
5
6
  */
6
- /** @jsx jsx */
7
7
  import { forwardRef } from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @repo/internal/react/require-jsdoc */
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /* eslint-disable @repo/internal/react/require-jsdoc */
3
3
  /**
4
4
  * @jsxRuntime classic
5
+ * @jsx jsx
5
6
  */
6
- /** @jsx jsx */
7
7
  import { forwardRef } from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -72,7 +72,9 @@ export var RankableTableRow = /*#__PURE__*/function (_React$Component) {
72
72
  var _provided$dragHandleP;
73
73
  return /*#__PURE__*/React.createElement(RankableTableBodyRow, _extends({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
74
74
  // It is necessary to prevent the passing of aria-labelledby
75
- "aria-labelledby": undefined,
75
+ "aria-labelledby": undefined
76
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
77
+ ,
76
78
  "aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
77
79
  ref: _this2.innerRef(provided.innerRef)
78
80
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -25,7 +25,7 @@ import LoadingContainerAdvanced from './loading-container-advanced';
25
25
  import ManagedPagination from './managed-pagination';
26
26
  import TableHead from './table-head';
27
27
  var packageName = "@atlaskit/dynamic-table";
28
- var packageVersion = "14.18.3";
28
+ var packageVersion = "14.19.0";
29
29
  function toggleSortOrder(currentSortOrder) {
30
30
  switch (currentSortOrder) {
31
31
  case DESC:
@@ -5,8 +5,8 @@ var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"]
5
5
  /* eslint-disable @repo/internal/react/require-jsdoc */
6
6
  /**
7
7
  * @jsxRuntime classic
8
+ * @jsx jsx
8
9
  */
9
- /** @jsx jsx */
10
10
  import { forwardRef } from 'react';
11
11
 
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @repo/internal/react/require-jsdoc */
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
@@ -4,8 +4,8 @@ var _excluded = ["children", "testId"];
4
4
  /* eslint-disable @repo/internal/react/require-jsdoc */
5
5
  /**
6
6
  * @jsxRuntime classic
7
+ * @jsx jsx
7
8
  */
8
- /** @jsx jsx */
9
9
  import { forwardRef } from 'react';
10
10
 
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @repo/internal/react/require-jsdoc */
3
3
  /**
4
4
  * @jsxRuntime classic
5
+ * @jsx jsx
5
6
  */
6
- /** @jsx jsx */
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["isRanking", "innerRef"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
+ * @jsx jsx
6
7
  */
7
- /** @jsx jsx */
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["isRanking", "isRankingItem", "testId"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
+ * @jsx jsx
6
7
  */
7
- /** @jsx jsx */
8
8
  import { forwardRef } from 'react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
+ * @jsx jsx
6
7
  */
7
- /** @jsx jsx */
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { jsx } from '@emotion/react';
@@ -8,8 +8,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
  /* eslint-disable @repo/internal/react/require-jsdoc */
9
9
  /**
10
10
  * @jsxRuntime classic
11
+ * @jsx jsx
11
12
  */
12
- /** @jsx jsx */
13
13
  import { forwardRef } from 'react';
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["isHighlighted", "children", "style", "testId"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
+ * @jsx jsx
6
7
  */
7
- /** @jsx jsx */
8
8
  import { forwardRef } from 'react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,4 @@
1
- import React, { type FC, type LegacyRef } from 'react';
1
+ import React, { type FC, type Ref } from 'react';
2
2
  import { type SortOrderType } from '../types';
3
3
  export interface TableHeadCellProps {
4
4
  colSpan?: number;
@@ -6,7 +6,7 @@ export interface TableHeadCellProps {
6
6
  isSortable?: boolean;
7
7
  sortOrder?: SortOrderType;
8
8
  isFixedSize?: boolean;
9
- innerRef?: LegacyRef<HTMLTableCellElement>;
9
+ innerRef?: Ref<HTMLTableCellElement>;
10
10
  inlineStyles?: {};
11
11
  content?: React.ReactNode;
12
12
  onClick?: () => void;
@@ -1,10 +1,10 @@
1
- import React, { type LegacyRef } from 'react';
1
+ import React, { type Ref } from 'react';
2
2
  export interface State {
3
3
  refWidth: number;
4
4
  refHeight: number;
5
5
  }
6
6
  export interface WithDimensionsProps {
7
- innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement>;
7
+ innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement>;
8
8
  isRanking: boolean;
9
9
  refWidth: number;
10
10
  refHeight: number;
@@ -1,11 +1,11 @@
1
- import { type LegacyRef, type ReactNode } from 'react';
1
+ import { type ReactNode, type Ref } from 'react';
2
2
  export interface TruncateStyleProps {
3
3
  width?: number;
4
4
  isFixedSize?: boolean;
5
5
  shouldTruncate?: boolean;
6
6
  children?: ReactNode;
7
7
  testId?: string;
8
- innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
8
+ innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement> | undefined;
9
9
  className?: string;
10
10
  }
11
11
  export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  export type TableProps = HTMLProps<HTMLTableElement> & {
7
7
  isFixedSize?: boolean;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  type EmptyViewWithFixedHeightProps = {
7
7
  testId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  type ContainerProps = HTMLProps<HTMLDivElement> & {
7
7
  testId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
7
7
  type ContainerProps = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  import { type TruncateStyleProps } from '../constants';
7
7
  type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type HTMLAttributes } from 'react';
6
6
  import { type ITableRowProps } from '../table-row';
7
7
  export type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC } from 'react';
6
6
  import { type TruncateStyleProps } from './constants';
7
7
  export declare const TableBodyCell: FC<TruncateStyleProps>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  import { type SortOrderType } from '../types';
7
7
  import { type TruncateStyleProps } from './constants';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type CSSProperties, type ReactNode } from 'react';
6
6
  export type ITableRowProps = {
7
7
  isHighlighted?: boolean;
@@ -1,4 +1,4 @@
1
- import React, { type FC, type LegacyRef } from 'react';
1
+ import React, { type FC, type Ref } from 'react';
2
2
  import { type SortOrderType } from '../types';
3
3
  export interface TableHeadCellProps {
4
4
  colSpan?: number;
@@ -6,7 +6,7 @@ export interface TableHeadCellProps {
6
6
  isSortable?: boolean;
7
7
  sortOrder?: SortOrderType;
8
8
  isFixedSize?: boolean;
9
- innerRef?: LegacyRef<HTMLTableCellElement>;
9
+ innerRef?: Ref<HTMLTableCellElement>;
10
10
  inlineStyles?: {};
11
11
  content?: React.ReactNode;
12
12
  onClick?: () => void;
@@ -1,10 +1,10 @@
1
- import React, { type LegacyRef } from 'react';
1
+ import React, { type Ref } from 'react';
2
2
  export interface State {
3
3
  refWidth: number;
4
4
  refHeight: number;
5
5
  }
6
6
  export interface WithDimensionsProps {
7
- innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement>;
7
+ innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement>;
8
8
  isRanking: boolean;
9
9
  refWidth: number;
10
10
  refHeight: number;
@@ -1,11 +1,11 @@
1
- import { type LegacyRef, type ReactNode } from 'react';
1
+ import { type ReactNode, type Ref } from 'react';
2
2
  export interface TruncateStyleProps {
3
3
  width?: number;
4
4
  isFixedSize?: boolean;
5
5
  shouldTruncate?: boolean;
6
6
  children?: ReactNode;
7
7
  testId?: string;
8
- innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
8
+ innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement> | undefined;
9
9
  className?: string;
10
10
  }
11
11
  export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  export type TableProps = HTMLProps<HTMLTableElement> & {
7
7
  isFixedSize?: boolean;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  type EmptyViewWithFixedHeightProps = {
7
7
  testId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  type ContainerProps = HTMLProps<HTMLDivElement> & {
7
7
  testId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode } from 'react';
6
6
  export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
7
7
  type ContainerProps = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  import { type TruncateStyleProps } from '../constants';
7
7
  type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type HTMLAttributes } from 'react';
6
6
  import { type ITableRowProps } from '../table-row';
7
7
  export type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC } from 'react';
6
6
  import { type TruncateStyleProps } from './constants';
7
7
  export declare const TableBodyCell: FC<TruncateStyleProps>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type HTMLProps, type ReactNode } from 'react';
6
6
  import { type SortOrderType } from '../types';
7
7
  import { type TruncateStyleProps } from './constants';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type CSSProperties, type ReactNode } from 'react';
6
6
  export type ITableRowProps = {
7
7
  isHighlighted?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.18.3",
3
+ "version": "14.19.0",
4
4
  "description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,20 +41,20 @@
41
41
  "runReact18": true
42
42
  },
43
43
  "dependencies": {
44
- "@atlaskit/analytics-next": "^9.3.0",
44
+ "@atlaskit/analytics-next": "^10.0.0",
45
45
  "@atlaskit/ds-lib": "^2.3.0",
46
46
  "@atlaskit/pagination": "^14.7.0",
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/spinner": "^16.2.0",
49
49
  "@atlaskit/theme": "^12.11.0",
50
- "@atlaskit/tokens": "^1.54.0",
50
+ "@atlaskit/tokens": "^1.57.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "react-beautiful-dnd": "^12.2.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
57
- "react-dom": "^16.8.0"
57
+ "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@af/accessibility-testing": "*",