Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-adobe-embed

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-adobe-embed - npm Package Compare versions

Comparing version 0.6.69 to 0.7.69

12

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc