react-router-pagination 3.3.0 → 3.3.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/babel.config.cjs CHANGED
@@ -41,15 +41,7 @@ const presets = [
41
41
  ]
42
42
 
43
43
  const plugins = [
44
- '@babel/syntax-jsx',
45
- [
46
- 'module-resolver', {
47
- alias: {
48
- '#pagination/pagination/component': './src/pagination/component.tsx',
49
- '#pagination/super/pagination/component': './src/super/pagination/component.tsx'
50
- }
51
- }
52
- ]
44
+ '@babel/syntax-jsx'
53
45
  ]
54
46
 
55
47
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-pagination",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "A React Router Pagination component",
5
5
  "main": "./src/index.mjs",
6
6
  "type": "module",
@@ -1 +1,2 @@
1
+ export { default } from './index.cjs'
1
2
  export * from './index.cjs'
@@ -1,12 +1,12 @@
1
1
  import debug from 'debug'
2
2
 
3
- import AbstractPagination from '#pagination/super/pagination/component' // '../../super/pagination/component.tsx'
4
-
5
3
  import {
6
4
  toInteger,
7
5
  calculateTotalPages,
8
6
  calculatePageNumber
9
- } from '#pagination/pagination/component'
7
+ } from '#pagination/pagination/common'
8
+
9
+ import AbstractPagination from '../../super/pagination/component.tsx'
10
10
 
11
11
  const error = debug('react-router-pagination/pagination/component')
12
12
 
@@ -1 +1,2 @@
1
+ export { default } from './index.cjs'
1
2
  export * from './index.cjs'
@@ -1 +1,2 @@
1
+ export { default } from './component.cjs'
1
2
  export * from './component.cjs'
@@ -7,12 +7,7 @@ import {
7
7
  calculatePageNumber
8
8
  } from '#pagination/pagination/common'
9
9
 
10
- import AbstractPagination from '#pagination/super/pagination/component' // '../super/pagination/component.tsx'
11
-
12
- import type {
13
- AbstractPaginationProps,
14
- AbstractPaginationState
15
- } from '#pagination/super/pagination/component'
10
+ import AbstractPagination from '../super/pagination/component.tsx'
16
11
 
17
12
  export {
18
13
  toInteger,
@@ -20,6 +15,10 @@ export {
20
15
  calculatePageNumber
21
16
  }
22
17
 
18
+ type AbstractPaginationProps = ReactRouterPaginationTypes.AbstractPaginationProps
19
+
20
+ type AbstractPaginationState = ReactRouterPaginationTypes.AbstractPaginationState
21
+
23
22
  export class Pagination extends AbstractPagination<AbstractPaginationProps, AbstractPaginationState> {
24
23
  state = {
25
24
  pageNumber: toInteger(this.props.pageNumber),
@@ -1 +1,2 @@
1
+ export { default } from './index.cjs'
1
2
  export * from './index.cjs'
@@ -1 +1,2 @@
1
+ export { default } from './index.cjs'
1
2
  export * from './index.cjs'
@@ -1,12 +1,12 @@
1
1
  import debug from 'debug'
2
2
 
3
- import AbstractPagination from '#pagination/super/pagination/component' // '../../super/pagination/component.tsx'
4
-
5
3
  import {
6
4
  toInteger,
7
5
  calculateTotalPages,
8
6
  calculatePageNumber
9
- } from '#pagination/pagination/component'
7
+ } from '#pagination/pagination/common'
8
+
9
+ import AbstractPagination from '../../super/pagination/component.tsx'
10
10
 
11
11
  const error = debug('react-router-pagination/pagination/component')
12
12
 
@@ -1 +1,2 @@
1
+ export { default } from './component.cjs'
1
2
  export * from './component.cjs'
@@ -25,12 +25,6 @@ const getListItemKey = (key: string | number): string => `list-item-${key}`
25
25
 
26
26
  const getLinkTo = ({ path = '/:pageNumber', params = {} } = {}, pageNumber = 0): string => generatePath(path, { ...params, pageNumber })
27
27
 
28
- export {
29
- toInteger,
30
- calculateTotalPages,
31
- calculatePageNumber
32
- }
33
-
34
28
  export type AbstractPaginationProps = ReactRouterPaginationTypes.AbstractPaginationProps
35
29
 
36
30
  export type AbstractPaginationState = ReactRouterPaginationTypes.AbstractPaginationState