Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iiif/presentation-3

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iiif/presentation-3 - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

55

dist/presentation-3.d.ts

@@ -432,3 +432,3 @@ // Generated by dts-bundle-generator v6.12.0

*/
export interface NavPlaceExtension {
export declare interface NavPlaceExtension {
/**

@@ -697,2 +697,53 @@ * Nav place

};
/**
* Text granularity
*
* See: https://iiif.io/api/extension/text-granularity/
*/
/**
* A page in a paginated document
*/
export declare type PageGranularity = "page";
/**
* An arbitrary region of text
*/
export declare type BlockGranularity = "block";
/**
* A paragraph
*/
export declare type ParagraphGranularity = "paragraph";
/**
* A topographic line
*/
export declare type LineGranularity = "line";
/**
* A single word
*/
export declare type WordGranularity = "word";
/**
* A single glyph or symbol
*/
export declare type GlyphGranularity = "glyph";
/**
* The textGranularity property identifies the Text Granularity Level of a resource. The value must be a single string.
* This extension defines the Text Granularity Levels found in the table below. The string should be one of those
* defined in the table below or in the [Registry of Extensions](https://iiif.io/api/extension/).
*/
export declare type TextGranularityOptions = PageGranularity | BlockGranularity | ParagraphGranularity | LineGranularity | WordGranularity | GlyphGranularity;
export declare interface TextGranularityExtension {
/**
* Text granularity
*
* An Annotation may have the textGranularity property. An Annotation that has the property should reference a IIIF
* Presentation API Canvas or segment in the target property and the identified Text Granularity Level should describe
* that of the textual content represented by the content resources painted on the Target.
*
* The Annotation Body’s textual content should be equivalent to the textual content represented by the content
* resources painted on the Target. For example, the Body of the Annotation might be a TextualBody that contains the
* transcription of the Target, which is painted with the image of a page of a medieval manuscript.
*
* See: https://iiif.io/api/extension/text-granularity/
*/
textGranularity?: TextGranularityOptions;
}
export type AnnotationOmittedTechnical = "format" | "profile" | "height" | "width" | "duration" | "viewingDirection" | "motivation";

@@ -962,3 +1013,3 @@ export type AnnotationOmittedDescriptive = "accompanyingCanvas" | "placeholderCanvas" | "navDate" | "language" | "rights";

};
export interface Annotation extends SomeRequired<AnnotationTechnical, "id" | "type">, Partial<AnnotationDescriptive>, Partial<AnnotationLinking>, Partial<OmitProperties<AnnotationW3C, "body" | "target">> {
export interface Annotation extends SomeRequired<AnnotationTechnical, "id" | "type">, Partial<AnnotationDescriptive>, Partial<AnnotationLinking>, Partial<OmitProperties<AnnotationW3C, "body" | "target">>, TextGranularityExtension {
body?: AnnotationBody | AnnotationBody[];

@@ -965,0 +1016,0 @@ target?: AnnotationTarget | AnnotationTarget[];

2

package.json
{
"name": "@iiif/presentation-3",
"description": "IIIF Presentation v3.0 typescript types",
"version": "2.0.4",
"version": "2.0.5",
"source": "index.js",

@@ -6,0 +6,0 @@ "types": "dist/presentation-3.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc