react-responsive-pagination
Advanced tools
Comparing version 1.0.0 to 1.0.1-beta.1
# React Responsive Pagination Changelog | ||
## [1.0.1-beta.1](https://github.com/jonelantha/react-responsive-pagination/compare/v1.0.0...v1.0.1-beta.1) (2020-03-23) | ||
### Bug Fixes | ||
* Package bumps ([179c74b](https://github.com/jonelantha/react-responsive-pagination/commit/179c74bd929b6a10df7a1df6f2769db508cf0df2)) | ||
# [1.0.0](https://github.com/jonelantha/react-responsive-pagination/compare/v0.1.1...v1.0.0) (2020-03-21) | ||
@@ -4,0 +11,0 @@ |
@@ -33,4 +33,4 @@ "use strict"; | ||
var propsCurrent = _a.current, propsTotal = _a.total, handlePageChange = _a.onPageChange, _b = _a.maxWidth, maxWidth = _b === void 0 ? 0 : _b; | ||
var total = propsTotal || 0; | ||
var current = Math.max(1, Math.min(propsCurrent || 0, total)); | ||
var total = propsTotal !== null && propsTotal !== void 0 ? propsTotal : 0; | ||
var current = Math.max(1, Math.min(propsCurrent !== null && propsCurrent !== void 0 ? propsCurrent : 0, total)); | ||
var Skin = skins_1.BootstrapSkin; | ||
@@ -37,0 +37,0 @@ var View = view_1.useView(Skin, handlePageChange); |
@@ -27,8 +27,9 @@ "use strict"; | ||
function getLargestFittingCompositionWithFallback(getNarrowToWideCompositions, getCompositionWidth, maxWidth) { | ||
var _a, _b; | ||
var narrowToWideCompositions = getNarrowToWideCompositions(); | ||
var firstComposition = iterator_1.iteratorNext(narrowToWideCompositions) || []; | ||
var firstComposition = (_a = iterator_1.iteratorNext(narrowToWideCompositions)) !== null && _a !== void 0 ? _a : []; | ||
var doesCompositionFit = function (composition) { | ||
return getCompositionWidth(composition) < maxWidth; | ||
}; | ||
return iterator_1.lastWhere(narrowToWideCompositions, doesCompositionFit) || firstComposition; | ||
return (_b = iterator_1.lastWhere(narrowToWideCompositions, doesCompositionFit)) !== null && _b !== void 0 ? _b : firstComposition; | ||
} | ||
@@ -35,0 +36,0 @@ function getItemsDomElements(viewDomElement) { |
@@ -21,4 +21,4 @@ var __assign = (this && this.__assign) || function () { | ||
var propsCurrent = _a.current, propsTotal = _a.total, handlePageChange = _a.onPageChange, _b = _a.maxWidth, maxWidth = _b === void 0 ? 0 : _b; | ||
var total = propsTotal || 0; | ||
var current = Math.max(1, Math.min(propsCurrent || 0, total)); | ||
var total = propsTotal !== null && propsTotal !== void 0 ? propsTotal : 0; | ||
var current = Math.max(1, Math.min(propsCurrent !== null && propsCurrent !== void 0 ? propsCurrent : 0, total)); | ||
var Skin = BootstrapSkin; | ||
@@ -25,0 +25,0 @@ var View = useView(Skin, handlePageChange); |
@@ -17,8 +17,9 @@ import React, { useRef } from 'react'; | ||
function getLargestFittingCompositionWithFallback(getNarrowToWideCompositions, getCompositionWidth, maxWidth) { | ||
var _a, _b; | ||
var narrowToWideCompositions = getNarrowToWideCompositions(); | ||
var firstComposition = iteratorNext(narrowToWideCompositions) || []; | ||
var firstComposition = (_a = iteratorNext(narrowToWideCompositions)) !== null && _a !== void 0 ? _a : []; | ||
var doesCompositionFit = function (composition) { | ||
return getCompositionWidth(composition) < maxWidth; | ||
}; | ||
return lastWhere(narrowToWideCompositions, doesCompositionFit) || firstComposition; | ||
return (_b = lastWhere(narrowToWideCompositions, doesCompositionFit)) !== null && _b !== void 0 ? _b : firstComposition; | ||
} | ||
@@ -25,0 +26,0 @@ function getItemsDomElements(viewDomElement) { |
{ | ||
"name": "react-responsive-pagination", | ||
"version": "1.0.0", | ||
"version": "1.0.1-beta.1", | ||
"description": "React component for responsive pagination", | ||
@@ -48,21 +48,20 @@ "author": "Jon Pollard", | ||
"@semantic-release/git": "^9.0.0", | ||
"@types/react": "^16.9.1", | ||
"@types/react-dom": "^16.8.5", | ||
"@typescript-eslint/eslint-plugin": "1.13.0", | ||
"@typescript-eslint/parser": "1.13.0", | ||
"babel-eslint": "10.0.2", | ||
"eslint": "^6.4.0", | ||
"eslint-config-react-app": "^5.0.1", | ||
"eslint-loader": "2.2.1", | ||
"eslint-plugin-flowtype": "3.13.0", | ||
"eslint-plugin-import": "2.18.2", | ||
"eslint-plugin-jsx-a11y": "6.2.3", | ||
"eslint-plugin-react": "7.14.3", | ||
"eslint-plugin-react-hooks": "^1.6.1", | ||
"react": "^16.8.0", | ||
"react-dom": "^16.8.0", | ||
"rimraf": "^3.0.0", | ||
"@types/react": "^16.9.25", | ||
"@types/react-dom": "^16.9.5", | ||
"@typescript-eslint/eslint-plugin": "^2.25.0", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-react-app": "^5.2.1", | ||
"eslint-plugin-flowtype": "^4.6.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-react": "^7.19.0", | ||
"eslint-plugin-react-hooks": "^2.5.1", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.0.4", | ||
"typescript": "^3.6.3" | ||
"typescript": "^3.8.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116406
19
2472
2