@atlaskit/dynamic-table 18.3.9 → 18.3.10
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 +8 -0
- package/dist/cjs/components/stateless.js +2 -2
- package/dist/es2019/components/body.js +1 -3
- package/dist/es2019/components/rankable/table-cell.js +1 -3
- package/dist/es2019/components/rankable/table-head-cell.js +1 -3
- package/dist/es2019/components/rankable/table-row.js +1 -3
- package/dist/es2019/components/stateless.js +2 -2
- package/dist/esm/components/body.js +1 -3
- package/dist/esm/components/rankable/table-cell.js +1 -3
- package/dist/esm/components/rankable/table-head-cell.js +1 -3
- package/dist/esm/components/rankable/table-row.js +1 -3
- package/dist/esm/components/stateless.js +2 -2
- package/dist/types/components/body.d.ts +2 -2
- package/dist/types/components/rankable/table-cell.d.ts +2 -2
- package/dist/types/components/rankable/table-head-cell.d.ts +2 -2
- package/dist/types/components/rankable/table-row.d.ts +2 -2
- package/dist/types-ts4.5/components/body.d.ts +2 -2
- package/dist/types-ts4.5/components/rankable/table-cell.d.ts +2 -2
- package/dist/types-ts4.5/components/rankable/table-head-cell.d.ts +2 -2
- package/dist/types-ts4.5/components/rankable/table-row.d.ts +2 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 18.3.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) -
|
|
8
|
+
Internal refactors to remove unused variables. No functional or public changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 18.3.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -85,14 +85,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
85
85
|
action: 'sorted',
|
|
86
86
|
componentName: 'dynamicTable',
|
|
87
87
|
packageName: "@atlaskit/dynamic-table",
|
|
88
|
-
packageVersion: "
|
|
88
|
+
packageVersion: "18.3.9"
|
|
89
89
|
});
|
|
90
90
|
var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
91
91
|
fn: providedOnRankEnd,
|
|
92
92
|
action: 'ranked',
|
|
93
93
|
componentName: 'dynamicTable',
|
|
94
94
|
packageName: "@atlaskit/dynamic-table",
|
|
95
|
-
packageVersion: "
|
|
95
|
+
packageVersion: "18.3.9"
|
|
96
96
|
});
|
|
97
97
|
(0, _react.useEffect)(function () {
|
|
98
98
|
(0, _helpers.validateSortKey)(sortKey, head);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import withSortedPageRows
|
|
4
|
-
// @ts-ignore -- Required for the below export of Body
|
|
5
|
-
from '../hoc/with-sorted-page-rows';
|
|
3
|
+
import withSortedPageRows from '../hoc/with-sorted-page-rows';
|
|
6
4
|
import TableRow from './table-row';
|
|
7
5
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
8
6
|
class BodyComponent extends React.Component {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import withDimensions
|
|
4
|
-
// @ts-ignore -- This import is required for default export
|
|
5
|
-
from '../../hoc/with-dimensions';
|
|
3
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
6
4
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
7
5
|
import { RankableTableBodyCell } from '../../styled/rankable/table-cell';
|
|
8
6
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import withDimensions
|
|
4
|
-
// @ts-ignore -- This import is required for default export
|
|
5
|
-
from '../../hoc/with-dimensions';
|
|
3
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
6
4
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
7
5
|
import HeadCell from '../table-head-cell';
|
|
8
6
|
|
|
@@ -4,9 +4,7 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
// Allowing existing usage of non Pragmatic drag and drop solution
|
|
6
6
|
import { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration';
|
|
7
|
-
import withDimensions
|
|
8
|
-
// @ts-ignore -- This import is required for default export
|
|
9
|
-
from '../../hoc/with-dimensions';
|
|
7
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
10
8
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
11
9
|
import { RankableTableBodyRow } from '../../styled/rankable/table-row';
|
|
12
10
|
import TableCell from './table-cell';
|
|
@@ -60,14 +60,14 @@ const DynamicTable = ({
|
|
|
60
60
|
action: 'sorted',
|
|
61
61
|
componentName: 'dynamicTable',
|
|
62
62
|
packageName: "@atlaskit/dynamic-table",
|
|
63
|
-
packageVersion: "
|
|
63
|
+
packageVersion: "18.3.9"
|
|
64
64
|
});
|
|
65
65
|
const onRankEnd = usePlatformLeafEventHandler({
|
|
66
66
|
fn: providedOnRankEnd,
|
|
67
67
|
action: 'ranked',
|
|
68
68
|
componentName: 'dynamicTable',
|
|
69
69
|
packageName: "@atlaskit/dynamic-table",
|
|
70
|
-
packageVersion: "
|
|
70
|
+
packageVersion: "18.3.9"
|
|
71
71
|
});
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
validateSortKey(sortKey, head);
|
|
@@ -7,9 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import withSortedPageRows
|
|
11
|
-
// @ts-ignore -- Required for the below export of Body
|
|
12
|
-
from '../hoc/with-sorted-page-rows';
|
|
10
|
+
import withSortedPageRows from '../hoc/with-sorted-page-rows';
|
|
13
11
|
import TableRow from './table-row';
|
|
14
12
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
15
13
|
var BodyComponent = /*#__PURE__*/function (_React$Component) {
|
|
@@ -9,9 +9,7 @@ var _excluded = ["content", "testId"];
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import withDimensions
|
|
13
|
-
// @ts-ignore -- This import is required for default export
|
|
14
|
-
from '../../hoc/with-dimensions';
|
|
12
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
15
13
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
16
14
|
import { RankableTableBodyCell } from '../../styled/rankable/table-cell';
|
|
17
15
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -9,9 +9,7 @@ var _excluded = ["isRanking", "refHeight", "refWidth"];
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import withDimensions
|
|
13
|
-
// @ts-ignore -- This import is required for default export
|
|
14
|
-
from '../../hoc/with-dimensions';
|
|
12
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
15
13
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
16
14
|
import HeadCell from '../table-head-cell';
|
|
17
15
|
|
|
@@ -15,9 +15,7 @@ import React from 'react';
|
|
|
15
15
|
|
|
16
16
|
// Allowing existing usage of non Pragmatic drag and drop solution
|
|
17
17
|
import { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration';
|
|
18
|
-
import withDimensions
|
|
19
|
-
// @ts-ignore -- This import is required for default export
|
|
20
|
-
from '../../hoc/with-dimensions';
|
|
18
|
+
import withDimensions from '../../hoc/with-dimensions';
|
|
21
19
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
22
20
|
import { RankableTableBodyRow } from '../../styled/rankable/table-row';
|
|
23
21
|
import TableCell from './table-cell';
|
|
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
76
76
|
action: 'sorted',
|
|
77
77
|
componentName: 'dynamicTable',
|
|
78
78
|
packageName: "@atlaskit/dynamic-table",
|
|
79
|
-
packageVersion: "
|
|
79
|
+
packageVersion: "18.3.9"
|
|
80
80
|
});
|
|
81
81
|
var onRankEnd = usePlatformLeafEventHandler({
|
|
82
82
|
fn: providedOnRankEnd,
|
|
83
83
|
action: 'ranked',
|
|
84
84
|
componentName: 'dynamicTable',
|
|
85
85
|
packageName: "@atlaskit/dynamic-table",
|
|
86
|
-
packageVersion: "
|
|
86
|
+
packageVersion: "18.3.9"
|
|
87
87
|
});
|
|
88
88
|
useEffect(function () {
|
|
89
89
|
validateSortKey(sortKey, head);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
|
|
3
3
|
import { type HeadType } from '../types';
|
|
4
4
|
interface BodyProps extends WithSortedPageRowsProps {
|
|
5
5
|
head?: HeadType;
|
|
@@ -8,7 +8,7 @@ interface BodyProps extends WithSortedPageRowsProps {
|
|
|
8
8
|
forwardedRef?: React.Ref<HTMLTableSectionElement>;
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const Body: React.ForwardRefExoticComponent<Omit<BodyProps & TableProps, "pageRows"> & {
|
|
11
|
+
declare const Body: React.ForwardRefExoticComponent<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
12
12
|
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
14
14
|
export default Body;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type HeadCellType, type RowCellType } from '../../types';
|
|
4
4
|
interface RankableTableCellProps extends WithDimensionsProps {
|
|
5
5
|
head?: HeadCellType;
|
|
@@ -10,5 +10,5 @@ interface RankableTableCellProps extends WithDimensionsProps {
|
|
|
10
10
|
export declare class RankableTableCell extends React.Component<RankableTableCellProps, {}> {
|
|
11
11
|
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
14
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type TableHeadCellProps } from '../table-head-cell';
|
|
4
|
-
declare const RankableTableHeadCell: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
4
|
+
declare const RankableTableHeadCell: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
5
5
|
export default RankableTableHeadCell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type HeadType, type RowType } from '../../types';
|
|
4
4
|
interface RankableTableRowProps extends WithDimensionsProps {
|
|
5
5
|
head?: HeadType;
|
|
@@ -10,5 +10,5 @@ interface RankableTableRowProps extends WithDimensionsProps {
|
|
|
10
10
|
isHighlighted?: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: React.ComponentClass<Omit<RankableTableRowProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableRowProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
14
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
|
|
3
3
|
import { type HeadType } from '../types';
|
|
4
4
|
interface BodyProps extends WithSortedPageRowsProps {
|
|
5
5
|
head?: HeadType;
|
|
@@ -8,7 +8,7 @@ interface BodyProps extends WithSortedPageRowsProps {
|
|
|
8
8
|
forwardedRef?: React.Ref<HTMLTableSectionElement>;
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const Body: React.ForwardRefExoticComponent<Omit<BodyProps & TableProps, "pageRows"> & {
|
|
11
|
+
declare const Body: React.ForwardRefExoticComponent<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
12
12
|
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
14
14
|
export default Body;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type HeadCellType, type RowCellType } from '../../types';
|
|
4
4
|
interface RankableTableCellProps extends WithDimensionsProps {
|
|
5
5
|
head?: HeadCellType;
|
|
@@ -10,5 +10,5 @@ interface RankableTableCellProps extends WithDimensionsProps {
|
|
|
10
10
|
export declare class RankableTableCell extends React.Component<RankableTableCellProps, {}> {
|
|
11
11
|
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
14
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type TableHeadCellProps } from '../table-head-cell';
|
|
4
|
-
declare const RankableTableHeadCell: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
4
|
+
declare const RankableTableHeadCell: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
5
5
|
export default RankableTableHeadCell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
3
|
import { type HeadType, type RowType } from '../../types';
|
|
4
4
|
interface RankableTableRowProps extends WithDimensionsProps {
|
|
5
5
|
head?: HeadType;
|
|
@@ -10,5 +10,5 @@ interface RankableTableRowProps extends WithDimensionsProps {
|
|
|
10
10
|
isHighlighted?: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: React.ComponentClass<Omit<RankableTableRowProps, "innerRef" | "refWidth" | "refHeight">, State>;
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableRowProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
14
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.10",
|
|
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/"
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@atlaskit/icon": "^29.0.0",
|
|
40
40
|
"@atlaskit/pagination": "^16.1.0",
|
|
41
41
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^2.0.0",
|
|
42
|
-
"@atlaskit/primitives": "^16.
|
|
42
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
43
43
|
"@atlaskit/spinner": "^19.0.0",
|
|
44
|
-
"@atlaskit/tokens": "^8.
|
|
45
|
-
"@atlaskit/tooltip": "^20.
|
|
44
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
45
|
+
"@atlaskit/tooltip": "^20.11.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@compiled/react": "^0.18.6"
|
|
48
48
|
},
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
65
65
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
66
66
|
"@atlaskit/section-message": "^8.9.0",
|
|
67
|
-
"@atlaskit/ssr": "workspace:^",
|
|
68
67
|
"@atlaskit/toggle": "^15.1.0",
|
|
69
68
|
"@atlassian/ssr-tests": "workspace:^",
|
|
70
69
|
"@testing-library/react": "^13.4.0",
|