{"_id":"@duallab/verapdf-js-viewer","_rev":"9-1b720588a302dbf7778fc49c3c36d3d5","name":"@duallab/verapdf-js-viewer","dist-tags":{"latest":"1.7.27"},"versions":{"1.7.9":{"name":"@duallab/verapdf-js-viewer","version":"1.7.9","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.9","maintainers":[{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"3ff62d11150456307231e59a9e75b9c11f2d3ec2","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.9.tgz","fileCount":18,"integrity":"sha512-CY+RiTGOJJ0+PDtH9pdb1/dXrryZVcjCYEKFbOsw7gflQFeHU6BIgLwdLKqwNythcEjNgRLFv+xeN00VZHXy9w==","signatures":[{"sig":"MEUCIQDteYI+NhDvN0btvpyiPwI/+EavdVfD7mE6omhByCcsoAIgdmsTCZDOd/n6iPwprUsTXWtAKslJMnbGt8WiVIb0ukg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8987502},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"5e417bb871a6c7475e561657d977843c25006e19","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},"_npmVersion":"10.2.3","description":"Display pdf with opportunity of bounding boxes selection","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.17"},"_nodeVersion":"20.10.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.17","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.9_1708949950600_0.20848915699620774","host":"s3://npm-registry-packages"}},"1.7.14":{"name":"@duallab/verapdf-js-viewer","version":"1.7.14","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.14","maintainers":[{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"9aaefcb37bc731bd1cda1b147bab367af5eedcbd","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.14.tgz","fileCount":18,"integrity":"sha512-iHIi/seDZpvxYlBi913PpRtYORdWOdNQedykX0WBFl+wdzYGgNqwQB34a8V34McbcpofrwtSnES6LGAO2/VNeA==","signatures":[{"sig":"MEQCIHlK3nKsB6NP1KlCSjRUA4GaR5eCrbkl6yktT2I8C1RxAiAM4jI7BCND9hhjRrOm93GaWN3viMxbzA8FPqqSBu3URw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9061664},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"0bcb753d83b848712c1234c8a2a1db8d9111a1fa","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"_npmVersion":"8.19.3","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18"},"_nodeVersion":"16.19.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.14_1710424793286_0.906380249110885","host":"s3://npm-registry-packages"}},"1.7.16":{"name":"@duallab/verapdf-js-viewer","version":"1.7.16","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.16","maintainers":[{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"84f442e8f52086ba5134bed553231354eb49f9da","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.16.tgz","fileCount":18,"integrity":"sha512-fKszW3Bv/ndswyF+jO3Licizer5hrWe6wVJLm8q2cKcfwlkwsLiglPsZRZjP4SFhIxsoqjwmZVzJyvJ8ERR71w==","signatures":[{"sig":"MEUCIQC+TLfkEkRjFfgrtZ6/IdibUttjGgHfAbLAtgaR0jRNHAIgW84AgYwgwNCEpqLKF9tQVlYeN51A56PNwKolS9JCH/o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9138138},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"3e9d8ec7ec07873262225837ba7dbccc1f72156d","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"_npmVersion":"8.19.3","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18"},"_nodeVersion":"16.19.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.16_1711462047692_0.29418291688895515","host":"s3://npm-registry-packages"}},"1.7.17":{"name":"@duallab/verapdf-js-viewer","version":"1.7.17","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.17","maintainers":[{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"202bdf88709d313566e586206878f1f7587e5642","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.17.tgz","fileCount":18,"integrity":"sha512-QHmChGx7rGmkrHWxEvtWNeA6OnXkfksLt9Lxkh8oMPmCQzUXFVUxlSOp6pOsXLLNGtiuX+U05X/hXdKBDI6v7g==","signatures":[{"sig":"MEYCIQD32AbF/BflJa0jESPbVsZV27zcb0njcTSiNWzlwK2vqQIhAJnebe22Z3HLXNz0Mzg6ZaUSPhhHkcSO6mfPimG2anZu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9006266},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"bc968744271f07e9af1809710f595243430e1c5d","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"_npmVersion":"8.19.3","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18"},"_nodeVersion":"16.19.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.17_1712661719908_0.7629384814982161","host":"s3://npm-registry-packages"}},"1.7.18":{"name":"@duallab/verapdf-js-viewer","version":"1.7.18","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.18","maintainers":[{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"a31ccc01e1c2ba6c418d7908478e7a2f4e52dfe6","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.18.tgz","fileCount":18,"integrity":"sha512-GajdsyjiwEGoMEi3T5Ap1ZnznPW9d7Roaeu03rupZ6S3ZUypB2Sw59n1DRybh/7vJj+uqRx/yhqyCKfQgSCKMw==","signatures":[{"sig":"MEUCIQCBsmEQWrAyVFQW1UpMDZ5qeN+gu8aSsXqk+XrPtFvmOwIgUIegMsqZh3eDNxP1SoRb1HHaFybM5fCBjzp8qVL6v3g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8952640},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"0afa1e712a22c0353bb141f221330293a69321f9","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"_npmVersion":"8.19.3","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18"},"_nodeVersion":"19.1.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.18_1722426570476_0.06972959731185946","host":"s3://npm-registry-packages"}},"1.7.19":{"name":"@duallab/verapdf-js-viewer","version":"1.7.19","keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","_id":"@duallab/verapdf-js-viewer@1.7.19","maintainers":[{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"},{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"}],"dist":{"shasum":"d9da0a465f035aa7c651880904e490db5160ca32","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.19.tgz","fileCount":18,"integrity":"sha512-KEQKMIsveXo7yg4YmtHt2p9/3iOcHsyi+ibzNzCRq63MDncUpYO5YDcmx+JlGSJKgPfN56V2ZQcEJG2AFtdtfA==","signatures":[{"sig":"MEQCICYaz3vdwZNlutBeBXbBERb/KurbCPZNfRBj6WkbmEj+AiAuGiGPNNqnno6wj8fO+VDnbo+fUc5slzTbz936dxFHng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9062930},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"2ebf2941a480e912b27a325e2ff332921a3f78b6","scripts":{"build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"_npmVersion":"8.19.3","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","directories":{},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18"},"_nodeVersion":"19.1.0","dependencies":{"react-pdf":"6.2.2","react-use":"^17.1.0","pdfjs-dist":"github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18","use-intersection":"^0.2.1","styled-components":"^5.2.1"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.0.0","lodash":"^4.17.21","rollup":"^2.37.0","prettier":"^2.2.1","react-dom":"^18.0.0","babel-core":"^6.26.3","typescript":"^4.8.3","@types/react":"^18.0.0","@types/lodash":"^4.14.168","babel-runtime":"^6.26.0","@types/react-dom":"^18.0.0","@types/react-pdf":"^6.2.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"^1.12.0","eslint-config-react":"^1.1.7","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","rollup-plugin-commonjs":"^10.1.0","@types/styled-components":"^5.1.7","@typescript-eslint/parser":"^4.14.0","rollup-plugin-typescript2":"^0.31.0","@typescript-eslint/eslint-plugin":"^4.14.0","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/verapdf-js-viewer_1.7.19_1724831387283_0.28799336693364164","host":"s3://npm-registry-packages"}},"1.7.27":{"name":"@duallab/verapdf-js-viewer","version":"1.7.27","description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","main":"dist/index.js","scripts":{"build":"rollup -c","start":"rollup -c -w"},"keywords":[],"author":{"name":"duallab"},"license":"MPL-2.0","devDependencies":{"@babel/core":"^7.26.10","@babel/runtime":"^7.26.10","@types/lodash":"^4.14.168","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@types/styled-components":"^5.1.7","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","eslint-config-prettier":"^7.2.0","eslint-config-react":"^1.1.7","eslint-plugin-prettier":"^3.3.1","lodash":"^4.17.21","prettier":"^2.2.1","react":"^18.0.0","react-dom":"^18.0.0","rollup":"^2.37.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-sass":"1.12.22","rollup-plugin-typescript2":"^0.31.0","typescript":"^4.8.3","typescript-plugin-styled-components":"^2.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.0.0 || ^17.0.0 || ^18.0.0"},"dependencies":{"pdfjs-dist":"github:veraPDF/pdfjs-dist#v4.4.168-taggedPdf-0.1.20","react-pdf":"9.1.1","react-use":"^17.1.0","styled-components":"^5.2.1","url":"^0.11.4","use-intersection":"^0.2.1"},"resolutions":{"@types/react-pdf/pdfjs-dist":"github:veraPDF/pdfjs-dist#v4.4.168-taggedPdf-0.1.20","@babel/runtime":"^7.26.10","brace-expansion":"^1.1.12"},"_id":"@duallab/verapdf-js-viewer@1.7.27","gitHead":"71f8acec2965d7465040a0e669e68a2c07881d2b","types":"./dist/index.d.ts","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-+yLgZSsITFTmzH8+/PxDXKWy3l0+8D2yq/gjmEpNEwXExNtZtCMbRZZjp1fPT4hbzBxDj1p4kc6cwvlRnBfl6g==","shasum":"65e3c4a030ff9ba58a1f64acecd7472bd8bb29db","tarball":"https://registry.npmjs.org/@duallab/verapdf-js-viewer/-/verapdf-js-viewer-1.7.27.tgz","fileCount":18,"unpackedSize":2617129,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEwV5/C1NI1M/ZL5ucGrpxu55Pv19yT//c7gP6cLSSt6AiBiaPVXncw5f2i9+3gVnviAPCAwTKHA/BrXcGW9/Z/O/w=="}]},"_npmUser":{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},"directories":{},"maintainers":[{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"},{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"pavel-gribovsky","email":"pavel.gribovsky@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/verapdf-js-viewer_1.7.27_1768551829739_0.07562072286255095"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-26T12:19:10.504Z","modified":"2026-01-16T08:23:50.188Z","1.7.9":"2024-02-26T12:19:10.779Z","1.7.14":"2024-03-14T13:59:53.548Z","1.7.16":"2024-03-26T14:07:27.933Z","1.7.17":"2024-04-09T11:22:00.227Z","1.7.18":"2024-07-31T11:49:30.656Z","1.7.19":"2024-08-28T07:49:47.476Z","1.7.27":"2026-01-16T08:23:49.965Z"},"author":{"name":"duallab"},"license":"MPL-2.0","keywords":[],"description":"Display PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors","maintainers":[{"name":"yuliya.ivaniukovich","email":"yuliya.ivaniukovich@duallab.com"},{"name":"bdoubrov","email":"boris.doubrov@duallab.com"},{"name":"ekaterina.chubrick","email":"ekaterina.chubrick@duallab.com"},{"name":"pavel-gribovsky","email":"pavel.gribovsky@duallab.com"},{"name":"vova-vb","email":"vladimir.burshnev@duallab.com"}],"readme":"# veraPDF-js-viewer\r\n\r\nDisplay PDF with an option to highlight a collection of rectangles on top of page rendering. Used by veraPDF web application to visualize locations of validation errors\r\n\r\n[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](LICENSE.MPL)\r\n\r\n### Compatibility\r\n\r\n#### React\r\n\r\nTo use the latest version of veraPDF-js-viewer, your project needs to use React 16.3 or later.\r\n\r\n#### Internet Explorer\r\n\r\nInternet Explorer is not supported in veraPDF-js-viewer. Use Edge instead\r\n\r\n### Usage\r\n\r\nHere's an example of basic usage:\r\n\r\n```js\r\nimport React, { useState } from 'react';\r\nimport PdfViewer from '@duallab/verapdf-js-viewer';\r\n\r\nfunction MyApp() {\r\n  const [numPages, setNumPages] = useState(null);\r\n  const [pageNumber, setPageNumber] = useState(1);\r\n\r\n  function onDocumentLoadSuccess({ numPages }) {\r\n    setNumPages(numPages);\r\n  }\r\n\r\n  return (\r\n    <div>\r\n      <PdfViewer\r\n        file=\"somefile.pdf\"\r\n        onLoadSuccess={onDocumentLoadSuccess}\r\n      />\r\n      <p>Page {pageNumber} of {numPages}</p>\r\n    </div>\r\n  );\r\n}\r\n```\r\n\r\n## Input parameters\r\n\r\n| Prop name               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Default value                                                                                                                                                                                                                                                                                                                                                                      | Example values                                                                                                                                                                                                                                                                                                    |\r\n|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\r\n| <b>Document props</b>   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                   |\r\n| className               | Class name(s) that will be added to rendered element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | n/a                                                                                                                                                                                                                                                                                                                                                                                | `\"custom-class-name-1 custom-class-name-2\"`                                                                                                                                                                                                                                                                       |\r\n| file                    | What PDF should be displayed.<br />Its value can be an URL, a file (imported using `import ... from ...` or from file input form element), or an object with parameters (`url` - URL; `data` - data, preferably Uint8Array; `range` - PDFDataRangeTransport; `httpHeaders` - custom request headers, e.g. for authorization), `withCredentials` - a boolean to indicate whether or not to include cookies in the request (defaults to `false`).<br />**Warning**: Since equality check (`===`) is used to determine if `file` object has changed, it must be memoized by setting it in component's state, `useMemo` or other similar technique.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | n/a                                                                                                                                                                                                                                                                                                                                                                                | <ul><li>URL:<br />`\"http://example.com/sample.pdf\"` </li><li>File:<br />`import sample from '../static/sample.pdf'` and then<br />`sample`</li><li>Parameter object:<br />`{ url: 'http://example.com/sample.pdf', httpHeaders: { 'X-CustomHeader': '40359820958024350238508234' }, withCredentials: true }`</ul> |\r\n| bboxes                  | Array of bboxes `[ {location, groupId, bboxTitle, isVisible} ]` that will be rendered as selectable rectangles over pdf pages.<br /><br />`isVisible` is an optional flag that specifies whether bbox should be shown on the canvas (default value: true).<br /><br />Bboxes can be grouped by optional parameter `groupId`. If error's check has 3rd item (2nd index) of `errorArguments`, it can be grouped with other checks with the same id from `check.errorArguments[2]` (`'${clause}-${testNumber}-${check.errorArguments[2]}'` => `4.1.2-9-79`)<br />`bboxTitle` is an optional parameter that is set to `title` and `aria-describedby` bounding box attributes. <br /><br />Currently support these locations:<br /><ul><li>JSON string of bbox object: `{\"bbox\":[{\"p\":1,\"rect\":[x,y,x2,y2]}]}`</li><li>String with coordinates for left-bottom point and top-right:`pages[1-2]/boundingBox[x,y,x2,y2]`</li><li>String path through tagged structure tree: `root/document[0]/pages[1](1 0 obj PDPage)/annots[1](100 0 obj PDLinkAnnot)`</li><li>String path to glyph in page stream: `root/document[0]/pages[0](14 0 obj PDPage)/contentStream[0](20 0 obj PDSemanticContentStream)/operators[6]/usedGlyphs[5](OPCPIB+TimesNewRomanPSMT OPCPIB+TimesNewRomanPSMT 32 0 56991387 0)`</li></ul> New contexts will be added. | n/a                                                                                                                                                                                                                                                                                                                                                                                | `[{  groupId: '4.1.2-9-79', location: 'pages[2-4]/boundingBox[10,200,300,400]' }]`                                                                                                                                                                                                                                |\r\n| activeBboxIndex         | Index of active bbox from bboxes array                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | n/a                                                                                                                                                                                                                                                                                                                                                                                | `0`                                                                                                                                                                                                                                                                                                               |\r\n| activeBboxId            | Id of active tree bbox                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | n/a                                                                                                                                                                                                                                                                                                                                                                                | `\"0:3:11:0\"`                                                                                                                                                                                                                                                                                                      |\r\n| showAllPages            | Boolean flag to show pdf with all pages with scroll or single page                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | false                                                                                                                                                                                                                                                                                                                                                                              | `true`                                                                                                                                                                                                                                                                                                            |\r\n| isTreeBboxesVisible     | Boolean flag to show tree bboxes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | false                                                                                                                                                                                                                                                                                                                                                                              | `true`                                                                                                                                                                                                                                                                                                            |\r\n| error                   | What the component should display in case of an error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `\"Failed to load PDF file.\"`                                                                                                                                                                                                                                                                                                                                                       | <ul><li>String:<br />`\"An error occurred!\"`</li><li>React element:<br />`<div>An error occurred!</div>`</li><li>Function:<br />`this.renderError`</li></ul>                                                                                                                                                       |\r\n| treeBboxSelectionMode   | String that determines how tree bboxes are highlighted:<ul><li>The value \"SELECTED\" selects only the current bbox</li><li>The value \"SELECTED_WITH_KIDS\" selects the current bbox and all child bboxes</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `\"SELECTED\"`                                                                                                                                                                                                                                                                                                                                                                       | One of the following values: <ul><li>`\"SELECTED\"`</li><li>`\"SELECTED_WITH_KIDS\"`</li></ul>                                                                                                                                                                                                                        |\r\n| externalLinkTarget      | Link target for external links rendered in annotations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | unset, which means that default behavior will be used                                                                                                                                                                                                                                                                                                                              | One of valid [values for `target` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes). <ul><li>`\"_self\"`</li><li>`\"_blank\"`</li><li>`\"_parent\"`</li><li>`\"_top\"`</li></ul>                                                                                                         |\r\n| loading                 | What the component should display while loading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `\"Loading PDF…\"`                                                                                                                                                                                                                                                                                                                                                                   | <ul><li>String:<br />`\"Please wait!\"`</li><li>React element:<br />`<div>Please wait!</div>`</li><li>Function:<br />`this.renderLoader`</li></ul>                                                                                                                                                                  |\r\n| noData                  | What the component should display in case of no data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | `\"No PDF file specified.\"`                                                                                                                                                                                                                                                                                                                                                         | <ul><li>String:<br />`\"Please select a file.\"`</li><li>React element:<br />`<div>Please select a file.</div>`</li><li>Function:<br />`this.renderNoData`</li></ul>                                                                                                                                                |\r\n| defaultWidth            | Default width (usually a Document container width) to be used before page is loaded for pages larger then the container to prevent blank pages issue                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | n/a                                                                                                                                                                                                                                                                                                                                                                                | `210`                                                                                                                                                                                                                                                                                                             |\r\n| defaultHeight           | Default height (usually a Document container height) to be used before page is loaded for pages larger then the container to prevent blank pages issue                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | n/a                                                                                                                                                                                                                                                                                                                                                                                | `270`                                                                                                                                                                                                                                                                                                             |\r\n| rotate                  | Rotation of the document in degrees. If provided, will change rotation globally, even for the pages which were given `rotate` prop of their own. `90` = rotated to the right, `180` = upside down, `270` = rotated to the left.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | n/a                                                                                                                                                                                                                                                                                                                                                                                | `90`                                                                                                                                                                                                                                                                                                              |\r\n| onLoadSuccess           | Function called when the document is successfully loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | n/a                                                                                                                                                                                                                                                                                                                                                                                | `(pdf) => alert('Loaded a file with ' + pdf.numPages + ' pages!')`                                                                                                                                                                                                                                                |\r\n| onLoadError             | Function called in case of an error while loading a document.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | n/a                                                                                                                                                                                                                                                                                                                                                                                | `(error) => alert('Error while loading document! ' + error.message)`                                                                                                                                                                                                                                              |\r\n| onItemClick             | Function called when an outline item has been clicked. Usually, you would like to use this callback to move the user wherever they requested to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | n/a                                                                                                                                                                                                                                                                                                                                                                                | `({ pageNumber }) => alert('Clicked an item from page ' + pageNumber + '!')`                                                                                                                                                                                                                                      |\r\n| onBboxClick             | Function called when an bbox item has been clicked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | n/a                                                                                                                                                                                                                                                                                                                                                                                | `(bboxData) => alert('Selected bbox from ' + bboxData.page + ' page!')`                                                                                                                                                                                                                                           |\r\n| onPageChange            | Function called when page changed during scrolling                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | n/a                                                                                                                                                                                                                                                                                                                                                                                | `(page: number) => alert('New page ' + page);`                                                                                                                                                                                                                                                                    |\r\n| onWarning               | Function called in case of a warning for the selected bounding box. The warning is described by the code from the list: <br /> <ul><li>`BBOX_OUT_OF_THE_PAGE_VIEWPORT` (selected bounding box is out of the page viewport)</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | n/a                                                                                                                                                                                                                                                                                                                                                                                | `(warningCode: string) => alert('Warning: ' + warningCode);`                                                                                                                                                                                                                                                      |\r\n| <b>Page props</b>       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                   |\r\n| page                    | Which page from PDF file should be displayed, by page number. In case `showAllPages={true}` autoscroll to provided page                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `1`                                                                                                                                                                                                                                                                                                                                                                                | `2`                                                                                                                                                                                                                                                                                                               |\r\n| inputRef                | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Page>` component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | n/a                                                                                                                                                                                                                                                                                                                                                                                | <ul><li>Function:<br />`(ref) => { this.myPage = ref; }`</li><li>Ref created using `React.createRef`:<br />`this.ref = React.createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `React.useRef`:<br />`const ref = React.useRef();`<br />…<br />`inputRef={ref}`</li></ul>                  |\r\n| pageError               | What the component should display in case of an error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `\"Failed to load the page.\"`                                                                                                                                                                                                                                                                                                                                                       | <ul><li>String:<br />`\"An error occurred!\"`</li><li>React element:<br />`<div>An error occurred!</div>`</li><li>Function:<br />`this.renderError`</li></ul>                                                                                                                                                       |\r\n| height                  | Page height. If neither `height` nor `width` are defined, page will be rendered at the size defined in PDF. If you define `width` and `height` at the same time, `height` will be ignored. If you define `height` and `scale` at the same time, the height will be multiplied by a given factor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Page's default height                                                                                                                                                                                                                                                                                                                                                              | `300`                                                                                                                                                                                                                                                                                                             |\r\n| width                   | Page width. If neither `height` nor `width` are defined, page will be rendered at the size defined in PDF. If you define `width` and `height` at the same time, `height` will be ignored. If you define `width` and `scale` at the same time, the width will be multiplied by a given factor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Page's default width                                                                                                                                                                                                                                                                                                                                                               | `300`                                                                                                                                                                                                                                                                                                             |\r\n| pageLoading             | What the component should display while loading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `\"Loading page…\"`                                                                                                                                                                                                                                                                                                                                                                  | <ul><li>String:<br />`\"Please wait!\"`</li><li>React element:<br />`<div>Please wait!</div>`</li><li>Function:<br />`this.renderLoader`</li></ul>                                                                                                                                                                  |\r\n| renderAnnotationLayer   | Whether annotations (e.g. links) should be rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | `true`                                                                                                                                                                                                                                                                                                                                                                             | `false`                                                                                                                                                                                                                                                                                                           |\r\n| renderInteractiveForms  | Whether interactive forms should be rendered. `renderAnnotationLayer` prop must be set to `true`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ","readmeFilename":"README.md"}