Skip to content

Commit

Permalink
moved getDefaultLabel to IManifestResource
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Sep 20, 2018
1 parent d8dc48e commit 23199c8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/client/manifesto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto v3.0.5 https://github.com/iiif-commons/manifesto
// manifesto v3.0.6 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
5 changes: 2 additions & 3 deletions dist/manifesto.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto v3.0.5 https://github.com/iiif-commons/manifesto
// manifesto v3.0.6 https://github.com/iiif-commons/manifesto

declare namespace Manifesto {
class StringValue {
Expand Down Expand Up @@ -778,11 +778,9 @@ declare namespace Manifesto {
interface IIIIFResource extends IManifestResource {
defaultTree: ITreeNode;
getAttribution(): LanguageMap;
getDefaultLabel(): string | null;
getDefaultTree(): ITreeNode;
getDescription(): LanguageMap;
getIIIFResourceType(): IIIFResourceType;
getLabel(): LanguageMap;
getLicense(): string | null;
getLogo(): string | null;
getNavDate(): Date;
Expand Down Expand Up @@ -833,6 +831,7 @@ declare namespace Manifesto {
interface IManifestResource extends IJSONLDResource {
externalResource: Manifesto.IExternalResource;
options: IManifestoOptions;
getDefaultLabel(): string | null;
getLabel(): LanguageMap;
getMetadata(): LabelValuePair[];
getRendering(format: RenderingFormat | string): IRendering | null;
Expand Down
2 changes: 1 addition & 1 deletion 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.5",
"version": "3.0.6",
"description": "IIIF Presentation API utility library for client and server",
"main": "./dist/server/manifesto.js",
"types": "./dist/manifesto.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions src/IIIIFResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ namespace Manifesto {
export interface IIIIFResource extends IManifestResource {
defaultTree: ITreeNode; // the tree generated from the first viewingHint="top" range
getAttribution(): LanguageMap;
getDefaultLabel(): string | null;
getDefaultTree(): ITreeNode;
getDescription(): LanguageMap;
getIIIFResourceType(): IIIFResourceType;
getLabel(): LanguageMap;
getLicense(): string | null;
getLogo(): string | null;
getNavDate(): Date;
Expand Down
1 change: 1 addition & 0 deletions src/IManifestResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Manifesto {
export interface IManifestResource extends IJSONLDResource {
externalResource: Manifesto.IExternalResource;
options: IManifestoOptions;
getDefaultLabel(): string | null;
getLabel(): LanguageMap;
getMetadata(): LabelValuePair[];
getRendering(format: RenderingFormat | string): IRendering | null;
Expand Down

0 comments on commit 23199c8

Please sign in to comment.