{"_id":"react-use-pagination","_rev":"10-408dbb5fc35950b212db23f3906e963e","name":"react-use-pagination","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"react-use-pagination","version":"1.0.0","description":"","keywords":["pagination","paging","pager","table"],"sideEffects":false,"scripts":{"build":"pack build"},"author":{"name":"Eric Mantooth"},"license":"MIT","@pika/pack":{"pipeline":[["@pika/plugin-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-build-web"]]},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/preset-env":"^7.3.1","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.1","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","react":"^16.8.0"},"gitHead":"85d066d9700506c2e1a970f3047e2144bee4038b","_id":"react-use-pagination@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"erictooth","email":"eric@mantooth.co"},"dist":{"integrity":"sha512-AyfXhAc0hoPSE0pGqWwxaxs0NyaaaxdOW2BWIh+wJ0ek3TWBSpbS2hN9SfZxBg1Hv79xgcXLyRMRBLjQLk+u/Q==","shasum":"4c0a76ee8fcf4156cb6436e1e291bdfc68eda557","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.0.0.tgz","fileCount":6,"unpackedSize":5439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXhD8CRA9TVsSAnZWagAAzAwP/RAazNQgVmNLqd/qGBSD\nYHLQiF0eiSfjYybaFVEtVmCxMNxabHDTeTjzo796O/Aqn31iooGxRLRdhGZB\nPLXD8zAmii64RTKrXE9pufgedxHR8xN+k8l10REWJNrvysCb2p/rPjJnDjQJ\njiQ7U34vt4lKcQh3AfFBtH7FeUIIDbJxryVQqdVAMB9xp9NbOsrAyc0S5xx6\nDmXTNjuQSlbRjPDoJg5KNK7WpskNZHpQ1Z4JT3TSj0fY3UIpr3MeXK+xR2CH\nDn7TyGxRZtVz32M+f2Z5/lk6smNwt8TLXr6Wd517Sle6By+9g1vTkfIxTDrZ\nHRRR0CHfdIyFc5DmXYGcYDYOR1Isqykvl4Gg/+KS47+Cpmp28T2PwLr1A3tV\nOYZQuxJap8l0Ohl4TokENIz9ZVa5KGO7NUZocra89F6kbTMzzYatcFXw/Kr0\nHnivtTpZk8p4QuUfUC7t5srGTmPVz4+MfcbENfIu1wwvRmNqFHoQnku8JakZ\nVF5gVnLYEMltCWaObHHlxe/I5hV+Et1nTKyS+2bZAKlcyOZWLVfYUBR9z6qP\nHmflb4WxCpsXys3IFZJxCay8nZddBECh+Z3soy0nfE8fWjaqVnIJj/phgi61\nGBpibgDF4rCqq9O3DW0a5PfLESH+fxqaNmwBsiPLn6HWVRMCLhmzNuPvYdSs\nX1wH\r\n=QPRj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV/VQAQdeQ5OQfalOXCA68bZNS4tvpfVapVNr6SS5mkAIhANfg6B66LsLuyzNjAeEAmZ1quoj5vtMMg+bwetZmkci8"}]},"maintainers":[{"name":"erictooth","email":"eric@mantooth.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.0.0_1549668603435_0.4740762337957347"},"_hasShrinkwrap":false},"1.0.1":{"name":"react-use-pagination","description":"","version":"1.0.1","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/preset-env":"^7.3.1","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.1","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","react":"^16.8.0"},"_id":"react-use-pagination@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"erictooth","email":"eric@mantooth.co"},"dist":{"integrity":"sha512-FEuvJVPl86Yipzt970lPoTfRwcLVlylaa0oIJzulHD1zLyAtl0RPK/qEUipnEZFOG9B+xuPbDiNaSFjLZIvb1g==","shasum":"d821e08ab744e76eb97bf165c6913005467d31d7","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.0.1.tgz","fileCount":4,"unpackedSize":17526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXhEgCRA9TVsSAnZWagAAodwQAKH47qwVgdVeQt2yeQ4i\nycYXYAsvb8QhMtKA3UBjFNkIF5DwByG2W0LFZzGc5iXM5ieo8VHY3f77n9Ev\na8ieXauZYMXo9C4yfUg9P56WvsXKgohZDSqf0sCWB3pEV9lgj7atbmnxgITq\nZv0R359jrCez6HKpwZrCzL1MjZToM93kHjH6gkKNfFL4+jg+fTywwAhOSaeL\no+rFt1DpyMCL5cu4j1Slo2Ln6bj+7UvOqNShxaiqwCIz0N9uP2I/yqQiCodu\nsD3J4J3KVEL/6W3BQnivErijdLYfRnRrr5V04eTDDyQyHYbZ5En6Ns06CQms\nq8ASmjExGxA6PMjJ8Iw9+DayDyvXO9I2a3yIM8hRczUqEhpAXbKjz21c9ua2\nsl32CP2hgXXRrctQ8ATOxQ5oD87b0692EZA3BECGlZO/YBO92xOpQm/Ze/BR\nOWUCOSlX00aWBRV9obQamLqNVa63zhe5DXB63VktmekR5R6uVWk/xdzQsioK\npzBsfgVm0AT5qMVtronMnSqRdJnmRSPwGpcDnrWbrAsyZhxD4BoR5GptIRxC\ne9ZlH26LjcRs6tq9xHfr/cI8v6OoaPb7SJcASnlfY+C7ZcT/18XQ6dYv5De7\nUtapGhQxnZfa1O3GPLsY7ftYBFNPq0eLUrvDi/ns9c04PzLZ/xoFESAd8Jiw\nWjca\r\n=wsks\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjC72K/lgnJQi2I9wrTUQDGg4MSXuE1ck79YDt91mddAiA4Go0cNv3KDrJXV7jCuUlTVyM16OdLtwO/Wv5P2jlGVQ=="}]},"maintainers":[{"name":"erictooth","email":"eric@mantooth.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.0.1_1549668639693_0.9684407045952292"},"_hasShrinkwrap":false},"1.0.2":{"name":"react-use-pagination","description":"","version":"1.0.2","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/preset-env":"^7.3.1","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.1","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","react":"^16.8.0"},"_id":"react-use-pagination@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"erictooth","email":"eric@mantooth.co"},"dist":{"integrity":"sha512-KpoiF6mPU7WoTkbfLh+s2UEMt2fuLOJqWyKZZ/NV+n1qLQ8jps81UPLIlZt7LBGB1qmOIWImmh59nRgHCpaC6g==","shasum":"967a3a2a9659287b0d42932db95b485efc96f622","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.0.2.tgz","fileCount":4,"unpackedSize":17610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXh58CRA9TVsSAnZWagAAwM8P/2uN0rTGbcbxXQNQgHKN\nduo+SE1EKovazSZr39WaLHa+V++c2tPcN3Z9+dLvB3dKl7yy1QTBPWkOQ5xb\ncf4AtidsUB8vo49B8w6e6t+8+E0P/jTCZ2YnUlmCWU+EYab+0hteF+hNWpkn\nKbEkotrmL3si+taiTItG8LWP+YJUNotSE5dkUHdMLJCWCGCL+KVVcsvAt1xo\nqt75IHOzxzZwLeNoQRxd9vsEmcRfUSirNuYGCJqaYjlCBJ6QnNRyrgJIelx6\noTu5p3/mCCyKbg6a2tKzAl7XND+EN4kiW4b6opfJqr8DB4K7s9NZ+uEd8v7A\nc0uNYZbqi81VGmbLvA9thoYOOsvZuNJlZGekAq8UnATTiUpdiuhf+lxjwg4S\nw5/Blt99XThDloq+qQzM5uM95JKcOzSW6l+olzBnf2AT7cGb2roqXr4Tirzu\nSeyhBha8IsyLtJiFGb8SdvDJQwGprycCLvnv5JJBysB9XYh3FduIVkK8aldX\npl8QIYADCzCmybYZlR5FHrHx0Hruj6c6mCf7H/eqV1NdRzwMEvhF6F035h5Z\npH2lgxktYZcdoNaG8olN5Xedl/3u5ctJXn9RbWkFFtV4Qna+F4yLmptHqNJF\nvP5cdsAYFa6NzObXqGzAEB2vl4pQjT2GrNiUJGMETvKI/HyA144FyKmE3lJZ\nFuWQ\r\n=J5vQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTat8P3tfwqcmJqRYlygH2bdIMrBqRQggHScQCv/o7KAiB0bs7xcGbEKcN7mATR0JPa0sQD2ygaKV/id4FAsqUH7Q=="}]},"maintainers":[{"name":"erictooth","email":"eric@mantooth.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.0.2_1549672059934_0.6627943215903951"},"_hasShrinkwrap":false},"1.0.3":{"name":"react-use-pagination","description":"","version":"1.0.3","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/plugin-transform-flow-comments":"^7.2.0","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.2","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","flow-bin":"^0.93.0","react":"^16.8.0"},"_id":"react-use-pagination@1.0.3","_nodeVersion":"10.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-oq0hsTogDP9nA6XpF3Pj3qtx7z+rbLDYTLUnvsoV6a4v9OCQ44PLXQ5EERaDARQFb0Cd+tIzzwk3Cg5p9qSL9w==","shasum":"2a956bc53fefcd0ebcbff0074edb1a4fbdac1790","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.0.3.tgz","fileCount":5,"unpackedSize":17530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbaLaCRA9TVsSAnZWagAAqz8P/j4Cd9pkiI7w7VKDk8uB\nAuK8GCGMXOViBOkY0c2hHRAXktO27QN0h0Bebniaf2tImT6djJlzq0F+bxwI\npA9iCsd0ADsabCZhztv0H7Qo5aVFxTH3JElTnavRLUh8uW2BKfsElAVqx2eh\nt3n/JhOgg7DrSSnDsHSYHSWIGmF9/UHbtKkG1w5bN4WOO4mca98JqqXiF6PL\nzX5R+JbLvQqbCTICI312JWYAXd9TBSowjwl01BCTHkGFoAJ2fDp0VICjI2sx\nNsx8zlG71Uf7dTB5jVixDWP+vtrT8kfJ7PFoZobumeu9p2HAyUlFeFqUvZag\nI81zG8STDvvw9DiBTq8aetZMV7vF9Ak1lZ8zeXvuZzWSEcCqR3lGNWydlka3\nvi+sVcgUbw70DHXRnncslgprZEuW5HSDgmBOJ4S8G0YAocyWLNzF1Vt922/d\nKqx2tPsQrn4+tfoarft4z01oKmS33UDcMv24FNwyKYzdFtrBoVTsxVHy7vYK\nt+fq60YfJT/oXUE5Ft2H+imeYqjyyVhHBEhxAMcUEFWqQJRgO3n6lAborKck\nz4oXJHMDOm8niEvsTSlyEAwpi+CoFZumTz3EhMRpckECF3ptD4v28Qa2vFTM\nYri9eTy91YJXvkBJQl/uEauHgVuSt7TCP+z3yqYEH1sxR2HfiSVjTQ6eRozN\nsYRd\r\n=LdIU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0qzoZFfHn+6yZV14JDt2lOe0b4vKS+ndFWOuHFVXthAiEA+vvDzZvDJRMQ9HLlQu3MVdBIIROpU8SwGf51Wwdyv/I="}]},"maintainers":[{"name":"erictooth","email":"eric@mantooth.co"}],"_npmUser":{"name":"erictooth","email":"eric@mantooth.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.0.3_1550688986075_0.9758436429099977"},"_hasShrinkwrap":false},"1.0.4":{"name":"react-use-pagination","description":"","version":"1.0.4","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/plugin-transform-flow-comments":"^7.2.0","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.2","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","flow-bin":"^0.93.0","react":"^16.8.0"},"_id":"react-use-pagination@1.0.4","_nodeVersion":"10.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-J7xE6h/rTDASmlU6Lf1+BIAVeyG2Tuz3r1jX5dWAlSQTkOoR9W3ALKUbnljn61bPaJfwZPUCCQeR3PbrYAFXGw==","shasum":"5bfc916862728fe275390184a64922f7b87d4267","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.0.4.tgz","fileCount":5,"unpackedSize":17578,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciPmWCRA9TVsSAnZWagAAOUAP/2vvGhmR3imwi9J5ffYz\nMrjNi6gRjbNfuLxF7rBqo516U2CK4wJyqfGPnzwkX8i7Xd3KAxYdfc7Dvyg8\nYuiIWQWD+xYRM9SbFW9ibBiFr7Wq3FQR9fUNiIEM84I+UtTcmbt8aNbAg2nY\nJ/T6uyEjDDXiYZqwboEye6fqGIcF2kEp17hcqV4/yS/nOejiXPOPlItASF+x\nKef1WPo5K8KYcPkCFjWw4iFXPFnJoJe14+xtpu+USIq8mivF61fb3Lb7HUL8\n0Vew9w8gpO4gYR7BS6nbN2On/HHhWPX7OHikbiU7cV4Pnl1ZqSGzdwfjIYjp\n+DBURpD0Vy+iEeSBfX/JeU4lrekuX0OAKViahHjQFB88avB+bQR/37o0W00z\nuQ1AcZh5zb4U+NRT1s8/FUt0YtQvSvlOnms0ojhEmnNrEuOvZLvgl2I2Rl3v\n7XqByvKSpRh3YWWC5K8hE/BkqINA4UVyUFJ7Ar6qFgSCRUf2fUOofjNrpGbO\nFhqjrNR2HbspXkI/873OpbRMrJGx1g8jhuLOf6JgIadkkJxLuxCG4Pdad/n0\nDKl4L1iUqUj9D7zUwx7AN+Abjd/xYI7bvnE+ywhAJb7QolstKHaVkxqQyn8u\nooi0XXC//By839lkq26mr7bQCqy6zAJwTJI7UtnFp3qqSr/qKnPPHpbId/kZ\n+yFO\r\n=M+ma\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMAKL06CZR2g+ZXJOmjML2G3Y1umVxa1Gs+ybFmFCPHwIhAKSFKRrNU3kKf2WGJRUbJWC5lVmd6viMS0F/uTwODM2K"}]},"maintainers":[{"name":"erictooth","email":"eric@mantooth.co"}],"_npmUser":{"name":"erictooth","email":"eric@mantooth.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.0.4_1552480662217_0.22714943679578914"},"_hasShrinkwrap":false},"1.1.0":{"name":"react-use-pagination","description":"- 🛠 State-only hook & callbacks, you provide your own UI controls - 📦 Compatible with any pagination method like [GraphQL Relay Cursor](https://facebook.github.io/relay/graphql/connections.htm), OData, etc. - ⚡️ Works with both server side and client si","version":"1.1.0","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/plugin-transform-flow-comments":"^7.2.0","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.2","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","flow-bin":"^0.93.0","react":"^16.8.0"},"_id":"react-use-pagination@1.1.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-hyRMtQSAxNfvU6PCYfkeoIcZ0cAwIFbDOCPbjmfBrkVuVQcSLq9+ySfMv6cDoJkTXRtXHf+EtuWVNrA5M8Qotw==","shasum":"022b8098077e215400c6360483f51741ea1ed040","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.1.0.tgz","fileCount":6,"unpackedSize":22879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/6eUCRA9TVsSAnZWagAAOVoP/inSdkFXxCnJxD1+ETEP\nmooBMes56eaMzuLrOffrbgWN8uoM94WpmZ+IHcMD3L8DWO/mLqh2OGm+COHd\n6BP67lvZu13IWwUod505hWVgrhiNxJB55mlLoWsIW5hPDr7ux23/rfZDfAN0\nN8iZeyDzx2r29YlLhivDKOefFoGjQ1Vv77yJ+AnIRSC4Dpbd7x9KfqHwaQjz\nltxzHh3veP666NClWLnbGU32slNfs7dnIRWzK9ExP+y8JuVkI1Tukz/ocysR\nWGDO04HRqWFXWGtBv6oB3CdG+wpe0B4oikC3Jvtdzay+PbfscCcyyZlx8llF\ncI9MVa2ctbp8xuVBrQirYi7BRzyMQL8oe3jCGo6ytj3J58VHwCSSwcY8CYi5\nyvM0xygSnfrzZgkxs+cpZ9CatN4mPmwMh0ZYTeP6OFI+raLNKw066Zx3MubO\n8Xxs6xtB72lWWHjm1oX6Io0ePltEU8mc5UZtIjtqhl+XtV7a7kqKatkjR7+S\n7kaj/k2Z+rOIRydJy3HFUvG5OgHnfbi6pIvof9Wo5N2GwOnAs/y9sg7ZC2dM\n6PDnnRvvWg97g6ByTg1yOcIM41/vX4z4dNjQW+1bKPNLMmn0dQmTMc7fxtNq\n9NtHQOD1ua78qKTIW4mc4HRibI6tcj2TBo1sGIoa6OY81yxSSPMzCvIdiWrs\nDaGp\r\n=oKBT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV/pE6hNNLVbRdVTdhOED3aUFw4XCAsUjGPJaBrlQe7gIhAPiZttVGNgxE1ZI6w5/zHCNin6OfuzOBupdPl0tWNqCf"}]},"maintainers":[{"email":"eric@mantooth.co","name":"ericmantooth"}],"_npmUser":{"name":"ericmantooth","email":"eric@mantooth.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.1.0_1593812884148_0.44156666773573794"},"_hasShrinkwrap":false},"1.1.1":{"name":"react-use-pagination","description":"- 🛠 State-only hook & callbacks, you provide your own UI controls - 📦 Compatible with any pagination method like [GraphQL Relay Cursor](https://facebook.github.io/relay/graphql/connections.htm), OData, etc. - ⚡️ Works with both server side and client si","version":"1.1.1","license":"MIT","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["pagination","paging","pager","table"],"dependencies":{},"peerDependencies":{"react":"^16.8.0 || ^17.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/plugin-transform-flow-comments":"^7.2.0","@babel/preset-env":"^7.3.1","@babel/preset-react":"^7.0.0","@pika/pack":"^0.3.2","@pika/plugin-build-node":"^0.3.9","@pika/plugin-build-web":"^0.3.9","@pika/plugin-standard-pkg":"^0.3.9","flow-bin":"^0.93.0","react":"^16.8.0"},"_id":"react-use-pagination@1.1.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UhzixhaJgp+tQZ3FMLvbMbMAKtJjPm0mYDEsjLbyt7hHWscLEZ2Mq/TY5zjhisULcUSvosX9bH0nU2XzhUUbfA==","shasum":"421ec78ebc08ad0c88973c6fd327ab922fa89a9c","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-1.1.1.tgz","fileCount":6,"unpackedSize":22946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv5puCRA9TVsSAnZWagAAcW8P/RGdTZpcpozCnSl+EOnY\nyLJqQT7XSZrzHo5eWEffAc/2PP6qhElwz4yuYjgQYoNPQgsXEONdafsgPz2m\nv1XpSO3eZalpvesDvfHfrcOwwtciJ26xuu0+Wp8S4UTSR0A3YEIZ7AX3KW4t\nwdD0IGF7f6ZIBuAcqjJPflkBPMAVzZRZgZyLGNU4nn3DBZlfn0DgRgAiIkJw\nb6nv1qyQUYKQGTvxHpAKZXh7CMZuPfwgVgW2DtC5eVkGGRfY0u4oQO9/bj0V\nxk97q21I+NK/jdJL3Zdlsaob3yCszQne1WwQVynQhhSCwhnF9HVqeECjpBLS\nBwYUxsxuvvy7lPfyx2rePG3bC1myU+R7PpAy+20RownntJ+Ez+lUSW70rGje\nlqu6EpcbFlvYrSIDo7NEV8ExWNrCohwgSJyXzIM+bIRFsW38dThwRvAc+Cg1\n4woH69B2Wr2sVKkjRZRlV1mXSSGQ5KQgcFg/68EtsaUxi1Wv7mXSruYnGScJ\nRB92Avnl7RtyPLxN1mRjASZJvGJLTGCzeNfVSoxW/7CIgImLFM34QffZZdj8\nuWbUCbSqMfqrz6ygI6lPLKxhAVNzZTlG5H9D04Q5nxq2/1r4haHIn6u32g1S\nVbMVDoc2fqSger2Q41KPyOgZgNN0z3gaPAyZhg5PkYkaJdmmIsau9qkCDxEH\nuWss\r\n=M7os\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzB6iK64zgAU37NA65VNWaWWKK0bNg1HSb5uJ/0DIa3AiEA6FN805VU5ZJuit68uBMxHtzCTeuUOLCkJiDxyPk0O2A="}]},"_npmUser":{"name":"ericmantooth","email":"eric@mantooth.co"},"directories":{},"maintainers":[{"name":"ericmantooth","email":"eric@mantooth.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_1.1.1_1623169646339_0.8280866782734029"},"_hasShrinkwrap":false},"2.0.0":{"name":"react-use-pagination","version":"2.0.0","description":"A React hook to help manage pagination state","keywords":["pagination","paging","pager","table"],"author":{"name":"erictooth"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/erictooth/react-use-pagination.git"},"homepage":"https://github.com/erictooth/react-use-pagination/blob/master/README.md","bugs":{"url":"https://github.com/erictooth/react-use-pagination/issues"},"sideEffects":false,"main":"dist-node/react-use-pagination.js","module":"dist-module/react-use-pagination.mjs","types":"dist-types/index.d.ts","scripts":{"build":"npm run build:cjs && npm run build:esm && npm run build:types","build:cjs":"esbuild src/index.ts --sourcemap --bundle --external:react --format=cjs --outfile=dist-node/react-use-pagination.js","build:esm":"esbuild src/index.ts --sourcemap --bundle --external:react --format=esm --outfile=dist-module/react-use-pagination.mjs","build:types":"tsc --emitDeclarationOnly --declaration --declarationMap false --declarationDir dist-types","lint":"eslint src  --ext=ts,tsx","prepack":"npm run build","test":"jest --coverage","typecheck":"tsc --noEmit"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"devDependencies":{"@erictooth/eslint-config":"^3","@erictooth/prettier-config":"^4","@erictooth/semantic-release-npm-github-config":"^1","@testing-library/react-hooks":"^7.0.0","@types/jest":"^26","@types/react":"^17","esbuild":"^0.12.9","eslint":"^7","jest":"^27","prettier":"^2","react-test-renderer":"^17.0.2","ts-jest":"^27","typescript":"^4"},"eslintConfig":{"extends":["@erictooth/eslint-config","@erictooth/eslint-config/typescript","@erictooth/eslint-config/react"]},"prettier":"@erictooth/prettier-config","release":{"extends":"@erictooth/semantic-release-npm-github-config","branches":["master"]},"jest":{"preset":"ts-jest","collectCoverageFrom":["src/**/{!(index),}.{ts, tsx}"]},"gitHead":"fa1451f9cfb75effdaf9f91bafa6a51ebdab2c16","_id":"react-use-pagination@2.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-FtQbuY8c/GohG4XWEIVJhkLjffpedw1d+Gsx5nXbguFDdbnUbJ+RrQOf+CIjfXY+3nk01aNGr9+NVjyQcXsLrA==","shasum":"6bdee874a3243bcbb6f4214b3eea0bcb669d9ed2","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-2.0.0.tgz","fileCount":15,"unpackedSize":37505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg07BHCRA9TVsSAnZWagAA3O4QAJ9B4Dap0vpahpUgaaPC\nAI1mMTGU/Ll3EIUxE2lcT/2v22ajziacDbSeGXwXXjK+QV53TI8TUrwlurw8\nZvAYFNIYk1RlsR3FEdvBjlqbPirWHZhdy95V3YvJpJntYfxdKjit+tkN2QQg\n7BM4qqwsBl8jkrWeDUDOeguAkbFbaHpdZpjTv9czo0Oplj/8LRi3iw6S7zEs\nDAGw9G6EjwG9sutboWj50vT4N+YY7altCUkpgLzkvd221Du+7EXLHSf6CGBR\nQfBuHuI0TWfHbHCfsgH8/oOG24p5BJIxcJeZgB/GGCcXvowRalE59haEhfFF\nv+45vEyWfxT9MGAtTknUfwQPxp5/CJQ3Xp/3cBmsnuXjn0tqzDbl6BqP7sCj\ndkALOLJ5/DDQUbXaTTzZTOUpGTfpfUJYC9dcnq3s8LaO+wWxLOnwg+YDWu9x\nkMjfUOWzHvYK0qhlMQAj6oq0e+nsJL3gEz8G7qrN/9OWuq+LJjLsD3syLgIk\nkT8Yyb/D29D+4RwNEEf+py47OmZTPtfytZa6B2R5S6sStUnYBH1kpGXrjpJG\nnnljRk2KhiR9QwwmuKR4C+EbRfoIzde2+odicYpaWHlySkRdbBFbCHc+fiLV\n6Dr+I40STBww2S0O/pA2aa6qsRldU4henigEPF2OtMJosAd/RhOfJY6Q63Jj\nKA/+\r\n=MiAM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcZv3TZhNZwOcnw8Fohq7XG+4Ck1IHAmd3oXzwNz3BkAiA1R5LI6sjYaxFszyGvpgtC8tZi2s9Bz+vBe9dGu8iJBA=="}]},"_npmUser":{"name":"ericmantooth","email":"eric@mantooth.co"},"directories":{},"maintainers":[{"name":"ericmantooth","email":"eric@mantooth.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_2.0.0_1624485959418_0.6833890273623491"},"_hasShrinkwrap":false},"2.0.1":{"name":"react-use-pagination","version":"2.0.1","description":"A React hook to help manage pagination state","keywords":["pagination","paging","pager","table"],"author":{"name":"erictooth"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/erictooth/react-use-pagination.git"},"homepage":"https://github.com/erictooth/react-use-pagination/blob/master/README.md","bugs":{"url":"https://github.com/erictooth/react-use-pagination/issues"},"sideEffects":false,"main":"dist-node/react-use-pagination.js","module":"dist-module/react-use-pagination.mjs","types":"dist-types/index.d.ts","scripts":{"build":"npm run build:cjs && npm run build:esm && npm run build:types","build:cjs":"esbuild src/index.ts --sourcemap --bundle --external:react --format=cjs --outfile=dist-node/react-use-pagination.js","build:esm":"esbuild src/index.ts --sourcemap --bundle --external:react --format=esm --outfile=dist-module/react-use-pagination.mjs","build:types":"tsc --emitDeclarationOnly --declaration --declarationMap false --declarationDir dist-types","lint":"eslint src  --ext=ts,tsx","prepack":"npm run build","test":"jest src --coverage","typecheck":"tsc --noEmit"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"devDependencies":{"@erictooth/eslint-config":"^3","@erictooth/prettier-config":"^4","@erictooth/semantic-release-npm-github-config":"^1","@testing-library/react-hooks":"^7.0.0","@types/jest":"^26","@types/react":"^17","esbuild":"^0.12.9","eslint":"^7","jest":"^27","prettier":"^2","react-test-renderer":"^17.0.2","ts-jest":"^27","typescript":"^4"},"eslintConfig":{"extends":["@erictooth/eslint-config","@erictooth/eslint-config/typescript","@erictooth/eslint-config/react"]},"prettier":"@erictooth/prettier-config","release":{"extends":"@erictooth/semantic-release-npm-github-config","branches":["master"]},"jest":{"preset":"ts-jest","collectCoverageFrom":["src/**/{!(index),}.{ts, tsx}"]},"gitHead":"66b034161ff542a745aa176f1321f6804696e56c","_id":"react-use-pagination@2.0.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-bo7vI2oZ/+PJJozN7DLWPkewrULLoHb8a6WO3dGudJfEKnj8BVZVbJPkvn5jtydhJ5xi0t0W7xI06XlWUe8Jbw==","shasum":"debc6322cd3f14a4cdf082d913f7736d5cbed170","tarball":"https://registry.npmjs.org/react-use-pagination/-/react-use-pagination-2.0.1.tgz","fileCount":15,"unpackedSize":39636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg07ylCRA9TVsSAnZWagAAyQIQAIaA3EZAjkVYq+kUhSvm\nxt7aZakCKeQThJthSd28Frc/9JDX2e88dmcjoRgq4IsoqG45z39Z2oxwGbbj\nLdsLjkM53+yTPgjJweYpzrAYFuUVEndvMiY1CslF6T+TP1WcnI8u4MF7VYMz\n1qXDYiEaO+/DSE+ywLe/n7umEC/JOJk4BnP0uerGfbVoOxIMeHRVtMkQbYfa\nx5zjb4EBDWan3T727c0htsFnBMTvttdMdh0HmbFj5cmQGpGfuk3W1FCmD0Ml\n3U2pjDldcC8REEOMVYO6XSt2C6MI6WyuKvV0IMb+fSuVeQQDwO+M/BDHrhJf\nY2P8Irm86DtViZR/p40T3osCVYhNQVrOfsjYsRcJWO5mQ3nkxa0OzLHTQ0MB\nAiZIQrKSVVPzi4jBwZUMPhjihIoTNij9OFblJf98R33PyxoEvioc/NO0XbYc\nU7wmlpXWjA7NH9VazWnGrRBQI7rhND7HaYM3cWpHur8iNpRUEZlcqDy73oUa\nF7wPMbsvc83A2xg2titlfB0QNZ2UtOT8LmecG6eozsfKufi0uG+a6nPlhlKX\nynJP7r7GF6SSy5C9hoRL+d5E0FISOqFXd+8QS5YGl1FpaMXIRGZYPkOzW4HW\n3Cgu6USrJQaUQgz6Xt4MtClKnCy/0nMun09Hlrh8dVTmXH6n5rhcgjZCmewf\nT3W7\r\n=OqwG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDetp0c7ugTCH05Ee64q0XZi1+SqQVsA1/NuQ579RpWYwIgLwB9XE+z1PNGl3jl0kErIQoi5CVkTDw9OYGUinbSaDU="}]},"_npmUser":{"name":"ericmantooth","email":"eric@mantooth.co"},"directories":{},"maintainers":[{"name":"ericmantooth","email":"eric@mantooth.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-pagination_2.0.1_1624489125248_0.7196093265855694"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-08T23:30:03.435Z","1.0.0":"2019-02-08T23:30:03.546Z","modified":"2022-05-15T07:08:05.045Z","1.0.1":"2019-02-08T23:30:39.840Z","1.0.2":"2019-02-09T00:27:40.023Z","1.0.3":"2019-02-20T18:56:26.191Z","1.0.4":"2019-03-13T12:37:42.368Z","1.1.0":"2020-07-03T21:48:04.297Z","1.1.1":"2021-06-08T16:27:26.512Z","2.0.0":"2021-06-23T22:05:59.574Z","2.0.1":"2021-06-23T22:58:45.423Z"},"maintainers":[{"name":"ericmantooth","email":"eric@mantooth.co"}],"keywords":["pagination","paging","pager","table"],"license":"MIT","readme":"<div align=\"center\">\n  <img src='https://github.com/erictooth/react-use-pagination/raw/master/media/react-use-pagination.png' width=\"50%\" alt='react-use-pagination' />\n</div>\n\n<h3 align=\"center\">A React hook to help manage pagination state</h3>\n\n<p align=\"center\">\n  <a href=\"https://github.com/erictooth/react-use-pagination/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/react-use-pagination\">\n    <img src=\"https://img.shields.io/npm/v/react-use-pagination.svg\">\n  </a>\n  <a href=\"https://prettier.io\">\n    <img src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\" alt=\"Code Style: Prettier\">\n  </a>\n  <img src=\"https://img.shields.io/badge/coverage-100%25-brightgreen.svg\" alt=\"100% coverage\">\n  <a href=\"https://bundlephobia.com/package/react-use-pagination@latest\">\n    <img src=\"https://badgen.net/bundlephobia/minzip/react-use-pagination@latest\">\n  </a>\n</p>\n\n## ✨ Features\n\n-   🛠 State-only hook & callbacks, you provide your own UI controls\n-   📦 Compatible with any pagination method like [GraphQL Relay Cursor](https://facebook.github.io/relay/graphql/connections.htm), OData, etc.\n-   ⚡️ Works with both server side and client side pagination\n-   🐜 Simple and lightweight — less than 2KB gzipped\n\n## Example\n\n```jsx\nimport { usePagination } from \"react-use-pagination\";\n\nfunction App() {\n    const [data] = React.useState([]); // <- your data\n\n    const {\n        currentPage,\n        totalPages,\n        setNextPage,\n        setPreviousPage,\n        nextEnabled,\n        previousEnabled,\n        startIndex,\n        endIndex,\n    } = usePagination({ totalItems: data.length });\n\n    return (\n        <div>\n            <MyDataTable data={data.slice(startIndex, endIndex)} />\n\n            <button onClick={setPreviousPage} disabled={!previousEnabled}>\n                Previous Page\n            </button>\n            <span>\n                Current Page: {currentPage} of {totalPages}\n            </span>\n            <button onClick={setNextPage} disabled={!nextEnabled}>\n                Next Page\n            </button>\n        </div>\n    );\n}\n```\n\n## API\n\n`const paginationState = usePagination(options);`\n\n### `options`\n\n```ts\ntype Options = {\n    totalItems: number;\n    initialPage?: number; // (default: 0)\n    initialPageSize?: number; // (default: 0)\n};\n```\n\n### `paginationState`\n\n```ts\ntype PaginationState = {\n    // The current page\n    currentPage: number;\n\n    // The first index of the page window\n    startIndex: number;\n\n    // The last index of the page window\n    endIndex: number;\n\n    // Whether the next button should be enabled\n    nextEnabled: number;\n\n    // Whether the previous button should be enabled\n    previousEnabled: number;\n\n    // The total page size\n    pageSize: number;\n\n    // Jump directly to a page\n    setPage: (page: number) => void;\n\n    // Jump to the next page\n    setNextPage: () => void;\n\n    // Jump to the previous page\n    setPreviousPage: () => void;\n\n    // Set the page size\n    setPageSize: (pageSize: number, nextPage?: number = 0) => void;\n};\n```\n\n### Client Side Pagination\n\n`startIndex` and `endIndex` can be used to implement client-side pagination. The simplest possible usage is to pass these properties directly to `Array.slice`:\n\n```jsx\nconst [data] = React.useState([\"apple\", \"banana\", \"cherry\"]);\nconst { startIndex, endIndex } = usePagination({ totalItems: data.length, initialPageSize: 1 });\n\nreturn (\n    <ul>\n        {data.slice(startIndex, endIndex).map((item) => (\n            <li>{item}</li>\n        ))}\n    </ul>\n);\n```\n\n### Server Side Pagination\n\n`startIndex` and `pageSize` can be used to implement a standard limit/offset (also known as top/skip) type of pagination:\n\n```jsx\n// Keep track of length separately from data, since data fetcher depends on pagination state\nconst [length, setLength] = React.useState(0);\n\n// Pagination hook\nconst { startIndex, pageSize } = usePagination({ totalItems: length, initialPageSize: 1 });\n\n// Fetch Data\nconst [_, data] = usePromise(\n    React.useCallback(\n        () => fetchUsers({ offset: startIndex, limit: pageSize }),\n        [startIndex, pageSize]\n    )\n);\n\n// When data changes, update length\nReact.useEffect(() => {\n    setLength(data.length);\n}, [data]);\n\nreturn (\n    <ul>\n        {data.slice(startIndex, endIndex).map((item) => (\n            <li>{item}</li>\n        ))}\n    </ul>\n);\n```\n","readmeFilename":"README.md","description":"A React hook to help manage pagination state","homepage":"https://github.com/erictooth/react-use-pagination/blob/master/README.md","repository":{"type":"git","url":"git+https://github.com/erictooth/react-use-pagination.git"},"author":{"name":"erictooth"},"bugs":{"url":"https://github.com/erictooth/react-use-pagination/issues"}}