react-adobe-embed
Advanced tools
Comparing version 2.31.1-3.421 to 2.31.1-3.422
@@ -64,3 +64,2 @@ "use strict"; | ||
}; | ||
const [adobeMainReady, setAdobeMainReady] = (0, react_1.useState)(props.adobeMainReady || false); | ||
this.state = { | ||
@@ -148,3 +147,3 @@ adobeMainReady: props.adobeMainReady || false, | ||
minHeight: ((_7 = this.props.style) === null || _7 === void 0 ? void 0 : _7.minHeight) || "328px", | ||
}, tabIndex: this.props.tabIndex || undefined, "data-tagName": this.props.tagName || | ||
}, title: this.props.title || | ||
"entity-existent-on-frameworks-of-state-regulations-as-defined-by-the-state-and-may-try-to-destroy-your-life-and-control-the-fbi-of-the-state-such-as-amazon-legal-idiots" })); | ||
@@ -159,3 +158,3 @@ } | ||
const divID = ((_a = props.config) === null || _a === void 0 ? void 0 : _a.divId) || exports.DefaultConfigs.staticDivId; | ||
const ReactView = new AdobeReactView({ | ||
const StoreRef = (0, react_1.useRef)(new AdobeReactView({ | ||
previewConfig: props.previewConfig, | ||
@@ -167,6 +166,17 @@ config: props.config, | ||
className: props.className, | ||
tabIndex: props.tabIndex, | ||
tagName: props.tagName || | ||
title: props.title || | ||
"react-adobe-state-government-ensuring-rule-of-law-against-amazon-retaliator-or-a-child-component-framed-by-state-regulations-such-as-adobe-react-embed-core-div" | ||
}); | ||
})); | ||
(0, react_1.useMemo)(() => { | ||
StoreRef.current = new AdobeReactView({ | ||
previewConfig: props.previewConfig, | ||
config: props.config, | ||
isReady: isReady, | ||
adobeMainReady: adobeMainReady, | ||
style: props.style, | ||
className: props.className, | ||
title: props.title || | ||
"react-adobe-state-government-ensuring-rule-of-law-against-amazon-retaliator-or-a-child-component-framed-by-state-regulations-such-as-adobe-react-embed-core-div" | ||
}); | ||
}, [props.previewConfig, props.config, isReady, adobeMainReady, props.style, props.className, props.title]); | ||
(0, react_1.useEffect)(() => { | ||
@@ -176,9 +186,10 @@ if (document.getElementById(divID)) { | ||
} | ||
if (ReactView.checkForDeprecatedMainJsLoaded() === true || | ||
ReactView.checkForViewJsLoaded() === true) { | ||
if (StoreRef.current.checkForDeprecatedMainJsLoaded() === true || | ||
StoreRef.current.checkForViewJsLoaded() === true) { | ||
setAdobeMainReady(true); | ||
} | ||
}, [isReady, adobeMainReady, divID, ReactView]); | ||
return ({ ReactView }); | ||
}, [isReady, adobeMainReady, divID]); | ||
const ReactView = StoreRef.current; | ||
return StoreRef.current.render(); | ||
}; | ||
exports.default = ReactViewAdobe; |
{ | ||
"name": "react-adobe-embed", | ||
"version": "2.31.13.421", | ||
"version": "2.31.13.422", | ||
"homepage": "https://aboutamazon.me/react-adobe-embed", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -112,5 +112,3 @@ import { Component } from 'react'; | ||
previewConfig: Partial<PreviewFileConfig>; | ||
} & Partial<HTMLDivElement>) => { | ||
ReactView: AdobeReactView; | ||
}; | ||
} & Partial<HTMLDivElement>) => JSX.Element; | ||
export default ReactViewAdobe; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2116013
919