@file-viewer/renderer-word 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wordDocx.js +4 -1
- package/package.json +1 -1
package/dist/wordDocx.js
CHANGED
|
@@ -9,7 +9,7 @@ const DOCX_WORKER_UNSAFE_PROTOCOLS = new Set(['file:', 'about:', 'data:']);
|
|
|
9
9
|
const DOCX_MIN_SCALE = 0.24;
|
|
10
10
|
const DOCX_MAX_SCALE = 3;
|
|
11
11
|
const DOCX_ZOOM_STEP = 0.15;
|
|
12
|
-
const DOCX_VENDOR_ASSET_VERSION = '0.3.
|
|
12
|
+
const DOCX_VENDOR_ASSET_VERSION = '0.3.27';
|
|
13
13
|
const ZIP_SIGNATURE_PK = 0x504b;
|
|
14
14
|
const WORDPROCESSINGML_NAMESPACE = 'http://schemas.openxmlformats.org/wordprocessingml/2006/main';
|
|
15
15
|
const OFFICE_RELATIONSHIP_NAMESPACE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships';
|
|
@@ -258,6 +258,9 @@ const appendDocxVendorAssetVersion = (url, explicitUrl) => {
|
|
|
258
258
|
if (!url || explicitUrl) {
|
|
259
259
|
return url;
|
|
260
260
|
}
|
|
261
|
+
if (/[?&]file-viewer-docx=[^&#]*/.test(url)) {
|
|
262
|
+
return url.replace(/([?&])file-viewer-docx=[^&#]*/, `$1file-viewer-docx=${DOCX_VENDOR_ASSET_VERSION}`);
|
|
263
|
+
}
|
|
261
264
|
return `${url}${url.includes('?') ? '&' : '?'}file-viewer-docx=${DOCX_VENDOR_ASSET_VERSION}`;
|
|
262
265
|
};
|
|
263
266
|
export const applyDocxExternalLinkPolicy = (target, policy) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-viewer/renderer-word",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Standalone Word and compatible document renderer plugin for File Viewer powered by @file-viewer/docx, @file-viewer/doc, and RTF/ODF parsing.",
|