@atlaskit/dynamic-table 17.1.2 → 17.1.4
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 +15 -0
- package/dist/cjs/components/stateless.js +5 -4
- package/dist/cjs/components/table-head-cell.compiled.css +1 -1
- package/dist/cjs/components/table-head-cell.js +4 -4
- package/dist/es2019/components/stateless.js +5 -4
- package/dist/es2019/components/table-head-cell.compiled.css +1 -1
- package/dist/es2019/components/table-head-cell.js +4 -4
- package/dist/esm/components/stateless.js +5 -4
- package/dist/esm/components/table-head-cell.compiled.css +1 -1
- package/dist/esm/components/table-head-cell.js +4 -4
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 17.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#113467](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113467)
|
|
14
|
+
[`01b28858edafb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01b28858edafb) -
|
|
15
|
+
Changed the aria-label for previous page and next page buttons
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 17.1.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
14
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _constants = require("../internal/constants");
|
|
16
17
|
var _helpers = require("../internal/helpers");
|
|
17
18
|
var _dynamicTable = require("../styled/dynamic-table");
|
|
@@ -71,8 +72,8 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
71
72
|
loadingSpinnerSize = _ref.loadingSpinnerSize,
|
|
72
73
|
_ref$paginationi18n = _ref.paginationi18n,
|
|
73
74
|
paginationi18n = _ref$paginationi18n === void 0 ? {
|
|
74
|
-
prev: 'Previous',
|
|
75
|
-
next: 'Next',
|
|
75
|
+
prev: (0, _platformFeatureFlags.fg)('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Previous Page' : 'Previous',
|
|
76
|
+
next: (0, _platformFeatureFlags.fg)('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Next Page' : 'Next',
|
|
76
77
|
label: 'Pagination',
|
|
77
78
|
pageLabel: 'Page'
|
|
78
79
|
} : _ref$paginationi18n;
|
|
@@ -86,14 +87,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
86
87
|
action: 'sorted',
|
|
87
88
|
componentName: 'dynamicTable',
|
|
88
89
|
packageName: "@atlaskit/dynamic-table",
|
|
89
|
-
packageVersion: "17.1.
|
|
90
|
+
packageVersion: "17.1.4"
|
|
90
91
|
});
|
|
91
92
|
var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
92
93
|
fn: providedOnRankEnd,
|
|
93
94
|
action: 'ranked',
|
|
94
95
|
componentName: 'dynamicTable',
|
|
95
96
|
packageName: "@atlaskit/dynamic-table",
|
|
96
|
-
packageVersion: "17.1.
|
|
97
|
+
packageVersion: "17.1.4"
|
|
97
98
|
});
|
|
98
99
|
(0, _react.useEffect)(function () {
|
|
99
100
|
(0, _helpers.validateSortKey)(sortKey, head);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._4cvr1h6o{align-items:center}
|
|
6
|
-
.
|
|
6
|
+
._bfhk1j28{background-color:transparent}
|
|
7
7
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
8
8
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
9
9
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.
|
|
1
|
+
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -23,9 +23,9 @@ var _excluded = ["content", "inlineStyles", "testId", "isRanking", "innerRef", "
|
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
25
|
var styles = {
|
|
26
|
-
buttonWrapper: "_1e0c1txw
|
|
27
|
-
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf
|
|
28
|
-
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n
|
|
26
|
+
buttonWrapper: "_1e0c1txw _bfhk1j28 _4cvr1h6o _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0altlke",
|
|
27
|
+
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1h7hkb7n",
|
|
28
|
+
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
29
29
|
hideIconHeaderWrapper: "_tzy4idpf _18u010v4",
|
|
30
30
|
visibleHeaderWrapper: "_tzy4kb7n _u5f31b66"
|
|
31
31
|
};
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { forwardRef, lazy, Suspense, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { ASC, DESC, LARGE, SMALL } from '../internal/constants';
|
|
6
7
|
import { assertIsSortable, getPageRows, validateSortKey } from '../internal/helpers';
|
|
7
8
|
import { Caption, PaginationWrapper, Table } from '../styled/dynamic-table';
|
|
@@ -47,8 +48,8 @@ const DynamicTable = ({
|
|
|
47
48
|
onRankEnd: providedOnRankEnd = noop,
|
|
48
49
|
loadingSpinnerSize,
|
|
49
50
|
paginationi18n = {
|
|
50
|
-
prev: 'Previous',
|
|
51
|
-
next: 'Next',
|
|
51
|
+
prev: fg('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Previous Page' : 'Previous',
|
|
52
|
+
next: fg('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Next Page' : 'Next',
|
|
52
53
|
label: 'Pagination',
|
|
53
54
|
pageLabel: 'Page'
|
|
54
55
|
}
|
|
@@ -60,14 +61,14 @@ const DynamicTable = ({
|
|
|
60
61
|
action: 'sorted',
|
|
61
62
|
componentName: 'dynamicTable',
|
|
62
63
|
packageName: "@atlaskit/dynamic-table",
|
|
63
|
-
packageVersion: "17.1.
|
|
64
|
+
packageVersion: "17.1.4"
|
|
64
65
|
});
|
|
65
66
|
const onRankEnd = usePlatformLeafEventHandler({
|
|
66
67
|
fn: providedOnRankEnd,
|
|
67
68
|
action: 'ranked',
|
|
68
69
|
componentName: 'dynamicTable',
|
|
69
70
|
packageName: "@atlaskit/dynamic-table",
|
|
70
|
-
packageVersion: "17.1.
|
|
71
|
+
packageVersion: "17.1.4"
|
|
71
72
|
});
|
|
72
73
|
useEffect(() => {
|
|
73
74
|
validateSortKey(sortKey, head);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._4cvr1h6o{align-items:center}
|
|
6
|
-
.
|
|
6
|
+
._bfhk1j28{background-color:transparent}
|
|
7
7
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
8
8
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
9
9
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.
|
|
1
|
+
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./table-head-cell.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -10,9 +10,9 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
10
10
|
import { ASC } from '../internal/constants';
|
|
11
11
|
import { HeadCell } from '../styled/table-head';
|
|
12
12
|
const styles = {
|
|
13
|
-
buttonWrapper: "_1e0c1txw
|
|
14
|
-
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf
|
|
15
|
-
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n
|
|
13
|
+
buttonWrapper: "_1e0c1txw _bfhk1j28 _4cvr1h6o _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0altlke",
|
|
14
|
+
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1h7hkb7n",
|
|
15
|
+
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
16
16
|
hideIconHeaderWrapper: "_tzy4idpf _18u010v4",
|
|
17
17
|
visibleHeaderWrapper: "_tzy4kb7n _u5f31b66"
|
|
18
18
|
};
|
|
@@ -5,6 +5,7 @@ var _excluded = ["isRankable", "isRanking", "onRankStart", "onRankEnd", "isRanki
|
|
|
5
5
|
import React, { forwardRef, lazy, Suspense, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { ASC, DESC, LARGE, SMALL } from '../internal/constants';
|
|
9
10
|
import { assertIsSortable, getPageRows, validateSortKey } from '../internal/helpers';
|
|
10
11
|
import { Caption, PaginationWrapper, Table } from '../styled/dynamic-table';
|
|
@@ -61,8 +62,8 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
61
62
|
loadingSpinnerSize = _ref.loadingSpinnerSize,
|
|
62
63
|
_ref$paginationi18n = _ref.paginationi18n,
|
|
63
64
|
paginationi18n = _ref$paginationi18n === void 0 ? {
|
|
64
|
-
prev: 'Previous',
|
|
65
|
-
next: 'Next',
|
|
65
|
+
prev: fg('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Previous Page' : 'Previous',
|
|
66
|
+
next: fg('eax-1131_fix_a11y_issues_global_issues_settings') ? 'Next Page' : 'Next',
|
|
66
67
|
label: 'Pagination',
|
|
67
68
|
pageLabel: 'Page'
|
|
68
69
|
} : _ref$paginationi18n;
|
|
@@ -76,14 +77,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
76
77
|
action: 'sorted',
|
|
77
78
|
componentName: 'dynamicTable',
|
|
78
79
|
packageName: "@atlaskit/dynamic-table",
|
|
79
|
-
packageVersion: "17.1.
|
|
80
|
+
packageVersion: "17.1.4"
|
|
80
81
|
});
|
|
81
82
|
var onRankEnd = usePlatformLeafEventHandler({
|
|
82
83
|
fn: providedOnRankEnd,
|
|
83
84
|
action: 'ranked',
|
|
84
85
|
componentName: 'dynamicTable',
|
|
85
86
|
packageName: "@atlaskit/dynamic-table",
|
|
86
|
-
packageVersion: "17.1.
|
|
87
|
+
packageVersion: "17.1.4"
|
|
87
88
|
});
|
|
88
89
|
useEffect(function () {
|
|
89
90
|
validateSortKey(sortKey, head);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._4cvr1h6o{align-items:center}
|
|
6
|
-
.
|
|
6
|
+
._bfhk1j28{background-color:transparent}
|
|
7
7
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
8
8
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
9
9
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.
|
|
1
|
+
/* table-head-cell.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -13,9 +13,9 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
13
13
|
import { ASC } from '../internal/constants';
|
|
14
14
|
import { HeadCell } from '../styled/table-head';
|
|
15
15
|
var styles = {
|
|
16
|
-
buttonWrapper: "_1e0c1txw
|
|
17
|
-
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf
|
|
18
|
-
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n
|
|
16
|
+
buttonWrapper: "_1e0c1txw _bfhk1j28 _4cvr1h6o _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0altlke",
|
|
17
|
+
sortIconHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1h7hkb7n",
|
|
18
|
+
sortIconVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk1j28 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66",
|
|
19
19
|
hideIconHeaderWrapper: "_tzy4idpf _18u010v4",
|
|
20
20
|
visibleHeaderWrapper: "_tzy4kb7n _u5f31b66"
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.4",
|
|
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/"
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
43
43
|
"@atlaskit/css": "^0.8.0",
|
|
44
44
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
45
|
-
"@atlaskit/icon": "^23.
|
|
46
|
-
"@atlaskit/pagination": "^15.
|
|
47
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
45
|
+
"@atlaskit/icon": "^23.9.0",
|
|
46
|
+
"@atlaskit/pagination": "^15.2.0",
|
|
47
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^1.4.0",
|
|
49
|
-
"@atlaskit/primitives": "^13.
|
|
49
|
+
"@atlaskit/primitives": "^13.5.0",
|
|
50
50
|
"@atlaskit/spinner": "^17.1.0",
|
|
51
|
-
"@atlaskit/theme": "^
|
|
51
|
+
"@atlaskit/theme": "^16.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^3.3.0",
|
|
53
53
|
"@atlaskit/tooltip": "^19.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -103,6 +103,9 @@
|
|
|
103
103
|
"platform-feature-flags": {
|
|
104
104
|
"platform-component-visual-refresh": {
|
|
105
105
|
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"eax-1131_fix_a11y_issues_global_issues_settings": {
|
|
108
|
+
"type": "boolean"
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
}
|