Skip to content

Commit

Permalink
Merge branch 'master' into a11y-add-descriptive-attributes-thumbnails…
Browse files Browse the repository at this point in the history
…-sidebar
  • Loading branch information
tille authored Aug 30, 2021
2 parents 9bb2d30 + 55df0a0 commit d57d7f0
Show file tree
Hide file tree
Showing 466 changed files with 101,130 additions and 1,889 deletions.
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,114 @@
## 2.78.0 (2021-08-11)

* chore(i18n): Update Translations (#1418) ([0c37748](https://github.com/box/box-content-preview/commit/0c37748)), closes [#1418](https://github.com/box/box-content-preview/issues/1418)
* feat(office): Preview PDF rep if using internet explorer (#1416) ([c104cd2](https://github.com/box/box-content-preview/commit/c104cd2)), closes [#1416](https://github.com/box/box-content-preview/issues/1416)
* fix(ThumbnailsSidebar): A11Y - add aria-current to ThumbnailsSidebar (#1417) ([75ede5e](https://github.com/box/box-content-preview/commit/75ede5e)), closes [#1417](https://github.com/box/box-content-preview/issues/1417)



## 2.77.0 (2021-07-29)

* docs(pdfjs): Adding comment to upgrade script (#1415) ([5c83224](https://github.com/box/box-content-preview/commit/5c83224)), closes [#1415](https://github.com/box/box-content-preview/issues/1415)
* fix(pdfjs): Use allowlist for exporting font data (#1414) ([8dea22e](https://github.com/box/box-content-preview/commit/8dea22e)), closes [#1414](https://github.com/box/box-content-preview/issues/1414)
* refactor(pdfjs): Copy assets from 2.16.0 to 2.76.0 (#1413) ([ea95b91](https://github.com/box/box-content-preview/commit/ea95b91)), closes [#1413](https://github.com/box/box-content-preview/issues/1413)



## 2.76.0 (2021-07-19)

* feat(dash): Add react version of filmstrip controls (#1408) ([7fc29a3](https://github.com/box/box-content-preview/commit/7fc29a3)), closes [#1408](https://github.com/box/box-content-preview/issues/1408)
* feat(preview): Add preview support for indesign file extensions (#1411) ([762ac35](https://github.com/box/box-content-preview/commit/762ac35)), closes [#1411](https://github.com/box/box-content-preview/issues/1411)
* feat(slider): Migrate to custom slider due to range input limitations (#1410) ([19722e6](https://github.com/box/box-content-preview/commit/19722e6)), closes [#1410](https://github.com/box/box-content-preview/issues/1410)
* chore(i18n): Update Translations (#1409) ([e1d5280](https://github.com/box/box-content-preview/commit/e1d5280)), closes [#1409](https://github.com/box/box-content-preview/issues/1409)
* fix(controls): Add aria-expanded to sidebar toggle button (#1407) ([9187577](https://github.com/box/box-content-preview/commit/9187577)), closes [#1407](https://github.com/box/box-content-preview/issues/1407)



## 2.75.0 (2021-06-29)

* fix(controls): color correction on contols (#1402) ([6291777](https://github.com/box/box-content-preview/commit/6291777)), closes [#1402](https://github.com/box/box-content-preview/issues/1402)
* fix(controls): Default to show CC (#1405) ([68f8502](https://github.com/box/box-content-preview/commit/68f8502)), closes [#1405](https://github.com/box/box-content-preview/issues/1405)
* fix(controls): Make badge part of SettingsToggle button (#1403) ([ff7dbfb](https://github.com/box/box-content-preview/commit/ff7dbfb)), closes [#1403](https://github.com/box/box-content-preview/issues/1403)
* fix(dash): Disable Settings menu when HD is not available (#1406) ([778e455](https://github.com/box/box-content-preview/commit/778e455)), closes [#1406](https://github.com/box/box-content-preview/issues/1406)
* feat(controls): Add Subtitles menu for Dash (#1400) ([6d04ebc](https://github.com/box/box-content-preview/commit/6d04ebc)), closes [#1400](https://github.com/box/box-content-preview/issues/1400)
* feat(controls): Add support for autogenerated captions (#1404) ([7c59cb1](https://github.com/box/box-content-preview/commit/7c59cb1)), closes [#1404](https://github.com/box/box-content-preview/issues/1404)
* perf(presentation): Improve presentation rendering performance in Safari (#1401) ([2ffb42e](https://github.com/box/box-content-preview/commit/2ffb42e)), closes [#1401](https://github.com/box/box-content-preview/issues/1401)
* test(e2e): Add more media settings tests for dash (#1399) ([6be9662](https://github.com/box/box-content-preview/commit/6be9662)), closes [#1399](https://github.com/box/box-content-preview/issues/1399)
* test(e2e): Add tests for basic Media Settings (#1398) ([05db195](https://github.com/box/box-content-preview/commit/05db195)), closes [#1398](https://github.com/box/box-content-preview/issues/1398)
* chore: Add support for collections for start:dev (#1397) ([4fa91c8](https://github.com/box/box-content-preview/commit/4fa91c8)), closes [#1397](https://github.com/box/box-content-preview/issues/1397)
* chore(i18n): Update Translations (#1394) ([8eb0597](https://github.com/box/box-content-preview/commit/8eb0597)), closes [#1394](https://github.com/box/box-content-preview/issues/1394)



## 2.74.0 (2021-05-27)

* fix(model3d): Save defaults returned from metadata (#1392) ([d027f10](https://github.com/box/box-content-preview/commit/d027f10)), closes [#1392](https://github.com/box/box-content-preview/issues/1392)
* feat(annotations tooltip): Close on click outside to avoid UI issues (#1387) ([9d76b1e](https://github.com/box/box-content-preview/commit/9d76b1e)), closes [#1387](https://github.com/box/box-content-preview/issues/1387)
* feat(controls): Add React controls for Image360 (#1388) ([09fadfa](https://github.com/box/box-content-preview/commit/09fadfa)), closes [#1388](https://github.com/box/box-content-preview/issues/1388)
* feat(controls): Audio tracks menu for Dash viewer (#1391) ([688aa03](https://github.com/box/box-content-preview/commit/688aa03)), closes [#1391](https://github.com/box/box-content-preview/issues/1391)
* feat(controls): Base React controls for Dash (#1390) ([6954be0](https://github.com/box/box-content-preview/commit/6954be0)), closes [#1390](https://github.com/box/box-content-preview/issues/1390)
* refactor(controls): Rename controls model3d -> box3d (#1389) ([9604879](https://github.com/box/box-content-preview/commit/9604879)), closes [#1389](https://github.com/box/box-content-preview/issues/1389)
* chore(i18n): Update Translations (#1386) ([725ae47](https://github.com/box/box-content-preview/commit/725ae47)), closes [#1386](https://github.com/box/box-content-preview/issues/1386)



## 2.73.0 (2021-05-18)

* feat(annotations tooltip): Add class for specific styles to element (#1385) ([fd74923](https://github.com/box/box-content-preview/commit/fd74923)), closes [#1385](https://github.com/box/box-content-preview/issues/1385)
* feat(annotations): fix annotations tooltip (#1383) ([87e36b3](https://github.com/box/box-content-preview/commit/87e36b3)), closes [#1383](https://github.com/box/box-content-preview/issues/1383)
* feat(annotations): tooltip (#1364) ([d030fe3](https://github.com/box/box-content-preview/commit/d030fe3)), closes [#1364](https://github.com/box/box-content-preview/issues/1364)
* feat(annotations): update mode if necessary for experiences (#1375) ([a3eb40c](https://github.com/box/box-content-preview/commit/a3eb40c)), closes [#1375](https://github.com/box/box-content-preview/issues/1375)
* feat(controls): Add Checkbox component for settings (#1376) ([b103cd5](https://github.com/box/box-content-preview/commit/b103cd5)), closes [#1376](https://github.com/box/box-content-preview/issues/1376)
* feat(controls): Add react controls for mp4 viewer (#1374) ([29a6487](https://github.com/box/box-content-preview/commit/29a6487)), closes [#1374](https://github.com/box/box-content-preview/issues/1374)
* feat(controls): Add Settings menu to Model3D (#1377) ([e37e30b](https://github.com/box/box-content-preview/commit/e37e30b)), closes [#1377](https://github.com/box/box-content-preview/issues/1377)
* feat(controls): Add VR button to Model3D controls (#1379) ([d84e12d](https://github.com/box/box-content-preview/commit/d84e12d)), closes [#1379](https://github.com/box/box-content-preview/issues/1379)
* feat(model3d): Add flyout for animation clips (#1369) ([09eefd9](https://github.com/box/box-content-preview/commit/09eefd9)), closes [#1369](https://github.com/box/box-content-preview/issues/1369)
* feat(model3d): Basic React controls (#1368) ([528b065](https://github.com/box/box-content-preview/commit/528b065)), closes [#1368](https://github.com/box/box-content-preview/issues/1368)
* feat(settings): Add Dropdown component (#1373) ([8b2044d](https://github.com/box/box-content-preview/commit/8b2044d)), closes [#1373](https://github.com/box/box-content-preview/issues/1373)
* fix(controls): Add forwardRef to Dropdown and Checkbox (#1381) ([79fbd40](https://github.com/box/box-content-preview/commit/79fbd40)), closes [#1381](https://github.com/box/box-content-preview/issues/1381)
* fix(loading): Fix presentation performance issues in Big Sur Safari (#1382) ([b6dd0da](https://github.com/box/box-content-preview/commit/b6dd0da)), closes [#1382](https://github.com/box/box-content-preview/issues/1382)
* fix(model3d): Fix react controls to reset to defaults (#1384) ([f305ea7](https://github.com/box/box-content-preview/commit/f305ea7)), closes [#1384](https://github.com/box/box-content-preview/issues/1384)
* chore(deps): Upgarde box-ui-elements to latest available version (#1380) ([1bc9f6f](https://github.com/box/box-content-preview/commit/1bc9f6f)), closes [#1380](https://github.com/box/box-content-preview/issues/1380)
* chore(i18n): Update Translations (#1370) ([8a83f34](https://github.com/box/box-content-preview/commit/8a83f34)), closes [#1370](https://github.com/box/box-content-preview/issues/1370)
* chore(i18n): Update Translations (#1372) ([16a1dc4](https://github.com/box/box-content-preview/commit/16a1dc4)), closes [#1372](https://github.com/box/box-content-preview/issues/1372)
* chore(i18n): Update Translations (#1378) ([179decb](https://github.com/box/box-content-preview/commit/179decb)), closes [#1378](https://github.com/box/box-content-preview/issues/1378)
* refactor(media): Renaming MediaSetting to Settings (#1371) ([3164ac3](https://github.com/box/box-content-preview/commit/3164ac3)), closes [#1371](https://github.com/box/box-content-preview/issues/1371)



## 2.72.0 (2021-04-29)

* feat(documents): Add drop shadow for document pages and placeholders (#1367) ([0a8f089](https://github.com/box/box-content-preview/commit/0a8f089)), closes [#1367](https://github.com/box/box-content-preview/issues/1367)
* fix(controls): Avoid showing focus styles for disabled controls (#1365) ([f8e8b8b](https://github.com/box/box-content-preview/commit/f8e8b8b)), closes [#1365](https://github.com/box/box-content-preview/issues/1365)
* fix(thumbnails): Fix position of ContentPreview navigate button (#1366) ([086752a](https://github.com/box/box-content-preview/commit/086752a)), closes [#1366](https://github.com/box/box-content-preview/issues/1366)



## 2.71.0 (2021-04-22)

* chore(i18n): Update Translations (#1359) ([91ce7e1](https://github.com/box/box-content-preview/commit/91ce7e1)), closes [#1359](https://github.com/box/box-content-preview/issues/1359)
* chore(i18n): Update Translations (#1360) ([0849f6e](https://github.com/box/box-content-preview/commit/0849f6e)), closes [#1360](https://github.com/box/box-content-preview/issues/1360)
* fix(thumbnails): Fix thumbnail widths in IE11 (#1361) ([36fba31](https://github.com/box/box-content-preview/commit/36fba31)), closes [#1361](https://github.com/box/box-content-preview/issues/1361)
* feat(loading): Update loading ux for pages, thumbnails, preloaders (#1355) ([fa5dd30](https://github.com/box/box-content-preview/commit/fa5dd30)), closes [#1355](https://github.com/box/box-content-preview/issues/1355)
* feat(thumbnails): Update document thumbnails to latest designs (#1357) ([5e35537](https://github.com/box/box-content-preview/commit/5e35537)), closes [#1357](https://github.com/box/box-content-preview/issues/1357)
* feat(toolbar): Update control toolbars to latest design (#1358) ([b7ba972](https://github.com/box/box-content-preview/commit/b7ba972)), closes [#1358](https://github.com/box/box-content-preview/issues/1358)



## 2.70.0 (2021-04-15)

* chore(deps): Remove unused dependencies (#1346) ([dc46a48](https://github.com/box/box-content-preview/commit/dc46a48)), closes [#1346](https://github.com/box/box-content-preview/issues/1346)
* chore(deps): Upgarde box-ui-elements to latest available version (#1347) ([910b8a3](https://github.com/box/box-content-preview/commit/910b8a3)), closes [#1347](https://github.com/box/box-content-preview/issues/1347)
* chore(i18n): Update Translations (#1351) ([a80ab58](https://github.com/box/box-content-preview/commit/a80ab58)), closes [#1351](https://github.com/box/box-content-preview/issues/1351)
* chore(i18n): Update Translations (#1356) ([9e5dc5d](https://github.com/box/box-content-preview/commit/9e5dc5d)), closes [#1356](https://github.com/box/box-content-preview/issues/1356)
* chore(loading): Remove sub-header progress bar experience (#1348) ([c40435e](https://github.com/box/box-content-preview/commit/c40435e)), closes [#1348](https://github.com/box/box-content-preview/issues/1348)
* fix(a11y): Add aria-label to DocFindBar input field (#1350) ([e1ce28b](https://github.com/box/box-content-preview/commit/e1ce28b)), closes [#1350](https://github.com/box/box-content-preview/issues/1350)
* fix(a11y): Add meaningful alt text to custom logo (#1352) ([4e11fbe](https://github.com/box/box-content-preview/commit/4e11fbe)), closes [#1352](https://github.com/box/box-content-preview/issues/1352)
* fix(a11y): Add meaningful alt text to image viewer (#1349) ([fc9c662](https://github.com/box/box-content-preview/commit/fc9c662)), closes [#1349](https://github.com/box/box-content-preview/issues/1349)
* feat(loading): Update loading experience to latest designs (#1345) ([5d248d5](https://github.com/box/box-content-preview/commit/5d248d5)), closes [#1345](https://github.com/box/box-content-preview/issues/1345)



## 2.69.0 (2021-03-29)

* feat(loading): Add options for loading icon and progress bar (#1344) ([99e3f92](https://github.com/box/box-content-preview/commit/99e3f92)), closes [#1344](https://github.com/box/box-content-preview/issues/1344)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/box/box-content-preview&style=flat)](https://mergify.io)
[![Styled With Prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![build status](https://img.shields.io/travis/box/box-content-preview/master.svg?style=flat-square)](https://travis-ci.org/box/box-content-preview)
[![version](https://img.shields.io/badge/version-v2.69.0-blue.svg?style=flat-square)](https://github.com/box/box-content-preview)
[![version](https://img.shields.io/badge/version-v2.78.0-blue.svg?style=flat-square)](https://github.com/box/box-content-preview)
[![npm version](https://img.shields.io/npm/v/box-ui-elements.svg?style=flat-square)](https://www.npmjs.com/package/box-ui-elements)

# [Box Content Preview](https://developer.box.com/docs/box-content-preview)
Expand All @@ -20,11 +20,11 @@ If you are using Internet Explorer 11, which doesn't natively support promises,

## Current Version

- Version: v2.69.0
- Version: v2.78.0
- Locale: en-US

https://cdn01.boxcdn.net/platform/preview/2.69.0/en-US/preview.js
https://cdn01.boxcdn.net/platform/preview/2.69.0/en-US/preview.css
https://cdn01.boxcdn.net/platform/preview/2.78.0/en-US/preview.js
https://cdn01.boxcdn.net/platform/preview/2.78.0/en-US/preview.css

## Supported Locales

Expand Down Expand Up @@ -53,10 +53,10 @@ You can self-host the Box Content Preview library or reference the versions avai
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise"></script>

<!-- Latest version of Preview SDK for your locale -->
<script src="https://cdn01.boxcdn.net/platform/preview/2.69.0/en-US/preview.js"></script>
<script src="https://cdn01.boxcdn.net/platform/preview/2.78.0/en-US/preview.js"></script>
<link
rel="stylesheet"
href="https://cdn01.boxcdn.net/platform/preview/2.69.0/en-US/preview.css"
href="https://cdn01.boxcdn.net/platform/preview/2.78.0/en-US/preview.css"
/>
</head>
<body>
Expand All @@ -77,7 +77,7 @@ To self-host the Box Content Preview library, follow these steps:

1. Either fork the repo and check out the version you want to host or download the specific version as a zip:

- Check out a specific version with `git checkout v2.69.0`
- Check out a specific version with `git checkout v2.78.0`
- Download a specific version as a zip from https://github.com/box/box-content-preview/releases

2. Install dependencies and build the library with `yarn install && yarn build:i18n && yarn:build:prod`
Expand Down
5 changes: 5 additions & 0 deletions build/upgrade_pdfjs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ echo "Enabling e-signature rendering without validation..."
echo "-----------------------------------------------------------------------------------"
sed -e 's@;r.setFlags(o.AnnotationFlag.HIDDEN)@@' -i '' ${DOC_STATIC_ASSETS_PATH}/pdf.worker.min.js

# Fix for Courier font PDF not rendering applied to src/third-party/doc/2.76.0/pdf.worker*.js which is PDFJS v2.2.228
# Link to issue: https://github.com/mozilla/pdf.js/issues/13771
# This fix may not need to be applied if next upgrade is >= 2.5.x
# See https://github.com/box/box-content-preview/pull/1414 for more details

# Minify using Google Closure Compiler, options:
# Output to ES5 (Box supports Chrome, Edge, IE11, Firefox, Safari, and newer versions of iOS, Android)
# Do not minify pdf.js or pdf.worker.js, as the closure compiler will mangle function names and cause bugs
Expand Down
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"baseUrl": "http://localhost:8000/#",
"defaultCommandTimeout": 8000,
"defaultCommandTimeout": 15000,
"fileServerFolder": "test",
"fixturesFolder": "test/fixtures",
"integrationFolder": "test/integration",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "box-content-preview",
"version": "2.69.0",
"version": "2.78.0",
"description": "Box Content Preview UI Element",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
Expand Down 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.0.0-beta.6",
"box-ui-elements": "^13.1.0-beta.34",
"chai": "^4.2.0",
"classnames": "^2.2.6",
"conventional-changelog-cli": "^2.0.28",
Expand Down Expand Up @@ -83,7 +83,7 @@
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-intl": "^2.9.0",
"react-tether": "^1.0.0",
"react-tether": "^1.0.5",
"react-virtualized": "^9.22.3",
"sass-loader": "^7.1.0",
"sinon": "^9.0.3",
Expand Down
Loading

0 comments on commit d57d7f0

Please sign in to comment.