Skip to content

Commit

Permalink
updated bower.json
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Sep 10, 2015
1 parent e737f6c commit d880d17
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## About

The Universal Viewer is an [open source](https://github.com/UniversalViewer/universalviewer/blob/master/LICENSE.txt) project to enable cultural heritage institutions to present their digital artefacts in an [IIIF-compliant](http://iiif.io/) and highly customisable user interface.
The Universal Viewer is an [open source](https://github.com/UniversalViewer/universalviewer/blob/master/LICENSE.txt) project to enable cultural heritage institutions to present their digital artifacts in an [IIIF-compliant](http://iiif.io/) and highly customisable user interface.

Features:

Expand Down
10 changes: 8 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Universal Viewer",
"version": "1.5.1",
"description": "The Universal Viewer is an open source project to enable cultural heritage institutions to present their digital artifacts in an IIIF-compliant and highly customisable user interface.",
"repository": {
"type": "git",
"url": "git://github.com/UniversalViewer/universalviewer"
Expand All @@ -9,10 +10,15 @@
"edsilv <[email protected]>"
],
"ignore": [
"**/.*",
"*.js",
"*.ts",
"build",
"examples",
"lib",
"src",
"tasks",
"tests",
"Gruntfile.js",
"**/.*",
"node_modules",
"bower_components"
],
Expand Down
2 changes: 1 addition & 1 deletion examples
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "UniversalViewer",
"version": "1.5.1",
"description": "Navigate sequences of images in a zoomable, extensible interface.",
"description": "The Universal Viewer is an open source project to enable cultural heritage institutions to present their digital artifacts in an IIIF-compliant and highly customisable user interface.",
"devDependencies": {
"async": "^0.9.0",
"chalk": "^0.5.1",
Expand Down
89 changes: 75 additions & 14 deletions src/lib/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ var Manifesto;
Manifesto.Sequence = Sequence;
})(Manifesto || (Manifesto = {}));
var jmespath = _dereq_('jmespath');
var _isString = _dereq_("lodash.isstring");
var Manifesto;
(function (Manifesto) {
var Deserialiser = (function () {
Expand Down Expand Up @@ -897,7 +898,8 @@ var Manifesto;
var manifest = new Manifesto.Manifest(json, options);
this.parseSequences(manifest, options);
if (manifest.__jsonld.structures && manifest.__jsonld.structures.length) {
this.parseRanges(manifest, JsonUtils.getRootRange(manifest.__jsonld), '');
var r = JsonUtils.getRootRange(manifest.__jsonld);
this.parseRanges(manifest, r, '');
}
return manifest;
};
Expand Down Expand Up @@ -936,7 +938,11 @@ var Manifesto;
return canvases;
};
Deserialiser.parseRanges = function (manifest, r, path, parentRange) {
var range = new Manifesto.Range(r, manifest.options);
var range;
if (_isString(r)) {
r = JsonUtils.getRangeById(manifest.__jsonld, r);
}
range = new Manifesto.Range(r, manifest.options);
// if no parent range is passed, assign the new range to manifest.rootRange
if (!parentRange) {
manifest.rootRange = range;
Expand Down Expand Up @@ -1377,7 +1383,7 @@ module.exports = {
/// <reference path="./Utils.ts" />
/// <reference path="./Manifesto.ts" />

},{"http":6,"jmespath":27,"lodash.assign":40,"lodash.endswith":50,"lodash.isarray":52,"lodash.last":53,"lodash.map":54,"url":24}],2:[function(_dereq_,module,exports){
},{"http":6,"jmespath":27,"lodash.assign":40,"lodash.endswith":50,"lodash.isarray":52,"lodash.isstring":53,"lodash.last":54,"lodash.map":55,"url":24}],2:[function(_dereq_,module,exports){
/*!
* The buffer module from node.js, for the browser.
*
Expand Down Expand Up @@ -10857,6 +10863,61 @@ function isNative(value) {
module.exports = isArray;

},{}],53:[function(_dereq_,module,exports){
/**
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/

/** `Object#toString` result references. */
var stringTag = '[object String]';

/**
* Checks if `value` is object-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}

/** Used for native method references. */
var objectProto = Object.prototype;

/**
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
* of values.
*/
var objToString = objectProto.toString;

/**
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
* @example
*
* _.isString('abc');
* // => true
*
* _.isString(1);
* // => false
*/
function isString(value) {
return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag);
}

module.exports = isString;

},{}],54:[function(_dereq_,module,exports){
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -10886,7 +10947,7 @@ function last(array) {

module.exports = last;

},{}],54:[function(_dereq_,module,exports){
},{}],55:[function(_dereq_,module,exports){
/**
* lodash 3.1.4 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -11038,7 +11099,7 @@ function map(collection, iteratee, thisArg) {

module.exports = map;

},{"lodash._arraymap":55,"lodash._basecallback":56,"lodash._baseeach":61,"lodash.isarray":52}],55:[function(_dereq_,module,exports){
},{"lodash._arraymap":56,"lodash._basecallback":57,"lodash._baseeach":62,"lodash.isarray":52}],56:[function(_dereq_,module,exports){
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -11070,7 +11131,7 @@ function arrayMap(array, iteratee) {

module.exports = arrayMap;

},{}],56:[function(_dereq_,module,exports){
},{}],57:[function(_dereq_,module,exports){
/**
* lodash 3.3.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -11494,7 +11555,7 @@ function property(path) {

module.exports = baseCallback;

},{"lodash._baseisequal":57,"lodash._bindcallback":59,"lodash.isarray":52,"lodash.pairs":60}],57:[function(_dereq_,module,exports){
},{"lodash._baseisequal":58,"lodash._bindcallback":60,"lodash.isarray":52,"lodash.pairs":61}],58:[function(_dereq_,module,exports){
/**
* lodash 3.0.7 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -11838,7 +11899,7 @@ function isObject(value) {

module.exports = baseIsEqual;

},{"lodash.isarray":52,"lodash.istypedarray":58,"lodash.keys":62}],58:[function(_dereq_,module,exports){
},{"lodash.isarray":52,"lodash.istypedarray":59,"lodash.keys":63}],59:[function(_dereq_,module,exports){
/**
* lodash 3.0.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -11950,9 +12011,9 @@ function isTypedArray(value) {

module.exports = isTypedArray;

},{}],59:[function(_dereq_,module,exports){
module.exports=_dereq_(44)
},{}],60:[function(_dereq_,module,exports){
module.exports=_dereq_(44)
},{}],61:[function(_dereq_,module,exports){
/**
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -12032,7 +12093,7 @@ function pairs(object) {

module.exports = pairs;

},{"lodash.keys":62}],61:[function(_dereq_,module,exports){
},{"lodash.keys":63}],62:[function(_dereq_,module,exports){
/**
* lodash 3.0.4 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
Expand Down Expand Up @@ -12215,11 +12276,11 @@ function isObject(value) {

module.exports = baseEach;

},{"lodash.keys":62}],62:[function(_dereq_,module,exports){
},{"lodash.keys":63}],63:[function(_dereq_,module,exports){
module.exports=_dereq_(34)
},{"lodash._getnative":63,"lodash.isarguments":64,"lodash.isarray":52}],63:[function(_dereq_,module,exports){
},{"lodash._getnative":64,"lodash.isarguments":65,"lodash.isarray":52}],64:[function(_dereq_,module,exports){
module.exports=_dereq_(35)
},{}],64:[function(_dereq_,module,exports){
},{}],65:[function(_dereq_,module,exports){
module.exports=_dereq_(36)
},{}]},{},[1])
(1)
Expand Down
1 change: 1 addition & 0 deletions src/typings/manifesto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ declare module Manifesto {
}
}
declare var jmespath: any;
declare var _isString: any;
declare module Manifesto {
class Deserialiser {
static parse(manifest: string, options?: IManifestoOptions): IIIIFResource;
Expand Down

0 comments on commit d880d17

Please sign in to comment.