react-pdf-js
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -361,4 +361,8 @@ 'use strict'; | ||
content: _react2.default.PropTypes.string, | ||
documentInitParameters: _react2.default.PropTypes.shape, | ||
binaryContent: _react2.default.PropTypes.shape, | ||
documentInitParameters: _react2.default.PropTypes.shape({ | ||
url: _react2.default.PropTypes.string | ||
}), | ||
binaryContent: _react2.default.PropTypes.shape({ | ||
data: _react2.default.PropTypes.any | ||
}), | ||
file: _react2.default.PropTypes.any, // Could be File object or URL string. | ||
@@ -365,0 +369,0 @@ loading: _react2.default.PropTypes.any, |
{ | ||
"name": "react-pdf-js", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "A React component to wrap PDF.js", | ||
@@ -33,3 +33,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"pdfjs-dist": "1.5.496", | ||
"pdfjs-dist": "1.6.263", | ||
"react": "15.3.2" | ||
@@ -39,3 +39,3 @@ }, | ||
"babel-cli": "6.16.0", | ||
"babel-core": "6.16.0", | ||
"babel-core": "6.17.0", | ||
"babel-eslint": "7.0.0", | ||
@@ -49,7 +49,7 @@ "babel-loader": "6.2.5", | ||
"babel-runtime": "6.11.6", | ||
"eslint": "3.6.1", | ||
"eslint": "3.8.1", | ||
"eslint-config-airbnb": "12.0.0", | ||
"eslint-plugin-import": "1.16.0", | ||
"eslint-plugin-react": "6.3.0", | ||
"eslint-plugin-jsx-a11y": "2.2.2", | ||
"eslint-plugin-react": "6.4.1", | ||
"eslint-plugin-jsx-a11y": "2.2.3", | ||
"rifraf": "2.0.2", | ||
@@ -56,0 +56,0 @@ "rimraf": "2.5.4", |
@@ -28,3 +28,3 @@ #react-pdf-js | ||
this.onDocumentComplete = this.onDocumentComplete.bind(this); | ||
this.onPageCompleted = this.onPageCompleted.bind(this); | ||
this.onPageComplete = this.onPageComplete.bind(this); | ||
this.handlePrevious = this.handlePrevious.bind(this); | ||
@@ -38,3 +38,3 @@ this.handleNext = this.handleNext.bind(this); | ||
onPageCompleted(page) { | ||
onPageComplete(page) { | ||
this.setState({ page }); | ||
@@ -77,3 +77,3 @@ } | ||
<div> | ||
<PDF file="somefile.pdf" onDocumentComplete={this.onDocumentComplete} onPageCompleted={this.onPageCompleted} page={this.state.page} /> | ||
<PDF file="somefile.pdf" onDocumentComplete={this.onDocumentComplete} onPageComplete={this.onPageComplete} page={this.state.page} /> | ||
{pagination} | ||
@@ -80,0 +80,0 @@ </div> |
@@ -249,4 +249,8 @@ import React from 'react'; | ||
content: React.PropTypes.string, | ||
documentInitParameters: React.PropTypes.shape, | ||
binaryContent: React.PropTypes.shape, | ||
documentInitParameters: React.PropTypes.shape({ | ||
url: React.PropTypes.string, | ||
}), | ||
binaryContent: React.PropTypes.shape({ | ||
data: React.PropTypes.any, | ||
}), | ||
file: React.PropTypes.any, // Could be File object or URL string. | ||
@@ -253,0 +257,0 @@ loading: React.PropTypes.any, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3077271
68279
+ Addedpdfjs-dist@1.6.263(transitive)
- Removedpdfjs-dist@1.5.496(transitive)
Updatedpdfjs-dist@1.6.263