New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iiif/manifold

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iiif/manifold - npm Package Compare versions

Comparing version

to
2.0.3

tslint.json

0

dist-commonjs/AnnotationGroup.d.ts

@@ -0,0 +0,0 @@ import { AnnotationRect } from "./AnnotationRect";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class AnnotationRect {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Helper } from "./Helper";

32

dist-commonjs/Bootstrapper.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Helper_1 = require("./Helper");
var vocabulary_1 = require("@iiif/vocabulary");
var dist_commonjs_1 = require("@iiif/vocabulary/dist-commonjs");
var manifesto_js_1 = require("manifesto.js");

@@ -9,3 +9,3 @@ var Bootstrapper = /** @class */ (function () {

this._options = options;
this._options.locale = this._options.locale || 'en-GB'; // default locale
this._options.locale = this._options.locale || "en-GB"; // default locale
}

@@ -36,6 +36,6 @@ Bootstrapper.prototype.bootstrap = function (res, rej) {

var manifestIndex_1 = bootstrapper._options.manifestIndex; // this is either 0 or a positive number (defaults to 0)
if (iiifResource.getIIIFResourceType() === vocabulary_1.IIIFResourceType.COLLECTION) {
if (iiifResource.getIIIFResourceType() === dist_commonjs_1.IIIFResourceType.COLLECTION) {
// it's a collection
var manifests = iiifResource.getManifests();
var collections = iiifResource.getCollections();
var collections = (iiifResource).getCollections();
// if there are only collections available, set the collectionIndex to 0 if undefined.

@@ -45,7 +45,11 @@ if (!manifests.length && collectionIndex === undefined) {

}
if (collectionIndex !== undefined && collections && collections.length) {
if (collectionIndex !== undefined &&
collections &&
collections.length) {
// a collectionIndex has been passed and we have sub collections
iiifResource.getCollectionByIndex(collectionIndex).then(function (collection) {
iiifResource
.getCollectionByIndex(collectionIndex)
.then(function (collection) {
if (!collection) {
reject('Collection index not found');
reject("Collection index not found");
}

@@ -56,3 +60,5 @@ // Special case: we're trying to load the first manifest of the

// we can display!
if (collection.getTotalManifests() === 0 && manifestIndex_1 === 0 && collection.getTotalCollections() > 0) {
if (collection.getTotalManifests() === 0 &&
manifestIndex_1 === 0 &&
collection.getTotalCollections() > 0) {
bootstrapper._options.collectionIndex = 0;

@@ -63,3 +69,5 @@ bootstrapper._options.manifestUri = collection.id;

else if (manifestIndex_1 !== undefined) {
collection.getManifestByIndex(manifestIndex_1).then(function (manifest) {
collection
.getManifestByIndex(manifestIndex_1)
.then(function (manifest) {
bootstrapper._options.manifest = manifest;

@@ -73,3 +81,5 @@ var helper = new Helper_1.Helper(bootstrapper._options);

else {
iiifResource.getManifestByIndex(bootstrapper._options.manifestIndex).then(function (manifest) {
iiifResource
.getManifestByIndex(bootstrapper._options.manifestIndex)
.then(function (manifest) {
bootstrapper._options.manifest = manifest;

@@ -88,3 +98,3 @@ var helper = new Helper_1.Helper(bootstrapper._options);

else {
console.error('Unable to load IIIF resource');
console.error("Unable to load IIIF resource");
}

@@ -91,0 +101,0 @@ };

export declare class Errors {
static manifestNotLoaded: string;
}

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Canvas, IAccessToken, IExternalResource, IExternalResourceOptions, Service } from "manifesto.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var vocabulary_1 = require("@iiif/vocabulary");
var dist_commonjs_1 = require("@iiif/vocabulary/dist-commonjs");
var HTTPStatusCode = require("@edsilv/http-status-codes");

@@ -32,7 +32,7 @@ var manifesto_js_1 = require("manifesto.js");

var id = service.id;
if (!id.endsWith('/')) {
id += '/';
if (!id.endsWith("/")) {
id += "/";
}
if (manifesto_js_1.Utils.isImageProfile(service.getProfile())) {
infoUri = id + 'info.json';
infoUri = id + "info.json";
}

@@ -64,3 +64,4 @@ }

}
else if (images && images.length) { // presentation 2
else if (images && images.length) {
// presentation 2
var firstImage = images[0];

@@ -80,4 +81,5 @@ var resource = firstImage.getResource();

// Legacy IxIF
var service = canvas.getService(vocabulary_1.ServiceProfile.IXIF);
if (service) { // todo: deprecate
var service = canvas.getService(dist_commonjs_1.ServiceProfile.IXIF);
if (service) {
// todo: deprecate
return service.getInfoUri();

@@ -91,19 +93,20 @@ }

if (this.authAPIVersion === 0.9) {
this.clickThroughService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_0_CLICK_THROUGH);
this.loginService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_0_LOGIN);
this.restrictedService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_0_RESTRICTED);
this.clickThroughService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_0_CLICK_THROUGH);
this.loginService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_0_LOGIN);
this.restrictedService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_0_RESTRICTED);
if (this.clickThroughService) {
this.logoutService = this.clickThroughService.getService(vocabulary_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.clickThroughService.getService(vocabulary_1.ServiceProfile.AUTH_0_TOKEN);
this.logoutService = this.clickThroughService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.clickThroughService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_TOKEN);
}
else if (this.loginService) {
this.logoutService = this.loginService.getService(vocabulary_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.loginService.getService(vocabulary_1.ServiceProfile.AUTH_0_TOKEN);
this.logoutService = this.loginService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.loginService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_TOKEN);
}
else if (this.restrictedService) {
this.logoutService = this.restrictedService.getService(vocabulary_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.restrictedService.getService(vocabulary_1.ServiceProfile.AUTH_0_TOKEN);
this.logoutService = this.restrictedService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_LOGOUT);
this.tokenService = this.restrictedService.getService(dist_commonjs_1.ServiceProfile.AUTH_0_TOKEN);
}
}
else { // auth 1
else {
// auth 1
// if the resource is a canvas, not an info.json, look for auth services on its content.

@@ -120,25 +123,25 @@ if (resource.isCanvas !== undefined && resource.isCanvas()) {

}
this.clickThroughService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_1_CLICK_THROUGH);
this.loginService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_1_LOGIN);
this.externalService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_1_EXTERNAL);
this.kioskService = manifesto_js_1.Utils.getService(resource, vocabulary_1.ServiceProfile.AUTH_1_KIOSK);
this.clickThroughService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_1_CLICK_THROUGH);
this.loginService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_1_LOGIN);
this.externalService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_1_EXTERNAL);
this.kioskService = manifesto_js_1.Utils.getService(resource, dist_commonjs_1.ServiceProfile.AUTH_1_KIOSK);
if (this.clickThroughService) {
this.logoutService = this.clickThroughService.getService(vocabulary_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.clickThroughService.getService(vocabulary_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.clickThroughService.getService(vocabulary_1.ServiceProfile.AUTH_1_PROBE);
this.logoutService = this.clickThroughService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.clickThroughService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.clickThroughService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_PROBE);
}
else if (this.loginService) {
this.logoutService = this.loginService.getService(vocabulary_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.loginService.getService(vocabulary_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.loginService.getService(vocabulary_1.ServiceProfile.AUTH_1_PROBE);
this.logoutService = this.loginService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.loginService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.loginService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_PROBE);
}
else if (this.externalService) {
this.logoutService = this.externalService.getService(vocabulary_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.externalService.getService(vocabulary_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.externalService.getService(vocabulary_1.ServiceProfile.AUTH_1_PROBE);
this.logoutService = this.externalService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.externalService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.externalService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_PROBE);
}
else if (this.kioskService) {
this.logoutService = this.kioskService.getService(vocabulary_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.kioskService.getService(vocabulary_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.kioskService.getService(vocabulary_1.ServiceProfile.AUTH_1_PROBE);
this.logoutService = this.kioskService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_LOGOUT);
this.tokenService = this.kioskService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_TOKEN);
this.probeService = this.kioskService.getService(dist_commonjs_1.ServiceProfile.AUTH_1_PROBE);
}

@@ -177,3 +180,7 @@ }

ExternalResource.prototype.isAccessControlled = function () {
if (this.clickThroughService || this.loginService || this.externalService || this.kioskService || this.probeService) {
if (this.clickThroughService ||
this.loginService ||
this.externalService ||
this.kioskService ||
this.probeService) {
return true;

@@ -185,3 +192,3 @@ }

if (this.dataUri) {
return this.dataUri.endsWith('info.json');
return this.dataUri.endsWith("info.json");
}

@@ -195,3 +202,3 @@ return false;

if (!that.dataUri) {
reject('There is no dataUri to fetch');
reject("There is no dataUri to fetch");
return;

@@ -227,3 +234,3 @@ }

var xhr_1 = new XMLHttpRequest();
xhr_1.open('GET', that.probeService.id, true);
xhr_1.open("GET", that.probeService.id, true);
xhr_1.withCredentials = true;

@@ -250,3 +257,3 @@ xhr_1.onload = function () {

// if not issue a HEAD request.
var type = 'GET';
var type = "GET";
if (!that.hasServiceDescriptor()) {

@@ -264,3 +271,3 @@ // If access control is unnecessary, short circuit the process.

}
type = 'HEAD';
type = "HEAD";
}

@@ -319,6 +326,5 @@ // leaving this in for reference until the XHR version is fully tested

xhr_2.onload = function () {
var data = JSON.parse(xhr_2.responseText);
// if it's a resource without an info.json
// todo: if resource doesn't have a @profile
if (!data) {
if (!xhr_2.responseText) {
that.status = HTTPStatusCode.OK;

@@ -328,3 +334,4 @@ resolve(that);

else {
var uri = unescape(data['@id']);
var data = JSON.parse(xhr_2.responseText);
var uri = unescape(data["@id"]);
that.data = data;

@@ -334,8 +341,8 @@ that._parseAuthServices(that.data);

// remove trailing /info.json
if (uri.endsWith('/info.json')) {
uri = uri.substr(0, uri.lastIndexOf('/'));
if (uri.endsWith("/info.json")) {
uri = uri.substr(0, uri.lastIndexOf("/"));
}
var dataUri = that.dataUri;
if (dataUri && dataUri.endsWith('/info.json')) {
dataUri = dataUri.substr(0, dataUri.lastIndexOf('/'));
if (dataUri && dataUri.endsWith("/info.json")) {
dataUri = dataUri.substr(0, dataUri.lastIndexOf("/"));
}

@@ -342,0 +349,0 @@ // if the request was redirected to a degraded version and there's a login service to get the full quality version

@@ -7,3 +7,3 @@ import { MultiSelectState } from "./MultiSelectState";

import { TreeSortType } from "./TreeSortType";
import { ViewingHint, ViewingDirection } from "@iiif/vocabulary";
import { ViewingHint, ViewingDirection } from "@iiif/vocabulary/dist-commonjs";
import { Canvas, IIIFResource, Manifest, ManifestType, Range, Service, Sequence, Thumb, TreeNode } from "manifesto.js";

@@ -10,0 +10,0 @@ export declare class Helper {

@@ -6,3 +6,3 @@ "use strict";

var TreeSortType_1 = require("./TreeSortType");
var vocabulary_1 = require("@iiif/vocabulary");
var dist_commonjs_1 = require("@iiif/vocabulary/dist-commonjs");
var Errors_1 = require("./Errors");

@@ -26,5 +26,5 @@ var manifesto_js_1 = require("manifesto.js");

if (service) {
autoCompleteService = service.getService(vocabulary_1.ServiceProfile.SEARCH_0_AUTO_COMPLETE);
autoCompleteService = service.getService(dist_commonjs_1.ServiceProfile.SEARCH_0_AUTO_COMPLETE);
if (!autoCompleteService) {
autoCompleteService = service.getService(vocabulary_1.ServiceProfile.SEARCH_1_AUTO_COMPLETE);
autoCompleteService = service.getService(dist_commonjs_1.ServiceProfile.SEARCH_1_AUTO_COMPLETE);
}

@@ -40,3 +40,3 @@ }

if (attribution) {
return manifesto_js_1.LanguageMap.getValue(attribution, this.options.locale);
return attribution.getValue(this.options.locale);
}

@@ -96,3 +96,9 @@ return null;

// todo: write test
canvas.ranges = this.manifest.getAllRanges().filter(function (range) { return (range.getCanvasIds().some(function (cid) { return manifesto_js_1.Utils.normaliseUrl(cid) === manifesto_js_1.Utils.normaliseUrl(canvas.id); })); });
canvas.ranges = (this.manifest
.getAllRanges()
.filter(function (range) {
return range
.getCanvasIds()
.some(function (cid) { return manifesto_js_1.Utils.normaliseUrl(cid) === manifesto_js_1.Utils.normaliseUrl(canvas.id); });
}));
}

@@ -103,3 +109,4 @@ return canvas.ranges;

// todo: this only works for collections nested one level deep
if (iiifResource.parentCollection && !iiifResource.parentCollection.parentCollection) {
if (iiifResource.parentCollection &&
!iiifResource.parentCollection.parentCollection) {
// manifest must be in the root

@@ -125,3 +132,3 @@ return undefined;

if (description) {
return manifesto_js_1.LanguageMap.getValue(description, this.options.locale);
return description.getValue(this.options.locale);
}

@@ -136,3 +143,3 @@ return null;

if (label) {
return manifesto_js_1.LanguageMap.getValue(label, this.options.locale);
return label.getValue(this.options.locale);
}

@@ -186,3 +193,5 @@ return null;

var metadataItem = new manifesto_js_1.LabelValuePair(locale);
metadataItem.label = [new manifesto_js_1.Language("description", locale)];
metadataItem.label = new manifesto_js_1.PropertyValue([
new manifesto_js_1.LocalizedValue("description", locale)
]);
metadataItem.value = this.manifest.getDescription();

@@ -194,3 +203,5 @@ metadataItem.isRootLevel = true;

var metadataItem = new manifesto_js_1.LabelValuePair(locale);
metadataItem.label = [new manifesto_js_1.Language("attribution", locale)];
metadataItem.label = new manifesto_js_1.PropertyValue([
new manifesto_js_1.LocalizedValue("attribution", locale)
]);
metadataItem.value = this.manifest.getAttribution();

@@ -204,3 +215,5 @@ metadataItem.isRootLevel = true;

label: "license",
value: (options && options.licenseFormatter) ? options.licenseFormatter.format(license) : license
value: options && options.licenseFormatter
? options.licenseFormatter.format(license)
: license
};

@@ -215,3 +228,3 @@ var metadataItem = new manifesto_js_1.LabelValuePair(locale);

label: "logo",
value: '<img src="' + this.manifest.getLogo() + '"/>'
value: '<img alt="logo" src="' + this.manifest.getLogo() + '"/>'
};

@@ -238,4 +251,6 @@ var metadataItem = new manifesto_js_1.LabelValuePair(locale);

return {
label: requiredStatement.getLabel(),
value: requiredStatement.getValue()
label: requiredStatement.label ? requiredStatement.getLabel() : "",
value: requiredStatement.value && requiredStatement.value.length
? requiredStatement.getValue()
: ""
};

@@ -301,3 +316,5 @@ }

this._multiSelectState.ranges = this.getRanges().slice(0);
this._multiSelectState.canvases = this.getCurrentSequence().getCanvases().slice(0);
this._multiSelectState.canvases = (this.getCurrentSequence()
.getCanvases()
.slice(0));
}

@@ -323,4 +340,4 @@ return this._multiSelectState;

if (content && content.length) {
var anno = content[0];
var body = anno.getBody();
var annotation = content[0];
var body = annotation.getBody();
return body[0].id;

@@ -399,3 +416,3 @@ }

if (t) {
return this._flattenTree(t, 'nodes');
return this._flattenTree(t, "nodes");
}

@@ -449,5 +466,5 @@ return null;

}
var service = this.manifest.getService(vocabulary_1.ServiceProfile.SEARCH_0);
var service = this.manifest.getService(dist_commonjs_1.ServiceProfile.SEARCH_0);
if (!service) {
service = this.manifest.getService(vocabulary_1.ServiceProfile.SEARCH_1);
service = this.manifest.getService(dist_commonjs_1.ServiceProfile.SEARCH_1);
}

@@ -473,3 +490,3 @@ return service;

var url = null;
var shareService = this.manifest.getService(vocabulary_1.ServiceProfile.SHARE_EXTENSIONS);
var shareService = this.manifest.getService(dist_commonjs_1.ServiceProfile.SHARE_EXTENSIONS);
if (shareService) {

@@ -541,3 +558,3 @@ if (shareService.length) {

var root = new manifesto_js_1.TreeNode();
root.label = 'root';
root.label = "root";
root.data = this.iiifResource;

@@ -561,8 +578,7 @@ if (topRanges.length) {

this._getSortedTreeNodesByDate(sortedTree, tree);
break;
return sortedTree;
}
default:
sortedTree = tree;
break;
}
return sortedTree;
return tree;
};

@@ -573,3 +589,5 @@ Helper.prototype.treeHasNavDates = function (tree) {

var flattenedTree = this.getFlattenedTree(tree);
return (flattenedTree) ? flattenedTree.some(function (n) { return !isNaN(n.navDate); }) : false;
return flattenedTree
? flattenedTree.some(function (n) { return !isNaN(n.navDate); })
: false;
};

@@ -610,3 +628,3 @@ Helper.prototype.getViewingDirection = function () {

}
return related['format'] === 'text/html';
return related["format"] === "text/html";
};

@@ -620,3 +638,3 @@ Helper.prototype.hasResources = function () {

if (viewingDirection) {
return viewingDirection === vocabulary_1.ViewingDirection.BOTTOM_TO_TOP;
return viewingDirection === dist_commonjs_1.ViewingDirection.BOTTOM_TO_TOP;
}

@@ -631,3 +649,3 @@ return false;

if (viewingHint) {
return viewingHint === vocabulary_1.ViewingHint.CONTINUOUS;
return viewingHint === dist_commonjs_1.ViewingHint.CONTINUOUS;
}

@@ -637,3 +655,3 @@ return false;

Helper.prototype.isFirstCanvas = function (index) {
if (typeof index !== 'undefined') {
if (typeof index !== "undefined") {
return this.getCurrentSequence().isFirstCanvas(index);

@@ -647,3 +665,3 @@ }

Helper.prototype.isLastCanvas = function (index) {
if (typeof index !== 'undefined') {
if (typeof index !== "undefined") {
return this.getCurrentSequence().isLastCanvas(index);

@@ -656,3 +674,3 @@ }

if (viewingDirection) {
return viewingDirection === vocabulary_1.ViewingDirection.LEFT_TO_RIGHT;
return viewingDirection === dist_commonjs_1.ViewingDirection.LEFT_TO_RIGHT;
}

@@ -677,3 +695,3 @@ return false;

if (viewingHint) {
return viewingHint === vocabulary_1.ViewingHint.PAGED;
return viewingHint === dist_commonjs_1.ViewingHint.PAGED;
}

@@ -691,3 +709,4 @@ // check the manifest for a viewingHint (deprecated) or paged behavior

}
return (this.manifest.isPagingEnabled() || this.getCurrentSequence().isPagingEnabled());
return (this.manifest.isPagingEnabled() ||
this.getCurrentSequence().isPagingEnabled());
};

@@ -697,3 +716,3 @@ Helper.prototype.isRightToLeft = function () {

if (viewingDirection) {
return viewingDirection === vocabulary_1.ViewingDirection.RIGHT_TO_LEFT;
return viewingDirection === dist_commonjs_1.ViewingDirection.RIGHT_TO_LEFT;
}

@@ -705,3 +724,3 @@ return false;

if (viewingDirection) {
return viewingDirection === vocabulary_1.ViewingDirection.TOP_TO_BOTTOM;
return viewingDirection === dist_commonjs_1.ViewingDirection.TOP_TO_BOTTOM;
}

@@ -717,7 +736,8 @@ return false;

}
var uiExtensions = this.manifest.getService(vocabulary_1.ServiceProfile.UI_EXTENSIONS);
var uiExtensions = this.manifest.getService(dist_commonjs_1.ServiceProfile.UI_EXTENSIONS);
if (uiExtensions) {
var disableUI = uiExtensions.getProperty('disableUI');
var disableUI = uiExtensions.getProperty("disableUI");
if (disableUI) {
if (disableUI.indexOf(name) !== -1 || disableUI.indexOf(name.toLowerCase()) !== -1) {
if (disableUI.indexOf(name) !== -1 ||
disableUI.indexOf(name.toLowerCase()) !== -1) {
return false;

@@ -732,3 +752,3 @@ }

};
// dates //
// dates //
Helper.prototype.createDateNodes = function (rootNode, nodes) {

@@ -836,3 +856,16 @@ for (var i = 0; i < nodes.length; i++) {

Helper.prototype.getNodeDisplayMonth = function (node) {
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
var months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
return months[node.navDate.getMonth()];

@@ -893,3 +926,3 @@ };

decadeNode.nodes = decadeNode.nodes.sort(function (a, b) {
return (_this.getNodeYear(a) - _this.getNodeYear(b));
return _this.getNodeYear(a) - _this.getNodeYear(b);
});

@@ -896,0 +929,0 @@ }

@@ -0,0 +0,0 @@ export declare class ILabelValuePair {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IIIFResource, Manifest } from "manifesto.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IManifoldOptions.js.map

@@ -0,0 +0,0 @@ import { LabelValuePair } from "manifesto.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IMetadataItem.js.map

@@ -0,0 +0,0 @@ export interface IMultiSelectable {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IMultiSelectable.js.map

@@ -0,0 +0,0 @@ export * from "./AnnotationGroup";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IThumb.js.map

@@ -0,0 +0,0 @@ import { IMetadataItem } from "./IMetadataItem";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { UriLabeller } from "./UriLabeller";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiSelectableCanvas.js.map

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiSelectableRange.js.map

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiSelectableTreeNode.js.map

@@ -0,0 +0,0 @@ import { MultiSelectableRange } from "./MultiSelectableRange";

@@ -11,6 +11,8 @@ "use strict";

MultiSelectState.prototype.allCanvasesSelected = function () {
return this.canvases.length > 0 && this.getAllSelectedCanvases().length === this.canvases.length;
return (this.canvases.length > 0 &&
this.getAllSelectedCanvases().length === this.canvases.length);
};
MultiSelectState.prototype.allRangesSelected = function () {
return this.ranges.length > 0 && this.getAllSelectedRanges().length === this.ranges.length;
return (this.ranges.length > 0 &&
this.getAllSelectedRanges().length === this.ranges.length);
};

@@ -64,3 +66,3 @@ MultiSelectState.prototype.allSelected = function () {

r.multiSelected = selected;
var canvases = this.getRangeCanvases(r);
var canvases = (this.getRangeCanvases(r));
this.selectCanvases(canvases, selected);

@@ -67,0 +69,0 @@ };

@@ -0,0 +0,0 @@ export declare class Translation {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum TreeSortType {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class UriLabeller {

@@ -10,6 +10,6 @@ "use strict";

// if already a link, do nothing.
if (url.indexOf('<a') != -1)
if (url.indexOf("<a") != -1)
return url;
var label = (this.labels[url]) ? this.labels[url] : url;
return '<a href="' + url + '">' + label + '</a>';
var label = this.labels[url] ? this.labels[url] : url;
return '<a href="' + url + '">' + label + "</a>";
};

@@ -16,0 +16,0 @@ return UriLabeller;

@@ -0,0 +0,0 @@ import { AnnotationRect } from "./AnnotationRect";

@@ -0,0 +0,0 @@ import { AnnotationRect } from "./AnnotationRect";

@@ -0,0 +0,0 @@ export declare class AnnotationRect {

@@ -0,0 +0,0 @@ var AnnotationRect = /** @class */ (function () {

@@ -0,0 +0,0 @@ import { Helper } from "./Helper";

import { Helper } from "./Helper";
import { IIIFResourceType } from "@iiif/vocabulary";
import { IIIFResourceType } from "@iiif/vocabulary/dist-commonjs";
import { Utils } from "manifesto.js";

@@ -7,3 +7,3 @@ var Bootstrapper = /** @class */ (function () {

this._options = options;
this._options.locale = this._options.locale || 'en-GB'; // default locale
this._options.locale = this._options.locale || "en-GB"; // default locale
}

@@ -37,3 +37,3 @@ Bootstrapper.prototype.bootstrap = function (res, rej) {

var manifests = iiifResource.getManifests();
var collections = iiifResource.getCollections();
var collections = (iiifResource).getCollections();
// if there are only collections available, set the collectionIndex to 0 if undefined.

@@ -43,7 +43,11 @@ if (!manifests.length && collectionIndex === undefined) {

}
if (collectionIndex !== undefined && collections && collections.length) {
if (collectionIndex !== undefined &&
collections &&
collections.length) {
// a collectionIndex has been passed and we have sub collections
iiifResource.getCollectionByIndex(collectionIndex).then(function (collection) {
iiifResource
.getCollectionByIndex(collectionIndex)
.then(function (collection) {
if (!collection) {
reject('Collection index not found');
reject("Collection index not found");
}

@@ -54,3 +58,5 @@ // Special case: we're trying to load the first manifest of the

// we can display!
if (collection.getTotalManifests() === 0 && manifestIndex_1 === 0 && collection.getTotalCollections() > 0) {
if (collection.getTotalManifests() === 0 &&
manifestIndex_1 === 0 &&
collection.getTotalCollections() > 0) {
bootstrapper._options.collectionIndex = 0;

@@ -61,3 +67,5 @@ bootstrapper._options.manifestUri = collection.id;

else if (manifestIndex_1 !== undefined) {
collection.getManifestByIndex(manifestIndex_1).then(function (manifest) {
collection
.getManifestByIndex(manifestIndex_1)
.then(function (manifest) {
bootstrapper._options.manifest = manifest;

@@ -71,3 +79,5 @@ var helper = new Helper(bootstrapper._options);

else {
iiifResource.getManifestByIndex(bootstrapper._options.manifestIndex).then(function (manifest) {
iiifResource
.getManifestByIndex(bootstrapper._options.manifestIndex)
.then(function (manifest) {
bootstrapper._options.manifest = manifest;

@@ -86,3 +96,3 @@ var helper = new Helper(bootstrapper._options);

else {
console.error('Unable to load IIIF resource');
console.error("Unable to load IIIF resource");
}

@@ -89,0 +99,0 @@ };

export declare class Errors {
static manifestNotLoaded: string;
}

@@ -0,0 +0,0 @@ var Errors = /** @class */ (function () {

@@ -0,0 +0,0 @@ import { Canvas, IAccessToken, IExternalResource, IExternalResourceOptions, Service } from "manifesto.js";

@@ -1,2 +0,2 @@

import { ServiceProfile } from "@iiif/vocabulary";
import { ServiceProfile } from "@iiif/vocabulary/dist-commonjs";
import * as HTTPStatusCode from "@edsilv/http-status-codes";

@@ -30,7 +30,7 @@ import { Utils } from "manifesto.js";

var id = service.id;
if (!id.endsWith('/')) {
id += '/';
if (!id.endsWith("/")) {
id += "/";
}
if (Utils.isImageProfile(service.getProfile())) {
infoUri = id + 'info.json';
infoUri = id + "info.json";
}

@@ -62,3 +62,4 @@ }

}
else if (images && images.length) { // presentation 2
else if (images && images.length) {
// presentation 2
var firstImage = images[0];

@@ -79,3 +80,4 @@ var resource = firstImage.getResource();

var service = canvas.getService(ServiceProfile.IXIF);
if (service) { // todo: deprecate
if (service) {
// todo: deprecate
return service.getInfoUri();

@@ -105,3 +107,4 @@ }

}
else { // auth 1
else {
// auth 1
// if the resource is a canvas, not an info.json, look for auth services on its content.

@@ -174,3 +177,7 @@ if (resource.isCanvas !== undefined && resource.isCanvas()) {

ExternalResource.prototype.isAccessControlled = function () {
if (this.clickThroughService || this.loginService || this.externalService || this.kioskService || this.probeService) {
if (this.clickThroughService ||
this.loginService ||
this.externalService ||
this.kioskService ||
this.probeService) {
return true;

@@ -182,3 +189,3 @@ }

if (this.dataUri) {
return this.dataUri.endsWith('info.json');
return this.dataUri.endsWith("info.json");
}

@@ -192,3 +199,3 @@ return false;

if (!that.dataUri) {
reject('There is no dataUri to fetch');
reject("There is no dataUri to fetch");
return;

@@ -224,3 +231,3 @@ }

var xhr_1 = new XMLHttpRequest();
xhr_1.open('GET', that.probeService.id, true);
xhr_1.open("GET", that.probeService.id, true);
xhr_1.withCredentials = true;

@@ -247,3 +254,3 @@ xhr_1.onload = function () {

// if not issue a HEAD request.
var type = 'GET';
var type = "GET";
if (!that.hasServiceDescriptor()) {

@@ -261,3 +268,3 @@ // If access control is unnecessary, short circuit the process.

}
type = 'HEAD';
type = "HEAD";
}

@@ -316,6 +323,5 @@ // leaving this in for reference until the XHR version is fully tested

xhr_2.onload = function () {
var data = JSON.parse(xhr_2.responseText);
// if it's a resource without an info.json
// todo: if resource doesn't have a @profile
if (!data) {
if (!xhr_2.responseText) {
that.status = HTTPStatusCode.OK;

@@ -325,3 +331,4 @@ resolve(that);

else {
var uri = unescape(data['@id']);
var data = JSON.parse(xhr_2.responseText);
var uri = unescape(data["@id"]);
that.data = data;

@@ -331,8 +338,8 @@ that._parseAuthServices(that.data);

// remove trailing /info.json
if (uri.endsWith('/info.json')) {
uri = uri.substr(0, uri.lastIndexOf('/'));
if (uri.endsWith("/info.json")) {
uri = uri.substr(0, uri.lastIndexOf("/"));
}
var dataUri = that.dataUri;
if (dataUri && dataUri.endsWith('/info.json')) {
dataUri = dataUri.substr(0, dataUri.lastIndexOf('/'));
if (dataUri && dataUri.endsWith("/info.json")) {
dataUri = dataUri.substr(0, dataUri.lastIndexOf("/"));
}

@@ -339,0 +346,0 @@ // if the request was redirected to a degraded version and there's a login service to get the full quality version

@@ -7,3 +7,3 @@ import { MultiSelectState } from "./MultiSelectState";

import { TreeSortType } from "./TreeSortType";
import { ViewingHint, ViewingDirection } from "@iiif/vocabulary";
import { ViewingHint, ViewingDirection } from "@iiif/vocabulary/dist-commonjs";
import { Canvas, IIIFResource, Manifest, ManifestType, Range, Service, Sequence, Thumb, TreeNode } from "manifesto.js";

@@ -10,0 +10,0 @@ export declare class Helper {

import { MultiSelectState } from "./MultiSelectState";
import { MetadataGroup } from "./MetadataGroup";
import { TreeSortType } from "./TreeSortType";
import { ServiceProfile, ViewingHint, ViewingDirection } from "@iiif/vocabulary";
import { ServiceProfile, ViewingHint, ViewingDirection } from "@iiif/vocabulary/dist-commonjs";
import { Errors } from "./Errors";
import { LabelValuePair, Language, LanguageMap, ManifestType, TreeNode, TreeNodeType, Utils } from "manifesto.js";
import { LabelValuePair, LocalizedValue, ManifestType, TreeNode, TreeNodeType, Utils, PropertyValue } from "manifesto.js";
var Helper = /** @class */ (function () {

@@ -36,3 +36,3 @@ function Helper(options) {

if (attribution) {
return LanguageMap.getValue(attribution, this.options.locale);
return attribution.getValue(this.options.locale);
}

@@ -92,3 +92,9 @@ return null;

// todo: write test
canvas.ranges = this.manifest.getAllRanges().filter(function (range) { return (range.getCanvasIds().some(function (cid) { return Utils.normaliseUrl(cid) === Utils.normaliseUrl(canvas.id); })); });
canvas.ranges = (this.manifest
.getAllRanges()
.filter(function (range) {
return range
.getCanvasIds()
.some(function (cid) { return Utils.normaliseUrl(cid) === Utils.normaliseUrl(canvas.id); });
}));
}

@@ -99,3 +105,4 @@ return canvas.ranges;

// todo: this only works for collections nested one level deep
if (iiifResource.parentCollection && !iiifResource.parentCollection.parentCollection) {
if (iiifResource.parentCollection &&
!iiifResource.parentCollection.parentCollection) {
// manifest must be in the root

@@ -121,3 +128,3 @@ return undefined;

if (description) {
return LanguageMap.getValue(description, this.options.locale);
return description.getValue(this.options.locale);
}

@@ -132,3 +139,3 @@ return null;

if (label) {
return LanguageMap.getValue(label, this.options.locale);
return label.getValue(this.options.locale);
}

@@ -182,3 +189,5 @@ return null;

var metadataItem = new LabelValuePair(locale);
metadataItem.label = [new Language("description", locale)];
metadataItem.label = new PropertyValue([
new LocalizedValue("description", locale)
]);
metadataItem.value = this.manifest.getDescription();

@@ -190,3 +199,5 @@ metadataItem.isRootLevel = true;

var metadataItem = new LabelValuePair(locale);
metadataItem.label = [new Language("attribution", locale)];
metadataItem.label = new PropertyValue([
new LocalizedValue("attribution", locale)
]);
metadataItem.value = this.manifest.getAttribution();

@@ -200,3 +211,5 @@ metadataItem.isRootLevel = true;

label: "license",
value: (options && options.licenseFormatter) ? options.licenseFormatter.format(license) : license
value: options && options.licenseFormatter
? options.licenseFormatter.format(license)
: license
};

@@ -211,3 +224,3 @@ var metadataItem = new LabelValuePair(locale);

label: "logo",
value: '<img src="' + this.manifest.getLogo() + '"/>'
value: '<img alt="logo" src="' + this.manifest.getLogo() + '"/>'
};

@@ -234,4 +247,6 @@ var metadataItem = new LabelValuePair(locale);

return {
label: requiredStatement.getLabel(),
value: requiredStatement.getValue()
label: requiredStatement.label ? requiredStatement.getLabel() : "",
value: requiredStatement.value && requiredStatement.value.length
? requiredStatement.getValue()
: ""
};

@@ -297,3 +312,5 @@ }

this._multiSelectState.ranges = this.getRanges().slice(0);
this._multiSelectState.canvases = this.getCurrentSequence().getCanvases().slice(0);
this._multiSelectState.canvases = (this.getCurrentSequence()
.getCanvases()
.slice(0));
}

@@ -319,4 +336,4 @@ return this._multiSelectState;

if (content && content.length) {
var anno = content[0];
var body = anno.getBody();
var annotation = content[0];
var body = annotation.getBody();
return body[0].id;

@@ -395,3 +412,3 @@ }

if (t) {
return this._flattenTree(t, 'nodes');
return this._flattenTree(t, "nodes");
}

@@ -535,3 +552,3 @@ return null;

var root = new TreeNode();
root.label = 'root';
root.label = "root";
root.data = this.iiifResource;

@@ -555,8 +572,7 @@ if (topRanges.length) {

this._getSortedTreeNodesByDate(sortedTree, tree);
break;
return sortedTree;
}
default:
sortedTree = tree;
break;
}
return sortedTree;
return tree;
};

@@ -567,3 +583,5 @@ Helper.prototype.treeHasNavDates = function (tree) {

var flattenedTree = this.getFlattenedTree(tree);
return (flattenedTree) ? flattenedTree.some(function (n) { return !isNaN(n.navDate); }) : false;
return flattenedTree
? flattenedTree.some(function (n) { return !isNaN(n.navDate); })
: false;
};

@@ -604,3 +622,3 @@ Helper.prototype.getViewingDirection = function () {

}
return related['format'] === 'text/html';
return related["format"] === "text/html";
};

@@ -629,3 +647,3 @@ Helper.prototype.hasResources = function () {

Helper.prototype.isFirstCanvas = function (index) {
if (typeof index !== 'undefined') {
if (typeof index !== "undefined") {
return this.getCurrentSequence().isFirstCanvas(index);

@@ -639,3 +657,3 @@ }

Helper.prototype.isLastCanvas = function (index) {
if (typeof index !== 'undefined') {
if (typeof index !== "undefined") {
return this.getCurrentSequence().isLastCanvas(index);

@@ -681,3 +699,4 @@ }

}
return (this.manifest.isPagingEnabled() || this.getCurrentSequence().isPagingEnabled());
return (this.manifest.isPagingEnabled() ||
this.getCurrentSequence().isPagingEnabled());
};

@@ -707,5 +726,6 @@ Helper.prototype.isRightToLeft = function () {

if (uiExtensions) {
var disableUI = uiExtensions.getProperty('disableUI');
var disableUI = uiExtensions.getProperty("disableUI");
if (disableUI) {
if (disableUI.indexOf(name) !== -1 || disableUI.indexOf(name.toLowerCase()) !== -1) {
if (disableUI.indexOf(name) !== -1 ||
disableUI.indexOf(name.toLowerCase()) !== -1) {
return false;

@@ -720,3 +740,3 @@ }

};
// dates //
// dates //
Helper.prototype.createDateNodes = function (rootNode, nodes) {

@@ -824,3 +844,16 @@ for (var i = 0; i < nodes.length; i++) {

Helper.prototype.getNodeDisplayMonth = function (node) {
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
var months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
return months[node.navDate.getMonth()];

@@ -881,3 +914,3 @@ };

decadeNode.nodes = decadeNode.nodes.sort(function (a, b) {
return (_this.getNodeYear(a) - _this.getNodeYear(b));
return _this.getNodeYear(a) - _this.getNodeYear(b);
});

@@ -884,0 +917,0 @@ }

@@ -0,0 +0,0 @@ export declare class ILabelValuePair {

@@ -0,0 +0,0 @@ var ILabelValuePair = /** @class */ (function () {

@@ -0,0 +0,0 @@ import { IIIFResource, Manifest } from "manifesto.js";

@@ -0,0 +0,0 @@ import { LabelValuePair } from "manifesto.js";

@@ -0,0 +0,0 @@ export interface IMultiSelectable {

@@ -0,0 +0,0 @@ export * from "./AnnotationGroup";

@@ -0,0 +0,0 @@ export * from "./AnnotationGroup";

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

@@ -0,0 +0,0 @@ import { IMetadataItem } from "./IMetadataItem";

@@ -0,0 +0,0 @@ var MetadataGroup = /** @class */ (function () {

@@ -0,0 +0,0 @@ import { UriLabeller } from "./UriLabeller";

@@ -0,0 +0,0 @@ var MetadataOptions = /** @class */ (function () {

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

@@ -0,0 +0,0 @@ import { IMultiSelectable } from "./IMultiSelectable";

@@ -0,0 +0,0 @@ import { MultiSelectableRange } from "./MultiSelectableRange";

@@ -9,6 +9,8 @@ import { Utils } from "manifesto.js";

MultiSelectState.prototype.allCanvasesSelected = function () {
return this.canvases.length > 0 && this.getAllSelectedCanvases().length === this.canvases.length;
return (this.canvases.length > 0 &&
this.getAllSelectedCanvases().length === this.canvases.length);
};
MultiSelectState.prototype.allRangesSelected = function () {
return this.ranges.length > 0 && this.getAllSelectedRanges().length === this.ranges.length;
return (this.ranges.length > 0 &&
this.getAllSelectedRanges().length === this.ranges.length);
};

@@ -62,3 +64,3 @@ MultiSelectState.prototype.allSelected = function () {

r.multiSelected = selected;
var canvases = this.getRangeCanvases(r);
var canvases = (this.getRangeCanvases(r));
this.selectCanvases(canvases, selected);

@@ -65,0 +67,0 @@ };

@@ -0,0 +0,0 @@ export declare class Translation {

@@ -0,0 +0,0 @@ var Translation = /** @class */ (function () {

@@ -0,0 +0,0 @@ export declare enum TreeSortType {

@@ -0,0 +0,0 @@ export var TreeSortType;

@@ -0,0 +0,0 @@ export declare class UriLabeller {

@@ -8,6 +8,6 @@ // This class formats URIs into HTML <a> links, applying labels when available

// if already a link, do nothing.
if (url.indexOf('<a') != -1)
if (url.indexOf("<a") != -1)
return url;
var label = (this.labels[url]) ? this.labels[url] : url;
return '<a href="' + url + '">' + label + '</a>';
var label = this.labels[url] ? this.labels[url] : url;
return '<a href="' + url + '">' + label + "</a>";
};

@@ -14,0 +14,0 @@ return UriLabeller;

{
"name": "@iiif/manifold",
"version": "2.0.2",
"version": "2.0.3",
"description": "",
"main": "./dist-umd/manifold.js",
"module": "./dist-esmodule/index.js",
"types": "./types/index.d.ts",
"types": "./dist-esmodule/index.d.ts",
"scripts": {
"clean": "rimraf -rf dist-umd dist-commonjs dist-esmodule dist-var types",
"build:commonjs": "tsc",
"build:docs": "rimraf -rf docs && typedoc --out docs --name manifold --theme default --ignoreCompilerErrors --experimentalDecorators --emitDecoratorMetadata --target ES6 --moduleResolution node --preserveConstEnums --stripInternal --suppressExcessPropertyErrors --suppressImplicitAnyIndexErrors --module commonjs src/ && touch docs/.nojekyll",
"build:esmodule": "tsc -m es6 --outDir dist-esmodule",
"build:types": "npx dts-bundle-generator --umd-module-name manifold -o types/index.d.ts dist-esmodule/index.d.ts",
"build:umd": "webpack",
"build:var": "cross-env NODE_WEBPACK_LIBRARY_PATH=dist-var NODE_WEBPACK_LIBRARY_TARGET=var webpack",
"build:types": "npx dts-bundle-generator --umd-module-name manifold -o types/index.d.ts dist-esmodule/index.d.ts",
"build:docs": "rimraf -rf docs && typedoc --out docs --name manifold --theme default --ignoreCompilerErrors --experimentalDecorators --emitDecoratorMetadata --target ES6 --moduleResolution node --preserveConstEnums --stripInternal --suppressExcessPropertyErrors --suppressImplicitAnyIndexErrors --module commonjs src/ && touch docs/.nojekyll",
"build": "npm run clean && npm run build:commonjs && npm run build:esmodule && npm run build:umd && npm run build:var && npm run build:types",
"build": "npm run lint:all && npm run clean && npm run build:commonjs && npm run build:esmodule && npm run build:umd && npm run build:var && npm run build:types",
"clean": "rimraf -rf dist-umd dist-commonjs dist-esmodule dist-var types",
"lint:all": "prettier --write \"./src/**/*.{js,jsx,json,css,ts,tsx}\"",
"prepublishOnly": "npm run build"

@@ -33,7 +34,11 @@ },

"dts-bundle-generator": "^2.0.0",
"prettier": "^1.19.1",
"prettier-check": "^2.0.0",
"rimraf": "^2.6.3",
"tslint-config-prettier": "^1.18.0",
"typedoc": "0.14.0",
"typescript": "3.6.3",
"webpack-cli": "^3.1.2",
"webpack": "^4.28.3"
"typescript-tslint-plugin": "^0.5.5",
"webpack": "^4.28.3",
"webpack-cli": "^3.1.2"
},

@@ -43,4 +48,4 @@ "dependencies": {

"@iiif/vocabulary": "^1.0.11",
"manifesto.js": "4.0.1"
"manifesto.js": "4.2.1"
}
}

@@ -0,0 +0,0 @@ import { ViewingDirection, ViewingHint } from '@iiif/vocabulary';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display