Skip to content

Commit

Permalink
feat(preview): Add preview support for indesign file extensions (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan authored Jul 19, 2021
1 parent 7fc29a3 commit 762ac35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 762ac35

Please sign in to comment.