{"_id":"@10up/reading-position","_rev":"10-bb1cd91c973fbc72ca4d658a876e9379","name":"@10up/reading-position","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@10up/reading-position","version":"0.1.0","author":{"name":"10up"},"license":"MIT","_id":"@10up/reading-position@0.1.0","maintainers":[{"name":"joesnellpdx","email":"joesnellpdx@gmail.com"},{"name":"nicholasio","email":"nicholasio.oliveira@gmail.com"},{"name":"christianc1","email":"christian.m.chung@gmail.com"},{"name":"timwright12","email":"timwright12@gmail.com"},{"name":"brandwaffle","email":"vhauri@gmail.com"},{"name":"eugene-manuilov","email":"eugene.manuilov@gmail.com"}],"homepage":"https://github.com/10up/component-reading-position#readme","bugs":{"url":"https://github.com/10up/component-reading-position/issues"},"dist":{"shasum":"575dbceacaab0c29f6f08c06827ed897861ead91","tarball":"https://registry.npmjs.org/@10up/reading-position/-/reading-position-0.1.0.tgz","fileCount":23,"integrity":"sha512-G4SgGkgPlS12fnIFL77b3ma6wcbT7Y7qOIT5XDW19yAZr8p1ToppchQCycaLyPg44IHLd/JbE/MIR4SmYHpBcg==","signatures":[{"sig":"MEUCIH7VM1bQZ60C6BofYTD+Nz97HSVijgMPgblcWo+gn55rAiEAriofh3wUtY8MUBkjlaHYN5mp1cVIlBdGXK19IgEgnCg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":210609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCI38CRA9TVsSAnZWagAA9AkP/1deP9OB7FVFUkV4VDQC\nbikxpLTDeX6Jyx3dTai3gw0V8jiysaEuw94fceIRzizOl2d2eyrZ6CP4TZFT\nYGhtlVJ05GhQGN5/9JZStRYS52Jvc5urzz35Z4Mlze9BW+zpP/hzSOygUryO\nrsSXnqhUmqBcFyl2h+RSO5vZkVlDomQqbDClSAopZRx/k3DRLUVgNxkjJ4VL\nRs9Qmr+WLyQ7RNcp0pGOGTeVqT5b62BkO/pwNFL9+HonUcviusqmil8xVIM/\nrQYy+RXRKZW5lOPSuDAjnVysej2p7jp3SWk/oIgjPenmzyGS7EOws78GRUIm\nCL6THLJz3+W5hMOK7UWwKjRW7uN/yr1KUz5CKz3nQQEPz+Yg3KDZIsPJKIJc\nFvoKlr2iv1WR2nLZZo7cdBgIkMFCADWgW4gMetl0SmTREyr5Tf9DWsGE7Kt0\nTgwrsQxyUFUhQt8FzVmeCATGUA40+3VzkqjptBNoGNtAloT8Mogm1xsy8dKS\nbJAoFPjfeWeDJe9nQ9hrVSeGM1QSqvBipPhMn2TP5zPn51Nt8D9x14OvZw+4\nqreFW3IpVRVQAKQQ5ApP/nltGtkLaPo1HeJ7a5A9lxiSvEcfDLwXfSXIJot4\nsXzKWTiYYO1/LC8DW9eTKw6hqxHO/HK9wk8ktFC13d3VpXPteLmyvylapUbK\nImMG\r\n=Is3r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/reading-position.js","style":"./dist/reading-position.css","gitHead":"b9e7675382c3f8ac6c95290d6784a19928f0eec4","scripts":{"test":"jest","build":"webpack","start":"npm install && npx install-peerdeps --dev @10up/eslint-config && npm run build","watch":"webpack --watch"},"_npmUser":{"name":"timwright12","email":"timwright12@gmail.com"},"repository":{"url":"git+https://github.com/10up/component-reading-position.git","type":"git"},"_npmVersion":"6.14.4","description":"A component that reports reading position/progress on a page while scrolling.","directories":{},"_nodeVersion":"14.0.0","browserslist":["last 2 versions","> 1%","IE 11"],"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","eslint":"^6.8.0","core-js":"^3.6.4","postcss":"^7.0.14","webpack":"^4.29.6","prettier":"^2.0.5","puppeteer":"^2.1.0","stylelint":"^9.10.1","@babel/cli":"^7.8.4","css-loader":"^1.0.1","@babel/core":"^7.8.4","webpack-cli":"^3.3.0","babel-eslint":"^10.1.0","babel-loader":"^8.0.5","browser-sync":"^2.26.7","browserslist":"^4.13.0","eslint-loader":"^2.1.2","@babel/runtime":"^7.8.4","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","@babel/polyfill":"^7.8.3","stylelint-order":"^2.2.1","@babel/preset-env":"^7.8.4","postcss-preset-env":"^5.3.0","@10up/eslint-config":"^2.0.0","eslint-plugin-jsdoc":"^22.2.0","eslint-plugin-react":"^7.20.3","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.22.0","@10up/stylelint-config":"^1.0.9","eslint-config-prettier":"^6.11.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","mini-css-extract-plugin":"^0.4.5","stylelint-webpack-plugin":"^1.1.2","eslint-config-airbnb-base":"^14.2.0","eslint-plugin-react-hooks":"^2.5.0","stylelint-config-wordpress":"^14.0.0","browser-sync-webpack-plugin":"^2.2.2","@babel/plugin-transform-runtime":"^7.8.3","stylelint-declaration-use-variable":"^1.7.2"},"_npmOperationalInternal":{"tmp":"tmp/reading-position_0.1.0_1594396156520_0.6300052500080437","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@10up/reading-position","version":"1.0.0","author":{"name":"10up"},"license":"MIT","_id":"@10up/reading-position@1.0.0","maintainers":[{"name":"devinle","email":"devin.leggett@gmail.com"},{"name":"brandwaffle","email":"vhauri@gmail.com"},{"name":"eugene-manuilov","email":"eugene.manuilov@gmail.com"},{"name":"christianc1","email":"christian.m.chung@gmail.com"},{"name":"nicholasio","email":"nicholasio.oliveira@gmail.com"},{"name":"joesnellpdx","email":"joesnellpdx@gmail.com"},{"name":"tlovett1","email":"tlovett88@gmail.com"}],"homepage":"https://github.com/10up/component-library/packages/reading-position","bugs":{"url":"https://github.com/10up/component-library/issues"},"dist":{"shasum":"75f7683866aadb6e6105a9920d9355809d1978bf","tarball":"https://registry.npmjs.org/@10up/reading-position/-/reading-position-1.0.0.tgz","fileCount":20,"integrity":"sha512-LWagfNPQjgbyO6MElfZ7LwDrwwUzlRLdrJz0ph4oYthOyGVaD2Ta0+tjzzwoS52p1NWsz8hdmsTb6NqFFcV7BA==","signatures":[{"sig":"MEQCIAdUVvYZ4AtjZ/d2PkvNs54mip4UuN10SW29pW9IzpwgAiALmiX5/IWVQirOyRzvEi5dhEkAXccUQNCF6P+nDvCahg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiHZLCRA9TVsSAnZWagAAebgP/A3cjjTUEkgCw4/E2dvl\nyGkoxZ0RmAX0eq6nI5dsCcJem/iuENMbP2aKZ6jYHR71Tfq9GHiFfao0FLUE\n9AMXDqN2oQ/U4es1p+iOGJNEU4ElIrKxYBI6M3JlkvzdnB2BIYorOqOAMm/3\nmx0CLUMZ1twL8mLa48gePThMnBaMXL1CqRFsg/LspGmMzOBgdk7TTRHqmsDB\nZWOrlRbmn1fbKLKpArztatLT2XPB7A9WlcRnTmZtvrX6PiekHYk2l1IVihWg\nJNRiZ8zwdH4LJATP24Q2S28d1Whls1pI5bBzgP9dFkGwcCXV+RGN7H5NkpkL\nurRU/O34MMq9hMMQoD2gz6xqw4YdT7S3guQr0iFhN8ZjbFqoJfJQ6zMlt15l\nOy8l5eNXxTvfWzL7lvxnv0aZ/u5/XEYYLuW2bmgp9YUAu5IrI5df7OyNwBwr\np0tSbo9dNqHtq4DOxqf4Jib+dBo/wZ0ZU9g8jt9fX/KZQxfY/xRSiHSxClyj\n5MFKE3XsQAG998fCFc372poRIi+covTkL0afehNqKqSsfg9WjeaWuFjB0QP8\npiQ6wWvYzYRlLtZDSZGdjBOQOOZtmC/h4kpSx4Vo2J+bPbRjSk77Ij2ntdfE\n38n/BmdE7EKT8aFvhJzkVSHaiNP6mDd3EzVXmp/e8c8MDdfbLrnsWdo8f5wm\nkqim\r\n=7hso\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","style":"./dist/index.css","types":"./index.d.ts","module":"dist/index.module.js","source":"src/index.js","exports":"./dist/index.modern.js","scripts":{"test":"jest --coverage","build":"npm run build:modern && npm run build:umd","watch":"concurrently \"npm run build:modern -- --watch\" \"npm run build:umd -- --watch\"","prepare":"npm run build","build:umd":"microbundle build -i src/index.umd.js  --name TenUpTabs -f umd --external none","test:watch":"jest --watch","build:modern":"microbundle build -f modern,es,cjs"},"_npmUser":{"name":"nicholasio","email":"nicholasio.oliveira@gmail.com"},"umd:main":"dist/index.umd.js","repository":{"url":"git+https://github.com/10up/component-library.git","type":"git"},"_npmVersion":"6.14.8","description":"A component that reports reading position/progress on a page while scrolling.","directories":{},"_nodeVersion":"14.15.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^26.6.3","jest-axe":"^4.1.0","microbundle":"^0.13.0","postcss-import":"^14.0.0","postcss-preset-env":"^6.7.0","@testing-library/dom":"^7.29.4","@testing-library/jest-dom":"^5.11.9","@testing-library/user-event":"^12.6.3"},"_npmOperationalInternal":{"tmp":"tmp/reading-position_1.0.0_1619555914765_0.8705414929376205","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-07-10T15:49:16.441Z","modified":"2026-08-21T19:38:59.971Z","0.1.0":"2020-07-10T15:49:16.610Z","1.0.0":"2021-04-27T20:38:34.875Z"},"bugs":{"url":"https://github.com/10up/component-library/issues"},"author":{"name":"10up"},"license":"MIT","homepage":"https://github.com/10up/component-library/packages/reading-position","repository":{"url":"git+https://github.com/10up/component-library.git","type":"git"},"description":"A component that reports reading position/progress on a page while scrolling.","maintainers":[{"email":"mail@fabian-kaegy.de","name":"fabiankaegy"},{"email":"eugene.manuilov@gmail.com","name":"eugene-manuilov"},{"email":"christian.m.chung@gmail.com","name":"christianc1"},{"email":"nicholasio.oliveira@gmail.com","name":"nicholasio"},{"email":"joesnellpdx@gmail.com","name":"joesnellpdx"},{"email":"devin.leggett@gmail.com","name":"devinle"},{"email":"daryll.doyle@10up.com","name":"darylldoyle"},{"email":"jeffpaul@hotmail.com","name":"jeffpaul"}],"readme":"# 10up Reading Position component\n\n[View official documentation for this package](https://baseline.10up.com/component/reading-position)\n\n## Installation\n\n`npm install @10up/reading-position --save`\n\n## Usage\n\n#### CSS Imports\n\n```css\n@import url(\"@10up/reading-position\");\n```\n\nThe styles can be imported into your existing codebase by using PostCSS imports, or by including the standalone CSS file in your project.\n\n#### JavaScript\n\nCreate a new instance by supplying the selector to use for the reading-position and an object containing any necessary callback functions.\n\n```js\nimport ReadingPosition from '@10up/reading-position';\n\nnew ReadingPosition( '.reading-position', {\n\tonCreate: function() {\n\t\tconsole.log( 'onCreate callback' );\n\t},\n\tscrollStart: function( percentage ) {\n\t\tconsole.log( 'scrollStart callback', percentage );\n\t},\n\tscrollEnd: function( percentage ) {\n\t\tconsole.log( 'scrollEnd callback', percentage );\n\t},\n\tscrolling: function( percentage ) {\n\t\tconsole.log( 'scrolling callback', percentage );\n\t}\n} );\n```\n\n## Support Level\n\n**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress.  Bug reports, feature requests, questions, and pull requests are welcome.\n\n## Like what you see?\n\n<a href=\"http://10up.com/contact/\"><img src=\"https://10up.com/uploads/2016/10/10up-Github-Banner.png\" width=\"850\" alt=\"Work with 10up\"></a>\n","readmeFilename":"README.md"}