@atlaskit/pagination 14.6.2 → 14.6.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 +12 -0
- package/dist/cjs/pagination.js +1 -1
- package/dist/es2019/pagination.js +1 -1
- package/dist/esm/pagination.js +1 -1
- package/dist/types/internal/utils/collapse-range.d.ts +1 -1
- package/dist/types/pagination.d.ts +1 -1
- package/dist/types-ts4.5/internal/utils/collapse-range.d.ts +1 -1
- package/dist/types-ts4.5/pagination.d.ts +1 -1
- package/package.json +5 -5
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/pagination
|
|
2
2
|
|
|
3
|
+
## 14.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83188](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83188) [`cd5d06cd3329`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd5d06cd3329) - Minor adjustments to improve compatibility with React 18
|
|
8
|
+
|
|
9
|
+
## 14.6.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
14
|
+
|
|
3
15
|
## 14.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/pagination.js
CHANGED
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
var analyticsAttributes = {
|
|
28
28
|
componentName: 'pagination',
|
|
29
29
|
packageName: "@atlaskit/pagination",
|
|
30
|
-
packageVersion: "14.6.
|
|
30
|
+
packageVersion: "14.6.4"
|
|
31
31
|
};
|
|
32
32
|
var paginationMenuStyles = (0, _primitives.xcss)({
|
|
33
33
|
padding: 'space.0',
|
|
@@ -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.4"
|
|
17
17
|
};
|
|
18
18
|
const paginationMenuStyles = xcss({
|
|
19
19
|
padding: 'space.0',
|
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.4"
|
|
21
21
|
};
|
|
22
22
|
var paginationMenuStyles = xcss({
|
|
23
23
|
padding: 'space.0',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
declare const collapseRange: <T>(pages: T
|
|
2
|
+
declare const collapseRange: <T>(pages: Array<T>, current: number, { max, ellipsis, transform, }: {
|
|
3
3
|
max: number;
|
|
4
4
|
ellipsis: (arg: {
|
|
5
5
|
key: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PaginationPropTypes } from './types';
|
|
3
|
-
declare function InnerPagination<T>({ components, defaultSelectedIndex, selectedIndex, label, pageLabel, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, isDisabled, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
|
|
3
|
+
declare function InnerPagination<T extends React.ReactNode>({ components, defaultSelectedIndex, selectedIndex, label, pageLabel, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, isDisabled, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
|
|
4
4
|
declare const _default: typeof InnerPagination;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
declare const collapseRange: <T>(pages: T
|
|
2
|
+
declare const collapseRange: <T>(pages: Array<T>, current: number, { max, ellipsis, transform, }: {
|
|
3
3
|
max: number;
|
|
4
4
|
ellipsis: (arg: {
|
|
5
5
|
key: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PaginationPropTypes } from './types';
|
|
3
|
-
declare function InnerPagination<T>({ components, defaultSelectedIndex, selectedIndex, label, pageLabel, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, isDisabled, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
|
|
3
|
+
declare function InnerPagination<T extends React.ReactNode>({ components, defaultSelectedIndex, selectedIndex, label, pageLabel, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, isDisabled, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
|
|
4
4
|
declare const _default: typeof InnerPagination;
|
|
5
5
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pagination",
|
|
3
|
-
"version": "14.6.
|
|
3
|
+
"version": "14.6.4",
|
|
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/"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
43
43
|
"@atlaskit/button": "^17.7.0",
|
|
44
44
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
45
|
-
"@atlaskit/ds-explorations": "^3.
|
|
45
|
+
"@atlaskit/ds-explorations": "^3.3.0",
|
|
46
46
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
|
-
"@atlaskit/primitives": "^5.
|
|
48
|
+
"@atlaskit/primitives": "^5.1.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^1.2.4",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"memoize-one": "^6.0.0"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-router-dom": "^4.2.2",
|
|
69
69
|
"storybook-addon-performance": "^0.16.0",
|
|
70
70
|
"tiny-invariant": "^1.2.0",
|
|
71
|
-
"typescript": "~4.
|
|
71
|
+
"typescript": "~5.4.2",
|
|
72
72
|
"wait-for-expect": "^1.2.0"
|
|
73
73
|
},
|
|
74
74
|
"techstack": {
|
|
@@ -95,4 +95,4 @@
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
98
|
-
}
|
|
98
|
+
}
|