Skip to content

Commit

Permalink
chore(release): 2.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephanie A. Higa committed Oct 8, 2019
1 parent e7a427d commit 670b85c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.22.0 (2019-10-08)

- chore(viewer): Enable GZIP for users in the US (#1082) ([e7a427d](https://github.com/box/box-content-preview/commit/e7a427d)), closes [#1082](https://github.com/box/box-content-preview/issues/1082)
- docs(examples): Provide example for startAt option (#1080) ([5011b81](https://github.com/box/box-content-preview/commit/5011b81)), closes [#1080](https://github.com/box/box-content-preview/issues/1080)
- fix(viewer): Fix 3D viewer menu layout too narrow (#1078) ([c01b1a8](https://github.com/box/box-content-preview/commit/c01b1a8)), closes [#1078](https://github.com/box/box-content-preview/issues/1078)

## 2.21.0 (2019-09-24)

- fix(text): Hide print content for users without download permission (#1076) ([40a20ce](https://github.com/box/box-content-preview/commit/40a20ce)), closes [#1076](https://github.com/box/box-content-preview/issues/1076)
Expand Down
26 changes: 13 additions & 13 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.21.0-blue.svg?style=flat-square)](https://github.com/box/box-content-preview)
[![version](https://img.shields.io/badge/version-v2.22.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.21.0
- Version: v2.22.0
- Locale: en-US

https://cdn01.boxcdn.net/platform/preview/2.21.0/en-US/preview.js
https://cdn01.boxcdn.net/platform/preview/2.21.0/en-US/preview.css
https://cdn01.boxcdn.net/platform/preview/2.22.0/en-US/preview.js
https://cdn01.boxcdn.net/platform/preview/2.22.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.21.0/en-US/preview.js"></script>
<script src="https://cdn01.boxcdn.net/platform/preview/2.22.0/en-US/preview.js"></script>
<link
rel="stylesheet"
href="https://cdn01.boxcdn.net/platform/preview/2.21.0/en-US/preview.css"
href="https://cdn01.boxcdn.net/platform/preview/2.22.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.21.0`
- Check out a specific version with `git checkout v2.22.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 Expand Up @@ -151,15 +151,15 @@ preview.show(fileId, accessToken, {
| responseInterceptor | | Function to intercept responses. For an example see https://codepen.io/box-platform/pen/jLdxEv |
| requestInterceptor | | Function to intercept requests. For an example see https://codepen.io/box-platform/pen/jLdxEv |

| File Option | Default | Description |
| ------------- | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| File Option | Default | Description |
| ------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fileVersionId | (Current) | File version ID to preview. This must be a valid non-current file version ID. Use [Get Versions](https://developer.box.com/reference#view-versions-of-a-file) to fetch a list of file versions |
| startAt | {} | Options for starting location. See the Start At table below for details |
| startAt | {} | Options for starting location. See the Start At table below for details |

| Start At | Description |
| -------- | ------------------------------------------------------------- |
| Start At | Description |
| -------- | ------------------------------------------------------------ |
| unit | Supported values: "pages" for documents; "seconds" for media |
| value | Integer value specifying the start location |
| value | Integer value specifying the start location |

**Example**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "box-content-preview",
"version": "2.21.0",
"version": "2.22.0",
"description": "Box Content Preview UI Element",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
Expand Down

0 comments on commit 670b85c

Please sign in to comment.