Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

react-documents

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-documents - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+3
-1
index.esm.js

@@ -1543,3 +1543,3 @@ import { jsx, jsxs } from 'react/jsx-runtime';

const DocumentViewer = inputProps => {
var _a, _b, _c;
var _a, _b, _c, _d, _e;

@@ -1636,2 +1636,4 @@ const iframeRef = useRef(null);

data: state.url,
style: (_d = props.current) === null || _d === void 0 ? void 0 : _d.style,
className: (_e = props.current) === null || _e === void 0 ? void 0 : _e.className,
type: "application/pdf",

@@ -1638,0 +1640,0 @@ width: "100%",

@@ -89,7 +89,7 @@ (function (global, factory) {

var DocumentViewer = function DocumentViewer(inputProps) {
var _a, _b, _c;
var _a, _b, _c, _d, _e;
var iframeRef = react.useRef(null);
var _d = react.useState({
var _f = react.useState({
url: '',

@@ -101,4 +101,4 @@ externalViewer: true,

}),
state = _d[0],
setState = _d[1];
state = _f[0],
setState = _f[1];

@@ -205,2 +205,4 @@ var checkIFrameSubscription = react.useRef();

data: state.url,
style: (_d = props.current) === null || _d === void 0 ? void 0 : _d.style,
className: (_e = props.current) === null || _e === void 0 ? void 0 : _e.className,
type: "application/pdf",

@@ -207,0 +209,0 @@ width: "100%",

{
"name": "react-documents",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "React document viewer.",