@atlaskit/pagination 14.6.0 → 14.6.2
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/entry-points/types.js +1 -5
- package/dist/cjs/internal/components/navigator.js +8 -5
- package/dist/cjs/pagination.js +3 -5
- package/dist/es2019/entry-points/types.js +0 -1
- package/dist/es2019/internal/components/navigator.js +8 -5
- package/dist/es2019/pagination.js +1 -3
- package/dist/esm/entry-points/types.js +0 -1
- package/dist/esm/internal/components/navigator.js +8 -5
- package/dist/esm/pagination.js +1 -3
- package/dist/types/internal/components/navigator.d.ts +0 -1
- package/dist/types-ts4.5/internal/components/navigator.d.ts +0 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/pagination
|
|
2
2
|
|
|
3
|
+
## 14.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 14.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#80972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80972) [`6ff808b4cb86`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6ff808b4cb86) - Remove unused "pages" prop from Navigator buttons and replace usage of spread operator with individual props.
|
|
14
|
+
|
|
3
15
|
## 14.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -5,13 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = Navigator;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
11
10
|
function Navigator(props) {
|
|
12
|
-
return /*#__PURE__*/_react.default.createElement(_standardButton.default
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
return /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
12
|
+
"aria-label": props['aria-label'],
|
|
13
|
+
isDisabled: props.isDisabled,
|
|
14
|
+
iconBefore: props.iconBefore,
|
|
15
|
+
testId: props.testId,
|
|
16
|
+
onClick: props.onClick,
|
|
17
|
+
component: props.component,
|
|
15
18
|
appearance: "subtle"
|
|
16
|
-
})
|
|
19
|
+
});
|
|
17
20
|
}
|
package/dist/cjs/pagination.js
CHANGED
|
@@ -20,14 +20,14 @@ var _page = _interopRequireDefault(require("./internal/components/page"));
|
|
|
20
20
|
var _renderEllipsis = _interopRequireDefault(require("./internal/components/render-ellipsis"));
|
|
21
21
|
var _constants = require("./internal/constants");
|
|
22
22
|
var _collapseRange = _interopRequireDefault(require("./internal/utils/collapse-range"));
|
|
23
|
-
function _getRequireWildcardCache(
|
|
24
|
-
function _interopRequireWildcard(
|
|
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
|
+
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 && Object.prototype.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
|
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; }
|
|
26
26
|
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; }
|
|
27
27
|
var analyticsAttributes = {
|
|
28
28
|
componentName: 'pagination',
|
|
29
29
|
packageName: "@atlaskit/pagination",
|
|
30
|
-
packageVersion: "14.6.
|
|
30
|
+
packageVersion: "14.6.2"
|
|
31
31
|
};
|
|
32
32
|
var paginationMenuStyles = (0, _primitives.xcss)({
|
|
33
33
|
padding: 'space.0',
|
|
@@ -131,7 +131,6 @@ function InnerPagination(_ref, ref) {
|
|
|
131
131
|
label: ""
|
|
132
132
|
}),
|
|
133
133
|
"aria-label": previousLabel,
|
|
134
|
-
pages: pages,
|
|
135
134
|
testId: testId && "".concat(testId, "--left-navigator")
|
|
136
135
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
137
136
|
space: "space.0",
|
|
@@ -156,7 +155,6 @@ function InnerPagination(_ref, ref) {
|
|
|
156
155
|
label: ""
|
|
157
156
|
}),
|
|
158
157
|
"aria-label": nextLabel,
|
|
159
|
-
pages: pages,
|
|
160
158
|
testId: testId && "".concat(testId, "--right-navigator")
|
|
161
159
|
})));
|
|
162
160
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Button from '@atlaskit/button/standard-button';
|
|
4
3
|
export default function Navigator(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Button
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
5
|
+
"aria-label": props['aria-label'],
|
|
6
|
+
isDisabled: props.isDisabled,
|
|
7
|
+
iconBefore: props.iconBefore,
|
|
8
|
+
testId: props.testId,
|
|
9
|
+
onClick: props.onClick,
|
|
10
|
+
component: props.component,
|
|
8
11
|
appearance: "subtle"
|
|
9
|
-
})
|
|
12
|
+
});
|
|
10
13
|
}
|
|
@@ -13,7 +13,7 @@ import collapseRange from './internal/utils/collapse-range';
|
|
|
13
13
|
const analyticsAttributes = {
|
|
14
14
|
componentName: 'pagination',
|
|
15
15
|
packageName: "@atlaskit/pagination",
|
|
16
|
-
packageVersion: "14.6.
|
|
16
|
+
packageVersion: "14.6.2"
|
|
17
17
|
};
|
|
18
18
|
const paginationMenuStyles = xcss({
|
|
19
19
|
padding: 'space.0',
|
|
@@ -102,7 +102,6 @@ function InnerPagination({
|
|
|
102
102
|
label: ""
|
|
103
103
|
}),
|
|
104
104
|
"aria-label": previousLabel,
|
|
105
|
-
pages: pages,
|
|
106
105
|
testId: testId && `${testId}--left-navigator`
|
|
107
106
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
108
107
|
space: "space.0",
|
|
@@ -125,7 +124,6 @@ function InnerPagination({
|
|
|
125
124
|
label: ""
|
|
126
125
|
}),
|
|
127
126
|
"aria-label": nextLabel,
|
|
128
|
-
pages: pages,
|
|
129
127
|
testId: testId && `${testId}--right-navigator`
|
|
130
128
|
})));
|
|
131
129
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Button from '@atlaskit/button/standard-button';
|
|
4
3
|
export default function Navigator(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Button
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
5
|
+
"aria-label": props['aria-label'],
|
|
6
|
+
isDisabled: props.isDisabled,
|
|
7
|
+
iconBefore: props.iconBefore,
|
|
8
|
+
testId: props.testId,
|
|
9
|
+
onClick: props.onClick,
|
|
10
|
+
component: props.component,
|
|
8
11
|
appearance: "subtle"
|
|
9
|
-
})
|
|
12
|
+
});
|
|
10
13
|
}
|
package/dist/esm/pagination.js
CHANGED
|
@@ -17,7 +17,7 @@ import collapseRange from './internal/utils/collapse-range';
|
|
|
17
17
|
var analyticsAttributes = {
|
|
18
18
|
componentName: 'pagination',
|
|
19
19
|
packageName: "@atlaskit/pagination",
|
|
20
|
-
packageVersion: "14.6.
|
|
20
|
+
packageVersion: "14.6.2"
|
|
21
21
|
};
|
|
22
22
|
var paginationMenuStyles = xcss({
|
|
23
23
|
padding: 'space.0',
|
|
@@ -121,7 +121,6 @@ function InnerPagination(_ref, ref) {
|
|
|
121
121
|
label: ""
|
|
122
122
|
}),
|
|
123
123
|
"aria-label": previousLabel,
|
|
124
|
-
pages: pages,
|
|
125
124
|
testId: testId && "".concat(testId, "--left-navigator")
|
|
126
125
|
}), /*#__PURE__*/React.createElement(Inline, {
|
|
127
126
|
space: "space.0",
|
|
@@ -146,7 +145,6 @@ function InnerPagination(_ref, ref) {
|
|
|
146
145
|
label: ""
|
|
147
146
|
}),
|
|
148
147
|
"aria-label": nextLabel,
|
|
149
|
-
pages: pages,
|
|
150
148
|
testId: testId && "".concat(testId, "--right-navigator")
|
|
151
149
|
})));
|
|
152
150
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pagination",
|
|
3
|
-
"version": "14.6.
|
|
3
|
+
"version": "14.6.2",
|
|
4
4
|
"description": "Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
43
|
-
"@atlaskit/button": "^17.
|
|
43
|
+
"@atlaskit/button": "^17.7.0",
|
|
44
44
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
45
45
|
"@atlaskit/ds-explorations": "^3.2.0",
|
|
46
46
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
48
|
+
"@atlaskit/primitives": "^5.0.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^1.2.4",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"memoize-one": "^6.0.0"
|