@react-pdf-viewer/properties
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -156,18 +156,32 @@ 'use strict'; | ||
React__namespace.createElement("div", { className: "rpv-properties__modal-section" }, | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.fileName : 'File name'), value: data.fileName || getFileName(fileName) }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.fileSize : 'File size'), value: getFileSize(data.length) })), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.fileName | ||
: 'File name', value: data.fileName || getFileName(fileName) }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.fileSize | ||
: 'File size', value: getFileSize(data.length) })), | ||
React__namespace.createElement(core.Separator, null), | ||
React__namespace.createElement("div", { className: "rpv-properties__modal-section" }, | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.title : 'Title'), value: data.info.Title }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.author : 'Author'), value: data.info.Author }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.subject : 'Subject'), value: data.info.Subject }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.keywords : 'Keywords'), value: data.info.Keywords }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.creator : 'Creator'), value: data.info.Creator }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.creationDate : 'Creation date'), value: formatDate(data.info.CreationDate) }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.modificationDate : 'Modification date'), value: formatDate(data.info.ModDate) })), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.title : 'Title', value: data.info.Title }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.author : 'Author', value: data.info.Author }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.subject : 'Subject', value: data.info.Subject }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.keywords : 'Keywords', value: data.info.Keywords }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.creator : 'Creator', value: data.info.Creator }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.creationDate | ||
: 'Creation date', value: formatDate(data.info.CreationDate) }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.modificationDate | ||
: 'Modification date', value: formatDate(data.info.ModDate) })), | ||
React__namespace.createElement(core.Separator, null), | ||
React__namespace.createElement("div", { className: "rpv-properties__modal-section" }, | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pdfProducer : 'PDF producer'), value: data.info.Producer }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pdfVersion : 'PDF version'), value: data.info.PDFFormatVersion }), | ||
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pageCount : 'Page count'), value: "".concat(doc.numPages) })))); }; | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.pdfProducer | ||
: 'PDF producer', value: data.info.Producer }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.pdfVersion | ||
: 'PDF version', value: data.info.PDFFormatVersion }), | ||
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties | ||
? l10n.properties.pageCount | ||
: 'Page count', value: "".concat(doc.numPages) })))); }; | ||
return (React__namespace.createElement("div", { className: "rpv-properties__modal" }, | ||
@@ -174,0 +188,0 @@ React__namespace.createElement(PropertiesLoader, { doc: doc, render: renderData }), |
{ | ||
"name": "@react-pdf-viewer/properties", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "A React component to view a PDF document", | ||
@@ -36,7 +36,7 @@ "license": "https://react-pdf-viewer.dev/license", | ||
"dependencies": { | ||
"@react-pdf-viewer/core": "3.2.0" | ||
"@react-pdf-viewer/core": "3.3.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0" | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
}, | ||
@@ -52,3 +52,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "7a8c5dc0f07735b2e1876a787657ec27040b7086" | ||
"gitHead": "fc1c00e3802d538f2f96b6a241e995493a601f61" | ||
} |
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
23471
320
+ Added@react-pdf-viewer/core@3.3.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@react-pdf-viewer/core@3.2.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)
Updated@react-pdf-viewer/core@3.3.0