@atlaskit/pagination 14.4.0 → 14.4.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/pagination.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/pagination.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/pagination.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -3
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +47 -0
package/CHANGELOG.md
CHANGED
package/dist/cjs/pagination.js
CHANGED
|
@@ -28,7 +28,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
28
28
|
var analyticsAttributes = {
|
|
29
29
|
componentName: 'pagination',
|
|
30
30
|
packageName: "@atlaskit/pagination",
|
|
31
|
-
packageVersion: "14.4.
|
|
31
|
+
packageVersion: "14.4.2"
|
|
32
32
|
};
|
|
33
33
|
function InnerPagination(_ref, ref) {
|
|
34
34
|
var _ref$components = _ref.components,
|
package/dist/cjs/version.json
CHANGED
|
@@ -14,7 +14,7 @@ import collapseRange from './internal/utils/collapse-range';
|
|
|
14
14
|
const analyticsAttributes = {
|
|
15
15
|
componentName: 'pagination',
|
|
16
16
|
packageName: "@atlaskit/pagination",
|
|
17
|
-
packageVersion: "14.4.
|
|
17
|
+
packageVersion: "14.4.2"
|
|
18
18
|
};
|
|
19
19
|
function InnerPagination({
|
|
20
20
|
components = emptyObject,
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/pagination.js
CHANGED
|
@@ -18,7 +18,7 @@ import collapseRange from './internal/utils/collapse-range';
|
|
|
18
18
|
var analyticsAttributes = {
|
|
19
19
|
componentName: 'pagination',
|
|
20
20
|
packageName: "@atlaskit/pagination",
|
|
21
|
-
packageVersion: "14.4.
|
|
21
|
+
packageVersion: "14.4.2"
|
|
22
22
|
};
|
|
23
23
|
function InnerPagination(_ref, ref) {
|
|
24
24
|
var _ref$components = _ref.components,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/pagination",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.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/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"atlassian": {
|
|
31
31
|
"team": "Design System Team",
|
|
32
|
-
"releaseModel": "
|
|
32
|
+
"releaseModel": "continuous",
|
|
33
33
|
"website": {
|
|
34
34
|
"name": "Pagination",
|
|
35
35
|
"category": "Components"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/ds-explorations": "^2.2.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
44
44
|
"@atlaskit/icon": "^21.12.0",
|
|
45
|
-
"@atlaskit/primitives": "^0.
|
|
45
|
+
"@atlaskit/primitives": "^0.11.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"memoize-one": "^6.0.0"
|
|
48
48
|
},
|
package/report.api.md
CHANGED
|
@@ -32,6 +32,7 @@ function InnerPagination<T>(
|
|
|
32
32
|
defaultSelectedIndex,
|
|
33
33
|
selectedIndex,
|
|
34
34
|
label,
|
|
35
|
+
pageLabel,
|
|
35
36
|
previousLabel,
|
|
36
37
|
nextLabel,
|
|
37
38
|
style,
|
|
@@ -64,6 +65,7 @@ export interface PaginationPropTypes<T = unknown> {
|
|
|
64
65
|
page: T,
|
|
65
66
|
analyticsEvent?: UIAnalyticsEvent,
|
|
66
67
|
) => void;
|
|
68
|
+
pageLabel?: string;
|
|
67
69
|
pages: T[];
|
|
68
70
|
previousLabel?: string;
|
|
69
71
|
renderEllipsis?: (arg: { key: string }) => ReactElement;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/pagination"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import type { CSSProperties } from 'react';
|
|
8
|
+
import { default as React_2 } from 'react';
|
|
9
|
+
import type { ReactElement } from 'react';
|
|
10
|
+
import type { SyntheticEvent } from 'react';
|
|
11
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
12
|
+
|
|
13
|
+
// @public (undocumented)
|
|
14
|
+
const _default: typeof InnerPagination;
|
|
15
|
+
export default _default;
|
|
16
|
+
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
function InnerPagination<T>({ components, defaultSelectedIndex, selectedIndex, label, pageLabel, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, }: PaginationPropTypes<T>, ref: React_2.Ref<HTMLDivElement>): JSX.Element;
|
|
19
|
+
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
export interface PaginationPropTypes<T = unknown> {
|
|
22
|
+
analyticsContext?: Record<string, any>;
|
|
23
|
+
components?: {
|
|
24
|
+
Page?: React.ElementType;
|
|
25
|
+
Previous?: React.ElementType;
|
|
26
|
+
Next?: React.ElementType;
|
|
27
|
+
};
|
|
28
|
+
defaultSelectedIndex?: number;
|
|
29
|
+
getPageLabel?: (page: T, pageIndex: number) => number | string;
|
|
30
|
+
label?: string;
|
|
31
|
+
max?: number;
|
|
32
|
+
nextLabel?: string;
|
|
33
|
+
onChange?: (event: SyntheticEvent, page: T, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
34
|
+
pageLabel?: string;
|
|
35
|
+
pages: T[];
|
|
36
|
+
previousLabel?: string;
|
|
37
|
+
renderEllipsis?: (arg: {
|
|
38
|
+
key: string;
|
|
39
|
+
}) => ReactElement;
|
|
40
|
+
selectedIndex?: number;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
testId?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// (No @packageDocumentation comment for this package)
|
|
46
|
+
|
|
47
|
+
```
|