@samvera/clover-iiif
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -39,3 +39,18 @@ /// <reference types="react" /> | ||
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>; | ||
declare const IIIFBadgeContent: import("@stitches/react/types/styled-component").StyledComponent<import("react").FC<any>, {}, { | ||
declare const IIIFBadgeContent: import("@stitches/react/types/styled-component").StyledComponent<import("react").FC<{ | ||
children: import("react").ReactChild | import("react").ReactChild[]; | ||
id?: string | undefined; | ||
} & import("@stitches/react/types/styled-component").TransformProps<{ | ||
isLight?: boolean | "true" | undefined; | ||
isPrimary?: boolean | "true" | undefined; | ||
}, { | ||
bp1: "(min-width: 520px)"; | ||
bp2: "(min-width: 900px)"; | ||
bp3: "(min-width: 1200px)"; | ||
bp4: "(min-width: 1800px)"; | ||
motion: "(prefers-reduced-motion)"; | ||
hover: "(any-hover: hover)"; | ||
dark: "(prefers-color-scheme: dark)"; | ||
light: "(prefers-color-scheme: light)"; | ||
}>>, {}, { | ||
xxs: string; | ||
@@ -42,0 +57,0 @@ xs: string; |
@@ -65,7 +65,7 @@ /// <reference types="react" /> | ||
} | undefined; | ||
compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & { | ||
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & { | ||
css: CSS; | ||
})[] | undefined; | ||
defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined; | ||
} & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, { | ||
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined; | ||
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, { | ||
xxs: string; | ||
@@ -138,7 +138,7 @@ xs: string; | ||
} | undefined; | ||
compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & { | ||
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & { | ||
css: CSS; | ||
})[] | undefined; | ||
defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined; | ||
} & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, { | ||
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined; | ||
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, { | ||
xxs: string; | ||
@@ -145,0 +145,0 @@ xs: string; |
{ | ||
"name": "@samvera/clover-iiif", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Viewer for audio, video and image file types driven by a IIIF manifest", | ||
@@ -28,51 +28,51 @@ "main": "dist/index.cjs.js", | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^13.1.1", | ||
"@types/jest": "^27.0.2", | ||
"@types/openseadragon": "^3.0.2", | ||
"@types/react": "^18.0.5", | ||
"@types/react-dom": "^18.0.1", | ||
"@iiif/presentation-3": "^1.1.3", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/jest": "^29.0.2", | ||
"@types/openseadragon": "^3.0.3", | ||
"@types/react": "^18.0.20", | ||
"@types/react-dom": "^18.0.6", | ||
"@types/testing-library__react": "^10.2.0", | ||
"@types/uuid": "^8.3.4", | ||
"@typescript-eslint/eslint-plugin": "^5.20.0", | ||
"@typescript-eslint/parser": "^5.20.0", | ||
"chokidar": "^3.5.2", | ||
"dotenv": "^16.0.0", | ||
"esbuild": "^0.14.36", | ||
"esbuild-css-modules-plugin": "^2.0.9", | ||
"esbuild-envfile-plugin": "^1.0.2", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.26.0", | ||
"fs-extra": "^10.0.1", | ||
"jest": "^27.2.1", | ||
"jest-canvas-mock": "^2.3.1", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
"@typescript-eslint/parser": "^5.37.0", | ||
"chokidar": "^3.5.3", | ||
"dotenv": "^16.0.2", | ||
"esbuild": "^0.15.7", | ||
"esbuild-css-modules-plugin": "^2.5.2", | ||
"esbuild-envfile-plugin": "^1.0.3", | ||
"eslint": "^8.23.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.31.8", | ||
"fs-extra": "^10.1.0", | ||
"jest": "^29.0.3", | ||
"jest-canvas-mock": "^2.4.0", | ||
"jest-fetch-mock": "^3.0.3", | ||
"live-server": "^1.2.1", | ||
"markdown-it": "^12.3.2", | ||
"prettier": "^2.4.1", | ||
"live-server": "^1.2.2", | ||
"markdown-it": "^13.0.1", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"shiki": "^0.10.1", | ||
"ts-jest": "^27.0.5", | ||
"ts-node": "^10.2.1", | ||
"typescript": "^4.4.3" | ||
"shiki": "^0.11.1", | ||
"ts-jest": "^29.0.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.3" | ||
}, | ||
"dependencies": { | ||
"@iiif/presentation-3": "^1.0.4", | ||
"@iiif/vault": "^0.9.17", | ||
"@nulib/design-system": "^1.5.0", | ||
"@radix-ui/react-collapsible": "^0.1.7-rc.3", | ||
"@radix-ui/react-radio-group": "^0.1.6-rc.6", | ||
"@iiif/vault": "^0.9.19", | ||
"@nulib/design-system": "^1.6.0", | ||
"@radix-ui/react-collapsible": "^1.0.0", | ||
"@radix-ui/react-radio-group": "^1.0.0", | ||
"@radix-ui/react-select": "^1.0.0", | ||
"@radix-ui/react-tabs": "^0.1.6-rc.6", | ||
"@radix-ui/react-tabs": "^1.0.0", | ||
"@samvera/nectar-iiif": "^0.0.16", | ||
"@stitches/react": "^1.2.8", | ||
"hls.js": "^1.0.10", | ||
"node-webvtt": "^1.9.3", | ||
"openseadragon": "^2.4.2 || ^3.0.0", | ||
"react": "^16.13.1 || ^17.0 || ^18.0", | ||
"react-dom": "^16.13.1 || ^17.0 || ^18.0", | ||
"hls.js": "^1.2.3", | ||
"node-webvtt": "^1.9.4", | ||
"openseadragon": "^2.4.2 || ^3", | ||
"react": "^16.13.1 || ^17 || ^18", | ||
"react-dom": "^16.13.1 || ^17 || ^18", | ||
"react-error-boundary": "^3.1.4", | ||
"uuid": "^8.3.2" | ||
"uuid": "^9.0.0" | ||
}, | ||
@@ -79,0 +79,0 @@ "files": [ |
@@ -1,7 +0,7 @@ | ||
<!-- ![image](https://user-images.githubusercontent.com/7376450/154114970-a68a6b14-91b8-48ea-a76a-5d2cd2f342c7.png) --> | ||
<img src="https://user-images.githubusercontent.com/7376450/164540681-0504cae5-58e6-4172-969f-2b289f47b422.png" class="clover-screenshot" alt="Clover screenshot" /> | ||
<!-- ![image](https://user-images.githubusercontent.com/7376450/190425863-89c42386-4e59-4a4f-b0bd-6bd5ee9dba5f.png) --> | ||
<img src="https://user-images.githubusercontent.com/7376450/190425863-89c42386-4e59-4a4f-b0bd-6bd5ee9dba5f.png" class="clover-screenshot" alt="Clover screenshot" /> | ||
# Clover IIIF | ||
**A minimal IIIF viewer for Image, Audio, and Video canvases built with React.js** | ||
**A minimal IIIF viewer for Image, Audio, and Video manifests built with React.js** | ||
@@ -18,2 +18,3 @@ [**Demo**](https://samvera-labs.github.io/clover-iiif/) | [**Code**](https://github.com/samvera-labs/clover-iiif) | ||
- Supports HLS streaming for **.m3u8** extensions | ||
- Supports IIIF Collections and toggling between child Manifests | ||
@@ -59,3 +60,3 @@ --- | ||
Mnimal usage providing the `<CloverIIIF/>` component with an external manifest. | ||
Minimal usage providing the `<CloverIIIF/>` component with an external manifest. | ||
@@ -71,2 +72,22 @@ ```jsx | ||
<h3>Usage with Next.js</h3> | ||
Usage with Next.js requires a dynamic import using `next/dynamic`due to a depdency of OpenSeadragon. | ||
```jsx | ||
import dynamic from "next/dynamic"; | ||
const CloverIIIF = dynamic(() => import("@samvera/clover-iiif"), { | ||
ssr: false, | ||
}); | ||
const id = "https://digital.lib.utk.edu/assemble/manifest/heilman/1187"; | ||
return <CloverIIIF id={id} /> | ||
``` | ||
--- | ||
@@ -73,0 +94,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
978134
15
3054
310
32
+ Added@radix-ui/primitive@1.1.0(transitive)
+ Added@radix-ui/react-collapsible@1.1.0(transitive)
+ Added@radix-ui/react-collection@1.1.0(transitive)
+ Added@radix-ui/react-compose-refs@1.1.0(transitive)
+ Added@radix-ui/react-context@1.1.0(transitive)
+ Added@radix-ui/react-direction@1.1.0(transitive)
+ Added@radix-ui/react-id@1.1.0(transitive)
+ Added@radix-ui/react-presence@1.1.0(transitive)
+ Added@radix-ui/react-primitive@2.0.0(transitive)
+ Added@radix-ui/react-radio-group@1.2.0(transitive)
+ Added@radix-ui/react-roving-focus@1.1.0(transitive)
+ Added@radix-ui/react-slot@1.1.0(transitive)
+ Added@radix-ui/react-tabs@1.1.0(transitive)
+ Added@radix-ui/react-use-callback-ref@1.1.0(transitive)
+ Added@radix-ui/react-use-controllable-state@1.1.0(transitive)
+ Added@radix-ui/react-use-layout-effect@1.1.0(transitive)
+ Added@radix-ui/react-use-previous@1.1.0(transitive)
+ Added@radix-ui/react-use-size@1.1.0(transitive)
+ Addeduuid@9.0.1(transitive)
- Removed@iiif/presentation-3@^1.0.4
- Removed@radix-ui/primitive@0.1.0(transitive)
- Removed@radix-ui/react-collapsible@0.1.7-rc.47(transitive)
- Removed@radix-ui/react-collection@0.1.5-rc.47(transitive)
- Removed@radix-ui/react-direction@0.1.0-rc.50(transitive)
- Removed@radix-ui/react-label@0.1.6-rc.47(transitive)
- Removed@radix-ui/react-radio-group@0.1.6-rc.50(transitive)
- Removed@radix-ui/react-roving-focus@0.1.6-rc.50(transitive)
- Removed@radix-ui/react-tabs@0.1.6-rc.23(transitive)
- Removed@radix-ui/react-use-previous@0.1.2-rc.47(transitive)
- Removeduuid@8.3.2(transitive)
Updated@iiif/vault@^0.9.19
Updated@nulib/design-system@^1.6.0
Updated@radix-ui/react-tabs@^1.0.0
Updatedhls.js@^1.2.3
Updatednode-webvtt@^1.9.4
Updatedopenseadragon@^2.4.2 || ^3
Updatedreact@^16.13.1 || ^17 || ^18
Updateduuid@^9.0.0