Skip to content

Commit

Permalink
include Language in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Aug 22, 2018
1 parent afd90b1 commit 636f71d
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 88 deletions.
48 changes: 24 additions & 24 deletions dist/client/manifesto.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3135,6 +3135,29 @@ var Manifesto;
Manifesto.Utils = Utils;
})(Manifesto || (Manifesto = {}));

var Manifesto;
(function (Manifesto) {
var Language = /** @class */ (function () {
function Language(value, locale) {
if (Array.isArray(value)) {
if (value.length === 1) {
this.value = value[0];
}
else {
// concatenate all of the values
this.value = value.join('<br/>');
}
}
else {
this.value = value;
}
this.locale = locale;
}
return Language;
}());
Manifesto.Language = Language;
})(Manifesto || (Manifesto = {}));

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
Expand Down Expand Up @@ -3237,14 +3260,14 @@ global.manifesto = global.Manifesto = module.exports = {
Behavior: new Manifesto.Behavior(),
IIIFResourceType: new Manifesto.IIIFResourceType(),
LabelValuePair: Manifesto.LabelValuePair,
Language: Manifesto.Language,
LanguageMap: Manifesto.LanguageMap,
ManifestType: new Manifesto.ManifestType(),
MediaType: new Manifesto.MediaType(),
RenderingFormat: new Manifesto.RenderingFormat(),
ResourceType: new Manifesto.ResourceType(),
ServiceProfile: new Manifesto.ServiceProfile(),
Size: Manifesto.Size,
Translation: Manifesto.Language,
TreeNode: Manifesto.TreeNode,
TreeNodeType: new Manifesto.TreeNodeType(),
Utils: Manifesto.Utils,
Expand Down Expand Up @@ -3538,29 +3561,6 @@ var Manifesto;
Manifesto.LabelValuePair = LabelValuePair;
})(Manifesto || (Manifesto = {}));

var Manifesto;
(function (Manifesto) {
var Language = /** @class */ (function () {
function Language(value, locale) {
if (Array.isArray(value)) {
if (value.length === 1) {
this.value = value[0];
}
else {
// concatenate all of the values
this.value = value.join('<br/>');
}
}
else {
this.value = value;
}
this.locale = locale;
}
return Language;
}());
Manifesto.Language = Language;
})(Manifesto || (Manifesto = {}));

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
Expand Down
50 changes: 25 additions & 25 deletions dist/client/manifesto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto v3.0.0 https://github.com/iiif-commons/manifesto
// manifesto v3.0.1 https://github.com/iiif-commons/manifesto
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.manifesto = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
(function (global){

Expand Down Expand Up @@ -3063,6 +3063,29 @@ var Manifesto;
Manifesto.Utils = Utils;
})(Manifesto || (Manifesto = {}));

var Manifesto;
(function (Manifesto) {
var Language = /** @class */ (function () {
function Language(value, locale) {
if (Array.isArray(value)) {
if (value.length === 1) {
this.value = value[0];
}
else {
// concatenate all of the values
this.value = value.join('<br/>');
}
}
else {
this.value = value;
}
this.locale = locale;
}
return Language;
}());
Manifesto.Language = Language;
})(Manifesto || (Manifesto = {}));

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
Expand Down Expand Up @@ -3165,14 +3188,14 @@ global.manifesto = global.Manifesto = module.exports = {
Behavior: new Manifesto.Behavior(),
IIIFResourceType: new Manifesto.IIIFResourceType(),
LabelValuePair: Manifesto.LabelValuePair,
Language: Manifesto.Language,
LanguageMap: Manifesto.LanguageMap,
ManifestType: new Manifesto.ManifestType(),
MediaType: new Manifesto.MediaType(),
RenderingFormat: new Manifesto.RenderingFormat(),
ResourceType: new Manifesto.ResourceType(),
ServiceProfile: new Manifesto.ServiceProfile(),
Size: Manifesto.Size,
Translation: Manifesto.Language,
TreeNode: Manifesto.TreeNode,
TreeNodeType: new Manifesto.TreeNodeType(),
Utils: Manifesto.Utils,
Expand Down Expand Up @@ -3466,29 +3489,6 @@ var Manifesto;
Manifesto.LabelValuePair = LabelValuePair;
})(Manifesto || (Manifesto = {}));

var Manifesto;
(function (Manifesto) {
var Language = /** @class */ (function () {
function Language(value, locale) {
if (Array.isArray(value)) {
if (value.length === 1) {
this.value = value[0];
}
else {
// concatenate all of the values
this.value = value.join('<br/>');
}
}
else {
this.value = value;
}
this.locale = locale;
}
return Language;
}());
Manifesto.Language = Language;
})(Manifesto || (Manifesto = {}));

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
Expand Down
20 changes: 10 additions & 10 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto v3.0.0 https://github.com/iiif-commons/manifesto
// manifesto v3.0.1 https://github.com/iiif-commons/manifesto

declare namespace Manifesto {
class StringValue {
Expand Down Expand Up @@ -582,6 +582,14 @@ declare namespace Manifesto {
}
}

declare namespace Manifesto {
class Language {
value: string;
locale: string;
constructor(value: string | string[], locale: string);
}
}

declare namespace Manifesto {
class LanguageMap extends Array<Language> {
static parse(language: any, defaultLocale: string): LanguageMap;
Expand Down Expand Up @@ -830,6 +838,7 @@ interface IManifesto {
create: (manifest: string, options?: Manifesto.IManifestoOptions) => Manifesto.IIIIFResource;
IIIFResourceType: Manifesto.IIIFResourceType;
LabelValuePair: any;
Language: any;
LanguageMap: any;
loadManifest: (uri: string) => Promise<string>;
ManifestType: Manifesto.ManifestType;
Expand All @@ -839,7 +848,6 @@ interface IManifesto {
ServiceProfile: Manifesto.ServiceProfile;
Size: any;
StatusCodes: Manifesto.IStatusCodes;
Translation: any;
TreeNode: any;
TreeNodeType: Manifesto.TreeNodeType;
Utils: any;
Expand Down Expand Up @@ -966,14 +974,6 @@ declare namespace Manifesto {
}
}

declare namespace Manifesto {
class Language {
value: string;
locale: string;
constructor(value: string | string[], locale: string);
}
}

declare namespace Manifesto {
class Thumbnail extends Resource implements IThumbnail {
constructor(jsonld: any, options: IManifestoOptions);
Expand Down
50 changes: 25 additions & 25 deletions dist/server/manifesto.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": "manifesto.js",
"version": "3.0.0",
"version": "3.0.1",
"description": "IIIF Presentation API utility library for client and server",
"main": "./dist/server/manifesto.js",
"types": "./dist/manifesto.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/IManifesto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ interface IManifesto {
create: (manifest: string, options?: Manifesto.IManifestoOptions) => Manifesto.IIIIFResource;
IIIFResourceType: Manifesto.IIIFResourceType;
LabelValuePair: any;
Language: any;
LanguageMap: any;
loadManifest: (uri: string) => Promise<string>;
ManifestType: Manifesto.ManifestType;
Expand All @@ -13,7 +14,6 @@ interface IManifesto {
ServiceProfile: Manifesto.ServiceProfile;
Size: any;
StatusCodes: Manifesto.IStatusCodes;
Translation: any;
TreeNode: any;
TreeNodeType: Manifesto.TreeNodeType;
Utils: any;
Expand Down
2 changes: 1 addition & 1 deletion src/Manifesto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
Behavior: new Manifesto.Behavior(),
IIIFResourceType: new Manifesto.IIIFResourceType(),
LabelValuePair: Manifesto.LabelValuePair,
Language: Manifesto.Language,
LanguageMap: Manifesto.LanguageMap,
ManifestType: new Manifesto.ManifestType(),
MediaType: new Manifesto.MediaType(),
RenderingFormat: new Manifesto.RenderingFormat(),
ResourceType: new Manifesto.ResourceType(),
ServiceProfile: new Manifesto.ServiceProfile(),
Size: Manifesto.Size,
Translation: Manifesto.Language,
TreeNode: Manifesto.TreeNode,
TreeNodeType: new Manifesto.TreeNodeType(),
Utils: Manifesto.Utils,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"src/TreeNodeType.ts",
"src/Utils.ts",
"src/MetadataItem.ts",
"src/Translation.ts",
"src/Language.ts",
"src/LanguageMap.ts",
"src/Size.ts",
"src/Manifesto.ts"
Expand Down

0 comments on commit 636f71d

Please sign in to comment.