@samvera/clover-iiif
Advanced tools
Comparing version 1.10.3 to 1.11.0
@@ -73,2 +73,36 @@ /// <reference types="react" /> | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>; | ||
declare const ManifestLabel: import("@stitches/react/types/styled-component").StyledComponent<"span", {}, { | ||
xxs: string; | ||
xs: string; | ||
sm: string; | ||
md: string; | ||
xl: string; | ||
lg: string; | ||
}, import("@stitches/react/types/css-util").CSS<{ | ||
xxs: string; | ||
xs: string; | ||
sm: string; | ||
md: string; | ||
xl: string; | ||
lg: string; | ||
}, { | ||
colors: { | ||
primary: string; | ||
primaryMuted: string; | ||
primaryAlt: string; | ||
accent: string; | ||
accentMuted: string; | ||
accentAlt: string; | ||
secondary: string; | ||
secondaryMuted: string; | ||
secondaryAlt: string; | ||
}; | ||
fonts: { | ||
sans: string; | ||
display: string; | ||
}; | ||
transitions: { | ||
all: string; | ||
}; | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>; | ||
declare const Header: import("@stitches/react/types/styled-component").StyledComponent<"header", {}, { | ||
@@ -108,2 +142,2 @@ xxs: string; | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>; | ||
export { Header, IIIFBadgeButton, IIIFBadgeContent }; | ||
export { Header, IIIFBadgeButton, IIIFBadgeContent, ManifestLabel }; |
import { Options } from "openseadragon"; | ||
import React from "react"; | ||
import { Vault } from "@iiif/vault"; | ||
import { CollectionNormalized } from "@iiif/presentation-3"; | ||
export declare type ConfigOptions = { | ||
@@ -14,2 +15,4 @@ showTitle?: boolean; | ||
activeCanvas: string; | ||
activeManifest: string; | ||
collection?: CollectionNormalized | {}; | ||
configOptions: ConfigOptions; | ||
@@ -16,0 +19,0 @@ isLoaded: boolean; |
import React from "react"; | ||
import { ConfigOptions } from "@/context/viewer-context"; | ||
interface Props { | ||
manifestId: string; | ||
canvasIdCallback?: (arg0: string) => void; | ||
customTheme?: any; | ||
id: string; | ||
manifestId?: string; | ||
options?: ConfigOptions; | ||
@@ -8,0 +9,0 @@ } |
@@ -30,3 +30,3 @@ /// <reference types="react" /> | ||
}; | ||
export declare const styled: <Type extends import("react").ComponentType<any> | keyof JSX.IntrinsicElements | import("@stitches/react/types/util").Function, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | { | ||
export declare const styled: <Type extends import("@stitches/react/types/util").Function | keyof JSX.IntrinsicElements | import("react").ComponentType<any>, Composers extends (string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> | { | ||
[name: string]: unknown; | ||
@@ -59,3 +59,3 @@ })[], CSS = import("@stitches/react/types/css-util").CSS<{ | ||
}; | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & { | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & { | ||
variants?: { | ||
@@ -104,3 +104,3 @@ [x: string]: { | ||
}; | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function | { | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | { | ||
[name: string]: unknown; | ||
@@ -133,3 +133,3 @@ })[], CSS = import("@stitches/react/types/css-util").CSS<{ | ||
}; | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & { | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & { | ||
variants?: { | ||
@@ -136,0 +136,0 @@ [x: string]: { |
{ | ||
"name": "@samvera/clover-iiif", | ||
"version": "1.10.3", | ||
"version": "1.11.0", | ||
"description": "Viewer for audio, video and image file types driven by a IIIF manifest", | ||
@@ -66,4 +66,6 @@ "main": "dist/index.cjs.js", | ||
"@radix-ui/react-radio-group": "^0.1.6-rc.6", | ||
"@radix-ui/react-select": "^1.0.0", | ||
"@radix-ui/react-tabs": "^0.1.6-rc.6", | ||
"@stitches/react": "^1.2.7", | ||
"@samvera/nectar-iiif": "^0.0.16", | ||
"@stitches/react": "^1.2.8", | ||
"hls.js": "^1.0.10", | ||
@@ -70,0 +72,0 @@ "node-webvtt": "^1.9.3", |
@@ -61,6 +61,6 @@ <!-- ![image](https://user-images.githubusercontent.com/7376450/154114970-a68a6b14-91b8-48ea-a76a-5d2cd2f342c7.png) --> | ||
```jsx | ||
const manifestId = | ||
const id = | ||
"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/sample.json"; | ||
return <CloverIIIF manifestId={manifestId} />; | ||
return <CloverIIIF id={id} />; | ||
``` | ||
@@ -77,3 +77,3 @@ | ||
```jsx | ||
const manifestId = | ||
const id = | ||
"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/sample.json"; | ||
@@ -85,8 +85,3 @@ | ||
return ( | ||
<CloverIIIF | ||
manifestId={manifestId} | ||
canvasIdCallback={handlCanvasIdCallback} | ||
/> | ||
); | ||
return <CloverIIIF id={id} canvasIdCallback={handlCanvasIdCallback} />; | ||
``` | ||
@@ -126,3 +121,3 @@ | ||
export default function App() { | ||
const manifestId = | ||
const id = | ||
"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/captions.json"; | ||
@@ -134,3 +129,3 @@ | ||
return <CloverIIIF manifestId={manifestId} options={options} />; | ||
return <CloverIIIF id={id} options={options} />; | ||
} | ||
@@ -148,3 +143,3 @@ ``` | ||
```jsx | ||
const manifestId = | ||
const id = | ||
"https://raw.githubusercontent.com/samvera-labs/clover-iiif/main/public/fixtures/iiif/manifests/sample.json"; | ||
@@ -184,3 +179,3 @@ | ||
return <CloverIIIF manifestId={manifestId} customTheme={customTheme} />; | ||
return <CloverIIIF id={id} customTheme={customTheme} />; | ||
``` | ||
@@ -196,3 +191,4 @@ | ||
| ------------------------------- | ---------- | -------- | --------- | | ||
| `manifestId` | `string` | Yes | | | ||
| `id` | `string` | Yes | | | ||
| `manifestId` _(deprecated)_ | `string` | No | | | ||
| `canvasIdCallback` | `function` | No | | | ||
@@ -240,3 +236,3 @@ | `customTheme` | `object` | No | | | ||
<CloverIIIF manifestId={...} options={options} /> | ||
<CloverIIIF id={...} options={options} /> | ||
``` | ||
@@ -246,5 +242,5 @@ | ||
<h2 id="manifest-requirements">Manifest Requirements</h2> | ||
<h2 id="manifest-requirements">IIIF Presentation API Requirements</h2> | ||
The manifest provided to `manifestId`: | ||
The Manifest or Collection provided to `id`: | ||
@@ -251,0 +247,0 @@ - MUST be a [IIIF Presentation API](https://iiif.io/api/presentation/3.0/) valid manifest, |
Sorry, the diff of this file is too big to display
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 not supported yet
Sorry, the diff of this file is not supported yet
923954
86
3037
16
289
+ Added@samvera/nectar-iiif@^0.0.16
+ Added@floating-ui/core@1.6.4(transitive)
+ Added@floating-ui/dom@1.6.7(transitive)
+ Added@floating-ui/react-dom@2.1.1(transitive)
+ Added@floating-ui/utils@0.2.4(transitive)
+ Added@radix-ui/number@1.0.1(transitive)
+ Added@radix-ui/primitive@1.0.1(transitive)
+ Added@radix-ui/react-arrow@1.0.3(transitive)
+ Added@radix-ui/react-collection@1.0.3(transitive)
+ Added@radix-ui/react-compose-refs@1.0.1(transitive)
+ Added@radix-ui/react-context@1.0.1(transitive)
+ Added@radix-ui/react-direction@1.0.1(transitive)
+ Added@radix-ui/react-dismissable-layer@1.0.4(transitive)
+ Added@radix-ui/react-focus-guards@1.0.1(transitive)
+ Added@radix-ui/react-focus-scope@1.0.3(transitive)
+ Added@radix-ui/react-id@1.0.1(transitive)
+ Added@radix-ui/react-popper@1.1.2(transitive)
+ Added@radix-ui/react-portal@1.0.3(transitive)
+ Added@radix-ui/react-primitive@1.0.3(transitive)
+ Added@radix-ui/react-select@1.2.2(transitive)
+ Added@radix-ui/react-slot@1.0.2(transitive)
+ Added@radix-ui/react-use-callback-ref@1.0.1(transitive)
+ Added@radix-ui/react-use-controllable-state@1.0.1(transitive)
+ Added@radix-ui/react-use-escape-keydown@1.0.3(transitive)
+ Added@radix-ui/react-use-layout-effect@1.0.1(transitive)
+ Added@radix-ui/react-use-previous@1.0.1(transitive)
+ Added@radix-ui/react-use-rect@1.0.1(transitive)
+ Added@radix-ui/react-use-size@1.0.1(transitive)
+ Added@radix-ui/react-visually-hidden@1.0.3(transitive)
+ Added@radix-ui/rect@1.0.1(transitive)
+ Added@samvera/nectar-iiif@0.0.16(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedhtmlparser2@8.0.2(transitive)
+ Addedis-plain-object@5.0.0(transitive)
+ Addednanoid@3.3.7(transitive)
+ Addedparse-srcset@1.0.2(transitive)
+ Addedpicocolors@1.0.1(transitive)
+ Addedpostcss@8.4.39(transitive)
+ Addedreact-remove-scroll@2.5.5(transitive)
+ Addedsanitize-html@2.13.0(transitive)
+ Addedsource-map-js@1.2.0(transitive)
Updated@stitches/react@^1.2.8