Skip to content

Commit

Permalink
v0.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Lakenen committed Feb 28, 2015
1 parent 378096d commit 7c14a03
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Viewer.js uses [semantic versioning](http://semver.org/) for its version numbers.

----
* **0.10.5**
* Ignore npm-debug.log
* Update dev dependencies
* (internal) Fix CSS link replacement in SVG data provider
* **0.10.4**
* Fix [#157](https://github.com/box/viewer.js/issues/157)
* **0.10.3**
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ and the minified versions through:

For additional information, [please see the cdnjs website](https://cdnjs.com/libraries/viewer.js).

#### v0.10.4
#### v0.10.5

**Development**

* [crocodoc.viewer.js](https://raw.githubusercontent.com/box/viewer.js/v0.10.4/dist/crocodoc.viewer.js) 228.8 kB
* [crocodoc.viewer.css](https://raw.githubusercontent.com/box/viewer.js/v0.10.4/dist/crocodoc.viewer.css) 14.8 kB
* [crocodoc.viewer.js](https://raw.githubusercontent.com/box/viewer.js/v0.10.5/dist/crocodoc.viewer.js) 229 kB
* [crocodoc.viewer.css](https://raw.githubusercontent.com/box/viewer.js/v0.10.5/dist/crocodoc.viewer.css) 14.8 kB

**Production**

* [crocodoc.viewer.min.js](https://raw.githubusercontent.com/box/viewer.js/v0.10.4/dist/crocodoc.viewer.min.js) 51.7 kB (10.7 kB gzipped)
* [crocodoc.viewer.min.css](https://raw.githubusercontent.com/box/viewer.js/v0.10.4/dist/crocodoc.viewer.min.css) 11.4 kB (2.4 kB gzipped)
* [crocodoc.viewer.min.js](https://raw.githubusercontent.com/box/viewer.js/v0.10.5/dist/crocodoc.viewer.min.js) 51.8 kB (10.7 kB gzipped)
* [crocodoc.viewer.min.css](https://raw.githubusercontent.com/box/viewer.js/v0.10.5/dist/crocodoc.viewer.min.css) 11.4 kB (2.5 kB gzipped)


### Loading a Simple Viewer
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "viewer",
"version": "0.10.4",
"version": "0.10.5",
"homepage": "https://github.com/box/viewer.js",
"authors": [
"Cameron Lakenen <lakenen@box.com>",
Expand Down
2 changes: 1 addition & 1 deletion dist/crocodoc.viewer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Crocodoc Viewer - v0.10.4 | (c) 2015 Box */
/*! Crocodoc Viewer - v0.10.5 | (c) 2015 Box */

.crocodoc-viewer {
padding:0;
Expand Down
9 changes: 6 additions & 3 deletions dist/crocodoc.viewer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Crocodoc Viewer - v0.10.4 | (c) 2015 Box */
/*! Crocodoc Viewer - v0.10.5 | (c) 2015 Box */

(function (window) {
/*global jQuery*/
Expand Down Expand Up @@ -1182,7 +1182,10 @@ Crocodoc.addDataProvider('page-svg', function(scope) {
subpx = scope.getUtility('subpx'),
config = scope.getConfig(),
destroyed = false,
cache = {};
cache = {},
// NOTE: there are cases where the stylesheet link tag will be self-
// closing, so check for both cases
inlineCSSRegExp = /<xhtml:link[^>]*>(\s*<\/xhtml:link>)?/i;

/**
* Interpolate CSS text into the SVG text
Expand All @@ -1204,7 +1207,7 @@ Crocodoc.addDataProvider('page-svg', function(scope) {
}

// inline the CSS!
text = text.replace(/<xhtml:link[^>]*>/, stylesheetHTML);
text = text.replace(inlineCSSRegExp, stylesheetHTML);

return text;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/crocodoc.viewer.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/crocodoc.viewer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "viewer",
"version": "0.10.4",
"version": "0.10.5",
"description": "A viewer for documents converted with the Box View API",
"author": "Cameron Lakenen <lakenen@box.com>",
"contributors": [
Expand Down

0 comments on commit 7c14a03

Please sign in to comment.