react-adobe-embed
Advanced tools
Comparing version 0.6.69 to 0.7.69
@@ -33,4 +33,4 @@ "use strict"; | ||
this.onLoaded = () => { | ||
var _a, _b, _c, _d; | ||
this.previewFile(((_a = this.props.config) === null || _a === void 0 ? void 0 : _a.divId) || "pdf-div", ((_b = this.props.config) === null || _b === void 0 ? void 0 : _b.clientId) || "CLIENT_ID", ((_c = this.props.config) === null || _c === void 0 ? void 0 : _c.previewConfig) || AdobeReactView.staticDefaultCOnfig, ((_d = this.props.config) === null || _d === void 0 ? void 0 : _d.url) || | ||
var _a, _b, _c; | ||
this.previewFile(((_a = this.state.config) === null || _a === void 0 ? void 0 : _a.divId) || "pdf-div", ((_b = this.state.config) === null || _b === void 0 ? void 0 : _b.clientId) || "CLIENT_ID", this.state.previewConfig || AdobeReactView.staticDefaultCOnfig, ((_c = this.state.config) === null || _c === void 0 ? void 0 : _c.url) || | ||
AdobeReactView.demoUrl); | ||
@@ -50,3 +50,3 @@ }; | ||
this.adobeDCView = new window.AdobeDC.View({ | ||
clientId: clientId || ((_a = this.props.config) === null || _a === void 0 ? void 0 : _a.clientId) || "CLIENT_ID", | ||
clientId: clientId || ((_a = this.state.config) === null || _a === void 0 ? void 0 : _a.clientId) || "CLIENT_ID", | ||
divId: divId || AdobeReactView.staticDefaultDivId, | ||
@@ -66,3 +66,3 @@ }); | ||
var _a; | ||
if (document.getElementById(((_a = this.props.config) === null || _a === void 0 ? void 0 : _a.divId) || "pdf-div")) { | ||
if (document.getElementById(((_a = this.state.config) === null || _a === void 0 ? void 0 : _a.divId) || AdobeReactView.staticDefaultDivId)) { | ||
if (this.state.isReady === false) { | ||
@@ -83,7 +83,7 @@ this.setState({ isReady: true }); | ||
var _a, _b; | ||
if (document.getElementById(((_a = this.props.config) === null || _a === void 0 ? void 0 : _a.divId) || "pdf-div") || | ||
if (document.getElementById(((_a = this.state.config) === null || _a === void 0 ? void 0 : _a.divId) || AdobeReactView.staticDefaultDivId) || | ||
(this.state.isReady && this.state.adobeMainReady)) { | ||
this.onLoaded(); | ||
} | ||
return ((0, jsx_runtime_1.jsx)("div", { id: ((_b = this.props.config) === null || _b === void 0 ? void 0 : _b.divId) || AdobeReactView.staticDefaultDivId, className: "AdobeReactView" })); | ||
return ((0, jsx_runtime_1.jsx)("div", { id: ((_b = this.state.config) === null || _b === void 0 ? void 0 : _b.divId) || AdobeReactView.staticDefaultDivId, className: "AdobeReactView" })); | ||
} | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "react-adobe-embed", | ||
"version": "0.6.69", | ||
"version": "0.7.69", | ||
"description": "React Wrapper for Embed Adobe API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
27965