@atlaskit/dynamic-table 14.16.1 → 14.16.3
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/stateless.js +1 -1
- package/dist/cjs/styled/empty-body.js +1 -2
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/empty-body.js +1 -2
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/empty-body.js +1 -2
- package/dist/types/components/body.d.ts +1 -1
- package/dist/types/components/rankable/body.d.ts +1 -1
- package/dist/types/hoc/with-sorted-page-rows.d.ts +1 -1
- package/dist/types-ts4.5/components/body.d.ts +1 -1
- package/dist/types-ts4.5/components/rankable/body.d.ts +1 -1
- package/dist/types-ts4.5/hoc/with-sorted-page-rows.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#91429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91429) [`e66644a98985`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e66644a98985) - Updated TypeScript types for the `forwardedRef` prop in `withSortedPageRows` to improve compatibility with React 18
|
|
8
|
+
|
|
9
|
+
## 14.16.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#83297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83297) [`6b1707c169e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b1707c169e0) - The internal composition of this component has changed. There is no expected change in behaviour.
|
|
14
|
+
|
|
3
15
|
## 14.16.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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.16.
|
|
38
|
+
var packageVersion = "14.16.3";
|
|
39
39
|
function toggleSortOrder(currentSortOrder) {
|
|
40
40
|
switch (currentSortOrder) {
|
|
41
41
|
case _constants.DESC:
|
|
@@ -24,9 +24,8 @@ var EmptyViewWithFixedHeight = exports.EmptyViewWithFixedHeight = function Empty
|
|
|
24
24
|
};
|
|
25
25
|
var emptyViewContainerStyles = (0, _react.css)({
|
|
26
26
|
width: '50%',
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
27
|
margin: 'auto',
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
30
29
|
padding: '10px',
|
|
31
30
|
textAlign: 'center'
|
|
32
31
|
});
|
|
@@ -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.16.
|
|
17
|
+
const packageVersion = "14.16.3";
|
|
18
18
|
function toggleSortOrder(currentSortOrder) {
|
|
19
19
|
switch (currentSortOrder) {
|
|
20
20
|
case DESC:
|
|
@@ -17,9 +17,8 @@ export const EmptyViewWithFixedHeight = ({
|
|
|
17
17
|
}, children);
|
|
18
18
|
const emptyViewContainerStyles = css({
|
|
19
19
|
width: '50%',
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
21
20
|
margin: 'auto',
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
23
22
|
padding: '10px',
|
|
24
23
|
textAlign: 'center'
|
|
25
24
|
});
|
|
@@ -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.16.
|
|
28
|
+
var packageVersion = "14.16.3";
|
|
29
29
|
function toggleSortOrder(currentSortOrder) {
|
|
30
30
|
switch (currentSortOrder) {
|
|
31
31
|
case DESC:
|
|
@@ -18,9 +18,8 @@ export var EmptyViewWithFixedHeight = function EmptyViewWithFixedHeight(_ref) {
|
|
|
18
18
|
};
|
|
19
19
|
var emptyViewContainerStyles = css({
|
|
20
20
|
width: '50%',
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
22
21
|
margin: 'auto',
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
24
23
|
padding: '10px',
|
|
25
24
|
textAlign: 'center'
|
|
26
25
|
});
|
|
@@ -9,6 +9,6 @@ interface BodyProps extends WithSortedPageRowsProps {
|
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: React.ForwardRefExoticComponent<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
12
|
-
forwardedRef?: React.
|
|
12
|
+
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
14
14
|
export default _default;
|
|
@@ -19,6 +19,6 @@ export declare class RankableBody extends React.Component<RankableBodyProps, {}>
|
|
|
19
19
|
render(): JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
declare const _default: React.ForwardRefExoticComponent<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
22
|
-
forwardedRef?: React.
|
|
22
|
+
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
23
23
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
24
24
|
export default _default;
|
|
@@ -14,5 +14,5 @@ export interface WithSortedPageRowsProps {
|
|
|
14
14
|
isTotalPagesControlledExternally?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps, RefType = HTMLTableSectionElement>(WrappedComponent: React.ComponentType<WrappedComponentProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<WrappedComponentProps & TableProps, "pageRows"> & {
|
|
17
|
-
forwardedRef?: React.
|
|
17
|
+
forwardedRef?: React.Ref<RefType> | undefined;
|
|
18
18
|
}> & React.RefAttributes<RefType>>;
|
|
@@ -9,6 +9,6 @@ interface BodyProps extends WithSortedPageRowsProps {
|
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: React.ForwardRefExoticComponent<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
12
|
-
forwardedRef?: React.
|
|
12
|
+
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
14
14
|
export default _default;
|
|
@@ -19,6 +19,6 @@ export declare class RankableBody extends React.Component<RankableBodyProps, {}>
|
|
|
19
19
|
render(): JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
declare const _default: React.ForwardRefExoticComponent<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows"> & {
|
|
22
|
-
forwardedRef?: React.
|
|
22
|
+
forwardedRef?: React.Ref<HTMLTableSectionElement> | undefined;
|
|
23
23
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
24
24
|
export default _default;
|
|
@@ -14,5 +14,5 @@ export interface WithSortedPageRowsProps {
|
|
|
14
14
|
isTotalPagesControlledExternally?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps, RefType = HTMLTableSectionElement>(WrappedComponent: React.ComponentType<WrappedComponentProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<WrappedComponentProps & TableProps, "pageRows"> & {
|
|
17
|
-
forwardedRef?: React.
|
|
17
|
+
forwardedRef?: React.Ref<RefType> | undefined;
|
|
18
18
|
}> & React.RefAttributes<RefType>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.16.
|
|
3
|
+
"version": "14.16.3",
|
|
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,11 +41,11 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
44
|
-
"@atlaskit/ds-lib": "^2.
|
|
44
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
45
45
|
"@atlaskit/pagination": "^14.6.0",
|
|
46
46
|
"@atlaskit/spinner": "^16.0.0",
|
|
47
|
-
"@atlaskit/theme": "^12.
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/theme": "^12.7.0",
|
|
48
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"react-beautiful-dnd": "^12.1.1"
|