Socket
Socket
Sign inDemoInstall

@samvera/clover-iiif

Package Overview
Dependencies
97
Maintainers
4
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.10.3 to 1.11.0

dist/src/components/Collection/Collection.d.ts

36

dist/src/components/Viewer/Header.styled.d.ts

@@ -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;

3

dist/src/index.d.ts
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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc