@atlaskit/dynamic-table 17.1.2 → 17.1.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 17.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#113467](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113467)
8
+ [`01b28858edafb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01b28858edafb) -
9
+ Changed the aria-label for previous page and next page buttons
10
+ - Updated dependencies
11
+
3
12
  ## 17.1.2
4
13
 
5
14
  ### 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.2"
90
+ packageVersion: "17.1.3"
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.2"
97
+ packageVersion: "17.1.3"
97
98
  });
98
99
  (0, _react.useEffect)(function () {
99
100
  (0, _helpers.validateSortKey)(sortKey, head);
@@ -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.2"
64
+ packageVersion: "17.1.3"
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.2"
71
+ packageVersion: "17.1.3"
71
72
  });
72
73
  useEffect(() => {
73
74
  validateSortKey(sortKey, head);
@@ -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.2"
80
+ packageVersion: "17.1.3"
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.2"
87
+ packageVersion: "17.1.3"
87
88
  });
88
89
  useEffect(function () {
89
90
  validateSortKey(sortKey, head);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "17.1.2",
3
+ "version": "17.1.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/"
@@ -42,11 +42,11 @@
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.7.0",
45
+ "@atlaskit/icon": "^23.9.0",
46
46
  "@atlaskit/pagination": "^15.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.0.0",
48
48
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^1.4.0",
49
- "@atlaskit/primitives": "^13.4.0",
49
+ "@atlaskit/primitives": "^13.5.0",
50
50
  "@atlaskit/spinner": "^17.1.0",
51
51
  "@atlaskit/theme": "^15.0.0",
52
52
  "@atlaskit/tokens": "^3.3.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
  }