From 0e0eb3425a2b006c5d0c30bc3b95d264c93c5bf2 Mon Sep 17 00:00:00 2001 From: Jared Stoffan Date: Mon, 19 Jul 2021 10:58:56 -0700 Subject: [PATCH] feat(preview): Add preview support for indd file extensions --- package.json | 2 +- src/lib/extensions.js | 2 ++ yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5f9cba3629..2a4a6e9130 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-loader": "^8.0.6", "babel-plugin-transform-require-ignore": "^0.1.1", "box-annotations": "^2.3.0", - "box-ui-elements": "^13.1.0-beta.8", + "box-ui-elements": "^13.1.0-beta.34", "chai": "^4.2.0", "classnames": "^2.2.6", "conventional-changelog-cli": "^2.0.28", diff --git a/src/lib/extensions.js b/src/lib/extensions.js index 9ecaaa3be3..75961e8dc8 100644 --- a/src/lib/extensions.js +++ b/src/lib/extensions.js @@ -55,10 +55,12 @@ export const CODE_EXTENSIONS = [ // However, office viewer supports xlsb, xlsm, and xlsx (new formats), but not xls (old) export const EXCEL_EXTENSIONS = ['xls', 'xlsm', 'xlsx']; export const EXCLUDED_EXTENSIONS = EXCEL_EXTENSIONS.concat(['numbers']); +export const INDESIGN_EXTENSIONS = ['indb', 'indd', 'indl', 'indt', 'idml', 'inx', 'pmd']; export const DOCUMENT_EXTENSIONS = CODE_EXTENSIONS.concat(NON_CODE_EXTENSIONS) .concat(HTML_EXTENSIONS) .concat(EXCEL_EXTENSIONS) + .concat(INDESIGN_EXTENSIONS) .concat([ 'doc', 'docx', diff --git a/yarn.lock b/yarn.lock index 3e6c4c5c8b..31adb15c2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2956,10 +2956,10 @@ box-annotations@^2.3.0: resolved "https://registry.yarnpkg.com/box-annotations/-/box-annotations-2.3.0.tgz#5cac38171f7f8d9283659e2b243310f19d5ab7d3" integrity sha512-Ea7tPgyJjX7vcnmZIfCorbzHd6oYx/OHVMPnZVQL/dUHR5vRKhLM0610xqwmVlUpk627sqHw5x/APaa+kt4SXg== -box-ui-elements@^13.1.0-beta.8: - version "13.1.0-beta.8" - resolved "https://registry.yarnpkg.com/box-ui-elements/-/box-ui-elements-13.1.0-beta.8.tgz#53def00fe8dcc9b4caa42fef5fb36fda59756171" - integrity sha512-6yQfTO1CR1JBORSBvv+vGvG3wM/fbXs+Rm2f413JK0dP/vpi+DdO7w72Tq9IwD0en64+d4lhZrruJ6cm3xOstQ== +box-ui-elements@^13.1.0-beta.34: + version "13.1.0-beta.34" + resolved "https://registry.yarnpkg.com/box-ui-elements/-/box-ui-elements-13.1.0-beta.34.tgz#7cb4ebef54c0bf47323ccff1f2543da91736d696" + integrity sha512-qcZalLNWlPPQxwkzRGxwQR4gycisppCIbY2ZIhKsgpeX8MMp7Zvusj7kprM3KRtC+YRQS0zh8mhbrnpSXMlTxg== brace-expansion@^1.1.7: version "1.1.11"